0s autopkgtest [12:39:52]: starting date and time: 2024-08-05 12:39:52+0000 0s autopkgtest [12:39:52]: git checkout: fd3bed09 nova: allow more retries for quota issues 0s autopkgtest [12:39:52]: host juju-7f2275-prod-proposed-migration-environment-9; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.eh1nswi1/out --timeout-copy=6000 --setup-commands 'ln -s /dev/null /etc/systemd/system/bluetooth.service; printf "http_proxy=http://squid.internal:3128\nhttps_proxy=http://squid.internal:3128\nno_proxy=127.0.0.1,127.0.1.1,login.ubuntu.com,localhost,localdomain,novalocal,internal,archive.ubuntu.com,ports.ubuntu.com,security.ubuntu.com,ddebs.ubuntu.com,changelogs.ubuntu.com,keyserver.ubuntu.com,launchpadlibrarian.net,launchpadcontent.net,launchpad.net,10.24.0.0/24,keystone.ps5.canonical.com,objectstorage.prodstack5.canonical.com\n" >> /etc/environment' --apt-pocket=proposed=src:scipy --apt-upgrade pandas --timeout-short=300 --timeout-copy=40000 --timeout-test=40000 --timeout-build=40000 --env=ADT_TEST_TRIGGERS=scipy/1.13.1-2 -- lxd -r lxd-armhf-10.145.243.234 lxd-armhf-10.145.243.234:autopkgtest/ubuntu/oracular/armhf 55s autopkgtest [12:40:47]: testbed dpkg architecture: armhf 56s autopkgtest [12:40:48]: testbed apt version: 2.9.6 56s autopkgtest [12:40:48]: @@@@@@@@@@@@@@@@@@@@ test bed setup 64s Get:1 http://ftpmaster.internal/ubuntu oracular-proposed InRelease [126 kB] 65s Get:2 http://ftpmaster.internal/ubuntu oracular-proposed/universe Sources [638 kB] 65s Get:3 http://ftpmaster.internal/ubuntu oracular-proposed/restricted Sources [8552 B] 65s Get:4 http://ftpmaster.internal/ubuntu oracular-proposed/main Sources [66.5 kB] 65s Get:5 http://ftpmaster.internal/ubuntu oracular-proposed/multiverse Sources [10.5 kB] 65s Get:6 http://ftpmaster.internal/ubuntu oracular-proposed/main armhf Packages [78.7 kB] 65s Get:7 http://ftpmaster.internal/ubuntu oracular-proposed/main armhf c-n-f Metadata [2116 B] 65s Get:8 http://ftpmaster.internal/ubuntu oracular-proposed/restricted armhf Packages [1364 B] 65s Get:9 http://ftpmaster.internal/ubuntu oracular-proposed/restricted armhf c-n-f Metadata [120 B] 65s Get:10 http://ftpmaster.internal/ubuntu oracular-proposed/universe armhf Packages [518 kB] 65s Get:11 http://ftpmaster.internal/ubuntu oracular-proposed/universe armhf c-n-f Metadata [13.0 kB] 65s Get:12 http://ftpmaster.internal/ubuntu oracular-proposed/multiverse armhf Packages [17.0 kB] 65s Get:13 http://ftpmaster.internal/ubuntu oracular-proposed/multiverse armhf c-n-f Metadata [520 B] 68s Fetched 1480 kB in 1s (1500 kB/s) 68s Reading package lists... 85s tee: /proc/self/fd/2: Permission denied 110s Hit:1 http://ftpmaster.internal/ubuntu oracular-proposed InRelease 110s Hit:2 http://ftpmaster.internal/ubuntu oracular InRelease 110s Hit:3 http://ftpmaster.internal/ubuntu oracular-updates InRelease 110s Hit:4 http://ftpmaster.internal/ubuntu oracular-security InRelease 115s Reading package lists... 115s Reading package lists... 115s Building dependency tree... 115s Reading state information... 116s Calculating upgrade... 116s The following packages were automatically installed and are no longer required: 116s libargon2-1 python3-six 116s Use 'apt autoremove' to remove them. 116s The following NEW packages will be installed: 116s libatomic1 116s The following packages will be upgraded: 116s apparmor apport apport-core-dump-handler bind9-dnsutils bind9-host 116s bind9-libs binutils binutils-arm-linux-gnueabihf binutils-common cpio 116s cryptsetup-bin dmsetup dpkg dpkg-dev gcc-14-base gdisk gettext-base 116s gir1.2-glib-2.0 kpartx libapparmor1 libbinutils libbpf1 libcryptsetup12 116s libctf-nobfd0 libctf0 libdevmapper1.02.1 libdpkg-perl libdrm-common libdrm2 116s libfribidi0 libgcc-s1 libglib2.0-0t64 libglib2.0-data liblz4-1 libnspr4 116s libp11-kit0 libpython3-stdlib libsframe1 libssl3t64 libstdc++6 logrotate 116s mawk multipath-tools netcat-openbsd networkd-dispatcher openssh-client 116s openssh-server openssh-sftp-server openssl pci.ids python3 python3-apport 116s python3-gdbm python3-launchpadlib python3-minimal python3-pkg-resources 116s python3-problem-report python3-setuptools python3-six rsyslog strace 116s systemd-hwe-hwdb ubuntu-pro-client ubuntu-pro-client-l10n 116s 64 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 116s Need to get 19.8 MB of archives. 116s After this operation, 753 kB of additional disk space will be used. 116s Get:1 http://ftpmaster.internal/ubuntu oracular/main armhf dpkg armhf 1.22.10ubuntu2 [1243 kB] 117s Get:2 http://ftpmaster.internal/ubuntu oracular/main armhf python3-minimal armhf 3.12.4-1 [27.1 kB] 117s Get:3 http://ftpmaster.internal/ubuntu oracular/main armhf python3 armhf 3.12.4-1 [24.0 kB] 117s Get:4 http://ftpmaster.internal/ubuntu oracular/main armhf libpython3-stdlib armhf 3.12.4-1 [9824 B] 117s Get:5 http://ftpmaster.internal/ubuntu oracular/main armhf python3-launchpadlib all 2.0.0-1 [126 kB] 117s Get:6 http://ftpmaster.internal/ubuntu oracular/main armhf python3-problem-report all 2.29.0-0ubuntu1 [24.4 kB] 117s Get:7 http://ftpmaster.internal/ubuntu oracular/main armhf python3-apport all 2.29.0-0ubuntu1 [92.4 kB] 117s Get:8 http://ftpmaster.internal/ubuntu oracular/main armhf gcc-14-base armhf 14.1.0-5ubuntu1 [49.8 kB] 117s Get:9 http://ftpmaster.internal/ubuntu oracular/main armhf libstdc++6 armhf 14.1.0-5ubuntu1 [711 kB] 117s Get:10 http://ftpmaster.internal/ubuntu oracular/main armhf libgcc-s1 armhf 14.1.0-5ubuntu1 [40.8 kB] 117s Get:11 http://ftpmaster.internal/ubuntu oracular/main armhf libatomic1 armhf 14.1.0-5ubuntu1 [7850 B] 117s Get:12 http://ftpmaster.internal/ubuntu oracular/main armhf gir1.2-glib-2.0 armhf 2.81.1-2ubuntu1 [182 kB] 117s Get:13 http://ftpmaster.internal/ubuntu oracular/main armhf libglib2.0-0t64 armhf 2.81.1-2ubuntu1 [1429 kB] 117s Get:14 http://ftpmaster.internal/ubuntu oracular/main armhf apport-core-dump-handler all 2.29.0-0ubuntu1 [17.4 kB] 117s Get:15 http://ftpmaster.internal/ubuntu oracular/main armhf apport all 2.29.0-0ubuntu1 [84.5 kB] 117s Get:16 http://ftpmaster.internal/ubuntu oracular/main armhf libssl3t64 armhf 3.2.2-1ubuntu3 [1729 kB] 117s Get:17 http://ftpmaster.internal/ubuntu oracular/main armhf openssh-sftp-server armhf 1:9.7p1-7ubuntu2 [35.6 kB] 117s Get:18 http://ftpmaster.internal/ubuntu oracular/main armhf openssh-server armhf 1:9.7p1-7ubuntu2 [502 kB] 117s Get:19 http://ftpmaster.internal/ubuntu oracular/main armhf openssh-client armhf 1:9.7p1-7ubuntu2 [894 kB] 117s Get:20 http://ftpmaster.internal/ubuntu oracular/main armhf liblz4-1 armhf 1.9.4-3 [52.7 kB] 117s Get:21 http://ftpmaster.internal/ubuntu oracular/main armhf libp11-kit0 armhf 0.25.5-2ubuntu1 [259 kB] 117s Get:22 http://ftpmaster.internal/ubuntu oracular/main armhf mawk armhf 1.3.4.20240622-2 [115 kB] 117s Get:23 http://ftpmaster.internal/ubuntu oracular/main armhf libdevmapper1.02.1 armhf 2:1.02.196-1ubuntu1 [135 kB] 117s Get:24 http://ftpmaster.internal/ubuntu oracular/main armhf dmsetup armhf 2:1.02.196-1ubuntu1 [81.3 kB] 117s Get:25 http://ftpmaster.internal/ubuntu oracular/main armhf libapparmor1 armhf 4.0.1really4.0.1-0ubuntu2 [46.0 kB] 117s Get:26 http://ftpmaster.internal/ubuntu oracular/main armhf libbpf1 armhf 1:1.4.5-1 [151 kB] 117s Get:27 http://ftpmaster.internal/ubuntu oracular/main armhf libcryptsetup12 armhf 2:2.7.2-2ubuntu1 [244 kB] 117s Get:28 http://ftpmaster.internal/ubuntu oracular/main armhf libfribidi0 armhf 1.0.15-1 [24.1 kB] 117s Get:29 http://ftpmaster.internal/ubuntu oracular/main armhf libglib2.0-data all 2.81.1-2ubuntu1 [49.7 kB] 117s Get:30 http://ftpmaster.internal/ubuntu oracular/main armhf logrotate armhf 3.22.0-1 [51.5 kB] 117s Get:31 http://ftpmaster.internal/ubuntu oracular/main armhf netcat-openbsd armhf 1.226-1.1 [42.2 kB] 117s Get:32 http://ftpmaster.internal/ubuntu oracular/main armhf networkd-dispatcher all 2.2.4-1.1 [15.6 kB] 117s Get:33 http://ftpmaster.internal/ubuntu oracular/main armhf openssl armhf 3.2.2-1ubuntu3 [1093 kB] 117s Get:34 http://ftpmaster.internal/ubuntu oracular/main armhf python3-setuptools all 70.3.0-2 [429 kB] 117s Get:35 http://ftpmaster.internal/ubuntu oracular/main armhf python3-pkg-resources all 70.3.0-2 [187 kB] 117s Get:36 http://ftpmaster.internal/ubuntu oracular/main armhf rsyslog armhf 8.2406.0-1ubuntu1 [461 kB] 117s Get:37 http://ftpmaster.internal/ubuntu oracular/main armhf systemd-hwe-hwdb all 256.2.1 [3210 B] 117s Get:38 http://ftpmaster.internal/ubuntu oracular/main armhf ubuntu-pro-client-l10n armhf 33.2 [19.2 kB] 117s Get:39 http://ftpmaster.internal/ubuntu oracular/main armhf ubuntu-pro-client armhf 33.2 [232 kB] 117s Get:40 http://ftpmaster.internal/ubuntu oracular/main armhf apparmor armhf 4.0.1really4.0.1-0ubuntu2 [582 kB] 117s Get:41 http://ftpmaster.internal/ubuntu oracular/main armhf bind9-dnsutils armhf 1:9.18.28-0ubuntu1 [149 kB] 117s Get:42 http://ftpmaster.internal/ubuntu oracular/main armhf bind9-host armhf 1:9.18.28-0ubuntu1 [47.5 kB] 117s Get:43 http://ftpmaster.internal/ubuntu oracular/main armhf bind9-libs armhf 1:9.18.28-0ubuntu1 [1156 kB] 117s Get:44 http://ftpmaster.internal/ubuntu oracular/main armhf cpio armhf 2.15+dfsg-2 [83.5 kB] 117s Get:45 http://ftpmaster.internal/ubuntu oracular/main armhf gettext-base armhf 0.22.5-2 [40.9 kB] 117s Get:46 http://ftpmaster.internal/ubuntu oracular/main armhf libdrm-common all 2.4.122-1 [8350 B] 117s Get:47 http://ftpmaster.internal/ubuntu oracular/main armhf libdrm2 armhf 2.4.122-1 [36.5 kB] 117s Get:48 http://ftpmaster.internal/ubuntu oracular/main armhf pci.ids all 0.0~2024.06.23-1 [278 kB] 117s Get:49 http://ftpmaster.internal/ubuntu oracular/main armhf python3-gdbm armhf 3.12.4-2 [16.9 kB] 117s Get:50 http://ftpmaster.internal/ubuntu oracular/main armhf strace armhf 6.8-2 [427 kB] 117s Get:51 http://ftpmaster.internal/ubuntu oracular/main armhf libctf0 armhf 2.42.90.20240720-2ubuntu1 [89.1 kB] 117s Get:52 http://ftpmaster.internal/ubuntu oracular/main armhf libctf-nobfd0 armhf 2.42.90.20240720-2ubuntu1 [88.6 kB] 117s Get:53 http://ftpmaster.internal/ubuntu oracular/main armhf binutils-arm-linux-gnueabihf armhf 2.42.90.20240720-2ubuntu1 [2929 kB] 117s Get:54 http://ftpmaster.internal/ubuntu oracular/main armhf libbinutils armhf 2.42.90.20240720-2ubuntu1 [459 kB] 117s Get:55 http://ftpmaster.internal/ubuntu oracular/main armhf binutils armhf 2.42.90.20240720-2ubuntu1 [3084 B] 117s Get:56 http://ftpmaster.internal/ubuntu oracular/main armhf binutils-common armhf 2.42.90.20240720-2ubuntu1 [221 kB] 117s Get:57 http://ftpmaster.internal/ubuntu oracular/main armhf libsframe1 armhf 2.42.90.20240720-2ubuntu1 [12.7 kB] 117s Get:58 http://ftpmaster.internal/ubuntu oracular/main armhf cryptsetup-bin armhf 2:2.7.2-2ubuntu1 [219 kB] 117s Get:59 http://ftpmaster.internal/ubuntu oracular/main armhf dpkg-dev all 1.22.10ubuntu2 [1087 kB] 118s Get:60 http://ftpmaster.internal/ubuntu oracular/main armhf libdpkg-perl all 1.22.10ubuntu2 [279 kB] 118s Get:61 http://ftpmaster.internal/ubuntu oracular/main armhf libnspr4 armhf 2:4.35-1.1ubuntu1 [93.3 kB] 118s Get:62 http://ftpmaster.internal/ubuntu oracular/main armhf python3-six all 1.16.0-7 [13.1 kB] 118s Get:63 http://ftpmaster.internal/ubuntu oracular/main armhf gdisk armhf 1.0.10-2 [229 kB] 118s Get:64 http://ftpmaster.internal/ubuntu oracular/main armhf kpartx armhf 0.9.9-1ubuntu2 [34.6 kB] 118s Get:65 http://ftpmaster.internal/ubuntu oracular/main armhf multipath-tools armhf 0.9.9-1ubuntu2 [292 kB] 118s Preconfiguring packages ... 118s Fetched 19.8 MB in 1s (13.2 MB/s) 118s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58422 files and directories currently installed.) 118s Preparing to unpack .../dpkg_1.22.10ubuntu2_armhf.deb ... 118s Unpacking dpkg (1.22.10ubuntu2) over (1.22.6ubuntu14) ... 118s Setting up dpkg (1.22.10ubuntu2) ... 119s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58421 files and directories currently installed.) 119s Preparing to unpack .../python3-minimal_3.12.4-1_armhf.deb ... 119s Unpacking python3-minimal (3.12.4-1) over (3.12.3-0ubuntu1) ... 119s Setting up python3-minimal (3.12.4-1) ... 119s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58421 files and directories currently installed.) 119s Preparing to unpack .../0-python3_3.12.4-1_armhf.deb ... 119s Unpacking python3 (3.12.4-1) over (3.12.3-0ubuntu1) ... 119s Preparing to unpack .../1-libpython3-stdlib_3.12.4-1_armhf.deb ... 119s Unpacking libpython3-stdlib:armhf (3.12.4-1) over (3.12.3-0ubuntu1) ... 119s Preparing to unpack .../2-python3-launchpadlib_2.0.0-1_all.deb ... 120s Unpacking python3-launchpadlib (2.0.0-1) over (1.11.0-6) ... 120s Preparing to unpack .../3-python3-problem-report_2.29.0-0ubuntu1_all.deb ... 120s Unpacking python3-problem-report (2.29.0-0ubuntu1) over (2.28.1-0ubuntu4) ... 120s Preparing to unpack .../4-python3-apport_2.29.0-0ubuntu1_all.deb ... 120s Unpacking python3-apport (2.29.0-0ubuntu1) over (2.28.1-0ubuntu4) ... 120s Preparing to unpack .../5-gcc-14-base_14.1.0-5ubuntu1_armhf.deb ... 120s Unpacking gcc-14-base:armhf (14.1.0-5ubuntu1) over (14.1.0-4ubuntu2) ... 120s Setting up gcc-14-base:armhf (14.1.0-5ubuntu1) ... 120s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58420 files and directories currently installed.) 120s Preparing to unpack .../libstdc++6_14.1.0-5ubuntu1_armhf.deb ... 120s Unpacking libstdc++6:armhf (14.1.0-5ubuntu1) over (14.1.0-4ubuntu2) ... 120s Setting up libstdc++6:armhf (14.1.0-5ubuntu1) ... 120s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58420 files and directories currently installed.) 120s Preparing to unpack .../libgcc-s1_14.1.0-5ubuntu1_armhf.deb ... 120s Unpacking libgcc-s1:armhf (14.1.0-5ubuntu1) over (14.1.0-4ubuntu2) ... 120s Setting up libgcc-s1:armhf (14.1.0-5ubuntu1) ... 120s Selecting previously unselected package libatomic1:armhf. 120s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58420 files and directories currently installed.) 120s Preparing to unpack .../0-libatomic1_14.1.0-5ubuntu1_armhf.deb ... 120s Unpacking libatomic1:armhf (14.1.0-5ubuntu1) ... 120s Preparing to unpack .../1-gir1.2-glib-2.0_2.81.1-2ubuntu1_armhf.deb ... 120s Unpacking gir1.2-glib-2.0:armhf (2.81.1-2ubuntu1) over (2.80.4-1ubuntu1) ... 120s Preparing to unpack .../2-libglib2.0-0t64_2.81.1-2ubuntu1_armhf.deb ... 120s Unpacking libglib2.0-0t64:armhf (2.81.1-2ubuntu1) over (2.80.4-1ubuntu1) ... 120s Preparing to unpack .../3-apport-core-dump-handler_2.29.0-0ubuntu1_all.deb ... 120s Unpacking apport-core-dump-handler (2.29.0-0ubuntu1) over (2.28.1-0ubuntu4) ... 120s Preparing to unpack .../4-apport_2.29.0-0ubuntu1_all.deb ... 120s Unpacking apport (2.29.0-0ubuntu1) over (2.28.1-0ubuntu4) ... 120s Preparing to unpack .../5-libssl3t64_3.2.2-1ubuntu3_armhf.deb ... 120s Unpacking libssl3t64:armhf (3.2.2-1ubuntu3) over (3.2.2-1ubuntu1) ... 120s Setting up libssl3t64:armhf (3.2.2-1ubuntu3) ... 121s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58423 files and directories currently installed.) 121s Preparing to unpack .../openssh-sftp-server_1%3a9.7p1-7ubuntu2_armhf.deb ... 121s Unpacking openssh-sftp-server (1:9.7p1-7ubuntu2) over (1:9.6p1-3ubuntu17) ... 121s Preparing to unpack .../openssh-server_1%3a9.7p1-7ubuntu2_armhf.deb ... 121s Unpacking openssh-server (1:9.7p1-7ubuntu2) over (1:9.6p1-3ubuntu17) ... 121s Preparing to unpack .../openssh-client_1%3a9.7p1-7ubuntu2_armhf.deb ... 121s Unpacking openssh-client (1:9.7p1-7ubuntu2) over (1:9.6p1-3ubuntu17) ... 121s Preparing to unpack .../liblz4-1_1.9.4-3_armhf.deb ... 121s Unpacking liblz4-1:armhf (1.9.4-3) over (1.9.4-2) ... 121s Setting up liblz4-1:armhf (1.9.4-3) ... 121s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58426 files and directories currently installed.) 121s Preparing to unpack .../libp11-kit0_0.25.5-2ubuntu1_armhf.deb ... 121s Unpacking libp11-kit0:armhf (0.25.5-2ubuntu1) over (0.25.3-4ubuntu2) ... 121s Setting up libp11-kit0:armhf (0.25.5-2ubuntu1) ... 121s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58426 files and directories currently installed.) 121s Preparing to unpack .../00-mawk_1.3.4.20240622-2_armhf.deb ... 121s Unpacking mawk (1.3.4.20240622-2) over (1.3.4.20240622-1) ... 121s Preparing to unpack .../01-libdevmapper1.02.1_2%3a1.02.196-1ubuntu1_armhf.deb ... 121s Unpacking libdevmapper1.02.1:armhf (2:1.02.196-1ubuntu1) over (2:1.02.185-3ubuntu4) ... 121s Preparing to unpack .../02-dmsetup_2%3a1.02.196-1ubuntu1_armhf.deb ... 121s Unpacking dmsetup (2:1.02.196-1ubuntu1) over (2:1.02.185-3ubuntu4) ... 121s Preparing to unpack .../03-libapparmor1_4.0.1really4.0.1-0ubuntu2_armhf.deb ... 121s Unpacking libapparmor1:armhf (4.0.1really4.0.1-0ubuntu2) over (4.0.1-0ubuntu1) ... 121s Preparing to unpack .../04-libbpf1_1%3a1.4.5-1_armhf.deb ... 121s Unpacking libbpf1:armhf (1:1.4.5-1) over (1:1.4.3-1) ... 121s Preparing to unpack .../05-libcryptsetup12_2%3a2.7.2-2ubuntu1_armhf.deb ... 121s Unpacking libcryptsetup12:armhf (2:2.7.2-2ubuntu1) over (2:2.7.0-1ubuntu6) ... 121s dpkg: warning: unable to delete old directory '/lib/arm-linux-gnueabihf': Directory not empty 121s Preparing to unpack .../06-libfribidi0_1.0.15-1_armhf.deb ... 121s Unpacking libfribidi0:armhf (1.0.15-1) over (1.0.13-3build1) ... 121s Preparing to unpack .../07-libglib2.0-data_2.81.1-2ubuntu1_all.deb ... 121s Unpacking libglib2.0-data (2.81.1-2ubuntu1) over (2.80.4-1ubuntu1) ... 121s Preparing to unpack .../08-logrotate_3.22.0-1_armhf.deb ... 121s Unpacking logrotate (3.22.0-1) over (3.21.0-2build1) ... 121s Preparing to unpack .../09-netcat-openbsd_1.226-1.1_armhf.deb ... 121s Unpacking netcat-openbsd (1.226-1.1) over (1.226-1ubuntu2) ... 121s Preparing to unpack .../10-networkd-dispatcher_2.2.4-1.1_all.deb ... 121s Unpacking networkd-dispatcher (2.2.4-1.1) over (2.2.4-1) ... 121s Preparing to unpack .../11-openssl_3.2.2-1ubuntu3_armhf.deb ... 121s Unpacking openssl (3.2.2-1ubuntu3) over (3.2.2-1ubuntu1) ... 121s Preparing to unpack .../12-python3-setuptools_70.3.0-2_all.deb ... 121s Unpacking python3-setuptools (70.3.0-2) over (68.1.2-2ubuntu1) ... 122s Preparing to unpack .../13-python3-pkg-resources_70.3.0-2_all.deb ... 122s Unpacking python3-pkg-resources (70.3.0-2) over (68.1.2-2ubuntu1) ... 122s Preparing to unpack .../14-rsyslog_8.2406.0-1ubuntu1_armhf.deb ... 122s Unpacking rsyslog (8.2406.0-1ubuntu1) over (8.2312.0-3ubuntu9) ... 122s Preparing to unpack .../15-systemd-hwe-hwdb_256.2.1_all.deb ... 122s Unpacking systemd-hwe-hwdb (256.2.1) over (255.1.3) ... 122s Preparing to unpack .../16-ubuntu-pro-client-l10n_33.2_armhf.deb ... 122s Unpacking ubuntu-pro-client-l10n (33.2) over (33.1) ... 122s Preparing to unpack .../17-ubuntu-pro-client_33.2_armhf.deb ... 122s Unpacking ubuntu-pro-client (33.2) over (33.1) ... 122s Preparing to unpack .../18-apparmor_4.0.1really4.0.1-0ubuntu2_armhf.deb ... 123s Unpacking apparmor (4.0.1really4.0.1-0ubuntu2) over (4.0.1-0ubuntu1) ... 123s Preparing to unpack .../19-bind9-dnsutils_1%3a9.18.28-0ubuntu1_armhf.deb ... 123s Unpacking bind9-dnsutils (1:9.18.28-0ubuntu1) over (1:9.18.24-0ubuntu5) ... 123s Preparing to unpack .../20-bind9-host_1%3a9.18.28-0ubuntu1_armhf.deb ... 123s Unpacking bind9-host (1:9.18.28-0ubuntu1) over (1:9.18.24-0ubuntu5) ... 123s Preparing to unpack .../21-bind9-libs_1%3a9.18.28-0ubuntu1_armhf.deb ... 123s Unpacking bind9-libs:armhf (1:9.18.28-0ubuntu1) over (1:9.18.24-0ubuntu5) ... 123s Preparing to unpack .../22-cpio_2.15+dfsg-2_armhf.deb ... 123s Unpacking cpio (2.15+dfsg-2) over (2.15+dfsg-1ubuntu3) ... 123s Preparing to unpack .../23-gettext-base_0.22.5-2_armhf.deb ... 123s Unpacking gettext-base (0.22.5-2) over (0.22.5-1) ... 124s Preparing to unpack .../24-libdrm-common_2.4.122-1_all.deb ... 124s Unpacking libdrm-common (2.4.122-1) over (2.4.121-2) ... 124s Preparing to unpack .../25-libdrm2_2.4.122-1_armhf.deb ... 124s Unpacking libdrm2:armhf (2.4.122-1) over (2.4.121-2) ... 124s Preparing to unpack .../26-pci.ids_0.0~2024.06.23-1_all.deb ... 124s Unpacking pci.ids (0.0~2024.06.23-1) over (0.0~2024.05.31-1) ... 124s Preparing to unpack .../27-python3-gdbm_3.12.4-2_armhf.deb ... 124s Unpacking python3-gdbm:armhf (3.12.4-2) over (3.12.3-0ubuntu1) ... 124s Preparing to unpack .../28-strace_6.8-2_armhf.deb ... 124s Unpacking strace (6.8-2) over (6.8-0ubuntu2) ... 124s Preparing to unpack .../29-libctf0_2.42.90.20240720-2ubuntu1_armhf.deb ... 124s Unpacking libctf0:armhf (2.42.90.20240720-2ubuntu1) over (2.42.50.20240710-1ubuntu1) ... 124s Preparing to unpack .../30-libctf-nobfd0_2.42.90.20240720-2ubuntu1_armhf.deb ... 124s Unpacking libctf-nobfd0:armhf (2.42.90.20240720-2ubuntu1) over (2.42.50.20240710-1ubuntu1) ... 124s Preparing to unpack .../31-binutils-arm-linux-gnueabihf_2.42.90.20240720-2ubuntu1_armhf.deb ... 124s Unpacking binutils-arm-linux-gnueabihf (2.42.90.20240720-2ubuntu1) over (2.42.50.20240710-1ubuntu1) ... 124s Preparing to unpack .../32-libbinutils_2.42.90.20240720-2ubuntu1_armhf.deb ... 124s Unpacking libbinutils:armhf (2.42.90.20240720-2ubuntu1) over (2.42.50.20240710-1ubuntu1) ... 124s Preparing to unpack .../33-binutils_2.42.90.20240720-2ubuntu1_armhf.deb ... 124s Unpacking binutils (2.42.90.20240720-2ubuntu1) over (2.42.50.20240710-1ubuntu1) ... 124s Preparing to unpack .../34-binutils-common_2.42.90.20240720-2ubuntu1_armhf.deb ... 124s Unpacking binutils-common:armhf (2.42.90.20240720-2ubuntu1) over (2.42.50.20240710-1ubuntu1) ... 124s Preparing to unpack .../35-libsframe1_2.42.90.20240720-2ubuntu1_armhf.deb ... 124s Unpacking libsframe1:armhf (2.42.90.20240720-2ubuntu1) over (2.42.50.20240710-1ubuntu1) ... 124s Preparing to unpack .../36-cryptsetup-bin_2%3a2.7.2-2ubuntu1_armhf.deb ... 124s Unpacking cryptsetup-bin (2:2.7.2-2ubuntu1) over (2:2.7.0-1ubuntu6) ... 124s Preparing to unpack .../37-dpkg-dev_1.22.10ubuntu2_all.deb ... 124s Unpacking dpkg-dev (1.22.10ubuntu2) over (1.22.6ubuntu14) ... 124s Preparing to unpack .../38-libdpkg-perl_1.22.10ubuntu2_all.deb ... 124s Unpacking libdpkg-perl (1.22.10ubuntu2) over (1.22.6ubuntu14) ... 124s Preparing to unpack .../39-libnspr4_2%3a4.35-1.1ubuntu1_armhf.deb ... 124s Unpacking libnspr4:armhf (2:4.35-1.1ubuntu1) over (2:4.35-1.1build1) ... 124s Preparing to unpack .../40-python3-six_1.16.0-7_all.deb ... 124s Unpacking python3-six (1.16.0-7) over (1.16.0-6) ... 124s Preparing to unpack .../41-gdisk_1.0.10-2_armhf.deb ... 125s Unpacking gdisk (1.0.10-2) over (1.0.10-1build1) ... 125s Preparing to unpack .../42-kpartx_0.9.9-1ubuntu2_armhf.deb ... 125s Unpacking kpartx (0.9.9-1ubuntu2) over (0.9.4-5ubuntu8) ... 125s Preparing to unpack .../43-multipath-tools_0.9.9-1ubuntu2_armhf.deb ... 125s Unpacking multipath-tools (0.9.9-1ubuntu2) over (0.9.4-5ubuntu8) ... 125s dpkg: warning: unable to delete old directory '/lib/multipath': Directory not empty 125s Setting up logrotate (3.22.0-1) ... 125s logrotate.service is a disabled or a static unit not running, not starting it. 125s Setting up cpio (2.15+dfsg-2) ... 125s Setting up libapparmor1:armhf (4.0.1really4.0.1-0ubuntu2) ... 125s Setting up pci.ids (0.0~2024.06.23-1) ... 125s Setting up bind9-libs:armhf (1:9.18.28-0ubuntu1) ... 125s Setting up openssh-client (1:9.7p1-7ubuntu2) ... 125s Setting up rsyslog (8.2406.0-1ubuntu1) ... 125s info: The user `syslog' is already a member of `adm'. 125s apparmor_parser: Unable to replace "rsyslogd". apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 125s 126s Setting up netcat-openbsd (1.226-1.1) ... 126s Setting up binutils-common:armhf (2.42.90.20240720-2ubuntu1) ... 126s Setting up libctf-nobfd0:armhf (2.42.90.20240720-2ubuntu1) ... 126s Setting up gettext-base (0.22.5-2) ... 126s Setting up libsframe1:armhf (2.42.90.20240720-2ubuntu1) ... 126s Setting up apparmor (4.0.1really4.0.1-0ubuntu2) ... 126s apparmor_parser: Unable to replace "lsb_release". apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 126s 126s apparmor_parser: Unable to replace "kmod". apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 126s 126s apparmor_parser: Unable to replace "nvidia_modprobe". apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 126s 127s Removing obsolete conffile /etc/apparmor.d/bwrap-userns-restrict ... 127s Reloading AppArmor profiles 127s /sbin/apparmor_parser: Unable to replace "1password". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "Discord". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "MongoDB Compass". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "QtWebEngineProcess". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "balena-etcher". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "brave". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "buildah". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "busybox". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "cam". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "ch-checkns". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "ch-run". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "chrome". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "vscode". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "crun". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "devhelp". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "element-desktop". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "epiphany". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "evolution". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "firefox". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "flatpak". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "foliate". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "geary". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "github-desktop". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "goldendict". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "ipa_verify". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "kchmviewer". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "keybase". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "lc-compliance". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "libcamerify". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "linux-sandbox". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "loupe". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "lxc-attach". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "lxc-create". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "lxc-destroy". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "lxc-execute". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "lxc-stop". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "lxc-usernsexec". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "lxc-unshare". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "mmdebstrap". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "msedge". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "nautilus". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "notepadqq". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "obsidian". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "opam". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "opera". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "pageedit". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "podman". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "polypane". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "privacybrowser". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "qmapshack". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "qutebrowser". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "rootlesskit". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "rpm". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "qcam". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "rssguard". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "runc". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "sbuild". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "sbuild-abort". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "sbuild-adduser". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "sbuild-apt". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "sbuild-clean". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "sbuild-checkpackages". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "sbuild-createchroot". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "sbuild-destroychroot". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "sbuild-distupgrade". /sbin/apparmor_parser: Unable to replace "sbuild-shell". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "sbuild-hold". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "QtWebEngineProcess". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "plasmashell". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "sbuild-update". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "sbuild-unhold". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "sbuild-upgrade". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "signal-desktop". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "slack". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "slirp4netns". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "steam". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "scide". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "surfshark". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "systemd-coredump". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "stress-ng". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "lsb_release". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "toybox". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "thunderbird". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "trinity". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "tup". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "tuxedo-control-center". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "userbindmount". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "kmod". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "nvidia_modprobe". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "unprivileged_userns". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "unix-chkpwd". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "uwsgi-core". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "vdens". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "virtiofsd". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "vivaldi-bin". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "vpnns". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "wike". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "wpcom". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "rsyslogd". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "/usr/bin/man". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "ubuntu_pro_apt_news". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 127s /sbin/apparmor_parser: Unable to replace "tcpdump". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 127s 128s /sbin/apparmor_parser: Unable to replace "apt_methods". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 128s 128s /sbin/apparmor_parser: Unable to replace "ubuntu_pro_esm_cache". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 128s 128s /sbin/apparmor_parser: Unable to replace "transmission-cli". /sbin/apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 128s 128s Error: At least one profile failed to load 128s Setting up gdisk (1.0.10-2) ... 128s Setting up libglib2.0-data (2.81.1-2ubuntu1) ... 128s Setting up libnspr4:armhf (2:4.35-1.1ubuntu1) ... 128s Setting up strace (6.8-2) ... 128s Setting up libfribidi0:armhf (1.0.15-1) ... 128s Setting up libatomic1:armhf (14.1.0-5ubuntu1) ... 128s Setting up libdpkg-perl (1.22.10ubuntu2) ... 128s Setting up systemd-hwe-hwdb (256.2.1) ... 128s Setting up libdevmapper1.02.1:armhf (2:1.02.196-1ubuntu1) ... 128s Setting up dmsetup (2:1.02.196-1ubuntu1) ... 128s Setting up kpartx (0.9.9-1ubuntu2) ... 128s Setting up libcryptsetup12:armhf (2:2.7.2-2ubuntu1) ... 128s Setting up mawk (1.3.4.20240622-2) ... 128s Setting up libbinutils:armhf (2.42.90.20240720-2ubuntu1) ... 128s Setting up bind9-host (1:9.18.28-0ubuntu1) ... 128s Setting up openssl (3.2.2-1ubuntu3) ... 128s Setting up libdrm-common (2.4.122-1) ... 128s Setting up libbpf1:armhf (1:1.4.5-1) ... 128s Setting up libpython3-stdlib:armhf (3.12.4-1) ... 128s Setting up libctf0:armhf (2.42.90.20240720-2ubuntu1) ... 128s Setting up cryptsetup-bin (2:2.7.2-2ubuntu1) ... 128s Setting up openssh-sftp-server (1:9.7p1-7ubuntu2) ... 128s Setting up openssh-server (1:9.7p1-7ubuntu2) ... 129s Setting up python3 (3.12.4-1) ... 130s Setting up multipath-tools (0.9.9-1ubuntu2) ... 130s Setting up python3-six (1.16.0-7) ... 130s Setting up libglib2.0-0t64:armhf (2.81.1-2ubuntu1) ... 130s No schema files found: doing nothing. 130s Setting up gir1.2-glib-2.0:armhf (2.81.1-2ubuntu1) ... 130s Setting up libdrm2:armhf (2.4.122-1) ... 130s Setting up bind9-dnsutils (1:9.18.28-0ubuntu1) ... 130s Setting up binutils-arm-linux-gnueabihf (2.42.90.20240720-2ubuntu1) ... 130s Setting up python3-pkg-resources (70.3.0-2) ... 130s Setting up networkd-dispatcher (2.2.4-1.1) ... 131s Setting up python3-setuptools (70.3.0-2) ... 131s Setting up python3-gdbm:armhf (3.12.4-2) ... 131s Setting up python3-problem-report (2.29.0-0ubuntu1) ... 131s Setting up python3-launchpadlib (2.0.0-1) ... 132s Setting up binutils (2.42.90.20240720-2ubuntu1) ... 132s Setting up dpkg-dev (1.22.10ubuntu2) ... 132s Setting up python3-apport (2.29.0-0ubuntu1) ... 132s Setting up ubuntu-pro-client (33.2) ... 132s Installing new version of config file /etc/apparmor.d/ubuntu_pro_apt_news ... 132s apparmor_parser: Unable to replace "ubuntu_pro_apt_news". apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 132s 132s apparmor_parser: Unable to replace "apt_methods". apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 132s 132s apparmor_parser: Unable to replace "ubuntu_pro_esm_cache". apparmor_parser: Access denied. You need policy admin privileges to manage profiles. 132s 134s Setting up ubuntu-pro-client-l10n (33.2) ... 134s Setting up apport-core-dump-handler (2.29.0-0ubuntu1) ... 134s Setting up apport (2.29.0-0ubuntu1) ... 135s apport-autoreport.service is a disabled or a static unit not running, not starting it. 135s Processing triggers for udev (256-1ubuntu1) ... 135s Processing triggers for initramfs-tools (0.142ubuntu30) ... 136s Processing triggers for libc-bin (2.39-0ubuntu9) ... 136s Processing triggers for ufw (0.36.2-6) ... 136s Processing triggers for man-db (2.12.1-2) ... 137s Reading package lists... 138s Building dependency tree... 138s Reading state information... 138s The following packages will be REMOVED: 138s libargon2-1* python3-six* 139s 0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded. 139s After this operation, 109 kB disk space will be freed. 139s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58496 files and directories currently installed.) 139s Removing libargon2-1:armhf (0~20190702+dfsg-4build1) ... 139s Removing python3-six (1.16.0-7) ... 139s Processing triggers for libc-bin (2.39-0ubuntu9) ... 141s autopkgtest [12:42:13]: rebooting testbed after setup commands that affected boot 212s autopkgtest [12:43:24]: testbed running kernel: Linux 6.5.0-44-generic #44~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Jun 18 16:55:18 UTC 2 246s autopkgtest [12:43:58]: @@@@@@@@@@@@@@@@@@@@ apt-source pandas 265s Get:1 http://ftpmaster.internal/ubuntu oracular/universe pandas 2.1.4+dfsg-8 (dsc) [5116 B] 265s Get:2 http://ftpmaster.internal/ubuntu oracular/universe pandas 2.1.4+dfsg-8 (tar) [11.1 MB] 265s Get:3 http://ftpmaster.internal/ubuntu oracular/universe pandas 2.1.4+dfsg-8 (diff) [78.8 kB] 265s gpgv: Signature made Sun May 5 16:16:36 2024 UTC 265s gpgv: using RSA key 67CB311005C4EDBE32175308DEE50D0D567EA266 265s gpgv: issuer "rebecca_palmer@zoho.com" 265s gpgv: Can't check signature: No public key 265s dpkg-source: warning: cannot verify inline signature for ./pandas_2.1.4+dfsg-8.dsc: no acceptable signature found 266s autopkgtest [12:44:18]: testing package pandas version 2.1.4+dfsg-8 269s autopkgtest [12:44:21]: build not needed 273s autopkgtest [12:44:25]: test command1: preparing testbed 283s Reading package lists... 283s Building dependency tree... 283s Reading state information... 283s Starting pkgProblemResolver with broken count: 0 283s Starting 2 pkgProblemResolver with broken count: 0 283s Done 284s The following additional packages will be installed: 284s libblas3 libgfortran5 liblapack3 python3-dateutil python3-numpy 284s python3-pandas python3-pandas-lib python3-six python3-tz 284s Suggested packages: 284s gcc gfortran python-numpy-doc python3-dev python3-pytest python-pandas-doc 284s python3-statsmodels 284s Recommended packages: 284s python3-scipy python3-matplotlib python3-bottleneck python3-numexpr 284s python3-odf python3-openpyxl python3-bs4 python3-html5lib python3-lxml 284s python3-tables 284s The following NEW packages will be installed: 284s autopkgtest-satdep libblas3 libgfortran5 liblapack3 python3-dateutil 284s python3-numpy python3-pandas python3-pandas-lib python3-six python3-tz 284s 0 upgraded, 10 newly installed, 0 to remove and 0 not upgraded. 284s Need to get 13.7 MB/13.7 MB of archives. 284s After this operation, 58.2 MB of additional disk space will be used. 284s Get:1 /tmp/autopkgtest.9HcbfU/1-autopkgtest-satdep.deb autopkgtest-satdep armhf 0 [708 B] 284s Get:2 http://ftpmaster.internal/ubuntu oracular/main armhf libblas3 armhf 3.12.0-3build1 [123 kB] 285s Get:3 http://ftpmaster.internal/ubuntu oracular/main armhf libgfortran5 armhf 14.1.0-5ubuntu1 [311 kB] 285s Get:4 http://ftpmaster.internal/ubuntu oracular/main armhf liblapack3 armhf 3.12.0-3build1 [2085 kB] 285s Get:5 http://ftpmaster.internal/ubuntu oracular/main armhf python3-dateutil all 2.9.0-2 [80.3 kB] 285s Get:6 http://ftpmaster.internal/ubuntu oracular/main armhf python3-numpy armhf 1:1.26.4+ds-10 [3541 kB] 285s Get:7 http://ftpmaster.internal/ubuntu oracular/main armhf python3-tz all 2024.1-2 [31.4 kB] 285s Get:8 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-pandas-lib armhf 2.1.4+dfsg-8 [4461 kB] 285s Get:9 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-pandas all 2.1.4+dfsg-8 [3042 kB] 286s Fetched 13.7 MB in 1s (14.2 MB/s) 286s Selecting previously unselected package libblas3:armhf. 286s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 58482 files and directories currently installed.) 286s Preparing to unpack .../0-libblas3_3.12.0-3build1_armhf.deb ... 286s Unpacking libblas3:armhf (3.12.0-3build1) ... 286s Selecting previously unselected package libgfortran5:armhf. 286s Preparing to unpack .../1-libgfortran5_14.1.0-5ubuntu1_armhf.deb ... 286s Unpacking libgfortran5:armhf (14.1.0-5ubuntu1) ... 286s Selecting previously unselected package liblapack3:armhf. 286s Preparing to unpack .../2-liblapack3_3.12.0-3build1_armhf.deb ... 286s Unpacking liblapack3:armhf (3.12.0-3build1) ... 286s Selecting previously unselected package python3-six. 286s Preparing to unpack .../3-python3-six_1.16.0-7_all.deb ... 286s Unpacking python3-six (1.16.0-7) ... 286s Selecting previously unselected package python3-dateutil. 286s Preparing to unpack .../4-python3-dateutil_2.9.0-2_all.deb ... 286s Unpacking python3-dateutil (2.9.0-2) ... 286s Selecting previously unselected package python3-numpy. 286s Preparing to unpack .../5-python3-numpy_1%3a1.26.4+ds-10_armhf.deb ... 286s Unpacking python3-numpy (1:1.26.4+ds-10) ... 286s Selecting previously unselected package python3-tz. 286s Preparing to unpack .../6-python3-tz_2024.1-2_all.deb ... 286s Unpacking python3-tz (2024.1-2) ... 286s Selecting previously unselected package python3-pandas-lib:armhf. 286s Preparing to unpack .../7-python3-pandas-lib_2.1.4+dfsg-8_armhf.deb ... 286s Unpacking python3-pandas-lib:armhf (2.1.4+dfsg-8) ... 286s Selecting previously unselected package python3-pandas. 286s Preparing to unpack .../8-python3-pandas_2.1.4+dfsg-8_all.deb ... 286s Unpacking python3-pandas (2.1.4+dfsg-8) ... 286s Selecting previously unselected package autopkgtest-satdep. 286s Preparing to unpack .../9-1-autopkgtest-satdep.deb ... 286s Unpacking autopkgtest-satdep (0) ... 287s Setting up python3-tz (2024.1-2) ... 287s Setting up python3-six (1.16.0-7) ... 287s Setting up libblas3:armhf (3.12.0-3build1) ... 287s update-alternatives: using /usr/lib/arm-linux-gnueabihf/blas/libblas.so.3 to provide /usr/lib/arm-linux-gnueabihf/libblas.so.3 (libblas.so.3-arm-linux-gnueabihf) in auto mode 287s Setting up libgfortran5:armhf (14.1.0-5ubuntu1) ... 287s Setting up python3-dateutil (2.9.0-2) ... 287s Setting up liblapack3:armhf (3.12.0-3build1) ... 287s update-alternatives: using /usr/lib/arm-linux-gnueabihf/lapack/liblapack.so.3 to provide /usr/lib/arm-linux-gnueabihf/liblapack.so.3 (liblapack.so.3-arm-linux-gnueabihf) in auto mode 287s Setting up python3-numpy (1:1.26.4+ds-10) ... 289s Setting up python3-pandas-lib:armhf (2.1.4+dfsg-8) ... 289s Setting up python3-pandas (2.1.4+dfsg-8) ... 294s Setting up autopkgtest-satdep (0) ... 294s Processing triggers for man-db (2.12.1-2) ... 294s Processing triggers for libc-bin (2.39-0ubuntu9) ... 306s (Reading database ... 61148 files and directories currently installed.) 306s Removing autopkgtest-satdep (0) ... 312s autopkgtest [12:45:04]: test command1: cd "$AUTOPKGTEST_TMP" && python3 -c "import pandas;a=pandas.DataFrame([[1,2],[3,4]])" 312s autopkgtest [12:45:04]: test command1: [----------------------- 315s autopkgtest [12:45:07]: test command1: -----------------------] 319s autopkgtest [12:45:11]: test command1: - - - - - - - - - - results - - - - - - - - - - 319s command1 PASS 323s autopkgtest [12:45:15]: test unittests3: preparing testbed 333s Reading package lists... 334s Building dependency tree... 334s Reading state information... 334s Starting pkgProblemResolver with broken count: 0 334s Starting 2 pkgProblemResolver with broken count: 0 334s Done 335s The following additional packages will be installed: 335s blt fontconfig-config fonts-dejavu-core fonts-dejavu-mono fonts-lyx libaec0 335s libblosc1 libblosc2-4 libdeflate0 libdrm-amdgpu1 libdrm-nouveau2 335s libdrm-radeon1 libfontconfig1 libfontenc1 libfreetype6 libgl1 335s libgl1-mesa-dri libglapi-mesa libglvnd0 libglx-mesa0 libglx0 libgomp1 335s libgraphite2-3 libharfbuzz0b libhdf5-103-1t64 libice6 libimagequant0 335s libjbig0 libjpeg-turbo8 libjpeg8 libjs-jquery libjs-jquery-ui liblbfgsb0 335s liblcms2-2 liblerc4 libllvm17t64 libopenjp2-7 libpixman-1-0 libqhull-r8.0 335s libraqm0 libsharpyuv0 libsm6 libsnappy1v5 libsz2 libtcl8.6 libtiff6 libtk8.6 335s libunwind8 libvulkan1 libwebp7 libwebpdemux2 libwebpmux3 libx11-xcb1 libxaw7 335s libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0 libxcb-present0 libxcb-randr0 335s libxcb-shm0 libxcb-sync1 libxcb-xfixes0 libxfixes3 libxfont2 libxft2 335s libxkbfile1 libxmu6 libxpm4 libxrandr2 libxrender1 libxshmfence1 libxslt1.1 335s libxss1 libxt6t64 libxxf86vm1 locales-all python-matplotlib-data 335s python-tables-data python3-all python3-appdirs python3-async-generator 335s python3-bottleneck python3-brotli python3-bs4 python3-click 335s python3-cloudpickle python3-colorama python3-contourpy python3-cpuinfo 335s python3-cycler python3-dask python3-decorator python3-defusedxml 335s python3-et-xmlfile python3-execnet python3-fonttools python3-fs 335s python3-fsspec python3-greenlet python3-html5lib python3-hypothesis 335s python3-iniconfig python3-kiwisolver python3-locket python3-lxml python3-lz4 335s python3-matplotlib python3-mpmath python3-numexpr python3-odf 335s python3-openpyxl python3-packaging python3-partd python3-pil 335s python3-pil.imagetk python3-pluggy python3-py python3-pyreadstat 335s python3-pytest python3-pytest-asyncio python3-pytest-forked 335s python3-pytest-localserver python3-pytest-xdist python3-scipy 335s python3-sortedcontainers python3-soupsieve python3-sqlalchemy python3-sympy 335s python3-tables python3-tables-lib python3-tk python3-toolz python3-ufolib2 335s python3-webencodings python3-werkzeug python3-xarray python3-zstandard 335s tk8.6-blt2.5 tzdata-legacy unicode-data x11-common x11-xkb-utils xsel 335s xserver-common xvfb 335s Suggested packages: 335s blt-demo libjs-jquery-ui-docs liblcms2-utils tcl8.6 tk8.6 335s python-bottleneck-doc python-cycler-doc ipython python-dask-doc 335s python3-blosc python3-boto3 python3-distributed python3-graphviz 335s python3-h5py python3-psutil python3-skimage python3-sklearn execnet-doc 335s python-fsspec-doc python-greenlet-dev python-greenlet-doc python3-genshi 335s python-hypothesis-doc python-lxml-doc cm-super-minimal dvipng ffmpeg 335s fonts-staypuft ghostscript gir1.2-gtk-3.0 inkscape ipython3 librsvg2-common 335s python3-cairocffi python3-gi-cairo python3-gobject python3-pyqt5 python3-sip 335s python3-tornado texlive-extra-utils texlive-latex-extra python-mpmath-doc 335s python3-gmpy2 python-openpyxl-doc python-pil-doc subversion python-scipy-doc 335s python-sortedcontainers-doc python-sqlalchemy-doc python3-fdb 335s python3-pymssql python3-mysqldb python3-psycopg2 python3-asyncpg 335s python3-aiosqlite texlive-fonts-extra python-sympy-doc python3-netcdf4 335s python-tables-doc vitables tix python3-tk-dbg python-toolz-doc 335s python-werkzeug-doc python3-watchdog python-xarray-doc python3-cartopy 335s python3-pydap python3-seaborn python-zstandard-doc 335s Recommended packages: 335s libgl1-amber-dri javascript-common mesa-vulkan-drivers | vulkan-icd git 335s python3-distributed python3-dropbox python3-fusepy python3-libarchive-c 335s python3-paramiko python3-pygit2 python3-cssselect python-odf-doc 335s python-odf-tools python3-blosc python3-zmq python3-olefile g++ 335s | c++-compiler python3-sqlalchemy-ext isympy-common python3-pyinotify 335s python3-cftime python3-netcdf4 python3-rasterio python3-h5netcdf 335s python3-zarr xfonts-base 335s The following NEW packages will be installed: 335s autopkgtest-satdep blt fontconfig-config fonts-dejavu-core fonts-dejavu-mono 335s fonts-lyx libaec0 libblosc1 libblosc2-4 libdeflate0 libdrm-amdgpu1 335s libdrm-nouveau2 libdrm-radeon1 libfontconfig1 libfontenc1 libfreetype6 335s libgl1 libgl1-mesa-dri libglapi-mesa libglvnd0 libglx-mesa0 libglx0 libgomp1 335s libgraphite2-3 libharfbuzz0b libhdf5-103-1t64 libice6 libimagequant0 335s libjbig0 libjpeg-turbo8 libjpeg8 libjs-jquery libjs-jquery-ui liblbfgsb0 335s liblcms2-2 liblerc4 libllvm17t64 libopenjp2-7 libpixman-1-0 libqhull-r8.0 335s libraqm0 libsharpyuv0 libsm6 libsnappy1v5 libsz2 libtcl8.6 libtiff6 libtk8.6 335s libunwind8 libvulkan1 libwebp7 libwebpdemux2 libwebpmux3 libx11-xcb1 libxaw7 335s libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0 libxcb-present0 libxcb-randr0 335s libxcb-shm0 libxcb-sync1 libxcb-xfixes0 libxfixes3 libxfont2 libxft2 335s libxkbfile1 libxmu6 libxpm4 libxrandr2 libxrender1 libxshmfence1 libxslt1.1 335s libxss1 libxt6t64 libxxf86vm1 locales-all python-matplotlib-data 335s python-tables-data python3-all python3-appdirs python3-async-generator 335s python3-bottleneck python3-brotli python3-bs4 python3-click 335s python3-cloudpickle python3-colorama python3-contourpy python3-cpuinfo 335s python3-cycler python3-dask python3-decorator python3-defusedxml 335s python3-et-xmlfile python3-execnet python3-fonttools python3-fs 335s python3-fsspec python3-greenlet python3-html5lib python3-hypothesis 335s python3-iniconfig python3-kiwisolver python3-locket python3-lxml python3-lz4 335s python3-matplotlib python3-mpmath python3-numexpr python3-odf 335s python3-openpyxl python3-packaging python3-partd python3-pil 335s python3-pil.imagetk python3-pluggy python3-py python3-pyreadstat 335s python3-pytest python3-pytest-asyncio python3-pytest-forked 335s python3-pytest-localserver python3-pytest-xdist python3-scipy 335s python3-sortedcontainers python3-soupsieve python3-sqlalchemy python3-sympy 335s python3-tables python3-tables-lib python3-tk python3-toolz python3-ufolib2 335s python3-webencodings python3-werkzeug python3-xarray python3-zstandard 335s tk8.6-blt2.5 tzdata-legacy unicode-data x11-common x11-xkb-utils xsel 335s xserver-common xvfb 335s 0 upgraded, 146 newly installed, 0 to remove and 0 not upgraded. 335s Need to get 104 MB/104 MB of archives. 335s After this operation, 617 MB of additional disk space will be used. 335s Get:1 /tmp/autopkgtest.9HcbfU/2-autopkgtest-satdep.deb autopkgtest-satdep armhf 0 [1036 B] 335s Get:2 http://ftpmaster.internal/ubuntu oracular/main armhf libtcl8.6 armhf 8.6.14+dfsg-1build1 [903 kB] 336s Get:3 http://ftpmaster.internal/ubuntu oracular/main armhf libfreetype6 armhf 2.13.2+dfsg-1build3 [331 kB] 336s Get:4 http://ftpmaster.internal/ubuntu oracular/main armhf fonts-dejavu-mono all 2.37-8 [502 kB] 336s Get:5 http://ftpmaster.internal/ubuntu oracular/main armhf fonts-dejavu-core all 2.37-8 [835 kB] 336s Get:6 http://ftpmaster.internal/ubuntu oracular/main armhf fontconfig-config armhf 2.15.0-1.1ubuntu2 [37.4 kB] 336s Get:7 http://ftpmaster.internal/ubuntu oracular/main armhf libfontconfig1 armhf 2.15.0-1.1ubuntu2 [113 kB] 336s Get:8 http://ftpmaster.internal/ubuntu oracular/main armhf libxrender1 armhf 1:0.9.10-1.1build1 [16.0 kB] 336s Get:9 http://ftpmaster.internal/ubuntu oracular/main armhf libxft2 armhf 2.3.6-1build1 [37.4 kB] 336s Get:10 http://ftpmaster.internal/ubuntu oracular/main armhf x11-common all 1:7.7+23ubuntu3 [21.7 kB] 336s Get:11 http://ftpmaster.internal/ubuntu oracular/main armhf libxss1 armhf 1:1.2.3-1build3 [6500 B] 336s Get:12 http://ftpmaster.internal/ubuntu oracular/main armhf libtk8.6 armhf 8.6.14-1build1 [681 kB] 336s Get:13 http://ftpmaster.internal/ubuntu oracular/main armhf tk8.6-blt2.5 armhf 2.5.3+dfsg-7build1 [525 kB] 336s Get:14 http://ftpmaster.internal/ubuntu oracular/main armhf blt armhf 2.5.3+dfsg-7build1 [4840 B] 336s Get:15 http://ftpmaster.internal/ubuntu oracular/universe armhf fonts-lyx all 2.4.1-2 [171 kB] 336s Get:16 http://ftpmaster.internal/ubuntu oracular/universe armhf libaec0 armhf 1.1.3-1 [20.8 kB] 336s Get:17 http://ftpmaster.internal/ubuntu oracular/main armhf libsnappy1v5 armhf 1.2.1-1 [28.4 kB] 336s Get:18 http://ftpmaster.internal/ubuntu oracular/universe armhf libblosc1 armhf 1.21.5+ds-1build1 [23.7 kB] 336s Get:19 http://ftpmaster.internal/ubuntu oracular/universe armhf libblosc2-4 armhf 2.15.1+ds-1 [194 kB] 336s Get:20 http://ftpmaster.internal/ubuntu oracular/main armhf libdeflate0 armhf 1.20-1 [38.3 kB] 336s Get:21 http://ftpmaster.internal/ubuntu oracular/main armhf libdrm-amdgpu1 armhf 2.4.122-1 [18.9 kB] 336s Get:22 http://ftpmaster.internal/ubuntu oracular/main armhf libdrm-nouveau2 armhf 2.4.122-1 [15.3 kB] 336s Get:23 http://ftpmaster.internal/ubuntu oracular/main armhf libdrm-radeon1 armhf 2.4.122-1 [18.1 kB] 336s Get:24 http://ftpmaster.internal/ubuntu oracular/main armhf libfontenc1 armhf 1:1.1.8-1build1 [11.5 kB] 336s Get:25 http://ftpmaster.internal/ubuntu oracular/main armhf libvulkan1 armhf 1.3.283.0-1 [123 kB] 336s Get:26 http://ftpmaster.internal/ubuntu oracular/main armhf libglapi-mesa armhf 24.0.9-0ubuntu2 [47.7 kB] 336s Get:27 http://ftpmaster.internal/ubuntu oracular/main armhf libllvm17t64 armhf 1:17.0.6-12 [25.3 MB] 337s Get:28 http://ftpmaster.internal/ubuntu oracular/main armhf libxcb-dri3-0 armhf 1.17.0-2 [7120 B] 337s Get:29 http://ftpmaster.internal/ubuntu oracular/main armhf libgl1-mesa-dri armhf 24.0.9-0ubuntu2 [7200 kB] 337s Get:30 http://ftpmaster.internal/ubuntu oracular/main armhf libx11-xcb1 armhf 2:1.8.7-1build1 [7748 B] 337s Get:31 http://ftpmaster.internal/ubuntu oracular/main armhf libxcb-dri2-0 armhf 1.17.0-2 [6868 B] 337s Get:32 http://ftpmaster.internal/ubuntu oracular/main armhf libxcb-glx0 armhf 1.17.0-2 [22.6 kB] 337s Get:33 http://ftpmaster.internal/ubuntu oracular/main armhf libxcb-present0 armhf 1.17.0-2 [5940 B] 337s Get:34 http://ftpmaster.internal/ubuntu oracular/main armhf libxcb-randr0 armhf 1.17.0-2 [17.0 kB] 337s Get:35 http://ftpmaster.internal/ubuntu oracular/main armhf libxcb-shm0 armhf 1.17.0-2 [5774 B] 337s Get:36 http://ftpmaster.internal/ubuntu oracular/main armhf libxcb-sync1 armhf 1.17.0-2 [8732 B] 337s Get:37 http://ftpmaster.internal/ubuntu oracular/main armhf libxcb-xfixes0 armhf 1.17.0-2 [10.0 kB] 337s Get:38 http://ftpmaster.internal/ubuntu oracular/main armhf libxfixes3 armhf 1:6.0.0-2build1 [9038 B] 337s Get:39 http://ftpmaster.internal/ubuntu oracular/main armhf libxshmfence1 armhf 1.3-1build5 [4464 B] 337s Get:40 http://ftpmaster.internal/ubuntu oracular/main armhf libxxf86vm1 armhf 1:1.1.4-1build4 [8068 B] 337s Get:41 http://ftpmaster.internal/ubuntu oracular/main armhf libglx-mesa0 armhf 24.0.9-0ubuntu2 [131 kB] 337s Get:42 http://ftpmaster.internal/ubuntu oracular/main armhf libgomp1 armhf 14.1.0-5ubuntu1 [125 kB] 337s Get:43 http://ftpmaster.internal/ubuntu oracular/main armhf libgraphite2-3 armhf 1.3.14-2ubuntu1 [64.8 kB] 337s Get:44 http://ftpmaster.internal/ubuntu oracular/main armhf libharfbuzz0b armhf 8.3.0-2build2 [446 kB] 337s Get:45 http://ftpmaster.internal/ubuntu oracular/universe armhf libsz2 armhf 1.1.3-1 [5302 B] 337s Get:46 http://ftpmaster.internal/ubuntu oracular/universe armhf libhdf5-103-1t64 armhf 1.10.10+repack-3.1ubuntu4 [1337 kB] 337s Get:47 http://ftpmaster.internal/ubuntu oracular/main armhf libice6 armhf 2:1.0.10-1build3 [35.4 kB] 337s Get:48 http://ftpmaster.internal/ubuntu oracular/main armhf libimagequant0 armhf 2.18.0-1build1 [31.1 kB] 337s Get:49 http://ftpmaster.internal/ubuntu oracular/main armhf libjpeg-turbo8 armhf 2.1.5-2ubuntu2 [125 kB] 337s Get:50 http://ftpmaster.internal/ubuntu oracular/main armhf libjpeg8 armhf 8c-2ubuntu11 [2148 B] 337s Get:51 http://ftpmaster.internal/ubuntu oracular/main armhf libjs-jquery all 3.6.1+dfsg+~3.5.14-1 [328 kB] 337s Get:52 http://ftpmaster.internal/ubuntu oracular/universe armhf libjs-jquery-ui all 1.13.2+dfsg-1 [252 kB] 337s Get:53 http://ftpmaster.internal/ubuntu oracular/universe armhf liblbfgsb0 armhf 3.0+dfsg.4-1build1 [27.4 kB] 337s Get:54 http://ftpmaster.internal/ubuntu oracular/main armhf liblcms2-2 armhf 2.14-2build1 [132 kB] 337s Get:55 http://ftpmaster.internal/ubuntu oracular/main armhf liblerc4 armhf 4.0.0+ds-4ubuntu2 [151 kB] 337s Get:56 http://ftpmaster.internal/ubuntu oracular/main armhf libpixman-1-0 armhf 0.42.2-1build1 [193 kB] 337s Get:57 http://ftpmaster.internal/ubuntu oracular/universe armhf libqhull-r8.0 armhf 2020.2-6build1 [173 kB] 337s Get:58 http://ftpmaster.internal/ubuntu oracular/main armhf libraqm0 armhf 0.10.1-1build1 [12.4 kB] 337s Get:59 http://ftpmaster.internal/ubuntu oracular/main armhf libsharpyuv0 armhf 1.4.0-0.1 [16.3 kB] 337s Get:60 http://ftpmaster.internal/ubuntu oracular/main armhf libsm6 armhf 2:1.2.3-1build3 [14.1 kB] 337s Get:61 http://ftpmaster.internal/ubuntu oracular/main armhf libjbig0 armhf 2.1-6.1ubuntu2 [24.9 kB] 338s Get:62 http://ftpmaster.internal/ubuntu oracular/main armhf libwebp7 armhf 1.4.0-0.1 [184 kB] 338s Get:63 http://ftpmaster.internal/ubuntu oracular/main armhf libtiff6 armhf 4.5.1+git230720-4ubuntu3 [178 kB] 338s Get:64 http://ftpmaster.internal/ubuntu oracular/main armhf libunwind8 armhf 1.6.2-3.1 [47.6 kB] 338s Get:65 http://ftpmaster.internal/ubuntu oracular/main armhf libwebpdemux2 armhf 1.4.0-0.1 [11.8 kB] 338s Get:66 http://ftpmaster.internal/ubuntu oracular/main armhf libwebpmux3 armhf 1.4.0-0.1 [22.5 kB] 338s Get:67 http://ftpmaster.internal/ubuntu oracular/main armhf libxt6t64 armhf 1:1.2.1-1.2build1 [145 kB] 338s Get:68 http://ftpmaster.internal/ubuntu oracular/main armhf libxmu6 armhf 2:1.1.3-3build2 [40.4 kB] 338s Get:69 http://ftpmaster.internal/ubuntu oracular/main armhf libxpm4 armhf 1:3.5.17-1build2 [30.1 kB] 338s Get:70 http://ftpmaster.internal/ubuntu oracular/main armhf libxaw7 armhf 2:1.0.14-1build2 [153 kB] 338s Get:71 http://ftpmaster.internal/ubuntu oracular/main armhf libxfont2 armhf 1:2.0.6-1build1 [80.3 kB] 338s Get:72 http://ftpmaster.internal/ubuntu oracular/main armhf libxkbfile1 armhf 1:1.1.0-1build4 [60.0 kB] 338s Get:73 http://ftpmaster.internal/ubuntu oracular/main armhf libxrandr2 armhf 2:1.5.4-1 [15.8 kB] 338s Get:74 http://ftpmaster.internal/ubuntu oracular/main armhf libxslt1.1 armhf 1.1.39-0exp1build1 [150 kB] 338s Get:75 http://ftpmaster.internal/ubuntu oracular/universe armhf python-matplotlib-data all 3.6.3-2ubuntu1 [2937 kB] 338s Get:76 http://ftpmaster.internal/ubuntu oracular/universe armhf python-tables-data all 3.9.2-2build2 [49.4 kB] 338s Get:77 http://ftpmaster.internal/ubuntu oracular/main armhf python3-all armhf 3.12.4-1 [882 B] 338s Get:78 http://ftpmaster.internal/ubuntu oracular/main armhf python3-appdirs all 1.4.4-4 [10.9 kB] 338s Get:79 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-async-generator all 1.10-4 [17.5 kB] 338s Get:80 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-bottleneck armhf 1.3.8+ds1-1 [87.6 kB] 338s Get:81 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-brotli armhf 1.1.0-2build2 [321 kB] 338s Get:82 http://ftpmaster.internal/ubuntu oracular/main armhf python3-soupsieve all 2.5-1 [33.0 kB] 338s Get:83 http://ftpmaster.internal/ubuntu oracular/main armhf python3-bs4 all 4.12.3-1 [109 kB] 338s Get:84 http://ftpmaster.internal/ubuntu oracular/main armhf python3-colorama all 0.4.6-4 [32.1 kB] 338s Get:85 http://ftpmaster.internal/ubuntu oracular/main armhf python3-click all 8.1.7-2 [79.5 kB] 338s Get:86 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-cloudpickle all 3.0.0-2 [21.5 kB] 338s Get:87 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-contourpy armhf 1.0.7-3 [171 kB] 338s Get:88 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-cpuinfo all 9.0.0+git20221119-2 [21.6 kB] 338s Get:89 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-cycler all 0.12.1-1 [9716 B] 338s Get:90 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-fsspec all 2024.6.1-1 [203 kB] 338s Get:91 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-toolz all 0.12.1-1 [44.7 kB] 338s Get:92 http://ftpmaster.internal/ubuntu oracular/main armhf python3-packaging all 24.1-1 [41.4 kB] 338s Get:93 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-locket all 1.0.0-2 [5872 B] 338s Get:94 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-partd all 1.4.2-1 [15.7 kB] 338s Get:95 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-dask all 2024.5.2+dfsg-1 [849 kB] 338s Get:96 http://ftpmaster.internal/ubuntu oracular/main armhf python3-decorator all 5.1.1-5 [10.1 kB] 338s Get:97 http://ftpmaster.internal/ubuntu oracular/main armhf python3-defusedxml all 0.7.1-2 [42.0 kB] 338s Get:98 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-et-xmlfile all 1.0.1-2.1 [9224 B] 338s Get:99 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-execnet all 2.1.1-1 [33.4 kB] 338s Get:100 http://ftpmaster.internal/ubuntu oracular-proposed/universe armhf python3-scipy armhf 1.13.1-2 [16.4 MB] 338s Get:101 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-ufolib2 all 0.16.0+dfsg1-1 [33.5 kB] 338s Get:102 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-mpmath all 1.3.0-1 [425 kB] 339s Get:103 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-sympy all 1.12.1-1 [3967 kB] 339s Get:104 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-fs all 2.4.16-4 [91.3 kB] 339s Get:105 http://ftpmaster.internal/ubuntu oracular/main armhf python3-lxml armhf 5.2.2-1 [1199 kB] 339s Get:106 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-lz4 armhf 4.0.2+dfsg-1build4 [24.8 kB] 339s Get:107 http://ftpmaster.internal/ubuntu oracular/universe armhf unicode-data all 15.1.0-1 [8878 kB] 339s Get:108 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-fonttools armhf 4.46.0-1build2 [1402 kB] 340s Get:109 http://ftpmaster.internal/ubuntu oracular/main armhf python3-webencodings all 0.5.1-5 [11.5 kB] 340s Get:110 http://ftpmaster.internal/ubuntu oracular/main armhf python3-html5lib all 1.1-6 [88.8 kB] 340s Get:111 http://ftpmaster.internal/ubuntu oracular/main armhf python3-sortedcontainers all 2.4.0-2 [27.6 kB] 340s Get:112 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-hypothesis all 6.105.1-1 [321 kB] 340s Get:113 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-iniconfig all 1.1.1-2 [6024 B] 340s Get:114 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-kiwisolver armhf 1.4.5-1 [56.3 kB] 340s Get:115 http://ftpmaster.internal/ubuntu oracular/main armhf libopenjp2-7 armhf 2.5.0-2build3 [160 kB] 340s Get:116 http://ftpmaster.internal/ubuntu oracular/main armhf python3-pil armhf 10.4.0-1 [427 kB] 340s Get:117 http://ftpmaster.internal/ubuntu oracular/main armhf python3-tk armhf 3.12.4-2 [110 kB] 340s Get:118 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-pil.imagetk armhf 10.4.0-1 [8696 B] 340s Get:119 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-matplotlib armhf 3.6.3-2ubuntu1 [5964 kB] 340s Get:120 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-numexpr armhf 2.10.1-2 [115 kB] 340s Get:121 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-odf all 1.4.2-2 [78.7 kB] 340s Get:122 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-openpyxl all 3.1.5+dfsg-1 [152 kB] 340s Get:123 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-pluggy all 1.5.0-1 [21.0 kB] 340s Get:124 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-py all 1.11.0-2 [72.7 kB] 340s Get:125 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-pyreadstat armhf 1.2.7-1 [328 kB] 340s Get:126 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-pytest all 7.4.4-1 [305 kB] 340s Get:127 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-pytest-asyncio all 0.20.3-1.3 [10.7 kB] 340s Get:128 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-pytest-forked all 1.6.0-2 [7382 B] 340s Get:129 http://ftpmaster.internal/ubuntu oracular/main armhf python3-werkzeug all 3.0.3-1 [170 kB] 340s Get:130 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-pytest-localserver all 0.8.1-2 [22.9 kB] 340s Get:131 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-pytest-xdist all 3.6.1-1 [33.8 kB] 340s Get:132 http://ftpmaster.internal/ubuntu oracular/main armhf python3-greenlet armhf 3.0.3-0ubuntu5 [153 kB] 340s Get:133 http://ftpmaster.internal/ubuntu oracular/main armhf python3-sqlalchemy all 1.4.50+ds1-1build1 [1020 kB] 340s Get:134 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-tables-lib armhf 3.9.2-2build2 [500 kB] 340s Get:135 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-tables all 3.9.2-2build2 [344 kB] 340s Get:136 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-xarray all 2024.03.0-1 [744 kB] 340s Get:137 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-zstandard armhf 0.23.0-2 [324 kB] 340s Get:138 http://ftpmaster.internal/ubuntu oracular/main armhf tzdata-legacy all 2024a-4ubuntu1 [94.7 kB] 340s Get:139 http://ftpmaster.internal/ubuntu oracular/main armhf x11-xkb-utils armhf 7.7+8build2 [159 kB] 340s Get:140 http://ftpmaster.internal/ubuntu oracular/universe armhf xsel armhf 1.2.1-1 [19.1 kB] 340s Get:141 http://ftpmaster.internal/ubuntu oracular/main armhf xserver-common all 2:21.1.12-1ubuntu1 [33.3 kB] 340s Get:142 http://ftpmaster.internal/ubuntu oracular/main armhf libglvnd0 armhf 1.7.0-1build1 [83.7 kB] 340s Get:143 http://ftpmaster.internal/ubuntu oracular/main armhf libglx0 armhf 1.7.0-1build1 [39.3 kB] 340s Get:144 http://ftpmaster.internal/ubuntu oracular/main armhf libgl1 armhf 1.7.0-1build1 [105 kB] 340s Get:145 http://ftpmaster.internal/ubuntu oracular/universe armhf xvfb armhf 2:21.1.12-1ubuntu1 [739 kB] 340s Get:146 http://ftpmaster.internal/ubuntu oracular/universe armhf locales-all armhf 2.39-0ubuntu9 [11.0 MB] 341s Fetched 104 MB in 5s (18.9 MB/s) 341s Selecting previously unselected package libtcl8.6:armhf. 341s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 61148 files and directories currently installed.) 341s Preparing to unpack .../000-libtcl8.6_8.6.14+dfsg-1build1_armhf.deb ... 341s Unpacking libtcl8.6:armhf (8.6.14+dfsg-1build1) ... 341s Selecting previously unselected package libfreetype6:armhf. 341s Preparing to unpack .../001-libfreetype6_2.13.2+dfsg-1build3_armhf.deb ... 341s Unpacking libfreetype6:armhf (2.13.2+dfsg-1build3) ... 341s Selecting previously unselected package fonts-dejavu-mono. 342s Preparing to unpack .../002-fonts-dejavu-mono_2.37-8_all.deb ... 342s Unpacking fonts-dejavu-mono (2.37-8) ... 342s Selecting previously unselected package fonts-dejavu-core. 342s Preparing to unpack .../003-fonts-dejavu-core_2.37-8_all.deb ... 342s Unpacking fonts-dejavu-core (2.37-8) ... 342s Selecting previously unselected package fontconfig-config. 342s Preparing to unpack .../004-fontconfig-config_2.15.0-1.1ubuntu2_armhf.deb ... 342s Unpacking fontconfig-config (2.15.0-1.1ubuntu2) ... 342s Selecting previously unselected package libfontconfig1:armhf. 342s Preparing to unpack .../005-libfontconfig1_2.15.0-1.1ubuntu2_armhf.deb ... 342s Unpacking libfontconfig1:armhf (2.15.0-1.1ubuntu2) ... 342s Selecting previously unselected package libxrender1:armhf. 342s Preparing to unpack .../006-libxrender1_1%3a0.9.10-1.1build1_armhf.deb ... 342s Unpacking libxrender1:armhf (1:0.9.10-1.1build1) ... 342s Selecting previously unselected package libxft2:armhf. 342s Preparing to unpack .../007-libxft2_2.3.6-1build1_armhf.deb ... 342s Unpacking libxft2:armhf (2.3.6-1build1) ... 342s Selecting previously unselected package x11-common. 342s Preparing to unpack .../008-x11-common_1%3a7.7+23ubuntu3_all.deb ... 342s Unpacking x11-common (1:7.7+23ubuntu3) ... 342s Selecting previously unselected package libxss1:armhf. 342s Preparing to unpack .../009-libxss1_1%3a1.2.3-1build3_armhf.deb ... 342s Unpacking libxss1:armhf (1:1.2.3-1build3) ... 342s Selecting previously unselected package libtk8.6:armhf. 342s Preparing to unpack .../010-libtk8.6_8.6.14-1build1_armhf.deb ... 342s Unpacking libtk8.6:armhf (8.6.14-1build1) ... 342s Selecting previously unselected package tk8.6-blt2.5. 342s Preparing to unpack .../011-tk8.6-blt2.5_2.5.3+dfsg-7build1_armhf.deb ... 342s Unpacking tk8.6-blt2.5 (2.5.3+dfsg-7build1) ... 342s Selecting previously unselected package blt. 342s Preparing to unpack .../012-blt_2.5.3+dfsg-7build1_armhf.deb ... 342s Unpacking blt (2.5.3+dfsg-7build1) ... 342s Selecting previously unselected package fonts-lyx. 342s Preparing to unpack .../013-fonts-lyx_2.4.1-2_all.deb ... 342s Unpacking fonts-lyx (2.4.1-2) ... 342s Selecting previously unselected package libaec0:armhf. 342s Preparing to unpack .../014-libaec0_1.1.3-1_armhf.deb ... 342s Unpacking libaec0:armhf (1.1.3-1) ... 342s Selecting previously unselected package libsnappy1v5:armhf. 342s Preparing to unpack .../015-libsnappy1v5_1.2.1-1_armhf.deb ... 342s Unpacking libsnappy1v5:armhf (1.2.1-1) ... 342s Selecting previously unselected package libblosc1:armhf. 342s Preparing to unpack .../016-libblosc1_1.21.5+ds-1build1_armhf.deb ... 342s Unpacking libblosc1:armhf (1.21.5+ds-1build1) ... 342s Selecting previously unselected package libblosc2-4:armhf. 342s Preparing to unpack .../017-libblosc2-4_2.15.1+ds-1_armhf.deb ... 342s Unpacking libblosc2-4:armhf (2.15.1+ds-1) ... 342s Selecting previously unselected package libdeflate0:armhf. 342s Preparing to unpack .../018-libdeflate0_1.20-1_armhf.deb ... 342s Unpacking libdeflate0:armhf (1.20-1) ... 342s Selecting previously unselected package libdrm-amdgpu1:armhf. 343s Preparing to unpack .../019-libdrm-amdgpu1_2.4.122-1_armhf.deb ... 343s Unpacking libdrm-amdgpu1:armhf (2.4.122-1) ... 343s Selecting previously unselected package libdrm-nouveau2:armhf. 343s Preparing to unpack .../020-libdrm-nouveau2_2.4.122-1_armhf.deb ... 343s Unpacking libdrm-nouveau2:armhf (2.4.122-1) ... 343s Selecting previously unselected package libdrm-radeon1:armhf. 343s Preparing to unpack .../021-libdrm-radeon1_2.4.122-1_armhf.deb ... 343s Unpacking libdrm-radeon1:armhf (2.4.122-1) ... 343s Selecting previously unselected package libfontenc1:armhf. 343s Preparing to unpack .../022-libfontenc1_1%3a1.1.8-1build1_armhf.deb ... 343s Unpacking libfontenc1:armhf (1:1.1.8-1build1) ... 343s Selecting previously unselected package libvulkan1:armhf. 343s Preparing to unpack .../023-libvulkan1_1.3.283.0-1_armhf.deb ... 343s Unpacking libvulkan1:armhf (1.3.283.0-1) ... 343s Selecting previously unselected package libglapi-mesa:armhf. 343s Preparing to unpack .../024-libglapi-mesa_24.0.9-0ubuntu2_armhf.deb ... 343s Unpacking libglapi-mesa:armhf (24.0.9-0ubuntu2) ... 343s Selecting previously unselected package libllvm17t64:armhf. 343s Preparing to unpack .../025-libllvm17t64_1%3a17.0.6-12_armhf.deb ... 343s Unpacking libllvm17t64:armhf (1:17.0.6-12) ... 344s Selecting previously unselected package libxcb-dri3-0:armhf. 344s Preparing to unpack .../026-libxcb-dri3-0_1.17.0-2_armhf.deb ... 344s Unpacking libxcb-dri3-0:armhf (1.17.0-2) ... 345s Selecting previously unselected package libgl1-mesa-dri:armhf. 345s Preparing to unpack .../027-libgl1-mesa-dri_24.0.9-0ubuntu2_armhf.deb ... 345s Unpacking libgl1-mesa-dri:armhf (24.0.9-0ubuntu2) ... 345s Selecting previously unselected package libx11-xcb1:armhf. 345s Preparing to unpack .../028-libx11-xcb1_2%3a1.8.7-1build1_armhf.deb ... 345s Unpacking libx11-xcb1:armhf (2:1.8.7-1build1) ... 345s Selecting previously unselected package libxcb-dri2-0:armhf. 345s Preparing to unpack .../029-libxcb-dri2-0_1.17.0-2_armhf.deb ... 345s Unpacking libxcb-dri2-0:armhf (1.17.0-2) ... 345s Selecting previously unselected package libxcb-glx0:armhf. 345s Preparing to unpack .../030-libxcb-glx0_1.17.0-2_armhf.deb ... 345s Unpacking libxcb-glx0:armhf (1.17.0-2) ... 346s Selecting previously unselected package libxcb-present0:armhf. 346s Preparing to unpack .../031-libxcb-present0_1.17.0-2_armhf.deb ... 346s Unpacking libxcb-present0:armhf (1.17.0-2) ... 346s Selecting previously unselected package libxcb-randr0:armhf. 346s Preparing to unpack .../032-libxcb-randr0_1.17.0-2_armhf.deb ... 346s Unpacking libxcb-randr0:armhf (1.17.0-2) ... 346s Selecting previously unselected package libxcb-shm0:armhf. 346s Preparing to unpack .../033-libxcb-shm0_1.17.0-2_armhf.deb ... 346s Unpacking libxcb-shm0:armhf (1.17.0-2) ... 346s Selecting previously unselected package libxcb-sync1:armhf. 346s Preparing to unpack .../034-libxcb-sync1_1.17.0-2_armhf.deb ... 346s Unpacking libxcb-sync1:armhf (1.17.0-2) ... 346s Selecting previously unselected package libxcb-xfixes0:armhf. 346s Preparing to unpack .../035-libxcb-xfixes0_1.17.0-2_armhf.deb ... 346s Unpacking libxcb-xfixes0:armhf (1.17.0-2) ... 346s Selecting previously unselected package libxfixes3:armhf. 346s Preparing to unpack .../036-libxfixes3_1%3a6.0.0-2build1_armhf.deb ... 346s Unpacking libxfixes3:armhf (1:6.0.0-2build1) ... 346s Selecting previously unselected package libxshmfence1:armhf. 346s Preparing to unpack .../037-libxshmfence1_1.3-1build5_armhf.deb ... 346s Unpacking libxshmfence1:armhf (1.3-1build5) ... 346s Selecting previously unselected package libxxf86vm1:armhf. 346s Preparing to unpack .../038-libxxf86vm1_1%3a1.1.4-1build4_armhf.deb ... 346s Unpacking libxxf86vm1:armhf (1:1.1.4-1build4) ... 346s Selecting previously unselected package libglx-mesa0:armhf. 346s Preparing to unpack .../039-libglx-mesa0_24.0.9-0ubuntu2_armhf.deb ... 346s Unpacking libglx-mesa0:armhf (24.0.9-0ubuntu2) ... 346s Selecting previously unselected package libgomp1:armhf. 346s Preparing to unpack .../040-libgomp1_14.1.0-5ubuntu1_armhf.deb ... 346s Unpacking libgomp1:armhf (14.1.0-5ubuntu1) ... 346s Selecting previously unselected package libgraphite2-3:armhf. 346s Preparing to unpack .../041-libgraphite2-3_1.3.14-2ubuntu1_armhf.deb ... 346s Unpacking libgraphite2-3:armhf (1.3.14-2ubuntu1) ... 346s Selecting previously unselected package libharfbuzz0b:armhf. 346s Preparing to unpack .../042-libharfbuzz0b_8.3.0-2build2_armhf.deb ... 346s Unpacking libharfbuzz0b:armhf (8.3.0-2build2) ... 346s Selecting previously unselected package libsz2:armhf. 347s Preparing to unpack .../043-libsz2_1.1.3-1_armhf.deb ... 347s Unpacking libsz2:armhf (1.1.3-1) ... 347s Selecting previously unselected package libhdf5-103-1t64:armhf. 347s Preparing to unpack .../044-libhdf5-103-1t64_1.10.10+repack-3.1ubuntu4_armhf.deb ... 347s Unpacking libhdf5-103-1t64:armhf (1.10.10+repack-3.1ubuntu4) ... 347s Selecting previously unselected package libice6:armhf. 347s Preparing to unpack .../045-libice6_2%3a1.0.10-1build3_armhf.deb ... 347s Unpacking libice6:armhf (2:1.0.10-1build3) ... 347s Selecting previously unselected package libimagequant0:armhf. 347s Preparing to unpack .../046-libimagequant0_2.18.0-1build1_armhf.deb ... 347s Unpacking libimagequant0:armhf (2.18.0-1build1) ... 347s Selecting previously unselected package libjpeg-turbo8:armhf. 347s Preparing to unpack .../047-libjpeg-turbo8_2.1.5-2ubuntu2_armhf.deb ... 347s Unpacking libjpeg-turbo8:armhf (2.1.5-2ubuntu2) ... 347s Selecting previously unselected package libjpeg8:armhf. 347s Preparing to unpack .../048-libjpeg8_8c-2ubuntu11_armhf.deb ... 347s Unpacking libjpeg8:armhf (8c-2ubuntu11) ... 347s Selecting previously unselected package libjs-jquery. 347s Preparing to unpack .../049-libjs-jquery_3.6.1+dfsg+~3.5.14-1_all.deb ... 347s Unpacking libjs-jquery (3.6.1+dfsg+~3.5.14-1) ... 347s Selecting previously unselected package libjs-jquery-ui. 347s Preparing to unpack .../050-libjs-jquery-ui_1.13.2+dfsg-1_all.deb ... 347s Unpacking libjs-jquery-ui (1.13.2+dfsg-1) ... 347s Selecting previously unselected package liblbfgsb0:armhf. 348s Preparing to unpack .../051-liblbfgsb0_3.0+dfsg.4-1build1_armhf.deb ... 348s Unpacking liblbfgsb0:armhf (3.0+dfsg.4-1build1) ... 348s Selecting previously unselected package liblcms2-2:armhf. 348s Preparing to unpack .../052-liblcms2-2_2.14-2build1_armhf.deb ... 348s Unpacking liblcms2-2:armhf (2.14-2build1) ... 348s Selecting previously unselected package liblerc4:armhf. 348s Preparing to unpack .../053-liblerc4_4.0.0+ds-4ubuntu2_armhf.deb ... 348s Unpacking liblerc4:armhf (4.0.0+ds-4ubuntu2) ... 348s Selecting previously unselected package libpixman-1-0:armhf. 348s Preparing to unpack .../054-libpixman-1-0_0.42.2-1build1_armhf.deb ... 348s Unpacking libpixman-1-0:armhf (0.42.2-1build1) ... 348s Selecting previously unselected package libqhull-r8.0:armhf. 348s Preparing to unpack .../055-libqhull-r8.0_2020.2-6build1_armhf.deb ... 348s Unpacking libqhull-r8.0:armhf (2020.2-6build1) ... 348s Selecting previously unselected package libraqm0:armhf. 348s Preparing to unpack .../056-libraqm0_0.10.1-1build1_armhf.deb ... 348s Unpacking libraqm0:armhf (0.10.1-1build1) ... 348s Selecting previously unselected package libsharpyuv0:armhf. 349s Preparing to unpack .../057-libsharpyuv0_1.4.0-0.1_armhf.deb ... 349s Unpacking libsharpyuv0:armhf (1.4.0-0.1) ... 349s Selecting previously unselected package libsm6:armhf. 350s Preparing to unpack .../058-libsm6_2%3a1.2.3-1build3_armhf.deb ... 350s Unpacking libsm6:armhf (2:1.2.3-1build3) ... 350s Selecting previously unselected package libjbig0:armhf. 350s Preparing to unpack .../059-libjbig0_2.1-6.1ubuntu2_armhf.deb ... 350s Unpacking libjbig0:armhf (2.1-6.1ubuntu2) ... 350s Selecting previously unselected package libwebp7:armhf. 350s Preparing to unpack .../060-libwebp7_1.4.0-0.1_armhf.deb ... 350s Unpacking libwebp7:armhf (1.4.0-0.1) ... 350s Selecting previously unselected package libtiff6:armhf. 351s Preparing to unpack .../061-libtiff6_4.5.1+git230720-4ubuntu3_armhf.deb ... 351s Unpacking libtiff6:armhf (4.5.1+git230720-4ubuntu3) ... 351s Selecting previously unselected package libunwind8:armhf. 351s Preparing to unpack .../062-libunwind8_1.6.2-3.1_armhf.deb ... 351s Unpacking libunwind8:armhf (1.6.2-3.1) ... 351s Selecting previously unselected package libwebpdemux2:armhf. 351s Preparing to unpack .../063-libwebpdemux2_1.4.0-0.1_armhf.deb ... 351s Unpacking libwebpdemux2:armhf (1.4.0-0.1) ... 351s Selecting previously unselected package libwebpmux3:armhf. 351s Preparing to unpack .../064-libwebpmux3_1.4.0-0.1_armhf.deb ... 351s Unpacking libwebpmux3:armhf (1.4.0-0.1) ... 351s Selecting previously unselected package libxt6t64:armhf. 351s Preparing to unpack .../065-libxt6t64_1%3a1.2.1-1.2build1_armhf.deb ... 351s Unpacking libxt6t64:armhf (1:1.2.1-1.2build1) ... 351s Selecting previously unselected package libxmu6:armhf. 351s Preparing to unpack .../066-libxmu6_2%3a1.1.3-3build2_armhf.deb ... 351s Unpacking libxmu6:armhf (2:1.1.3-3build2) ... 351s Selecting previously unselected package libxpm4:armhf. 351s Preparing to unpack .../067-libxpm4_1%3a3.5.17-1build2_armhf.deb ... 351s Unpacking libxpm4:armhf (1:3.5.17-1build2) ... 351s Selecting previously unselected package libxaw7:armhf. 351s Preparing to unpack .../068-libxaw7_2%3a1.0.14-1build2_armhf.deb ... 351s Unpacking libxaw7:armhf (2:1.0.14-1build2) ... 351s Selecting previously unselected package libxfont2:armhf. 351s Preparing to unpack .../069-libxfont2_1%3a2.0.6-1build1_armhf.deb ... 351s Unpacking libxfont2:armhf (1:2.0.6-1build1) ... 351s Selecting previously unselected package libxkbfile1:armhf. 351s Preparing to unpack .../070-libxkbfile1_1%3a1.1.0-1build4_armhf.deb ... 351s Unpacking libxkbfile1:armhf (1:1.1.0-1build4) ... 351s Selecting previously unselected package libxrandr2:armhf. 352s Preparing to unpack .../071-libxrandr2_2%3a1.5.4-1_armhf.deb ... 352s Unpacking libxrandr2:armhf (2:1.5.4-1) ... 352s Selecting previously unselected package libxslt1.1:armhf. 352s Preparing to unpack .../072-libxslt1.1_1.1.39-0exp1build1_armhf.deb ... 352s Unpacking libxslt1.1:armhf (1.1.39-0exp1build1) ... 352s Selecting previously unselected package python-matplotlib-data. 352s Preparing to unpack .../073-python-matplotlib-data_3.6.3-2ubuntu1_all.deb ... 352s Unpacking python-matplotlib-data (3.6.3-2ubuntu1) ... 352s Selecting previously unselected package python-tables-data. 352s Preparing to unpack .../074-python-tables-data_3.9.2-2build2_all.deb ... 352s Unpacking python-tables-data (3.9.2-2build2) ... 352s Selecting previously unselected package python3-all. 352s Preparing to unpack .../075-python3-all_3.12.4-1_armhf.deb ... 352s Unpacking python3-all (3.12.4-1) ... 352s Selecting previously unselected package python3-appdirs. 352s Preparing to unpack .../076-python3-appdirs_1.4.4-4_all.deb ... 352s Unpacking python3-appdirs (1.4.4-4) ... 352s Selecting previously unselected package python3-async-generator. 352s Preparing to unpack .../077-python3-async-generator_1.10-4_all.deb ... 352s Unpacking python3-async-generator (1.10-4) ... 352s Selecting previously unselected package python3-bottleneck. 352s Preparing to unpack .../078-python3-bottleneck_1.3.8+ds1-1_armhf.deb ... 352s Unpacking python3-bottleneck (1.3.8+ds1-1) ... 352s Selecting previously unselected package python3-brotli. 352s Preparing to unpack .../079-python3-brotli_1.1.0-2build2_armhf.deb ... 352s Unpacking python3-brotli (1.1.0-2build2) ... 352s Selecting previously unselected package python3-soupsieve. 352s Preparing to unpack .../080-python3-soupsieve_2.5-1_all.deb ... 352s Unpacking python3-soupsieve (2.5-1) ... 352s Selecting previously unselected package python3-bs4. 352s Preparing to unpack .../081-python3-bs4_4.12.3-1_all.deb ... 352s Unpacking python3-bs4 (4.12.3-1) ... 352s Selecting previously unselected package python3-colorama. 352s Preparing to unpack .../082-python3-colorama_0.4.6-4_all.deb ... 352s Unpacking python3-colorama (0.4.6-4) ... 352s Selecting previously unselected package python3-click. 352s Preparing to unpack .../083-python3-click_8.1.7-2_all.deb ... 352s Unpacking python3-click (8.1.7-2) ... 352s Selecting previously unselected package python3-cloudpickle. 352s Preparing to unpack .../084-python3-cloudpickle_3.0.0-2_all.deb ... 352s Unpacking python3-cloudpickle (3.0.0-2) ... 352s Selecting previously unselected package python3-contourpy. 352s Preparing to unpack .../085-python3-contourpy_1.0.7-3_armhf.deb ... 352s Unpacking python3-contourpy (1.0.7-3) ... 352s Selecting previously unselected package python3-cpuinfo. 352s Preparing to unpack .../086-python3-cpuinfo_9.0.0+git20221119-2_all.deb ... 352s Unpacking python3-cpuinfo (9.0.0+git20221119-2) ... 352s Selecting previously unselected package python3-cycler. 352s Preparing to unpack .../087-python3-cycler_0.12.1-1_all.deb ... 352s Unpacking python3-cycler (0.12.1-1) ... 353s Selecting previously unselected package python3-fsspec. 353s Preparing to unpack .../088-python3-fsspec_2024.6.1-1_all.deb ... 353s Unpacking python3-fsspec (2024.6.1-1) ... 353s Selecting previously unselected package python3-toolz. 353s Preparing to unpack .../089-python3-toolz_0.12.1-1_all.deb ... 353s Unpacking python3-toolz (0.12.1-1) ... 353s Selecting previously unselected package python3-packaging. 353s Preparing to unpack .../090-python3-packaging_24.1-1_all.deb ... 353s Unpacking python3-packaging (24.1-1) ... 353s Selecting previously unselected package python3-locket. 353s Preparing to unpack .../091-python3-locket_1.0.0-2_all.deb ... 353s Unpacking python3-locket (1.0.0-2) ... 353s Selecting previously unselected package python3-partd. 353s Preparing to unpack .../092-python3-partd_1.4.2-1_all.deb ... 353s Unpacking python3-partd (1.4.2-1) ... 353s Selecting previously unselected package python3-dask. 353s Preparing to unpack .../093-python3-dask_2024.5.2+dfsg-1_all.deb ... 353s Unpacking python3-dask (2024.5.2+dfsg-1) ... 353s Selecting previously unselected package python3-decorator. 353s Preparing to unpack .../094-python3-decorator_5.1.1-5_all.deb ... 353s Unpacking python3-decorator (5.1.1-5) ... 353s Selecting previously unselected package python3-defusedxml. 353s Preparing to unpack .../095-python3-defusedxml_0.7.1-2_all.deb ... 353s Unpacking python3-defusedxml (0.7.1-2) ... 353s Selecting previously unselected package python3-et-xmlfile. 353s Preparing to unpack .../096-python3-et-xmlfile_1.0.1-2.1_all.deb ... 353s Unpacking python3-et-xmlfile (1.0.1-2.1) ... 353s Selecting previously unselected package python3-execnet. 353s Preparing to unpack .../097-python3-execnet_2.1.1-1_all.deb ... 353s Unpacking python3-execnet (2.1.1-1) ... 353s Selecting previously unselected package python3-scipy. 353s Preparing to unpack .../098-python3-scipy_1.13.1-2_armhf.deb ... 353s Unpacking python3-scipy (1.13.1-2) ... 354s Selecting previously unselected package python3-ufolib2. 354s Preparing to unpack .../099-python3-ufolib2_0.16.0+dfsg1-1_all.deb ... 354s Unpacking python3-ufolib2 (0.16.0+dfsg1-1) ... 354s Selecting previously unselected package python3-mpmath. 354s Preparing to unpack .../100-python3-mpmath_1.3.0-1_all.deb ... 354s Unpacking python3-mpmath (1.3.0-1) ... 354s Selecting previously unselected package python3-sympy. 354s Preparing to unpack .../101-python3-sympy_1.12.1-1_all.deb ... 354s Unpacking python3-sympy (1.12.1-1) ... 354s Selecting previously unselected package python3-fs. 354s Preparing to unpack .../102-python3-fs_2.4.16-4_all.deb ... 354s Unpacking python3-fs (2.4.16-4) ... 354s Selecting previously unselected package python3-lxml:armhf. 354s Preparing to unpack .../103-python3-lxml_5.2.2-1_armhf.deb ... 354s Unpacking python3-lxml:armhf (5.2.2-1) ... 355s Selecting previously unselected package python3-lz4. 355s Preparing to unpack .../104-python3-lz4_4.0.2+dfsg-1build4_armhf.deb ... 355s Unpacking python3-lz4 (4.0.2+dfsg-1build4) ... 355s Selecting previously unselected package unicode-data. 355s Preparing to unpack .../105-unicode-data_15.1.0-1_all.deb ... 355s Unpacking unicode-data (15.1.0-1) ... 355s Selecting previously unselected package python3-fonttools. 355s Preparing to unpack .../106-python3-fonttools_4.46.0-1build2_armhf.deb ... 355s Unpacking python3-fonttools (4.46.0-1build2) ... 355s Selecting previously unselected package python3-webencodings. 355s Preparing to unpack .../107-python3-webencodings_0.5.1-5_all.deb ... 355s Unpacking python3-webencodings (0.5.1-5) ... 355s Selecting previously unselected package python3-html5lib. 355s Preparing to unpack .../108-python3-html5lib_1.1-6_all.deb ... 355s Unpacking python3-html5lib (1.1-6) ... 355s Selecting previously unselected package python3-sortedcontainers. 355s Preparing to unpack .../109-python3-sortedcontainers_2.4.0-2_all.deb ... 355s Unpacking python3-sortedcontainers (2.4.0-2) ... 355s Selecting previously unselected package python3-hypothesis. 355s Preparing to unpack .../110-python3-hypothesis_6.105.1-1_all.deb ... 355s Unpacking python3-hypothesis (6.105.1-1) ... 355s Selecting previously unselected package python3-iniconfig. 355s Preparing to unpack .../111-python3-iniconfig_1.1.1-2_all.deb ... 355s Unpacking python3-iniconfig (1.1.1-2) ... 355s Selecting previously unselected package python3-kiwisolver. 355s Preparing to unpack .../112-python3-kiwisolver_1.4.5-1_armhf.deb ... 355s Unpacking python3-kiwisolver (1.4.5-1) ... 355s Selecting previously unselected package libopenjp2-7:armhf. 355s Preparing to unpack .../113-libopenjp2-7_2.5.0-2build3_armhf.deb ... 355s Unpacking libopenjp2-7:armhf (2.5.0-2build3) ... 355s Selecting previously unselected package python3-pil:armhf. 355s Preparing to unpack .../114-python3-pil_10.4.0-1_armhf.deb ... 355s Unpacking python3-pil:armhf (10.4.0-1) ... 356s Selecting previously unselected package python3-tk:armhf. 356s Preparing to unpack .../115-python3-tk_3.12.4-2_armhf.deb ... 356s Unpacking python3-tk:armhf (3.12.4-2) ... 356s Selecting previously unselected package python3-pil.imagetk:armhf. 356s Preparing to unpack .../116-python3-pil.imagetk_10.4.0-1_armhf.deb ... 356s Unpacking python3-pil.imagetk:armhf (10.4.0-1) ... 356s Selecting previously unselected package python3-matplotlib. 356s Preparing to unpack .../117-python3-matplotlib_3.6.3-2ubuntu1_armhf.deb ... 356s Unpacking python3-matplotlib (3.6.3-2ubuntu1) ... 356s Selecting previously unselected package python3-numexpr. 356s Preparing to unpack .../118-python3-numexpr_2.10.1-2_armhf.deb ... 356s Unpacking python3-numexpr (2.10.1-2) ... 356s Selecting previously unselected package python3-odf. 356s Preparing to unpack .../119-python3-odf_1.4.2-2_all.deb ... 356s Unpacking python3-odf (1.4.2-2) ... 356s Selecting previously unselected package python3-openpyxl. 356s Preparing to unpack .../120-python3-openpyxl_3.1.5+dfsg-1_all.deb ... 356s Unpacking python3-openpyxl (3.1.5+dfsg-1) ... 356s Selecting previously unselected package python3-pluggy. 356s Preparing to unpack .../121-python3-pluggy_1.5.0-1_all.deb ... 356s Unpacking python3-pluggy (1.5.0-1) ... 356s Selecting previously unselected package python3-py. 356s Preparing to unpack .../122-python3-py_1.11.0-2_all.deb ... 356s Unpacking python3-py (1.11.0-2) ... 356s Selecting previously unselected package python3-pyreadstat. 356s Preparing to unpack .../123-python3-pyreadstat_1.2.7-1_armhf.deb ... 356s Unpacking python3-pyreadstat (1.2.7-1) ... 356s Selecting previously unselected package python3-pytest. 356s Preparing to unpack .../124-python3-pytest_7.4.4-1_all.deb ... 356s Unpacking python3-pytest (7.4.4-1) ... 356s Selecting previously unselected package python3-pytest-asyncio. 356s Preparing to unpack .../125-python3-pytest-asyncio_0.20.3-1.3_all.deb ... 356s Unpacking python3-pytest-asyncio (0.20.3-1.3) ... 356s Selecting previously unselected package python3-pytest-forked. 356s Preparing to unpack .../126-python3-pytest-forked_1.6.0-2_all.deb ... 356s Unpacking python3-pytest-forked (1.6.0-2) ... 356s Selecting previously unselected package python3-werkzeug. 356s Preparing to unpack .../127-python3-werkzeug_3.0.3-1_all.deb ... 356s Unpacking python3-werkzeug (3.0.3-1) ... 356s Selecting previously unselected package python3-pytest-localserver. 356s Preparing to unpack .../128-python3-pytest-localserver_0.8.1-2_all.deb ... 356s Unpacking python3-pytest-localserver (0.8.1-2) ... 356s Selecting previously unselected package python3-pytest-xdist. 356s Preparing to unpack .../129-python3-pytest-xdist_3.6.1-1_all.deb ... 356s Unpacking python3-pytest-xdist (3.6.1-1) ... 356s Selecting previously unselected package python3-greenlet. 356s Preparing to unpack .../130-python3-greenlet_3.0.3-0ubuntu5_armhf.deb ... 356s Unpacking python3-greenlet (3.0.3-0ubuntu5) ... 356s Selecting previously unselected package python3-sqlalchemy. 356s Preparing to unpack .../131-python3-sqlalchemy_1.4.50+ds1-1build1_all.deb ... 356s Unpacking python3-sqlalchemy (1.4.50+ds1-1build1) ... 357s Selecting previously unselected package python3-tables-lib. 357s Preparing to unpack .../132-python3-tables-lib_3.9.2-2build2_armhf.deb ... 357s Unpacking python3-tables-lib (3.9.2-2build2) ... 357s Selecting previously unselected package python3-tables. 357s Preparing to unpack .../133-python3-tables_3.9.2-2build2_all.deb ... 357s Unpacking python3-tables (3.9.2-2build2) ... 357s Selecting previously unselected package python3-xarray. 357s Preparing to unpack .../134-python3-xarray_2024.03.0-1_all.deb ... 357s Unpacking python3-xarray (2024.03.0-1) ... 357s Selecting previously unselected package python3-zstandard. 357s Preparing to unpack .../135-python3-zstandard_0.23.0-2_armhf.deb ... 357s Unpacking python3-zstandard (0.23.0-2) ... 357s Selecting previously unselected package tzdata-legacy. 357s Preparing to unpack .../136-tzdata-legacy_2024a-4ubuntu1_all.deb ... 357s Unpacking tzdata-legacy (2024a-4ubuntu1) ... 357s Selecting previously unselected package x11-xkb-utils. 357s Preparing to unpack .../137-x11-xkb-utils_7.7+8build2_armhf.deb ... 357s Unpacking x11-xkb-utils (7.7+8build2) ... 357s Selecting previously unselected package xsel. 357s Preparing to unpack .../138-xsel_1.2.1-1_armhf.deb ... 357s Unpacking xsel (1.2.1-1) ... 357s Selecting previously unselected package xserver-common. 357s Preparing to unpack .../139-xserver-common_2%3a21.1.12-1ubuntu1_all.deb ... 357s Unpacking xserver-common (2:21.1.12-1ubuntu1) ... 358s Selecting previously unselected package libglvnd0:armhf. 358s Preparing to unpack .../140-libglvnd0_1.7.0-1build1_armhf.deb ... 358s Unpacking libglvnd0:armhf (1.7.0-1build1) ... 358s Selecting previously unselected package libglx0:armhf. 358s Preparing to unpack .../141-libglx0_1.7.0-1build1_armhf.deb ... 358s Unpacking libglx0:armhf (1.7.0-1build1) ... 358s Selecting previously unselected package libgl1:armhf. 358s Preparing to unpack .../142-libgl1_1.7.0-1build1_armhf.deb ... 358s Unpacking libgl1:armhf (1.7.0-1build1) ... 358s Selecting previously unselected package xvfb. 358s Preparing to unpack .../143-xvfb_2%3a21.1.12-1ubuntu1_armhf.deb ... 358s Unpacking xvfb (2:21.1.12-1ubuntu1) ... 358s Selecting previously unselected package locales-all. 358s Preparing to unpack .../144-locales-all_2.39-0ubuntu9_armhf.deb ... 358s Unpacking locales-all (2.39-0ubuntu9) ... 359s Selecting previously unselected package autopkgtest-satdep. 359s Preparing to unpack .../145-2-autopkgtest-satdep.deb ... 359s Unpacking autopkgtest-satdep (0) ... 359s Setting up libgraphite2-3:armhf (1.3.14-2ubuntu1) ... 359s Setting up xsel (1.2.1-1) ... 359s Setting up libxcb-dri3-0:armhf (1.17.0-2) ... 359s Setting up liblcms2-2:armhf (2.14-2build1) ... 359s Setting up python3-iniconfig (1.1.1-2) ... 359s Setting up libpixman-1-0:armhf (0.42.2-1build1) ... 359s Setting up libsharpyuv0:armhf (1.4.0-0.1) ... 359s Setting up libx11-xcb1:armhf (2:1.8.7-1build1) ... 359s Setting up libdrm-nouveau2:armhf (2.4.122-1) ... 359s Setting up libxcb-xfixes0:armhf (1.17.0-2) ... 359s Setting up liblerc4:armhf (4.0.0+ds-4ubuntu2) ... 359s Setting up libxpm4:armhf (1:3.5.17-1build2) ... 359s Setting up python3-async-generator (1.10-4) ... 360s Setting up libxrender1:armhf (1:0.9.10-1.1build1) ... 360s Setting up python3-py (1.11.0-2) ... 360s Setting up python3-colorama (0.4.6-4) ... 360s Setting up python3-lz4 (4.0.2+dfsg-1build4) ... 360s Setting up python3-defusedxml (0.7.1-2) ... 360s Setting up libdrm-radeon1:armhf (2.4.122-1) ... 360s Setting up libglvnd0:armhf (1.7.0-1build1) ... 360s Setting up fonts-lyx (2.4.1-2) ... 360s Setting up libxcb-glx0:armhf (1.17.0-2) ... 360s Setting up python3-fsspec (2024.6.1-1) ... 361s Setting up x11-common (1:7.7+23ubuntu3) ... 361s Setting up libdeflate0:armhf (1.20-1) ... 361s Setting up libqhull-r8.0:armhf (2020.2-6build1) ... 361s Setting up python3-all (3.12.4-1) ... 361s Setting up libxcb-shm0:armhf (1.17.0-2) ... 361s Setting up python3-sortedcontainers (2.4.0-2) ... 361s Setting up libgomp1:armhf (14.1.0-5ubuntu1) ... 361s Setting up python3-click (8.1.7-2) ... 362s Setting up libunwind8:armhf (1.6.2-3.1) ... 362s Setting up libjbig0:armhf (2.1-6.1ubuntu2) ... 362s Setting up python3-webencodings (0.5.1-5) ... 362s Setting up python3-pyreadstat (1.2.7-1) ... 362s Setting up locales-all (2.39-0ubuntu9) ... 362s Setting up libaec0:armhf (1.1.3-1) ... 362s Setting up tzdata-legacy (2024a-4ubuntu1) ... 362s Setting up libxxf86vm1:armhf (1:1.1.4-1build4) ... 362s Setting up python3-cloudpickle (3.0.0-2) ... 362s Setting up libsnappy1v5:armhf (1.2.1-1) ... 362s Setting up libxcb-present0:armhf (1.17.0-2) ... 362s Setting up unicode-data (15.1.0-1) ... 362s Setting up python3-decorator (5.1.1-5) ... 362s Setting up libblosc2-4:armhf (2.15.1+ds-1) ... 362s Setting up libfontenc1:armhf (1:1.1.8-1build1) ... 362s Setting up python3-zstandard (0.23.0-2) ... 363s Setting up python3-packaging (24.1-1) ... 363s Setting up libllvm17t64:armhf (1:17.0.6-12) ... 363s Setting up libfreetype6:armhf (2.13.2+dfsg-1build3) ... 363s Setting up libxfixes3:armhf (1:6.0.0-2build1) ... 363s Setting up libxcb-sync1:armhf (1.17.0-2) ... 363s Setting up python3-brotli (1.1.0-2build2) ... 363s Setting up python3-greenlet (3.0.3-0ubuntu5) ... 363s Setting up python3-cycler (0.12.1-1) ... 363s Setting up libimagequant0:armhf (2.18.0-1build1) ... 363s Setting up fonts-dejavu-mono (2.37-8) ... 363s Setting up python3-kiwisolver (1.4.5-1) ... 363s Setting up python3-bottleneck (1.3.8+ds1-1) ... 363s Setting up libxrandr2:armhf (2:1.5.4-1) ... 363s Setting up libtcl8.6:armhf (8.6.14+dfsg-1build1) ... 363s Setting up fonts-dejavu-core (2.37-8) ... 364s Setting up python3-numexpr (2.10.1-2) ... 364s Setting up libjpeg-turbo8:armhf (2.1.5-2ubuntu2) ... 364s Setting up python3-cpuinfo (9.0.0+git20221119-2) ... 364s Setting up python3-html5lib (1.1-6) ... 364s Setting up libglapi-mesa:armhf (24.0.9-0ubuntu2) ... 364s Setting up libvulkan1:armhf (1.3.283.0-1) ... 364s Setting up python3-pluggy (1.5.0-1) ... 364s Setting up libwebp7:armhf (1.4.0-0.1) ... 364s Setting up libxcb-dri2-0:armhf (1.17.0-2) ... 364s Setting up libxshmfence1:armhf (1.3-1build5) ... 364s Setting up libxcb-randr0:armhf (1.17.0-2) ... 364s Setting up libxslt1.1:armhf (1.1.39-0exp1build1) ... 364s Setting up libblosc1:armhf (1.21.5+ds-1build1) ... 364s Setting up python3-et-xmlfile (1.0.1-2.1) ... 364s Setting up libopenjp2-7:armhf (2.5.0-2build3) ... 364s Setting up python3-toolz (0.12.1-1) ... 365s Setting up libharfbuzz0b:armhf (8.3.0-2build2) ... 365s Setting up python3-contourpy (1.0.7-3) ... 365s Setting up libxss1:armhf (1:1.2.3-1build3) ... 365s Setting up libxkbfile1:armhf (1:1.1.0-1build4) ... 365s Setting up libjs-jquery (3.6.1+dfsg+~3.5.14-1) ... 365s Setting up python3-mpmath (1.3.0-1) ... 365s Setting up python3-execnet (2.1.1-1) ... 365s Setting up python-matplotlib-data (3.6.3-2ubuntu1) ... 365s Setting up libwebpmux3:armhf (1.4.0-0.1) ... 365s Setting up python3-locket (1.0.0-2) ... 365s Setting up python3-appdirs (1.4.4-4) ... 366s Setting up libxfont2:armhf (1:2.0.6-1build1) ... 366s Setting up python3-soupsieve (2.5-1) ... 366s Setting up python-tables-data (3.9.2-2build2) ... 366s Setting up libsz2:armhf (1.1.3-1) ... 366s Setting up liblbfgsb0:armhf (3.0+dfsg.4-1build1) ... 366s Setting up python3-odf (1.4.2-2) ... 366s Setting up libdrm-amdgpu1:armhf (2.4.122-1) ... 366s Setting up libjpeg8:armhf (8c-2ubuntu11) ... 366s Setting up python3-partd (1.4.2-1) ... 366s Setting up python3-sympy (1.12.1-1) ... 373s Setting up libice6:armhf (2:1.0.10-1build3) ... 373s Setting up python3-scipy (1.13.1-2) ... 376s Setting up fontconfig-config (2.15.0-1.1ubuntu2) ... 377s Setting up python3-pytest (7.4.4-1) ... 377s Setting up libwebpdemux2:armhf (1.4.0-0.1) ... 377s Setting up python3-hypothesis (6.105.1-1) ... 377s Setting up python3-xarray (2024.03.0-1) ... 379s Setting up libgl1-mesa-dri:armhf (24.0.9-0ubuntu2) ... 379s Setting up python3-dask (2024.5.2+dfsg-1) ... 380s Setting up python3-bs4 (4.12.3-1) ... 381s Setting up python3-sqlalchemy (1.4.50+ds1-1build1) ... 382s Setting up python3-fs (2.4.16-4) ... 382s Setting up python3-pytest-forked (1.6.0-2) ... 382s Setting up libjs-jquery-ui (1.13.2+dfsg-1) ... 382s Setting up python3-werkzeug (3.0.3-1) ... 382s Setting up libraqm0:armhf (0.10.1-1build1) ... 382s Setting up python3-pytest-asyncio (0.20.3-1.3) ... 383s Setting up python3-lxml:armhf (5.2.2-1) ... 383s Setting up libtiff6:armhf (4.5.1+git230720-4ubuntu3) ... 383s Setting up libfontconfig1:armhf (2.15.0-1.1ubuntu2) ... 383s Setting up libhdf5-103-1t64:armhf (1.10.10+repack-3.1ubuntu4) ... 383s Setting up libsm6:armhf (2:1.2.3-1build3) ... 383s Setting up libxft2:armhf (2.3.6-1build1) ... 383s Setting up libglx-mesa0:armhf (24.0.9-0ubuntu2) ... 383s Setting up python3-pytest-xdist (3.6.1-1) ... 383s Setting up libglx0:armhf (1.7.0-1build1) ... 383s Setting up python3-tables-lib (3.9.2-2build2) ... 383s Setting up python3-pytest-localserver (0.8.1-2) ... 383s Setting up libtk8.6:armhf (8.6.14-1build1) ... 383s Setting up python3-tables (3.9.2-2build2) ... 384s Setting up python3-pil:armhf (10.4.0-1) ... 384s Setting up libgl1:armhf (1.7.0-1build1) ... 384s Setting up python3-openpyxl (3.1.5+dfsg-1) ... 385s Setting up libxt6t64:armhf (1:1.2.1-1.2build1) ... 385s Setting up tk8.6-blt2.5 (2.5.3+dfsg-7build1) ... 385s Setting up libxmu6:armhf (2:1.1.3-3build2) ... 385s Setting up blt (2.5.3+dfsg-7build1) ... 385s Setting up python3-tk:armhf (3.12.4-2) ... 385s Setting up libxaw7:armhf (2:1.0.14-1build2) ... 385s Setting up python3-pil.imagetk:armhf (10.4.0-1) ... 385s Setting up x11-xkb-utils (7.7+8build2) ... 385s Setting up xserver-common (2:21.1.12-1ubuntu1) ... 385s Setting up xvfb (2:21.1.12-1ubuntu1) ... 385s Setting up python3-ufolib2 (0.16.0+dfsg1-1) ... 385s Setting up python3-fonttools (4.46.0-1build2) ... 387s Setting up python3-matplotlib (3.6.3-2ubuntu1) ... 388s Setting up autopkgtest-satdep (0) ... 388s Processing triggers for libc-bin (2.39-0ubuntu9) ... 388s Processing triggers for man-db (2.12.1-2) ... 409s (Reading database ... 77660 files and directories currently installed.) 409s Removing autopkgtest-satdep (0) ... 415s autopkgtest [12:46:47]: test unittests3: [----------------------- 417s ++ dpkg --print-architecture 417s + arch=armhf 417s ++ py3versions -s 417s + pys=python3.12 417s + sourcetestroot=/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests 417s + echo amd64 i386 417s + grep armhf 417s === python3.12 === 417s + marker='not slow' 417s + echo armhf 417s + grep -E 'mips|hppa' 417s + PYTEST_WARN_IGNORE= 417s + cd /tmp/autopkgtest.9HcbfU/autopkgtest_tmp 417s + TEST_SUCCESS=true 417s + for py in $pys 417s + echo '=== python3.12 ===' 417s ++ python3.12 -c 'import pandas as pd; print(pd.__path__[0])' 418s + modpath=/usr/lib/python3/dist-packages/pandas 418s + for TEST_SUBSET in $modpath/tests/* 418s + echo /usr/lib/python3/dist-packages/pandas/tests/__init__.py 418s + grep -q -e __pycache__ 418s + PANDAS_CI=1 418s + LC_ALL=C.UTF-8 418s + xvfb-run --auto-servernum '--server-args=-screen 0 1024x768x24' python3.12 -m pytest --tb=long -s -m 'not slow' --deb-data-root-dir=/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/__init__.py 420s ============================= test session starts ============================== 420s platform linux -- Python 3.12.4, pytest-7.4.4, pluggy-1.5.0 420s rootdir: /usr/lib/python3/dist-packages/pandas/tests 420s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 420s asyncio: mode=Mode.STRICT 420s collected 8 items 420s 420s ../../../usr/lib/python3/dist-packages/pandas/tests/test_aggregation.py ........ 420s 420s =============================== warnings summary =============================== 420s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451 420s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/.pytest_cache/v/cache/nodeids: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/.pytest_cache' 420s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 420s 420s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:56 420s /usr/lib/python3/dist-packages/_pytest/stepwise.py:56: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/.pytest_cache/v/cache/stepwise: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/.pytest_cache' 420s session.config.cache.set(STEPWISE_CACHE_DIR, []) 420s 420s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 420s ======================== 8 passed, 2 warnings in 0.03s ========================= 420s + echo 'rdjoqkol test state = true' 420s + for TEST_SUBSET in $modpath/tests/* 420s + echo /usr/lib/python3/dist-packages/pandas/tests/__pycache__ 420s rdjoqkol test state = true 420s + grep -q -e __pycache__ 420s + echo 'rdjoqkol test state = true' 420s + for TEST_SUBSET in $modpath/tests/* 420s rdjoqkol test state = true 420s + echo /usr/lib/python3/dist-packages/pandas/tests/api 420s + grep -q -e __pycache__ 420s + PANDAS_CI=1 420s + LC_ALL=C.UTF-8 420s + xvfb-run --auto-servernum '--server-args=-screen 0 1024x768x24' python3.12 -m pytest --tb=long -s -m 'not slow' --deb-data-root-dir=/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/api 422s ============================= test session starts ============================== 422s platform linux -- Python 3.12.4, pytest-7.4.4, pluggy-1.5.0 422s rootdir: /usr/lib/python3/dist-packages/pandas/tests/api 422s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 422s asyncio: mode=Mode.STRICT 422s collected 14 items 422s 422s ../../../usr/lib/python3/dist-packages/pandas/tests/api/test_api.py ............ 422s ../../../usr/lib/python3/dist-packages/pandas/tests/api/test_types.py .. 422s 422s =============================== warnings summary =============================== 422s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451 422s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/api/.pytest_cache/v/cache/nodeids: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/api/.pytest_cache' 422s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 422s 422s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:56 422s /usr/lib/python3/dist-packages/_pytest/stepwise.py:56: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/api/.pytest_cache/v/cache/stepwise: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/api/.pytest_cache' 422s session.config.cache.set(STEPWISE_CACHE_DIR, []) 422s 422s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 422s ======================== 14 passed, 2 warnings in 0.10s ======================== 422s rdjoqkol test state = true 422s + echo 'rdjoqkol test state = true' 422s + for TEST_SUBSET in $modpath/tests/* 422s + echo /usr/lib/python3/dist-packages/pandas/tests/apply 422s + grep -q -e __pycache__ 422s + PANDAS_CI=1 422s + LC_ALL=C.UTF-8 422s + xvfb-run --auto-servernum '--server-args=-screen 0 1024x768x24' python3.12 -m pytest --tb=long -s -m 'not slow' --deb-data-root-dir=/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/apply 424s ============================= test session starts ============================== 424s platform linux -- Python 3.12.4, pytest-7.4.4, pluggy-1.5.0 424s rootdir: /usr/lib/python3/dist-packages/pandas/tests/apply 424s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 424s asyncio: mode=Mode.STRICT 424s collected 1176 items 424s 425s ../../../usr/lib/python3/dist-packages/pandas/tests/apply/test_frame_apply.py ...................................................................................................................................................................................................... 425s ../../../usr/lib/python3/dist-packages/pandas/tests/apply/test_frame_apply_relabeling.py ..x.. 426s ../../../usr/lib/python3/dist-packages/pandas/tests/apply/test_frame_transform.py ...s.s.s................................................ss..ss..ss.....x........x........x........ 427s ../../../usr/lib/python3/dist-packages/pandas/tests/apply/test_invalid_arg.py ....................................................................................................................................................................................................... 427s ../../../usr/lib/python3/dist-packages/pandas/tests/apply/test_series_apply.py .............................x.....x....x........................................................................................ 427s ../../../usr/lib/python3/dist-packages/pandas/tests/apply/test_series_apply_relabeling.py .. 427s ../../../usr/lib/python3/dist-packages/pandas/tests/apply/test_series_transform.py ............ 433s ../../../usr/lib/python3/dist-packages/pandas/tests/apply/test_str.py ....................xxxxx...................................................................................................................................................................................................................................................................................................................................................................................................................................................................x...........x...........x...........x...........x........ 433s 433s =============================== warnings summary =============================== 433s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451 433s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/apply/.pytest_cache/v/cache/nodeids: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/apply/.pytest_cache' 433s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 433s 433s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:56 433s /usr/lib/python3/dist-packages/_pytest/stepwise.py:56: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/apply/.pytest_cache/v/cache/stepwise: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/apply/.pytest_cache' 433s session.config.cache.set(STEPWISE_CACHE_DIR, []) 433s 433s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 433s =========== 1150 passed, 9 skipped, 17 xfailed, 2 warnings in 9.72s ============ 433s rdjoqkol test state = true 433s + echo 'rdjoqkol test state = true' 433s + for TEST_SUBSET in $modpath/tests/* 433s + echo /usr/lib/python3/dist-packages/pandas/tests/arithmetic 433s + grep -q -e __pycache__ 433s + PANDAS_CI=1 433s + LC_ALL=C.UTF-8 433s + xvfb-run --auto-servernum '--server-args=-screen 0 1024x768x24' python3.12 -m pytest --tb=long -s -m 'not slow' --deb-data-root-dir=/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/arithmetic 437s ============================= test session starts ============================== 437s platform linux -- Python 3.12.4, pytest-7.4.4, pluggy-1.5.0 437s rootdir: /usr/lib/python3/dist-packages/pandas/tests/arithmetic 437s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 437s asyncio: mode=Mode.STRICT 437s collected 28484 items 437s 437s ../../../usr/lib/python3/dist-packages/pandas/tests/arithmetic/test_array_ops.py .... 437s ../../../usr/lib/python3/dist-packages/pandas/tests/arithmetic/test_categorical.py .... 710s ../../../usr/lib/python3/dist-packages/pandas/tests/arithmetic/test_datetime64.py .....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................s..s..s..s..s..s..s..s..s..s..s..s..s..s..s..s..s..s..s.....s..s..s..s..s..s..s..s..s..s..s..s..s..s..s..s..s..s..s................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................. 713s ../../../usr/lib/python3/dist-packages/pandas/tests/arithmetic/test_interval.py .............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................. 720s ../../../usr/lib/python3/dist-packages/pandas/tests/arithmetic/test_numeric.py ................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................ss......ss......ss......ss......ss......ss......ss......ss......ss......ss......ss......ss......ss......ss......ss......ss......ss......ss......ss......ss......ss......ss......ss......ss......ss......ss......ss......ss......ss......ss......ss......ss......ss......ss......ss......ss......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................s..s.....s..s....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... 721s ../../../usr/lib/python3/dist-packages/pandas/tests/arithmetic/test_object.py .............s.s...................................................................................................................................................................................... 725s ../../../usr/lib/python3/dist-packages/pandas/tests/arithmetic/test_period.py ................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................ 738s ../../../usr/lib/python3/dist-packages/pandas/tests/arithmetic/test_timedelta64.py .............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................s..s..s..s..s..s..s..s..s..s..s..s..s..s..s..s..s..s..s.....s..s..s..s..s..s..s..s..s..s..s..s..s..s..s..s..s..s..s.....s..s..s..s..s..s..s..s..s..s..s..s..s..s..s..s..s..s..s.....s..s..s..s..s..s..s..s..s..s..s..s..s..s..s..s..s..s..s.....s..s..s..s..s..s..s..s..s..s..s..s..s..s..s..s..s..s..s.....s..s..s..s..s..s..s..s..s..s..s..s..s..s..s..s..s..s..s.....s..s..s..s..s..s..s..s..s..s..s..s..s..s..s..s..s..s..s.....s..s..s..s..s..s..s..s..s..s..s..s..s..s..s..s..s..s..s.................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................. 738s 738s =============================== warnings summary =============================== 738s ../../../usr/lib/python3/dist-packages/pandas/tests/arithmetic/test_datetime64.py:808 738s /usr/lib/python3/dist-packages/pandas/tests/arithmetic/test_datetime64.py:808: PytestUnknownMarkWarning: Unknown pytest.mark.arm_slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 738s @pytest.mark.arm_slow 738s 738s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451 738s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/arithmetic/.pytest_cache/v/cache/nodeids: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/arithmetic/.pytest_cache' 738s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 738s 738s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:56 738s /usr/lib/python3/dist-packages/_pytest/stepwise.py:56: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/arithmetic/.pytest_cache/v/cache/stepwise: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/arithmetic/.pytest_cache' 738s session.config.cache.set(STEPWISE_CACHE_DIR, []) 738s 738s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 738s === 27576 passed, 268 skipped, 640 xfailed, 3 warnings in 303.13s (0:05:03) ==== 740s + echo 'rdjoqkol test state = true' 740s + for TEST_SUBSET in $modpath/tests/* 740s rdjoqkol test state = true 740s + grep -q -e __pycache__ 740s + echo /usr/lib/python3/dist-packages/pandas/tests/arrays 740s + PANDAS_CI=1 740s + LC_ALL=C.UTF-8 740s + xvfb-run --auto-servernum '--server-args=-screen 0 1024x768x24' python3.12 -m pytest --tb=long -s -m 'not slow' --deb-data-root-dir=/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/arrays 744s ============================= test session starts ============================== 744s platform linux -- Python 3.12.4, pytest-7.4.4, pluggy-1.5.0 744s rootdir: /usr/lib/python3/dist-packages/pandas/tests/arrays 744s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 744s asyncio: mode=Mode.STRICT 744s collected 19203 items / 2 skipped 744s 745s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/test_array.py ...................................................................................... 766s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/test_datetimelike.py ........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss.............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................ssssss....................................................................................................................................................................................................ssssssssssssssssssssssssssssssssssss.......................................................................................................................................................................................................................................................................................................................................... 771s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/test_datetimes.py .......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... 771s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/test_ndarray_backed.py ..... 771s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/test_period.py ................... 771s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/test_timedeltas.py ...................................................................................................................................................... 771s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/boolean/test_arithmetic.py ..................... 771s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/boolean/test_astype.py ... 771s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/boolean/test_comparison.py .................................... 771s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/boolean/test_construction.py ............................. 771s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/boolean/test_function.py ........... 771s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/boolean/test_indexing.py ... 771s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/boolean/test_logical.py ................................................................................... 771s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/boolean/test_ops.py .. 771s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/boolean/test_reduction.py .............................. 771s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/boolean/test_repr.py . 771s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/categorical/test_algos.py .............. 771s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/categorical/test_analytics.py ........x..x................................................ 772s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/categorical/test_api.py ................................................................. 772s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/categorical/test_astype.py ...................... 772s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/categorical/test_constructors.py ....................................................................................................................... 772s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/categorical/test_dtypes.py .................................. 772s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/categorical/test_indexing.py ............................................................................................................................................... 772s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/categorical/test_map.py ............................. 772s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/categorical/test_missing.py .......................... 772s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/categorical/test_operators.py ...................................... 772s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/categorical/test_replace.py ...................... 773s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/categorical/test_repr.py ....................... 773s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/categorical/test_sorting.py .... 773s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/categorical/test_subclass.py ... 773s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/categorical/test_take.py ................ 773s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/categorical/test_warnings.py s 773s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/datetimes/test_constructors.py ......................ssssssssssssss 773s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/datetimes/test_cumulative.py ... 773s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/datetimes/test_reductions.py ................................................................................................................................................................................................................. 773s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/floating/test_arithmetic.py .............................................................. 773s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/floating/test_astype.py ......... 773s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/floating/test_comparison.py .................................................................................................................. 773s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/floating/test_concat.py ... 773s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/floating/test_construction.py ............................... 773s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/floating/test_contains.py . 773s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/floating/test_function.py ...........sssssss.................................. 773s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/floating/test_repr.py ........ 773s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/floating/test_to_numpy.py .................................. 774s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/integer/test_arithmetic.py ................................................................................................................................................................................................................................................................................................................................................... 775s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/integer/test_comparison.py ......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... 775s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/integer/test_concat.py .................. 775s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/integer/test_construction.py ............................................... 775s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/integer/test_dtypes.py .......................................................................................................................... 776s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/integer/test_function.py ............................................................................................................................. 776s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/integer/test_indexing.py .. 776s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/integer/test_reduction.py ............................................... 776s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/integer/test_repr.py .......................... 776s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/interval/test_astype.py .. 776s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/interval/test_interval.py ...............................................................................ssssssss............ 776s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/interval/test_ops.py .................................................................................................................... 778s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/masked/test_arithmetic.py ..............................................................................................................................................ss........................................................................................................................................................ss........................................................................................................................................................ss........................................................................................................................................................ss........................................................................................................................................................ss............................................................................................................................................................................................................................................................................................................................................................... 778s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/masked/test_function.py .................... 778s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/masked/test_indexing.py ........................................................................................................... 778s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/numpy_/test_indexing.py ....................................... 778s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/numpy_/test_numpy.py ....................................................................................... 778s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/period/test_astype.py .......... 778s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/period/test_constructors.py .................... 778s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/period/test_reductions.py ... 778s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/sparse/test_accessor.py ............................................. 780s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/sparse/test_arithmetics.py ...................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... 780s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/sparse/test_array.py ........................................................................... 780s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/sparse/test_astype.py ........................ 780s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/sparse/test_combine_concat.py .......... 780s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/sparse/test_constructors.py ................................. 780s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/sparse/test_dtype.py ........................................................ 780s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/sparse/test_indexing.py ............................................................................... 781s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/sparse/test_libsparse.py ..................................................................................... 781s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/sparse/test_reductions.py ....................................................................... 781s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/sparse/test_unary.py ......... 782s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/string_/test_string.py .ss.ss.ss.ss.ss.ss.ss.ss.ss.ssxssxss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.......ssss.ss.ss.ss.ss.ss.ss.ssxxssssxxssss....ssssssss....ssssssss.sssssssssssssssssssssss.ss.ss..ssss.ss...ssssss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss 782s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/string_/test_string_arrow.py s.ss.ssssssssss.ssssssssssssssssssssssssssssssssss 782s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/timedeltas/test_constructors.py ....... 782s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/timedeltas/test_cumulative.py .. 782s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/timedeltas/test_reductions.py ....................... 782s 782s =============================== warnings summary =============================== 782s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451 782s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/arrays/.pytest_cache/v/cache/nodeids: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/arrays/.pytest_cache' 782s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 782s 782s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:56 782s /usr/lib/python3/dist-packages/_pytest/stepwise.py:56: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/arrays/.pytest_cache/v/cache/stepwise: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/arrays/.pytest_cache' 782s session.config.cache.set(STEPWISE_CACHE_DIR, []) 782s 782s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 782s ========= 18169 passed, 1028 skipped, 8 xfailed, 2 warnings in 41.25s ========== 784s + echo 'rdjoqkol test state = true' 784s + for TEST_SUBSET in $modpath/tests/* 784s + echo /usr/lib/python3/dist-packages/pandas/tests/base 784s + grep -q -e __pycache__ 784s rdjoqkol test state = true 784s + PANDAS_CI=1 784s + LC_ALL=C.UTF-8 784s + xvfb-run --auto-servernum '--server-args=-screen 0 1024x768x24' python3.12 -m pytest --tb=long -s -m 'not slow' --deb-data-root-dir=/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/base 786s ============================= test session starts ============================== 786s platform linux -- Python 3.12.4, pytest-7.4.4, pluggy-1.5.0 786s rootdir: /usr/lib/python3/dist-packages/pandas/tests/base 786s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 786s asyncio: mode=Mode.STRICT 786s collected 1742 items 786s 786s ../../../usr/lib/python3/dist-packages/pandas/tests/base/test_constructors.py ....................... 786s ../../../usr/lib/python3/dist-packages/pandas/tests/base/test_conversion.py ...........................................................................................................................................................................................................................................................................x..................................... 786s ../../../usr/lib/python3/dist-packages/pandas/tests/base/test_fillna.py ..................................................................................ssssssssssssssssss....ssss........ssssssssss......ss..............................................ss......................ssssssssssss 787s ../../../usr/lib/python3/dist-packages/pandas/tests/base/test_misc.py .......................................................................................................................................................................................................................................xx...xxx....................................................................s...... 787s ../../../usr/lib/python3/dist-packages/pandas/tests/base/test_transpose.py .............................................................................................................................................................................................................................. 788s ../../../usr/lib/python3/dist-packages/pandas/tests/base/test_unique.py ..................................................................................ssssssssssssssssss....ssss........ssssssssss......ss..............................................ss......................ssssssssssss..................................................................................ssssssssssssssssss....ssss..........ssssssss......ss......................................................................ssssssssssss.... 789s ../../../usr/lib/python3/dist-packages/pandas/tests/base/test_value_counts.py ..................................................................................ssssssssssssssssss....ssss........ssssssssss......ss..............................................ss......................ssssssssssss.......... 789s 789s =============================== warnings summary =============================== 789s ../../../usr/lib/python3/dist-packages/pandas/tests/base/test_unique.py:100 789s /usr/lib/python3/dist-packages/pandas/tests/base/test_unique.py:100: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 789s @pytest.mark.single_cpu 789s 789s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451 789s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/base/.pytest_cache/v/cache/nodeids: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/base/.pytest_cache' 789s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 789s 789s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:56 789s /usr/lib/python3/dist-packages/_pytest/stepwise.py:56: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/base/.pytest_cache/v/cache/stepwise: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/base/.pytest_cache' 789s session.config.cache.set(STEPWISE_CACHE_DIR, []) 789s 789s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 789s =========== 1547 passed, 189 skipped, 6 xfailed, 3 warnings in 3.45s =========== 789s + echo 'rdjoqkol test state = true' 789s + for TEST_SUBSET in $modpath/tests/* 789s + echo /usr/lib/python3/dist-packages/pandas/tests/computation 789s + grep -q -e __pycache__ 789s + PANDAS_CI=1 789s + LC_ALL=C.UTF-8 789s + xvfb-run --auto-servernum '--server-args=-screen 0 1024x768x24' python3.12 -m pytest --tb=long -s -m 'not slow' --deb-data-root-dir=/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/computation 789s rdjoqkol test state = true 792s ============================= test session starts ============================== 792s platform linux -- Python 3.12.4, pytest-7.4.4, pluggy-1.5.0 792s rootdir: /usr/lib/python3/dist-packages/pandas/tests/computation 792s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 792s asyncio: mode=Mode.STRICT 792s collected 10999 items 792s 792s ../../../usr/lib/python3/dist-packages/pandas/tests/computation/test_compat.py ..... 852s ../../../usr/lib/python3/dist-packages/pandas/tests/computation/test_eval.py ..............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................xx..............................xx..............................xx..............................xx...................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................X.........X....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................x....................................................................................................................................................................................................................................xx..xx..... 852s 852s =============================== warnings summary =============================== 852s test_eval.py::TestEval::test_compound_invert_op[float-DataFrame-python-pandas-in] 852s test_eval.py::TestEval::test_compound_invert_op[float-DataFrame-python-pandas-not in] 852s test_eval.py::TestEval::test_compound_invert_op[float-Series-python-pandas-in] 852s test_eval.py::TestEval::test_compound_invert_op[float-Series-python-pandas-not in] 852s test_eval.py::TestEval::test_compound_invert_op[float-SeriesNaN-python-pandas-in] 852s test_eval.py::TestEval::test_compound_invert_op[float-SeriesNaN-python-pandas-not in] 852s test_eval.py::TestEval::test_compound_invert_op[float-DataFrameNaN-python-pandas-in] 852s test_eval.py::TestEval::test_compound_invert_op[float-DataFrameNaN-python-pandas-not in] 852s /usr/lib/python3/dist-packages/pandas/core/computation/ops.py:581: DeprecationWarning: Bitwise inversion '~' on bool is deprecated. This returns the bitwise inversion of the underlying int object and is usually not what you expect from negating a bool. Use the 'not' operator for boolean negation or ~int(x) if you really want the bitwise inversion of the underlying int. 852s return self.func(operand) # type: ignore[operator] 852s 852s test_eval.py: 14 warnings 852s /usr/lib/python3/dist-packages/pandas/core/computation/align.py:202: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.) 852s ret_value = typ(obj).astype(res_t) 852s 852s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451 852s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/computation/.pytest_cache/v/cache/nodeids: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/computation/.pytest_cache' 852s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 852s 852s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:56 852s /usr/lib/python3/dist-packages/_pytest/stepwise.py:56: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/computation/.pytest_cache/v/cache/stepwise: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/computation/.pytest_cache' 852s session.config.cache.set(STEPWISE_CACHE_DIR, []) 852s 852s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 852s ===== 10984 passed, 13 xfailed, 2 xpassed, 24 warnings in 61.00s (0:01:01) ===== 853s rdjoqkol test state = true 853s + echo 'rdjoqkol test state = true' 853s + for TEST_SUBSET in $modpath/tests/* 853s + echo /usr/lib/python3/dist-packages/pandas/tests/config 853s + grep -q -e __pycache__ 853s + PANDAS_CI=1 853s + LC_ALL=C.UTF-8 853s + xvfb-run --auto-servernum '--server-args=-screen 0 1024x768x24' python3.12 -m pytest --tb=long -s -m 'not slow' --deb-data-root-dir=/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/config 856s ============================= test session starts ============================== 856s platform linux -- Python 3.12.4, pytest-7.4.4, pluggy-1.5.0 856s rootdir: /usr/lib/python3/dist-packages/pandas/tests/config 856s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 856s asyncio: mode=Mode.STRICT 856s collected 50 items 856s 856s ../../../usr/lib/python3/dist-packages/pandas/tests/config/test_config.py ..................... 856s ../../../usr/lib/python3/dist-packages/pandas/tests/config/test_localization.py ............................. 856s 856s =============================== warnings summary =============================== 856s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451 856s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/config/.pytest_cache/v/cache/nodeids: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/config/.pytest_cache' 856s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 856s 856s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:56 856s /usr/lib/python3/dist-packages/_pytest/stepwise.py:56: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/config/.pytest_cache/v/cache/stepwise: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/config/.pytest_cache' 856s session.config.cache.set(STEPWISE_CACHE_DIR, []) 856s 856s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 856s ======================== 50 passed, 2 warnings in 0.71s ======================== 857s + echo 'rdjoqkol test state = true' 857s + for TEST_SUBSET in $modpath/tests/* 857s + echo /usr/lib/python3/dist-packages/pandas/tests/construction 857s + grep -q -e __pycache__ 857s + PANDAS_CI=1 857s + LC_ALL=C.UTF-8 857s + xvfb-run --auto-servernum '--server-args=-screen 0 1024x768x24' python3.12 -m pytest --tb=long -s -m 'not slow' --deb-data-root-dir=/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/construction 857s rdjoqkol test state = true 858s ============================= test session starts ============================== 858s platform linux -- Python 3.12.4, pytest-7.4.4, pluggy-1.5.0 858s rootdir: /usr/lib/python3/dist-packages/pandas/tests/construction 858s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 858s asyncio: mode=Mode.STRICT 858s collected 1 item 858s 858s ../../../usr/lib/python3/dist-packages/pandas/tests/construction/test_extract_array.py . 858s 858s =============================== warnings summary =============================== 858s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451 858s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/construction/.pytest_cache/v/cache/nodeids: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/construction/.pytest_cache' 858s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 858s 858s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:56 858s /usr/lib/python3/dist-packages/_pytest/stepwise.py:56: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/construction/.pytest_cache/v/cache/stepwise: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/construction/.pytest_cache' 858s session.config.cache.set(STEPWISE_CACHE_DIR, []) 858s 858s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 858s ======================== 1 passed, 2 warnings in 0.01s ========================= 858s rdjoqkol test state = true 858s + echo 'rdjoqkol test state = true' 858s + for TEST_SUBSET in $modpath/tests/* 858s + echo /usr/lib/python3/dist-packages/pandas/tests/copy_view 858s + grep -q -e __pycache__ 858s + PANDAS_CI=1 858s + LC_ALL=C.UTF-8 858s + xvfb-run --auto-servernum '--server-args=-screen 0 1024x768x24' python3.12 -m pytest --tb=long -s -m 'not slow' --deb-data-root-dir=/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/copy_view 861s ============================= test session starts ============================== 861s platform linux -- Python 3.12.4, pytest-7.4.4, pluggy-1.5.0 861s rootdir: /usr/lib/python3/dist-packages/pandas/tests/copy_view 861s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 861s asyncio: mode=Mode.STRICT 861s collected 768 items 861s 861s ../../../usr/lib/python3/dist-packages/pandas/tests/copy_view/test_array.py ............. 861s ../../../usr/lib/python3/dist-packages/pandas/tests/copy_view/test_astype.py .....ss...s.........s.. 861s ../../../usr/lib/python3/dist-packages/pandas/tests/copy_view/test_clip.py ...... 861s ../../../usr/lib/python3/dist-packages/pandas/tests/copy_view/test_constructors.py ............................................................................ 861s ../../../usr/lib/python3/dist-packages/pandas/tests/copy_view/test_core_functionalities.py ....... 861s ../../../usr/lib/python3/dist-packages/pandas/tests/copy_view/test_functions.py .................... 862s ../../../usr/lib/python3/dist-packages/pandas/tests/copy_view/test_indexing.py ....................................................................................s.....s...................................................................................................................................... 862s ../../../usr/lib/python3/dist-packages/pandas/tests/copy_view/test_internals.py ..................... 862s ../../../usr/lib/python3/dist-packages/pandas/tests/copy_view/test_interp_fillna.py .................................................. 863s ../../../usr/lib/python3/dist-packages/pandas/tests/copy_view/test_methods.py ...................................................................................................................................................................................................................................................... 863s ../../../usr/lib/python3/dist-packages/pandas/tests/copy_view/test_replace.py ........................................ 863s ../../../usr/lib/python3/dist-packages/pandas/tests/copy_view/test_setitem.py ........ 863s ../../../usr/lib/python3/dist-packages/pandas/tests/copy_view/test_util.py .. 863s ../../../usr/lib/python3/dist-packages/pandas/tests/copy_view/index/test_datetimeindex.py ...... 863s ../../../usr/lib/python3/dist-packages/pandas/tests/copy_view/index/test_index.py ..................... 863s ../../../usr/lib/python3/dist-packages/pandas/tests/copy_view/index/test_periodindex.py .. 863s ../../../usr/lib/python3/dist-packages/pandas/tests/copy_view/index/test_timedeltaindex.py .. 863s 863s =============================== warnings summary =============================== 863s ../../../usr/lib/python3/dist-packages/pandas/tests/copy_view/test_internals.py:48 863s /usr/lib/python3/dist-packages/pandas/tests/copy_view/test_internals.py:48: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 863s @pytest.mark.single_cpu 863s 863s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451 863s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/copy_view/.pytest_cache/v/cache/nodeids: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/copy_view/.pytest_cache' 863s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 863s 863s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:56 863s /usr/lib/python3/dist-packages/_pytest/stepwise.py:56: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/copy_view/.pytest_cache/v/cache/stepwise: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/copy_view/.pytest_cache' 863s session.config.cache.set(STEPWISE_CACHE_DIR, []) 863s 863s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 863s ================== 762 passed, 6 skipped, 3 warnings in 3.45s ================== 863s rdjoqkol test state = true 863s + echo 'rdjoqkol test state = true' 863s + for TEST_SUBSET in $modpath/tests/* 863s + echo /usr/lib/python3/dist-packages/pandas/tests/dtypes 863s + grep -q -e __pycache__ 863s + PANDAS_CI=1 863s + LC_ALL=C.UTF-8 863s + xvfb-run --auto-servernum '--server-args=-screen 0 1024x768x24' python3.12 -m pytest --tb=long -s -m 'not slow' --deb-data-root-dir=/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/dtypes 866s ============================= test session starts ============================== 866s platform linux -- Python 3.12.4, pytest-7.4.4, pluggy-1.5.0 866s rootdir: /usr/lib/python3/dist-packages/pandas/tests/dtypes 866s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 866s asyncio: mode=Mode.STRICT 866s collected 5590 items 866s 867s ../../../usr/lib/python3/dist-packages/pandas/tests/dtypes/test_common.py .......................................................................................................................................................................s...................................................................................................................................................................................................................................................................... 867s ../../../usr/lib/python3/dist-packages/pandas/tests/dtypes/test_concat.py .... 868s ../../../usr/lib/python3/dist-packages/pandas/tests/dtypes/test_dtypes.py ........................................................................................................................................................................................................................................................................................ 868s ../../../usr/lib/python3/dist-packages/pandas/tests/dtypes/test_generic.py .................................................................................................................................................................................................................................................................................................................................................................................................................................................................... 869s ../../../usr/lib/python3/dist-packages/pandas/tests/dtypes/test_inference.py ......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................ssssssss......................................... 869s ../../../usr/lib/python3/dist-packages/pandas/tests/dtypes/test_missing.py ......................................................................................x.x.x.xxxx............................................................................................................................................................................................................. 869s ../../../usr/lib/python3/dist-packages/pandas/tests/dtypes/cast/test_can_hold_element.py ........... 869s ../../../usr/lib/python3/dist-packages/pandas/tests/dtypes/cast/test_construct_from_scalar.py .... 869s ../../../usr/lib/python3/dist-packages/pandas/tests/dtypes/cast/test_construct_ndarray.py ....... 869s ../../../usr/lib/python3/dist-packages/pandas/tests/dtypes/cast/test_construct_object_arr.py ....................................... 869s ../../../usr/lib/python3/dist-packages/pandas/tests/dtypes/cast/test_dict_compat.py . 869s ../../../usr/lib/python3/dist-packages/pandas/tests/dtypes/cast/test_downcast.py ................................... 870s ../../../usr/lib/python3/dist-packages/pandas/tests/dtypes/cast/test_find_common_type.py .......................................................................................... 870s ../../../usr/lib/python3/dist-packages/pandas/tests/dtypes/cast/test_infer_datetimelike.py ... 870s ../../../usr/lib/python3/dist-packages/pandas/tests/dtypes/cast/test_infer_dtype.py .................................................................... 870s ../../../usr/lib/python3/dist-packages/pandas/tests/dtypes/cast/test_maybe_box_native.py ................ 873s ../../../usr/lib/python3/dist-packages/pandas/tests/dtypes/cast/test_promote.py .................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................. 873s 873s =============================== warnings summary =============================== 873s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451 873s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/dtypes/.pytest_cache/v/cache/nodeids: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/dtypes/.pytest_cache' 873s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 873s 873s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:56 873s /usr/lib/python3/dist-packages/_pytest/stepwise.py:56: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/dtypes/.pytest_cache/v/cache/stepwise: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/dtypes/.pytest_cache' 873s session.config.cache.set(STEPWISE_CACHE_DIR, []) 873s 873s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 873s ============ 5574 passed, 9 skipped, 7 xfailed, 2 warnings in 8.24s ============ 873s + echo 'rdjoqkol test state = true' 873s + for TEST_SUBSET in $modpath/tests/* 873s + echo /usr/lib/python3/dist-packages/pandas/tests/extension 873s + grep -q -e __pycache__ 873s + PANDAS_CI=1 873s + LC_ALL=C.UTF-8 873s + xvfb-run --auto-servernum '--server-args=-screen 0 1024x768x24' python3.12 -m pytest --tb=long -s -m 'not slow' --deb-data-root-dir=/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/extension 873s rdjoqkol test state = true 877s ============================= test session starts ============================== 877s platform linux -- Python 3.12.4, pytest-7.4.4, pluggy-1.5.0 877s rootdir: /usr/lib/python3/dist-packages/pandas/tests/extension 877s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 877s asyncio: mode=Mode.STRICT 877s collected 14412 items / 1 skipped 877s 880s ../../../usr/lib/python3/dist-packages/pandas/tests/extension/test_categorical.py ..................................x..................................................................xx................s....................................x....................................................................................ssssssssssssssssssssssss..............................................................ss......................................................xx..........s...................s.....................................................x.............x......................................ssss.......... 880s ../../../usr/lib/python3/dist-packages/pandas/tests/extension/test_common.py ............ 882s ../../../usr/lib/python3/dist-packages/pandas/tests/extension/test_datetime.py ........................................................xx................................................................................................................................................................................................s...............................................s....................................................................................................x.................................................................................ssss......... 882s ../../../usr/lib/python3/dist-packages/pandas/tests/extension/test_extension.py .............. 884s ../../../usr/lib/python3/dist-packages/pandas/tests/extension/test_interval.py ....................................x..................................................................................................ssssssssssssssssssssssss................................................................s....................................................................................................................ss....................................................................................................xx............................................................s............x..x. 910s ../../../usr/lib/python3/dist-packages/pandas/tests/extension/test_masked.py .............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................x....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................xxxxxxxxxxxxxxxxxxxxxx..................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................x...x...x...x...x...x...x...x...x...x...x..............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................s.s.s.s.s.s.s.s.s.s.s................................................................................................................................................................................ssssssssssssssssssss..ssssssssssssssssssss..........................................................................................................................................................................................................................................................................ssssssssssssssssssssss................................................................................................................................................................................ssssssssssssssssssssss......................ssssssssssssssssssssss.................................................................................................................................xx................................................................................................................................................................................................................................................................................................................ssss........ssss........ssss........ssss........ssss........ssss........ssss........ssss........ssss........ssss........ssss.................................................................... 926s ../../../usr/lib/python3/dist-packages/pandas/tests/extension/test_numpy.py .............s.s..................................ss.x.........................................x......................................xxxx.................................x...................................................x.........................................................................................................................................................................................................................x.x.x.x.xxx.x.x.s.................................................................................x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.....x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x....................................................................ssssssssssssssssssssssssssssssssssssssssssssssss.............................x.x.......................................................................................................................................................x.x.x..xx.x..xx..xx...xxx...xxx.x...x...x.x.x................xx............................................ssss........ssss................ 932s ../../../usr/lib/python3/dist-packages/pandas/tests/extension/test_period.py ................................................................................................................xxxx................................................................................................................................................................................................................................................................................................................................................................................................ss.............................................................................................s.s.......................................................................................................................................................................................................x...x..............................................................................................................................................................ssss........ssss................ 937s ../../../usr/lib/python3/dist-packages/pandas/tests/extension/test_sparse.py .........................................................ssss................................................................ssss............s.s.s.s.s.s.......................................xxxx..............................s...ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss...............................xx......................................................................................................................................................................................................................xx........ss..ssssss.........................................xx....................................................................................ssssssssssssss..............ssssssssssssss..............xxxx....xx.x............................xxxxxxxxxxxxxxxxxxxxxxxx........xx.................... 940s ../../../usr/lib/python3/dist-packages/pandas/tests/extension/test_string.py .ss.ss.sssss.ss.ss.ss.ss.ss.sssss.sssss.ss.ss.ss.ss.ss.ss.ss.ssssssss..ssss.ss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.ss.ss.sssss.ssssssss..sssssss.sssss.sssss.sssss.ss.ss.sssss.ssssssss..ssssssssss..sssssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.ssssssssssssss....ssssssssssssssssssssssssssssssss........sssssssssssssssssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.sssssssssss...ssssssssssss..ssssssssssxxsssssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.ssssssss..sssssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.ssssssss..sssssss.sssss.sssss.sssss.sssss.sssss.sssssssssss...sssssssssssssss...sssssssss.sssss.sssss.sssss.sssssssssss...sssssssssssssss...ssssssssssssssssss.x..ssssssssssssssssssss....ssssssssssssss..sssssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.ssssssss..sssssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.ssssssss..ssssssssss..ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss..ssssssssss..ssssssssss..ssssssssss..ssssssssss..ssssssssss..ssssssssss..ssssssssss..ssssssssss..ssssssssss..ssssssssss..ssssssssss..sssssss.sssss.ssssssss..ssssssssss..sssssss.sssss.sssss.sssss.ssssssss..sssssss.sssss.sssss.sssss.ssssssss..ssssssssss..ssssssssssssssssssssssssssss........sssssssssssssssssss.ssssssss..ssssssssss..ssssssssss..ssssssssss..ssssssssss..ssssssssss..ssssssssssssssss....sssssssssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.ssssssssssssssssssss......sssssssssssssss.sssssssssssssssssssssssssssss.....sssssssssssssssssssssssss.....sssssssssssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.ssssssssssssss....ssssssssssssssssssss....ssssssssssssssssssss....ssssssssssssssssssss....ssssssssssssssssssss....ssssssssssssssssssss....sssssssssss.sssss.sssss.sssss.sssssssssss...sssssssssssssss...sssssssss.sssss.sssss.sssss.sssss.sssss.sssss.ssssssss.ssssssss.ss.ssssssss..sssssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.ssssssss..ssssssssss..sssssss.sssss.sssss.sssss.sssss.ssssssss..sssssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.sssss.ssssssss..ssssssssssssssssssssss......ssssssssssssssssssssssssssssssssssssssssssssssss......ssss..ssssssssssssssssssssssssssssssssssssssssss......sssssssssssssss.sssss.ss 940s ../../../usr/lib/python3/dist-packages/pandas/tests/extension/array_with_attr/test_array_with_attr.py . 948s ../../../usr/lib/python3/dist-packages/pandas/tests/extension/decimal/test_decimal.py ....................................x.............................................................................................................................................................................................................................................................................................................................xx............................................................s............................xxxxxxxxss..............xxssxxss........................................xxxx..................... 960s ../../../usr/lib/python3/dist-packages/pandas/tests/extension/json/test_json.py ...................................x...........xxxx....................xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...................xx................................xx............................ssssssssssssssssssssssss.s.........................................ss...........................................xxxx........xXxxxxs.......s....x....xxxx.............................s........................................xxxxxxxxxxxxxx......xx........... 960s ../../../usr/lib/python3/dist-packages/pandas/tests/extension/list/test_list.py . 960s 960s =============================== warnings summary =============================== 960s test_categorical.py: 1 warning 960s test_datetime.py: 1 warning 960s test_interval.py: 1 warning 960s test_masked.py: 11 warnings 960s test_numpy.py: 2 warnings 960s test_period.py: 2 warnings 960s test_sparse.py: 2 warnings 960s test_string.py: 1 warning 960s decimal/test_decimal.py: 1 warning 960s json/test_json.py: 1 warning 960s /usr/lib/python3/dist-packages/pandas/tests/extension/base/getitem.py:276: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]` 960s ser[idx] 960s 960s test_categorical.py: 1 warning 960s test_datetime.py: 1 warning 960s test_interval.py: 1 warning 960s test_masked.py: 11 warnings 960s test_numpy.py: 2 warnings 960s test_period.py: 2 warnings 960s test_string.py: 1 warning 960s decimal/test_decimal.py: 1 warning 960s /usr/lib/python3/dist-packages/pandas/tests/extension/base/setitem.py:221: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]` 960s arr[idx] = arr[0] 960s 960s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451 960s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/extension/.pytest_cache/v/cache/nodeids: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/extension/.pytest_cache' 960s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 960s 960s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:56 960s /usr/lib/python3/dist-packages/_pytest/stepwise.py:56: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/extension/.pytest_cache/v/cache/stepwise: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/extension/.pytest_cache' 960s session.config.cache.set(STEPWISE_CACHE_DIR, []) 960s 960s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 960s = 11306 passed, 2828 skipped, 278 xfailed, 1 xpassed, 45 warnings in 84.91s (0:01:24) = 961s + echo 'rdjoqkol test state = true' 961s + for TEST_SUBSET in $modpath/tests/* 961s + echo /usr/lib/python3/dist-packages/pandas/tests/frame 961s + grep -q -e __pycache__ 961s + PANDAS_CI=1 961s + LC_ALL=C.UTF-8 961s + xvfb-run --auto-servernum '--server-args=-screen 0 1024x768x24' python3.12 -m pytest --tb=long -s -m 'not slow' --deb-data-root-dir=/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/frame 961s rdjoqkol test state = true 967s ============================= test session starts ============================== 967s platform linux -- Python 3.12.4, pytest-7.4.4, pluggy-1.5.0 967s rootdir: /usr/lib/python3/dist-packages/pandas/tests/frame 967s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 967s asyncio: mode=Mode.STRICT 967s collected 10477 items / 433 deselected / 10044 selected 967s 967s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_alter_axes.py .. 968s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_api.py ......................ss......... 971s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_arithmetic.py .......................................................................................x......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................x..........x................................................................................................................................ 971s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_block_internals.py ................... 976s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_constructors.py ..................................................................................................................................................................................................s.....................................................................................................................................................................................................ssssss................ssss..............................ssssss................ssss..............................ssssss................ssss..............................ssssss................ssss..............................ssssss................ssss..............................ssssss................ssss..............................ssssss................ssss..............................ssssss................ssss..............................ssssss................ssss..............................ssssss................ssss..........sss..ss.................................................................................................xxxx..xx..........xxxx..xx................................ 976s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_cumulative.py ....... 976s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_iteration.py .......... 977s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_logical_ops.py ................. 977s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_nonunique_indexes.py ................ 977s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_npfuncs.py .... 979s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_query_eval.py ..................ss..ss..ss.......................s.......................s..s......sssss.................................................s........................s..s.....sssss...............................................ss..ss......................ss.............................................................................s....ss 984s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_reductions.py ........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................s....................................................................................................x.............x............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................. 987s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_repr_info.py .....................................ssss 994s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_stack_unstack.py ............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................ 995s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_subclass.py ................................................... 996s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_ufunc.py ....xx.........xxxxxxxx.xx....s. 996s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_unary.py .................. 996s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_validate.py ............................ 996s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/constructors/test_from_dict.py ............. 996s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/constructors/test_from_records.py ......................... 997s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/indexing/test_coercion.py .......x.x. 997s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/indexing/test_delitem.py .... 997s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/indexing/test_get.py .... 997s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/indexing/test_get_value.py .. 997s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/indexing/test_getitem.py ........................................ 1005s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/indexing/test_indexing.py ..................................................................................................................................................................................................................................s.................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... 1005s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/indexing/test_insert.py ....... 1005s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/indexing/test_mask.py ........... 1005s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/indexing/test_set_value.py ... 1006s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/indexing/test_setitem.py ........................................................................................................s........................................................................................xxx...........................x..x..x..x...... 1006s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/indexing/test_take.py .... 1010s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/indexing/test_where.py ............................................................................................................................................. 1010s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/indexing/test_xs.py .............................. 1010s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_add_prefix_suffix.py ... 1019s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_align.py ........................................................................ 1019s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_asfreq.py .............................. 1019s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_asof.py ........... 1019s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_assign.py ..... 1020s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_astype.py .......................................................................................................................s....s........................................................................................................ss.....ssssssssss 1020s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_at_time.py ...................... 1020s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_between_time.py ss............................ 1020s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_clip.py ..................... 1020s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_combine.py ..... 1020s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_combine_first.py ..................s............................... 1021s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_compare.py ......................... 1021s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_convert_dtypes.py ..ssss..ssss.sss 1021s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_copy.py ..... 1021s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_count.py .. 1021s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_cov_corr.py .............................................................s............ 1021s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_describe.py ...............................................s 1021s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_diff.py ..................................... 1021s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_dot.py ................sss 1022s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_drop.py ......................................................................... 1022s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_drop_duplicates.py ..................................... 1022s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_droplevel.py .. 1022s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_dropna.py ................... 1022s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_dtypes.py ........ 1022s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_duplicated.py .......xxx........... 1022s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_equals.py ... 1022s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_explode.py ..................... 1022s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_fillna.py ....................................................... 1022s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_filter.py ........... 1023s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_first_and_last.py ............. 1023s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_first_valid_index.py ............... 1023s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_get_numeric_data.py .... 1024s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_head_tail.py .................................................................. 1024s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_infer_objects.py . 1025s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_interpolate.py .......................................................... 1025s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_is_homogeneous_dtype.py ....... 1025s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_isetitem.py ... 1025s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_isin.py ................. 1025s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_iterrows.py . 1025s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_join.py ...........s................... 1025s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_map.py ......................... 1025s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_matmul.py .. 1026s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_nlargest.py .........................................................................................................................................................................................................................................................X.....X.....X.....X.......X..... 1026s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_pct_change.py ............................. 1026s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_pipe.py ...... 1026s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_pop.py ... 1030s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_quantile.py ...............................................................xx..........xx..........xx..........xx.................. 1032s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_rank.py .........................................................................................................................ss 1033s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_reindex.py ......x.......................................................................................................................................... 1033s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_reindex_like.py ..... 1033s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_rename.py ......................... 1033s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_rename_axis.py ......... 1033s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_reorder_levels.py ... 1034s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_replace.py ...................ss.................ssss....ssss................................................................................................................................................................. 1034s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_reset_index.py ........................................................................................ 1034s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_round.py ......... 1035s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_sample.py .......................................................... 1035s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_select_dtypes.py ..................................s...... 1035s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_set_axis.py .............. 1037s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_set_index.py ................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................. 1041s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_shift.py ...................................................................................x.x.x.x.x.xxxx....... 1041s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_size.py ..... 1041s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_sort_index.py ............................................................... 1042s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_sort_values.py ...................................................X...............................XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX..... 1042s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_swapaxes.py .... 1042s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_swaplevel.py . 1045s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_to_csv.py ............................................................................ 1045s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_to_dict.py ............................................................................................... 1045s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_to_dict_of_blocks.py .... 1045s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_to_numpy.py .... 1045s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_to_period.py ...................................................................... 1045s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_to_records.py ................................... 1045s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_to_timestamp.py ...................................................................... 1045s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_transpose.py .............. 1045s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_truncate.py ........................................................................................ 1046s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_tz_convert.py ........... 1046s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_tz_localize.py ......... 1046s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_update.py ............. 1046s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_value_counts.py ................................ 1046s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_values.py ............... 1046s 1046s =============================== warnings summary =============================== 1046s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_constructors.py:2333 1046s /usr/lib/python3/dist-packages/pandas/tests/frame/test_constructors.py:2333: PytestUnknownMarkWarning: Unknown pytest.mark.arm_slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1046s @pytest.mark.arm_slow 1046s 1046s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_repr_info.py:155 1046s /usr/lib/python3/dist-packages/pandas/tests/frame/test_repr_info.py:155: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1046s @pytest.mark.slow 1046s 1046s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_repr_info.py:206 1046s /usr/lib/python3/dist-packages/pandas/tests/frame/test_repr_info.py:206: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1046s @pytest.mark.slow 1046s 1046s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_stack_unstack.py:2095 1046s /usr/lib/python3/dist-packages/pandas/tests/frame/test_stack_unstack.py:2095: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1046s @pytest.mark.slow 1046s 1046s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_rank.py:323 1046s /usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_rank.py:323: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1046s @pytest.mark.single_cpu 1046s 1046s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_to_csv.py:202 1046s /usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_to_csv.py:202: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1046s @pytest.mark.slow 1046s 1046s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_to_csv.py:333 1046s /usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_to_csv.py:333: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1046s @pytest.mark.slow 1046s 1046s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_to_csv.py:342 1046s /usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_to_csv.py:342: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1046s @pytest.mark.slow 1046s 1046s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_to_csv.py:363 1046s /usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_to_csv.py:363: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1046s @pytest.mark.slow 1046s 1046s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_to_csv.py:373 1046s /usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_to_csv.py:373: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1046s @pytest.mark.slow 1046s 1046s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_to_csv.py:388 1046s /usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_to_csv.py:388: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1046s @pytest.mark.slow 1046s 1046s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_to_csv.py:394 1046s /usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_to_csv.py:394: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1046s @pytest.mark.slow 1046s 1046s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_to_csv.py:401 1046s /usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_to_csv.py:401: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1046s @pytest.mark.slow 1046s 1046s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_to_csv.py:766 1046s /usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_to_csv.py:766: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1046s @pytest.mark.slow 1046s 1046s methods/test_quantile.py::TestQuantileExtensionDtype::test_quantile_ea_with_na[interval[int64, right]-DataFrame] 1046s methods/test_quantile.py::TestQuantileExtensionDtype::test_quantile_ea_with_na[interval[int64, right]-Series] 1046s /usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_quantile.py:867: FutureWarning: Setting an item of incompatible dtype is deprecated and will raise in a future error of pandas. Value 'nan' has dtype incompatible with interval[int64, right], please explicitly cast to a compatible dtype first. 1046s obj.iloc[0] = index._na_value 1046s 1046s methods/test_quantile.py::TestQuantileExtensionDtype::test_quantile_ea_all_na[interval[int64, right]-Series] 1046s /usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_quantile.py:886: FutureWarning: Setting an item of incompatible dtype is deprecated and will raise in a future error of pandas. Value 'nan' has dtype incompatible with interval[int64, right], please explicitly cast to a compatible dtype first. 1046s obj.iloc[:] = index._na_value 1046s 1046s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451 1046s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/frame/.pytest_cache/v/cache/nodeids: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/frame/.pytest_cache' 1046s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 1046s 1046s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:56 1046s /usr/lib/python3/dist-packages/_pytest/stepwise.py:56: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/frame/.pytest_cache/v/cache/stepwise: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/frame/.pytest_cache' 1046s session.config.cache.set(STEPWISE_CACHE_DIR, []) 1046s 1046s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 1046s = 9753 passed, 194 skipped, 433 deselected, 59 xfailed, 38 xpassed, 19 warnings in 83.68s (0:01:23) = 1047s rdjoqkol test state = true 1047s + echo 'rdjoqkol test state = true' 1047s + for TEST_SUBSET in $modpath/tests/* 1047s + echo /usr/lib/python3/dist-packages/pandas/tests/generic 1047s + grep -q -e __pycache__ 1047s + PANDAS_CI=1 1047s + LC_ALL=C.UTF-8 1047s + xvfb-run --auto-servernum '--server-args=-screen 0 1024x768x24' python3.12 -m pytest --tb=long -s -m 'not slow' --deb-data-root-dir=/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/generic 1049s ============================= test session starts ============================== 1049s platform linux -- Python 3.12.4, pytest-7.4.4, pluggy-1.5.0 1049s rootdir: /usr/lib/python3/dist-packages/pandas/tests/generic 1049s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 1049s asyncio: mode=Mode.STRICT 1049s collected 1253 items 1049s 1049s ../../../usr/lib/python3/dist-packages/pandas/tests/generic/test_duplicate_labels.py ..........xx...........x.......xx.xxx................x................ 1053s ../../../usr/lib/python3/dist-packages/pandas/tests/generic/test_finalize.py ...........................x..................................x........x....................................................................................................................xs..s...s..s..x..x.x...x.s..s...s..s.x..x..x...x.s..s...s..s..x..x.x...x.s..s...s..s.x..x..x...x.s..s...s..s..x..x.x...x.s..s...s..s.x..x..x...x.s..s...s..s..x..x.x...x.s..s...s..s.x..x..x...x.s..s...s..s..x..x.x...x.s..s...s..s.x..x..x...x.s..s...s..s..x..x.x...x.s..s...s..s.x..x..x...x.s..s...s..s..x..x.x...x.s..s...s..s.x..x..x...x.s..s...s..s..x..x.x...x.s..s...s..s..x..x.x...x.s..s...s..s..x..x.x...x.s..s...s..s..x..x.x...x.s..s...s..s..x..x.x...x.s..s...s..s..x..x.x...x.s..s...s..s..x..x.x...x.s..s...s..s.x..x..x...x.s..s...s..s..x..x.x...x.s..s...s..s.x..x..x...x.s..s...s..s..x..x.x...x.s..s...s..s.x..x..x...x........................................................................................xxxxxxxxx..........xxxxxxxxxxxx. 1053s ../../../usr/lib/python3/dist-packages/pandas/tests/generic/test_frame.py ............... 1054s ../../../usr/lib/python3/dist-packages/pandas/tests/generic/test_generic.py .................................................................................... 1054s ../../../usr/lib/python3/dist-packages/pandas/tests/generic/test_label_or_level_utils.py ....................................................................... 1054s ../../../usr/lib/python3/dist-packages/pandas/tests/generic/test_series.py ................... 1055s ../../../usr/lib/python3/dist-packages/pandas/tests/generic/test_to_xarray.py ......................s....................................... 1055s 1055s =============================== warnings summary =============================== 1055s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451 1055s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/generic/.pytest_cache/v/cache/nodeids: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/generic/.pytest_cache' 1055s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 1055s 1055s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:56 1055s /usr/lib/python3/dist-packages/_pytest/stepwise.py:56: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/generic/.pytest_cache/v/cache/stepwise: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/generic/.pytest_cache' 1055s session.config.cache.set(STEPWISE_CACHE_DIR, []) 1055s 1055s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 1055s ========== 1010 passed, 105 skipped, 138 xfailed, 2 warnings in 6.36s ========== 1055s rdjoqkol test state = true 1055s + echo 'rdjoqkol test state = true' 1055s + for TEST_SUBSET in $modpath/tests/* 1055s + echo /usr/lib/python3/dist-packages/pandas/tests/groupby 1055s + grep -q -e __pycache__ 1055s + PANDAS_CI=1 1055s + LC_ALL=C.UTF-8 1055s + xvfb-run --auto-servernum '--server-args=-screen 0 1024x768x24' python3.12 -m pytest --tb=long -s -m 'not slow' --deb-data-root-dir=/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/groupby 1060s ============================= test session starts ============================== 1060s platform linux -- Python 3.12.4, pytest-7.4.4, pluggy-1.5.0 1060s rootdir: /usr/lib/python3/dist-packages/pandas/tests/groupby 1060s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 1060s asyncio: mode=Mode.STRICT 1060s collected 29188 items / 1832 deselected / 1 skipped / 27356 selected 1060s 1060s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_any_all.py ......................................................................................................................... 1060s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_api.py ......s..s..............................s..s.......................... 1061s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_apply.py ............................................................................................................................... 1061s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_apply_mutate.py ..... 1061s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_bin_groupby.py ...... 1091s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_categorical.py .................................................................................................................................x.........................................................................................................................................................................................................................................................................xx.xx.xx.xx.................................................................................................................................................................................................................................................xx.xx.xx.xx......................................................................................ss.ss.ss.ssxxxxxx.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ssxxxxxx.ss.ss.ss.ssxxsxxsxxsxxs.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ssxxxxxx.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ssxxxxxx.ss.ss.ss.ssxxsxxsxxsxxs.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss.ss......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................s........s........s........s........s........s........s........s...ss.sssss.ss.sssss.ss.sssss.ss.sssss.ss.sssss.ss.sssss.ss.sssss.ss.sssss...................ss.ss.ss.ss.ss.ss.................sxsx................................................................................sxsx................................................................................sxsx................................................................................sxsx.......................................x................................ 1092s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_counting.py .................................ssss 1092s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_filters.py .......................... 1098s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_function.py ........................................................................xxx......ssssss..............................xxx........................................................................................................................................................ssss.............................................................................................................................................................................................................................................................................................................................................................................ss.......................................xx.............................................................................................................................................. 1121s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_groupby.py ....................................s..........................................................................................................................xx..........................................xx..........................................xx..........................................xx..........................................xx..........................................xx..............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................xx..........................................xx..........................................xx..........................................xx..........................................xx..........................................xx...................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................ss..........ss..............ss................................s.XXX...............s................................................................................................ 1152s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_groupby_dropna.py ..........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss.................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss.................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss.................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss.......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................xx.xx.xx.xx.............xx.xx.xx.xx.................................................................................................................................................................................................................................................................................................................................................................................................................xxxxxxxx.................................................. 1152s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_groupby_shift_diff.py ......................................... 1153s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_groupby_subclass.py .....s................................................................. 1153s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_grouping.py ........................................................................... 1153s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_index_as_string.py .................. 1154s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_indexing.py ............................................................................................................................................................................ 1154s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_libgroupby.py ........................... 1155s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_min_max.py ...................... 1155s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_missing.py ......................... 1155s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_nth.py ................................................................................................................................................................................................................... 1155s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_nunique.py ............ 1155s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_pipe.py .. 1157s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_quantile.py ..................................................................................................x....x....................................................................................................................................................................................................................... 1189s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_raises.py ..................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... 1193s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_rank.py ............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................. 1193s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_sample.py .............. 1196s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_size.py .......x....x....x....x....x....x....x....x...............ss 1196s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_skew.py . 1196s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_timegrouper.py .............................s 1198s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_value_counts.py ...........X......XXX...XXX.........XXX...XXX........................................ss.ss.ss.ss.ss.ss....XX..........................XXXXXXXXXXXXXXXX........XXXXXXXX................ 1200s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_aggregate.py ..............................................................................................................................................................................................................................................................................................................................................x..x.......................................................................x...... 1201s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_cython.py ........................................................................................................................................................................ 1201s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss 1201s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_other.py ........................................ 1201s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss 1239s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_transform.py ..................x.........................................................................................................................x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x....................................................................................x....................x.................................................................................................................................................................................................... 1239s 1239s =============================== warnings summary =============================== 1239s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_groupby_dropna.py:248 1239s /usr/lib/python3/dist-packages/pandas/tests/groupby/test_groupby_dropna.py:248: PytestUnknownMarkWarning: Unknown pytest.mark.arm_slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1239s @pytest.mark.arm_slow 1239s 1239s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_numba.py:10 1239s /usr/lib/python3/dist-packages/pandas/tests/groupby/test_numba.py:10: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1239s pytestmark = pytest.mark.single_cpu 1239s 1239s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_nunique.py:19 1239s /usr/lib/python3/dist-packages/pandas/tests/groupby/test_nunique.py:19: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1239s @pytest.mark.slow 1239s 1239s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_timegrouper.py:907 1239s /usr/lib/python3/dist-packages/pandas/tests/groupby/test_timegrouper.py:907: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1239s @pytest.mark.single_cpu 1239s 1239s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_value_counts.py:86 1239s /usr/lib/python3/dist-packages/pandas/tests/groupby/test_value_counts.py:86: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1239s @pytest.mark.slow 1239s 1239s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py:21 1239s /usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py:21: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1239s pytestmark = pytest.mark.single_cpu 1239s 1239s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py:229 1239s /usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py:229: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1239s @pytest.mark.single_cpu 1239s 1239s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py:13 1239s /usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py:13: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1239s pytestmark = pytest.mark.single_cpu 1239s 1239s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_transform.py:761 1239s /usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_transform.py:761: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1239s @pytest.mark.slow 1239s 1239s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_transform.py:810 1239s /usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_transform.py:810: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1239s @pytest.mark.slow 1239s 1239s test_categorical.py::test_basic 1239s /usr/lib/python3/dist-packages/numpy/core/fromnumeric.py:86: FutureWarning: The behavior of DataFrame.sum with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) 1239s return reduction(axis=axis, out=out, **passkwargs) 1239s 1239s test_categorical.py: 16 warnings 1239s /usr/lib/python3/dist-packages/pandas/tests/groupby/test_categorical.py:1886: FutureWarning: A grouping was used that is not in the columns of the DataFrame and so was excluded from the result. This grouping will be included in a future version of pandas. Add the grouping as a column of the DataFrame to silence this warning. 1239s op_result = getattr(gb, reduction_func)(*args) 1239s 1239s test_function.py::test_axis1_numeric_only[corrwith-True] 1239s test_function.py::test_axis1_numeric_only[corrwith-False] 1239s test_function.py::test_axis1_numeric_only[corrwith-None] 1239s /usr/lib/python3/dist-packages/pandas/tests/groupby/test_function.py:595: FutureWarning: DataFrameGroupBy.corrwith with axis=1 is deprecated and will be removed in a future version. Operate on the un-grouped DataFrame instead 1239s method(*args, **kwargs) 1239s 1239s test_function.py::test_axis1_numeric_only[skew-True] 1239s test_function.py::test_axis1_numeric_only[skew-False] 1239s test_function.py::test_axis1_numeric_only[skew-None] 1239s /usr/lib/python3/dist-packages/pandas/tests/groupby/test_function.py:595: FutureWarning: DataFrameGroupBy.skew with axis=1 is deprecated and will be removed in a future version. Operate on the un-grouped DataFrame instead 1239s method(*args, **kwargs) 1239s 1239s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451 1239s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/groupby/.pytest_cache/v/cache/nodeids: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/groupby/.pytest_cache' 1239s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 1239s 1239s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:56 1239s /usr/lib/python3/dist-packages/_pytest/stepwise.py:56: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/groupby/.pytest_cache/v/cache/stepwise: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/groupby/.pytest_cache' 1239s session.config.cache.set(STEPWISE_CACHE_DIR, []) 1239s 1239s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 1239s = 26247 passed, 906 skipped, 1832 deselected, 162 xfailed, 42 xpassed, 35 warnings in 182.55s (0:03:02) = 1241s rdjoqkol test state = true 1241s + echo 'rdjoqkol test state = true' 1241s + for TEST_SUBSET in $modpath/tests/* 1241s + echo /usr/lib/python3/dist-packages/pandas/tests/indexes 1241s + grep -q -e __pycache__ 1241s + PANDAS_CI=1 1241s + LC_ALL=C.UTF-8 1241s + xvfb-run --auto-servernum '--server-args=-screen 0 1024x768x24' python3.12 -m pytest --tb=long -s -m 'not slow' --deb-data-root-dir=/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/indexes 1253s ============================= test session starts ============================== 1253s platform linux -- Python 3.12.4, pytest-7.4.4, pluggy-1.5.0 1253s rootdir: /usr/lib/python3/dist-packages/pandas/tests/indexes 1253s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 1253s asyncio: mode=Mode.STRICT 1253s collected 16064 items / 5 deselected / 16059 selected 1253s 1254s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/test_any_index.py ......................................................................................................................s......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... 1257s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/test_base.py .........................................................................................................................................................................x.............................................................................ssss....ss..........ss......ss................................................................................................................................sssss...........................................................................................................................................................................................................................................s.......................................................................................................s........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... 1259s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/test_common.py ...........................................................................................................................................................................................................xxxxxxxxxxxxxxxxxxxxxxxxxxxxx.........................................................................................................................sssssssss...s....ss..........................xs.....................sss................................................sss....................................................................................s................s...............................................................................................................................................................................................................................................................................xx.............s............................ 1259s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/test_datetimelike.py ........................................ 1259s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/test_engines.py ......................................... 1259s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/test_frozen.py .......... 1259s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/test_index_new.py ............................................xxxxssss............................................................................................................. 1260s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/test_indexing.py ......................................................ss...............................s.................................................................................................................................................................................................................................................................................................s........................ 1261s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/test_numpy_compat.py ............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................ss..................... 1264s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/test_old_base.py s...s...................sss.............................ssssssssss.s..........ss.................s.............s.....s..............s..sss..........................................................s.......................................................................ssssssss..s..sssssssss..s..sssssssss..s..sssssssss..s..sssssssss..s..s......................s..............................................s................s..............................s........................ssssssss....s.s...s.....s........sssssssss...s....s...sss...................................................................................................................ss......................ssssss.........................................................................................................................................................................s......................................................................................................................................................................................s...s...........s...s...........................................................................................s...s... 1270s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/test_setops.py ...........................................................................................................................................x........................................................................................................................................................................................................................................................................................................................................................................................................................X..................................................................x....................................................................................................X.........X...............................................................................................................X..........................................................................................................................................................................................................................................................................................................................................................s...........................................................................................................................ss..s.s...s...s.................................................................................ssssssssss..........sssss..........sssss...............sssss.....................................................................................ssssssssss..........sssss..........sssss...............sssss.....................................................................................ssssssssss..........sssss..........sssss...............sssss.....................................................................................ssssssssss..........sssss..........sssss...............sssss.....................................................................ssss....ss..........ss......ss..................................................................................................................................................................................................................................................................ssss....ss..........ss......ss................................................................................................................................................................................................................................................................s..........................................................................................................................................................................................ss 1270s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/test_subclass.py . 1270s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/base_class/test_constructors.py .......s 1270s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/base_class/test_formats.py ............. 1271s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/base_class/test_indexing.py ............ 1271s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/base_class/test_pickle.py . 1271s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/base_class/test_reshape.py ..............s.... 1271s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/base_class/test_setops.py ............................................................ 1271s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/base_class/test_where.py . 1271s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/categorical/test_append.py ....... 1271s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/categorical/test_astype.py ........... 1271s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/categorical/test_category.py ......................................... 1271s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/categorical/test_constructors.py ..... 1271s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/categorical/test_equals.py ......ss 1271s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/categorical/test_fillna.py ... 1271s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/categorical/test_formats.py .. 1271s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/categorical/test_indexing.py ................................. 1271s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/categorical/test_map.py ..................... 1271s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/categorical/test_reindex.py ....... 1271s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/datetimelike_/test_drop_duplicates.py ................................................................................................................ 1271s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/datetimelike_/test_equals.py ..................... 1271s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/datetimelike_/test_indexing.py ................ 1271s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/datetimelike_/test_is_monotonic.py . 1271s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/datetimelike_/test_nat.py ...................... 1271s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/datetimelike_/test_sort_values.py ................................................................................... 1272s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/datetimelike_/test_value_counts.py ............................................ 1272s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/datetimes/test_asof.py .. 1272s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/datetimes/test_constructors.py ...................................................................................................................................................................................................................................................... 1273s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/datetimes/test_date_range.py ................................................................................................................................................................................................................. 1273s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/datetimes/test_datetime.py ....................x.............. 1273s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/datetimes/test_datetimelike.py . 1273s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/datetimes/test_delete.py .. 1273s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/datetimes/test_formats.py ................... 1273s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/datetimes/test_freq_attr.py .......................... 1275s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/datetimes/test_indexing.py ..................................................................................................................................................................................................................................................................................................................................................................................... 1275s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/datetimes/test_join.py ...................... 1275s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/datetimes/test_map.py ..... 1281s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/datetimes/test_misc.py .......................................................................................................................................................................................................................................................................................................................................................................................................................................................................... 1281s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/datetimes/test_npfuncs.py . 1282s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/datetimes/test_ops.py ...................................................................................................X................................................................................................ 1282s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/datetimes/test_partial_slicing.py .................................. 1282s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/datetimes/test_pickle.py ...... 1282s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/datetimes/test_reindex.py .. 1283s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/datetimes/test_scalar_compat.py ...................................................................................................................... 1283s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/datetimes/test_setops.py .......................................................................................................................... 1284s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/datetimes/test_timezones.py ................................................................................................................................................................................................................. 1284s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/datetimes/test_unique.py ........................ 1284s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/datetimes/methods/test_astype.py .............................. 1284s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/datetimes/methods/test_factorize.py .................................................................................... 1284s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/datetimes/methods/test_fillna.py .. 1285s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/datetimes/methods/test_insert.py .............................................................................................................................................................................. 1285s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/datetimes/methods/test_isocalendar.py . 1285s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/datetimes/methods/test_repeat.py ........................................ 1285s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/datetimes/methods/test_shift.py .................................. 1285s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/datetimes/methods/test_snap.py ........................ 1285s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/datetimes/methods/test_to_frame.py .. 1285s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/datetimes/methods/test_to_period.py .................................. 1285s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/datetimes/methods/test_to_series.py . 1286s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/interval/test_astype.py ....................................x........................................................................................................................... 1286s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/interval/test_base.py .......... 1286s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/interval/test_constructors.py ..........................................................................................................................................................................................................................................................................ssssssss.......................................s.................s.....s.....s.....s....................................ssssssss.......................................s.................s.....s.....s.....s.................... 1286s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/interval/test_equals.py .... 1286s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/interval/test_formats.py ........ 1287s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/interval/test_indexing.py .............................................................................................................................................................................................................................................................................. 1287s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/interval/test_interval.py ......................................................................................................................................................................................................................................................... 1288s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/interval/test_interval_range.py ....................................................................................................................................................... 1288s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/interval/test_interval_tree.py ss.ss.ss.ss...ss.ss.ss.ss......sss.sss.sss.sss.................................................................................................................................................................sxxxx 1288s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/interval/test_join.py ... 1288s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/interval/test_pickle.py ... 1288s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/interval/test_setops.py ................................................................................. 1288s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/multi/test_analytics.py ...................................... 1288s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/multi/test_astype.py ... 1288s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/multi/test_compat.py ...... 1289s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/multi/test_constructors.py ..................................................................................s................. 1289s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/multi/test_conversion.py ...... 1289s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/multi/test_copy.py .......... 1289s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/multi/test_drop.py ............. 1289s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/multi/test_duplicates.py .................................................. 1289s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/multi/test_equivalence.py .............. 1289s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/multi/test_formats.py ............. 1289s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/multi/test_get_level_values.py ....... 1289s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/multi/test_get_set.py ................... 1290s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/multi/test_indexing.py ..................................................................................................................................... 1290s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/multi/test_integrity.py ................ 1290s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/multi/test_isin.py .............. 1291s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/multi/test_join.py ........................................................... 1291s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/multi/test_lexsort.py .. 1291s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/multi/test_missing.py ...x.. 1291s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/multi/test_monotonic.py ........... 1291s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/multi/test_names.py ............................... 1291s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/multi/test_partial_indexing.py ..... 1291s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/multi/test_pickle.py . 1291s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/multi/test_reindex.py ............ 1291s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/multi/test_reshape.py ........... 1292s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/multi/test_setops.py ............................................................................................................................................................................................................sss................................................................... 1292s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/multi/test_sorting.py ......................... 1292s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/multi/test_take.py ... 1292s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/numeric/test_astype.py ................... 1293s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/numeric/test_indexing.py ..............................................................................................................................................ss.......................................... 1293s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/numeric/test_join.py ........... 1293s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/numeric/test_numeric.py ............................................................................................... 1293s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/numeric/test_setops.py .................... 1293s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/object/test_astype.py .. 1294s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/object/test_indexing.py .......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.ss. 1294s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/period/test_constructors.py ........................................................................... 1294s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/period/test_formats.py ...... 1294s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/period/test_freq_attr.py . 1294s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/period/test_indexing.py ......................................................................... 1294s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/period/test_join.py ........... 1294s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/period/test_monotonic.py .. 1295s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/period/test_partial_slicing.py .............. 1295s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/period/test_period.py ........................................................................................................................................ 1295s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/period/test_period_range.py ........ 1295s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/period/test_pickle.py .... 1295s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/period/test_resolution.py ......... 1295s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/period/test_scalar_compat.py ... 1295s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/period/test_searchsorted.py ........ 1295s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/period/test_setops.py .............. 1295s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/period/test_tools.py ............ 1295s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/period/methods/test_asfreq.py ....... 1295s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/period/methods/test_astype.py .......... 1295s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/period/methods/test_factorize.py .. 1295s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/period/methods/test_fillna.py . 1295s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/period/methods/test_insert.py ... 1295s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/period/methods/test_is_full.py . 1295s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/period/methods/test_repeat.py ...... 1295s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/period/methods/test_shift.py ...... 1295s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/period/methods/test_to_timestamp.py ........ 1295s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/ranges/test_constructors.py ............................. 1295s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/ranges/test_indexing.py ............... 1295s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/ranges/test_join.py .......... 1295s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/ranges/test_range.py ................................................................................. 1296s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/ranges/test_setops.py ................................................................... 1296s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/timedeltas/test_constructors.py .................... 1296s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/timedeltas/test_delete.py ... 1296s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/timedeltas/test_formats.py .... 1296s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/timedeltas/test_freq_attr.py ........... 1296s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/timedeltas/test_indexing.py .................................... 1296s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/timedeltas/test_join.py ....... 1296s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/timedeltas/test_ops.py .......... 1296s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/timedeltas/test_pickle.py . 1296s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/timedeltas/test_scalar_compat.py ........ 1296s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/timedeltas/test_searchsorted.py ........ 1296s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/timedeltas/test_setops.py ................................ 1296s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/timedeltas/test_timedelta.py ........ 1296s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/timedeltas/test_timedelta_range.py .................. 1296s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/timedeltas/methods/test_astype.py .......... 1296s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/timedeltas/methods/test_factorize.py .. 1296s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/timedeltas/methods/test_fillna.py . 1296s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/timedeltas/methods/test_insert.py ............... 1296s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/timedeltas/methods/test_repeat.py . 1296s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/timedeltas/methods/test_shift.py ...... 1296s 1296s =============================== warnings summary =============================== 1296s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/test_old_base.py:739 1296s /usr/lib/python3/dist-packages/pandas/tests/indexes/test_old_base.py:739: PytestUnknownMarkWarning: Unknown pytest.mark.arm_slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1296s @pytest.mark.arm_slow 1296s 1296s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/base_class/test_indexing.py:62 1296s /usr/lib/python3/dist-packages/pandas/tests/indexes/base_class/test_indexing.py:62: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1296s @pytest.mark.slow # to_flat_index takes a while 1296s 1296s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/datetimes/test_date_range.py:214 1296s /usr/lib/python3/dist-packages/pandas/tests/indexes/datetimes/test_date_range.py:214: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1296s @pytest.mark.slow 1296s 1296s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/multi/test_duplicates.py:237 1296s /usr/lib/python3/dist-packages/pandas/tests/indexes/multi/test_duplicates.py:237: PytestUnknownMarkWarning: Unknown pytest.mark.arm_slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1296s @pytest.mark.arm_slow 1296s 1296s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/multi/test_indexing.py:833 1296s /usr/lib/python3/dist-packages/pandas/tests/indexes/multi/test_indexing.py:833: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1296s @pytest.mark.slow 1296s 1296s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/multi/test_integrity.py:127 1296s /usr/lib/python3/dist-packages/pandas/tests/indexes/multi/test_integrity.py:127: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1296s @pytest.mark.slow 1296s 1296s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/multi/test_setops.py:51 1296s /usr/lib/python3/dist-packages/pandas/tests/indexes/multi/test_setops.py:51: PytestUnknownMarkWarning: Unknown pytest.mark.arm_slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1296s @pytest.mark.arm_slow 1296s 1296s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/period/test_indexing.py:174 1296s /usr/lib/python3/dist-packages/pandas/tests/indexes/period/test_indexing.py:174: PytestUnknownMarkWarning: Unknown pytest.mark.arm_slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1296s @pytest.mark.arm_slow 1296s 1296s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451 1296s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/indexes/.pytest_cache/v/cache/nodeids: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/indexes/.pytest_cache' 1296s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 1296s 1296s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:56 1296s /usr/lib/python3/dist-packages/_pytest/stepwise.py:56: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/indexes/.pytest_cache/v/cache/stepwise: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/indexes/.pytest_cache' 1296s session.config.cache.set(STEPWISE_CACHE_DIR, []) 1296s 1296s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 1296s = 15625 passed, 383 skipped, 5 deselected, 46 xfailed, 5 xpassed, 10 warnings in 51.86s = 1297s rdjoqkol test state = true 1297s + echo 'rdjoqkol test state = true' 1298s + for TEST_SUBSET in $modpath/tests/* 1298s + echo /usr/lib/python3/dist-packages/pandas/tests/indexing 1298s + grep -q -e __pycache__ 1298s + PANDAS_CI=1 1298s + LC_ALL=C.UTF-8 1298s + xvfb-run --auto-servernum '--server-args=-screen 0 1024x768x24' python3.12 -m pytest --tb=long -s -m 'not slow' --deb-data-root-dir=/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/indexing 1301s ============================= test session starts ============================== 1301s platform linux -- Python 3.12.4, pytest-7.4.4, pluggy-1.5.0 1301s rootdir: /usr/lib/python3/dist-packages/pandas/tests/indexing 1301s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 1301s asyncio: mode=Mode.STRICT 1301s collected 4376 items / 3 deselected / 4373 selected 1301s 1301s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/test_at.py ......................................... 1302s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/test_categorical.py ................................................................................................................. 1303s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/test_chaining_and_caching.py .............................. 1303s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/test_check_indexer.py ....................s.... 1304s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/test_coercion.py ..........xxxxxxx...............................................................xx........................................xxxx....x............................................................xxxxx..................xx...........ss........s......................................................................ss........s.....................................................................................................x 1304s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/test_datetime.py .........ss 1304s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/test_floats.py ............................................................................................................................................... 1304s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/test_iat.py ..... 1305s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/test_iloc.py .................................................................................................................................................................................................................. 1305s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/test_indexers.py ...... 1307s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/test_indexing.py ............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................ 1311s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/test_loc.py .............................................................................................................................x.........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................s..................................................................................................................................................................................................................................................................................................................................................................s................................... 1311s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/test_na_indexing.py .............................................................................................................................................................................................................................................................................. 1312s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/test_partial.py .................................... 1312s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/test_scalar.py ...................................... 1312s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/interval/test_interval.py .......................... 1312s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/interval/test_interval_new.py .................xxxx 1312s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/multiindex/test_chaining_and_caching.py . 1312s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/multiindex/test_datetime.py .. 1313s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/multiindex/test_getitem.py ............................................................................ 1313s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/multiindex/test_iloc.py ................ 1314s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/multiindex/test_indexing_slow.py .......... 1314s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/multiindex/test_loc.py ................................................................................................................................. 1314s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/multiindex/test_multiindex.py ............... 1315s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/multiindex/test_partial.py ............. 1315s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/multiindex/test_setitem.py ........................... 1315s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/multiindex/test_slice.py ............................. 1315s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/multiindex/test_sorted.py ......... 1315s 1315s =============================== warnings summary =============================== 1315s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/test_chaining_and_caching.py:203 1315s /usr/lib/python3/dist-packages/pandas/tests/indexing/test_chaining_and_caching.py:203: PytestUnknownMarkWarning: Unknown pytest.mark.arm_slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1315s @pytest.mark.arm_slow 1315s 1315s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/test_chaining_and_caching.py:225 1315s /usr/lib/python3/dist-packages/pandas/tests/indexing/test_chaining_and_caching.py:225: PytestUnknownMarkWarning: Unknown pytest.mark.arm_slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1315s @pytest.mark.arm_slow 1315s 1315s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/test_chaining_and_caching.py:262 1315s /usr/lib/python3/dist-packages/pandas/tests/indexing/test_chaining_and_caching.py:262: PytestUnknownMarkWarning: Unknown pytest.mark.arm_slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1315s @pytest.mark.arm_slow 1315s 1315s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/test_chaining_and_caching.py:279 1315s /usr/lib/python3/dist-packages/pandas/tests/indexing/test_chaining_and_caching.py:279: PytestUnknownMarkWarning: Unknown pytest.mark.arm_slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1315s @pytest.mark.arm_slow 1315s 1315s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/test_chaining_and_caching.py:299 1315s /usr/lib/python3/dist-packages/pandas/tests/indexing/test_chaining_and_caching.py:299: PytestUnknownMarkWarning: Unknown pytest.mark.arm_slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1315s @pytest.mark.arm_slow 1315s 1315s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/test_chaining_and_caching.py:327 1315s /usr/lib/python3/dist-packages/pandas/tests/indexing/test_chaining_and_caching.py:327: PytestUnknownMarkWarning: Unknown pytest.mark.arm_slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1315s @pytest.mark.arm_slow 1315s 1315s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/test_chaining_and_caching.py:339 1315s /usr/lib/python3/dist-packages/pandas/tests/indexing/test_chaining_and_caching.py:339: PytestUnknownMarkWarning: Unknown pytest.mark.arm_slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1315s @pytest.mark.arm_slow 1315s 1315s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/test_chaining_and_caching.py:359 1315s /usr/lib/python3/dist-packages/pandas/tests/indexing/test_chaining_and_caching.py:359: PytestUnknownMarkWarning: Unknown pytest.mark.arm_slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1315s @pytest.mark.arm_slow 1315s 1315s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/test_chaining_and_caching.py:369 1315s /usr/lib/python3/dist-packages/pandas/tests/indexing/test_chaining_and_caching.py:369: PytestUnknownMarkWarning: Unknown pytest.mark.arm_slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1315s @pytest.mark.arm_slow 1315s 1315s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/test_chaining_and_caching.py:388 1315s /usr/lib/python3/dist-packages/pandas/tests/indexing/test_chaining_and_caching.py:388: PytestUnknownMarkWarning: Unknown pytest.mark.arm_slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1315s @pytest.mark.arm_slow 1315s 1315s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/test_chaining_and_caching.py:394 1315s /usr/lib/python3/dist-packages/pandas/tests/indexing/test_chaining_and_caching.py:394: PytestUnknownMarkWarning: Unknown pytest.mark.arm_slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1315s @pytest.mark.arm_slow 1315s 1315s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/test_chaining_and_caching.py:401 1315s /usr/lib/python3/dist-packages/pandas/tests/indexing/test_chaining_and_caching.py:401: PytestUnknownMarkWarning: Unknown pytest.mark.arm_slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1315s @pytest.mark.arm_slow 1315s 1315s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/test_chaining_and_caching.py:409 1315s /usr/lib/python3/dist-packages/pandas/tests/indexing/test_chaining_and_caching.py:409: PytestUnknownMarkWarning: Unknown pytest.mark.arm_slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1315s @pytest.mark.arm_slow 1315s 1315s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/test_chaining_and_caching.py:424 1315s /usr/lib/python3/dist-packages/pandas/tests/indexing/test_chaining_and_caching.py:424: PytestUnknownMarkWarning: Unknown pytest.mark.arm_slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1315s @pytest.mark.arm_slow 1315s 1315s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/test_chaining_and_caching.py:425 1315s /usr/lib/python3/dist-packages/pandas/tests/indexing/test_chaining_and_caching.py:425: PytestUnknownMarkWarning: Unknown pytest.mark.arm_slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1315s @pytest.mark.arm_slow 1315s 1315s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/test_loc.py:1022 1315s /usr/lib/python3/dist-packages/pandas/tests/indexing/test_loc.py:1022: PytestUnknownMarkWarning: Unknown pytest.mark.arm_slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1315s @pytest.mark.arm_slow 1315s 1315s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/test_loc.py:1969 1315s /usr/lib/python3/dist-packages/pandas/tests/indexing/test_loc.py:1969: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1315s @pytest.mark.slow 1315s 1315s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/interval/test_interval.py:73 1315s /usr/lib/python3/dist-packages/pandas/tests/indexing/interval/test_interval.py:73: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1315s @pytest.mark.slow 1315s 1315s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/multiindex/test_chaining_and_caching.py:43 1315s /usr/lib/python3/dist-packages/pandas/tests/indexing/multiindex/test_chaining_and_caching.py:43: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1315s @pytest.mark.slow 1315s 1315s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451 1315s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/indexing/.pytest_cache/v/cache/nodeids: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/indexing/.pytest_cache' 1315s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 1315s 1315s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:56 1315s /usr/lib/python3/dist-packages/_pytest/stepwise.py:56: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/indexing/.pytest_cache/v/cache/stepwise: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/indexing/.pytest_cache' 1315s session.config.cache.set(STEPWISE_CACHE_DIR, []) 1315s 1315s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 1315s === 4335 passed, 11 skipped, 3 deselected, 27 xfailed, 21 warnings in 14.97s === 1316s + echo 'rdjoqkol test state = true' 1316s + for TEST_SUBSET in $modpath/tests/* 1316s rdjoqkol test state = true 1316s + echo /usr/lib/python3/dist-packages/pandas/tests/interchange 1316s + grep -q -e __pycache__ 1316s + PANDAS_CI=1 1316s + LC_ALL=C.UTF-8 1316s + xvfb-run --auto-servernum '--server-args=-screen 0 1024x768x24' python3.12 -m pytest --tb=long -s -m 'not slow' --deb-data-root-dir=/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/interchange 1317s ============================= test session starts ============================== 1317s platform linux -- Python 3.12.4, pytest-7.4.4, pluggy-1.5.0 1317s rootdir: /usr/lib/python3/dist-packages/pandas/tests/interchange 1317s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 1317s asyncio: mode=Mode.STRICT 1317s collected 101 items 1317s 1318s ../../../usr/lib/python3/dist-packages/pandas/tests/interchange/test_impl.py ..sssssssss..............sss........s. 1318s ../../../usr/lib/python3/dist-packages/pandas/tests/interchange/test_spec_conformance.py ................ 1318s ../../../usr/lib/python3/dist-packages/pandas/tests/interchange/test_utils.py ................sssssssssssssssssssssssssssssss 1318s 1318s =============================== warnings summary =============================== 1318s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451 1318s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/interchange/.pytest_cache/v/cache/nodeids: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/interchange/.pytest_cache' 1318s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 1318s 1318s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:56 1318s /usr/lib/python3/dist-packages/_pytest/stepwise.py:56: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/interchange/.pytest_cache/v/cache/stepwise: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/interchange/.pytest_cache' 1318s session.config.cache.set(STEPWISE_CACHE_DIR, []) 1318s 1318s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 1318s ================== 57 passed, 44 skipped, 2 warnings in 0.27s ================== 1318s rdjoqkol test state = true 1318s + echo 'rdjoqkol test state = true' 1318s + for TEST_SUBSET in $modpath/tests/* 1318s + echo /usr/lib/python3/dist-packages/pandas/tests/internals 1318s + grep -q -e __pycache__ 1318s + PANDAS_CI=1 1318s + LC_ALL=C.UTF-8 1318s + xvfb-run --auto-servernum '--server-args=-screen 0 1024x768x24' python3.12 -m pytest --tb=long -s -m 'not slow' --deb-data-root-dir=/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/internals 1320s ============================= test session starts ============================== 1320s platform linux -- Python 3.12.4, pytest-7.4.4, pluggy-1.5.0 1320s rootdir: /usr/lib/python3/dist-packages/pandas/tests/internals 1320s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 1320s asyncio: mode=Mode.STRICT 1320s collected 249 items 1320s 1320s ../../../usr/lib/python3/dist-packages/pandas/tests/internals/test_api.py ... 1321s ../../../usr/lib/python3/dist-packages/pandas/tests/internals/test_internals.py .................................................................................................................................................................................................................................................... 1321s ../../../usr/lib/python3/dist-packages/pandas/tests/internals/test_managers.py .. 1321s 1321s =============================== warnings summary =============================== 1321s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451 1321s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/internals/.pytest_cache/v/cache/nodeids: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/internals/.pytest_cache' 1321s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 1321s 1321s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:56 1321s /usr/lib/python3/dist-packages/_pytest/stepwise.py:56: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/internals/.pytest_cache/v/cache/stepwise: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/internals/.pytest_cache' 1321s session.config.cache.set(STEPWISE_CACHE_DIR, []) 1321s 1321s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 1321s ======================= 249 passed, 2 warnings in 1.47s ======================== 1321s rdjoqkol test state = true 1321s + echo 'rdjoqkol test state = true' 1321s + for TEST_SUBSET in $modpath/tests/* 1321s + echo /usr/lib/python3/dist-packages/pandas/tests/io 1321s + grep -q -e __pycache__ 1321s + PANDAS_CI=1 1321s + LC_ALL=C.UTF-8 1321s + xvfb-run --auto-servernum '--server-args=-screen 0 1024x768x24' python3.12 -m pytest --tb=long -s -m 'not slow' --deb-data-root-dir=/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/io 1331s ============================= test session starts ============================== 1331s platform linux -- Python 3.12.4, pytest-7.4.4, pluggy-1.5.0 1331s rootdir: /usr/lib/python3/dist-packages/pandas/tests/io 1331s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 1331s asyncio: mode=Mode.STRICT 1331s collected 13155 items / 142 deselected / 5 skipped / 13013 selected 1331s 1332s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_clipboard.py ........................................................................................................................................................................................................................................XXX..ssssss. 1333s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_common.py .......................................................s...ss.......sss......ss........ss.......s......................................... 1335s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_compression.py ........................................................................................................................................ 1335s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_fsspec.py .........ssssssssss.........ss 1335s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_gcs.py ssssssssssssssssss. 1344s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_html.py .........ssssss.................................................................................................................................s...................... 1344s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_parquet.py .ssss.ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss.ssssssss 1351s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_pickle.py .............................................................................................................. 1351s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_s3.py sss 1351s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_spss.py .......s. 1356s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py ssss....ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss....ssss....ssss....ssss....ssss....ssss....ssss....ssss...ssss....ssss...ssss...ssss...ssssssssssssss..................................................................................................................................ss..............x..............................ssssss................sss..ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss....................... 1365s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_stata.py ................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................. 1365s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_user_agent.py sssssssssssssssssssss 1365s ../../../usr/lib/python3/dist-packages/pandas/tests/io/excel/test_odf.py ... 1365s ../../../usr/lib/python3/dist-packages/pandas/tests/io/excel/test_odswriter.py .... 1365s ../../../usr/lib/python3/dist-packages/pandas/tests/io/excel/test_openpyxl.py .................................................. 1373s ../../../usr/lib/python3/dist-packages/pandas/tests/io/excel/test_readers.py s..ssss.s..ssss.s..ssss.s..ssss.s..ssss.ssssss............ssssssssssssssssssssssss......ss....ssssssss..s..ssss.s..ssss.s..ssss.s..ssss.s..ssss.s..ssss.ss....ssssssss..s..ssss.s..ssss.s..ssss.s..ssss.s..ssss.s..ssss.s..ssss.s..ssss.ss....ssssssss..s..ssss.sssssssss..ssss.ssssssssssssssssss....ssssssss..s..ssss.ssssssssssssss..s..ssss.s..ssss.s..ssss.s..ssss.s..ssss.s..ssss.sxxssss.s..ssss.s..ssss.s..ssss.ssssss............ssssssssssssssssssssssss......s..ssss.s..ssss.s..ssss.sssssssssssssssss..ssss.s..ssss.s..ssss.s..ssss.s..ssss.ss....ssssssss..s..ssss.s..ssss.s..ssss.s..ssss.s..ssss.s..ssss.s..ssss.s..ssss.ssssss............ssssssssssssssssssssssss......s..ssss.s..ssss.s..ssss.s..ssss.s..ssss.s..ssssss..ssssss..ssss.s..ssss.s..ssss.s..ssss.sss......ssssssssssss...s..ssss.s..ssss.ssssss............ssssssssssssssssssssssss......s..ssss.s..ssss.s..ssss.s..ssss.s..ssss.s..ssss.ss....ssssssss..s..ssss.s..ssss.s..ssssss..ssss. 1374s ../../../usr/lib/python3/dist-packages/pandas/tests/io/excel/test_style.py s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s..s 1377s ../../../usr/lib/python3/dist-packages/pandas/tests/io/excel/test_writers.py sss.sss.sss.sss.sss.sss.sss.sssxsss.sssxsss.sss.sss.sss.sss.sssxsss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.sss.s...ss... 1377s ../../../usr/lib/python3/dist-packages/pandas/tests/io/formats/test_console.py ........... 1377s ../../../usr/lib/python3/dist-packages/pandas/tests/io/formats/test_css.py ............................................................................................... 1377s ../../../usr/lib/python3/dist-packages/pandas/tests/io/formats/test_eng_formatting.py ...... 1379s ../../../usr/lib/python3/dist-packages/pandas/tests/io/formats/test_format.py ......................................................................................................................................................................................................................................s....................................... 1380s ../../../usr/lib/python3/dist-packages/pandas/tests/io/formats/test_info.py ........................x....x.s 1380s ../../../usr/lib/python3/dist-packages/pandas/tests/io/formats/test_printing.py .......ss..s................. 1380s ../../../usr/lib/python3/dist-packages/pandas/tests/io/formats/test_series_info.py ........x..... 1381s ../../../usr/lib/python3/dist-packages/pandas/tests/io/formats/test_to_csv.py ..........s................................................................................. 1382s ../../../usr/lib/python3/dist-packages/pandas/tests/io/formats/test_to_excel.py .......................................................................................................................................................................................................................................................................................................................................................................................................................... 1383s ../../../usr/lib/python3/dist-packages/pandas/tests/io/formats/test_to_html.py ............................................................................................................................................................................................................................................................................................................................................................................. 1383s ../../../usr/lib/python3/dist-packages/pandas/tests/io/formats/test_to_latex.py ........................................................................................... 1383s ../../../usr/lib/python3/dist-packages/pandas/tests/io/formats/test_to_string.py ............................................s 1384s ../../../usr/lib/python3/dist-packages/pandas/tests/io/formats/style/test_bar.py ....................................................................................................................... 1384s ../../../usr/lib/python3/dist-packages/pandas/tests/io/formats/style/test_exceptions.py ... 1384s ../../../usr/lib/python3/dist-packages/pandas/tests/io/formats/style/test_format.py ......................................................................................................... 1384s ../../../usr/lib/python3/dist-packages/pandas/tests/io/formats/style/test_highlight.py ................................................................................................ 1385s ../../../usr/lib/python3/dist-packages/pandas/tests/io/formats/style/test_html.py ........................................................................................... 1385s ../../../usr/lib/python3/dist-packages/pandas/tests/io/formats/style/test_matplotlib.py ........................................................... 1385s ../../../usr/lib/python3/dist-packages/pandas/tests/io/formats/style/test_non_unique.py ......... 1386s ../../../usr/lib/python3/dist-packages/pandas/tests/io/formats/style/test_style.py ................................................................................................................................................................................................. 1387s ../../../usr/lib/python3/dist-packages/pandas/tests/io/formats/style/test_to_latex.py ............................................................................................................................................................ 1387s ../../../usr/lib/python3/dist-packages/pandas/tests/io/formats/style/test_to_string.py ..... 1387s ../../../usr/lib/python3/dist-packages/pandas/tests/io/formats/style/test_tooltip.py .... 1387s ../../../usr/lib/python3/dist-packages/pandas/tests/io/json/test_compression.py ........sssssss............................................... 1387s ../../../usr/lib/python3/dist-packages/pandas/tests/io/json/test_deprecated_kwargs.py . 1388s ../../../usr/lib/python3/dist-packages/pandas/tests/io/json/test_json_table_schema.py ...........................................................................................x...x...x...x...x...x...x...x...x...x......x...x...x...x...x...x...x...x...x...x..................... 1389s ../../../usr/lib/python3/dist-packages/pandas/tests/io/json/test_json_table_schema_ext_dtype.py ..................... 1389s ../../../usr/lib/python3/dist-packages/pandas/tests/io/json/test_normalize.py ..................................................... 1393s ../../../usr/lib/python3/dist-packages/pandas/tests/io/json/test_pandas.py ...........................................................................................................xxxx................................xxx..............................ssssss................................................................................................................................s........xxxxxxxxxxxxxxxxxx................................................................xx.............s.....x........ssssssssssssssssssssssssssssssss...sssss 1393s ../../../usr/lib/python3/dist-packages/pandas/tests/io/json/test_readlines.py ..s.s.....ss.s.s.s.s......ssss....s..ss..ss.s.s........... 1394s ../../../usr/lib/python3/dist-packages/pandas/tests/io/json/test_ujson.py s........................................................................................................................s....s................................................................................... 1397s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/test_c_parser_only.py ..................................................ss.......................... 1397s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/test_comment.py ......ss.......x.sss...s...s...s..................ssssss......ssxx.s 1401s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/test_compression.py .........sss......ss...s...s.x.x.xss......ss.x.x.xss......ss.x.x.xss......ss.x.x.xss......ss.x.x.xss......ss.x.x.xss......ss..................ssssss......................................................ssssssssssssssssss.........sss...s...s...s 1401s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/test_concatenate_chunks.py ss 1401s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/test_converters.py ...s............ssss...s...s...s......ss...s...s 1401s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/test_dialect.py ...s...s...s......................................................ssssssssssssssssss..................ssssss 1402s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/test_encoding.py ...s...s..................ssssss...s...s...............sssss......................................................ssssssssssssssssss.........sss............................................................................................................ssssssssssssssssssssssssssssssssssss...s....................sssss...s...s......ss 1403s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/test_header.py ...s...s......ss......ss...s...s...s.........sss.........sss.........sss.........sss...s...s...s...s......ss......ss......ss......ss...s.........sss........................ssssssss...s...s...s...s...s...s...s...s...s 1403s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/test_index_col.py ......ss...s...s...s..............................ssssssssss...s...............sssss...s...s...s...s...s...s...s...s......ss...s 1403s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/test_mangle_dupes.py ...s...s...s.........sss.........sss...s...s...s......ss 1404s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/test_na_values.py ...s...s..........................................ssssssssssssss...s......ss...s...s.........sss............ssss...s...s...s......ss......ss...s......ss...s...s.........sss...s......ss...s......ss..................ssssss...s...s...s...s...s 1414s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/test_network.py ................ssss.....ssssssssssssssssss 1429s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/test_parse_dates.py ...s...s...s......ss..............ss...s...s...s...s......ss...s...s...s...s...sxxxxxxss......ss......ss......ss...s.........sss...s...s...s......ss.........sss............ssss......ss...s......ss......ss............ssss...s......ss...s......ss......ss...s...s...s............ssss...s..................ssssss.........sss......ss...................x...x............................................................sssssssss...s...s......ss...s...s......s......ss...s...s...s......ss...s...s...s 1429s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/test_python_parser_only.py ..................................................................................... 1429s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/test_quoting.py .........sss......ss...s..................ssssss............ssss...............sssss......ss......ss......ss 1430s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/test_read_fwf.py ..........................................................................sss.. 1430s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/test_skiprows.py ......ss...s...s.........sss...s.........sss........xsss...s......ss...s...s...s...s 1431s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/test_textreader.py ........................... 1431s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/test_unsupported.py ..........s...s..xs...s 1431s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/test_upcast.py ...........................ssss 1432s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/common/test_chunksize.py ......ss.........sss......ss...s...s......ss...s...s...s......ss...s...s...s 1433s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/common/test_common_basic.py ....s...s...s...ss..s...s......ss.........sss...s...s...s...s...s.........sss............ssss......ss...s...s......ss.........sss...s......ss...s.........sss...s...s......ss...s...s...............sssss...s...s...s......ss...s......ss......ss...s...s...s...s...s...s 1433s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/common/test_data_list.py ...s...s...s...s 1433s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/common/test_decimal.py ......ss...s 1435s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/common/test_file_buffer_url.py ...s...s...s...s...s.................................sssssssssss...s...s...s...s...s...s...s...s............ssss.....................sssssss...s...s...s...s 1435s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/common/test_float.py ...s.......s.....................sss....x.....x...ss 1435s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/common/test_index.py ......ss......ss...s............ssss...s...s...s...s...s...s...s 1435s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/common/test_inf.py ......ss......ss...s 1436s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/common/test_ints.py ...s............ssss...s......ss...s.........sss.........sss......ss......ss...s 1436s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/common/test_iterator.py ...s...s...s.........sss...s 1436s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/common/test_read_errors.py ...s...s...s.........sss...s..................ssssss...s...s...s...s...s..xsxx.s...s...s...s 1436s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/common/test_verbose.py ...s...s 1437s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/dtypes/test_categorical.py .........sss......ss...s...s...s...s...s...s........................ssssssss...s...s...s...s...s............ssss...s 1441s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/dtypes/test_dtypes_basic.py ............ssss...s...s...s...s................................................ssssssssssssssss...s...s.............................x.x.x...................................................................................................................................................................x.x.x.x.x.x.x.x.x.x.x.x.........................................................................................................................................................................................................................................................................................................................x.x.x.x.x.x.x.x.x.x.x.x...................................................................................................................................................................................................................s......ss...s...s........................ssssssss......ss...s...s...s...sssssssss...sssss...sssss...s 1441s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/dtypes/test_empty.py ...s...s...s...s...s...s...s...s........................ssssssss 1441s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/usecols/test_parse_dates.py ......ss...s...s...s............ssss 1441s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/usecols/test_strings.py ...s...s......ss......ss 1441s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/usecols/test_usecols_basic.py ...s......ss...s......ss...s...s...s......ss............ssss...s...s...s...s...s...s......ss...s...s......ss......ss......ss.....................sssssss......ss......ss...s...s...s 1444s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_append.py ....x................ 1445s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_categorical.py ..... 1445s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_compat.py .... 1445s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_complex.py ......... 1445s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_errors.py ................ 1453s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py ..........................................................................................................................................................................xxxxxxxxxxxxxxxxxxx.. 1453s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_keys.py .... 1453s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_put.py ...................... 1453s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_pytables_missing.py s 1454s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_read.py ....................s 1454s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_retain_attributes.py .. 1455s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_round_trip.py ..............................s 1460s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_select.py ...x.....x............... 1463s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py .............................x............... 1463s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_subclass.py .. 1463s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_time_series.py ... 1464s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_timezones.py ....................................................................... 1467s ../../../usr/lib/python3/dist-packages/pandas/tests/io/sas/test_byteswap.py .......... 1467s ../../../usr/lib/python3/dist-packages/pandas/tests/io/sas/test_sas.py ... 1467s ../../../usr/lib/python3/dist-packages/pandas/tests/io/sas/test_sas7bdat.py ....................... 1468s ../../../usr/lib/python3/dist-packages/pandas/tests/io/sas/test_xport.py ....... 1469s ../../../usr/lib/python3/dist-packages/pandas/tests/io/xml/test_to_xml.py ........................................................................s...............................................................ss 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/xml/test_xml.py ..............................xx........................................................s............................................................................s......s......s......s......s......s......s......s......s......s......s......s..s.sss.sss. 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/xml/test_xml_dtypes.py .............................................. 1474s 1474s =============================== warnings summary =============================== 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/conftest.py:102 1474s /usr/lib/python3/dist-packages/pandas/tests/io/parser/conftest.py:102: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s _pyarrow_parsers_only = [pytest.param(_pyarrowParser, marks=pytest.mark.single_cpu)] 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/conftest.py:166 1474s /usr/lib/python3/dist-packages/pandas/tests/io/parser/conftest.py:166: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s mark = pytest.mark.single_cpu if parser.engine == "pyarrow" else () 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_clipboard.py:235 1474s /usr/lib/python3/dist-packages/pandas/tests/io/test_clipboard.py:235: PytestUnknownMarkWarning: Unknown pytest.mark.clipboard - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.clipboard 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_clipboard.py:245 1474s /usr/lib/python3/dist-packages/pandas/tests/io/test_clipboard.py:245: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.single_cpu 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_clipboard.py:246 1474s /usr/lib/python3/dist-packages/pandas/tests/io/test_clipboard.py:246: PytestUnknownMarkWarning: Unknown pytest.mark.clipboard - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.clipboard 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_clipboard.py:404 1474s /usr/lib/python3/dist-packages/pandas/tests/io/test_clipboard.py:404: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.single_cpu 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_compression.py:205 1474s /usr/lib/python3/dist-packages/pandas/tests/io/test_compression.py:205: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.single_cpu 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_compression.py:219 1474s /usr/lib/python3/dist-packages/pandas/tests/io/test_compression.py:219: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.single_cpu 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_fsspec.py:192 1474s /usr/lib/python3/dist-packages/pandas/tests/io/test_fsspec.py:192: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.single_cpu 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_fsspec.py:216 1474s /usr/lib/python3/dist-packages/pandas/tests/io/test_fsspec.py:216: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.single_cpu 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_fsspec.py:229 1474s /usr/lib/python3/dist-packages/pandas/tests/io/test_fsspec.py:229: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.single_cpu 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_gcs.py:48 1474s /usr/lib/python3/dist-packages/pandas/tests/io/test_gcs.py:48: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.single_cpu 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_html.py:228 1474s /usr/lib/python3/dist-packages/pandas/tests/io/test_html.py:228: PytestUnknownMarkWarning: Unknown pytest.mark.network - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.network 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_html.py:229 1474s /usr/lib/python3/dist-packages/pandas/tests/io/test_html.py:229: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.single_cpu 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_html.py:246 1474s /usr/lib/python3/dist-packages/pandas/tests/io/test_html.py:246: PytestUnknownMarkWarning: Unknown pytest.mark.network - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.network 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_html.py:247 1474s /usr/lib/python3/dist-packages/pandas/tests/io/test_html.py:247: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.single_cpu 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_html.py:256 1474s /usr/lib/python3/dist-packages/pandas/tests/io/test_html.py:256: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.slow 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_html.py:388 1474s /usr/lib/python3/dist-packages/pandas/tests/io/test_html.py:388: PytestUnknownMarkWarning: Unknown pytest.mark.network - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.network 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_html.py:389 1474s /usr/lib/python3/dist-packages/pandas/tests/io/test_html.py:389: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.single_cpu 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_html.py:395 1474s /usr/lib/python3/dist-packages/pandas/tests/io/test_html.py:395: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.slow 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_html.py:396 1474s /usr/lib/python3/dist-packages/pandas/tests/io/test_html.py:396: PytestUnknownMarkWarning: Unknown pytest.mark.network - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.network 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_html.py:397 1474s /usr/lib/python3/dist-packages/pandas/tests/io/test_html.py:397: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.single_cpu 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_html.py:403 1474s /usr/lib/python3/dist-packages/pandas/tests/io/test_html.py:403: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.slow 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_html.py:413 1474s /usr/lib/python3/dist-packages/pandas/tests/io/test_html.py:413: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.slow 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_html.py:424 1474s /usr/lib/python3/dist-packages/pandas/tests/io/test_html.py:424: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.slow 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_html.py:429 1474s /usr/lib/python3/dist-packages/pandas/tests/io/test_html.py:429: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.slow 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_html.py:434 1474s /usr/lib/python3/dist-packages/pandas/tests/io/test_html.py:434: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.slow 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_html.py:440 1474s /usr/lib/python3/dist-packages/pandas/tests/io/test_html.py:440: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.slow 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_html.py:445 1474s /usr/lib/python3/dist-packages/pandas/tests/io/test_html.py:445: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.slow 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_html.py:450 1474s /usr/lib/python3/dist-packages/pandas/tests/io/test_html.py:450: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.slow 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_html.py:458 1474s /usr/lib/python3/dist-packages/pandas/tests/io/test_html.py:458: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.slow 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_html.py:524 1474s /usr/lib/python3/dist-packages/pandas/tests/io/test_html.py:524: PytestUnknownMarkWarning: Unknown pytest.mark.network - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.network 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_html.py:525 1474s /usr/lib/python3/dist-packages/pandas/tests/io/test_html.py:525: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.single_cpu 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_html.py:531 1474s /usr/lib/python3/dist-packages/pandas/tests/io/test_html.py:531: PytestUnknownMarkWarning: Unknown pytest.mark.network - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.network 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_html.py:532 1474s /usr/lib/python3/dist-packages/pandas/tests/io/test_html.py:532: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.single_cpu 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_html.py:719 1474s /usr/lib/python3/dist-packages/pandas/tests/io/test_html.py:719: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.slow 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_html.py:767 1474s /usr/lib/python3/dist-packages/pandas/tests/io/test_html.py:767: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.slow 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_html.py:1273 1474s /usr/lib/python3/dist-packages/pandas/tests/io/test_html.py:1273: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.slow 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_html.py:1450 1474s /usr/lib/python3/dist-packages/pandas/tests/io/test_html.py:1450: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.slow 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_html.py:1451 1474s /usr/lib/python3/dist-packages/pandas/tests/io/test_html.py:1451: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.single_cpu 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_parquet.py:378 1474s /usr/lib/python3/dist-packages/pandas/tests/io/test_parquet.py:378: PytestUnknownMarkWarning: Unknown pytest.mark.network - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.network 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_parquet.py:379 1474s /usr/lib/python3/dist-packages/pandas/tests/io/test_parquet.py:379: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.single_cpu 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_parquet.py:804 1474s /usr/lib/python3/dist-packages/pandas/tests/io/test_parquet.py:804: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.single_cpu 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_parquet.py:817 1474s /usr/lib/python3/dist-packages/pandas/tests/io/test_parquet.py:817: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.single_cpu 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_parquet.py:829 1474s /usr/lib/python3/dist-packages/pandas/tests/io/test_parquet.py:829: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.single_cpu 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_parquet.py:1232 1474s /usr/lib/python3/dist-packages/pandas/tests/io/test_parquet.py:1232: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.single_cpu 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_s3.py:20 1474s /usr/lib/python3/dist-packages/pandas/tests/io/test_s3.py:20: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.single_cpu 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_s3.py:32 1474s /usr/lib/python3/dist-packages/pandas/tests/io/test_s3.py:32: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.single_cpu 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:546 1474s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:546: PytestUnknownMarkWarning: Unknown pytest.mark.db - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.db 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:554 1474s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:554: PytestUnknownMarkWarning: Unknown pytest.mark.db - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.db 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:575 1474s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:575: PytestUnknownMarkWarning: Unknown pytest.mark.db - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.db 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:591 1474s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:591: PytestUnknownMarkWarning: Unknown pytest.mark.db - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.db 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:602 1474s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:602: PytestUnknownMarkWarning: Unknown pytest.mark.db - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.db 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:614 1474s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:614: PytestUnknownMarkWarning: Unknown pytest.mark.db - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.db 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:627 1474s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:627: PytestUnknownMarkWarning: Unknown pytest.mark.db - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.db 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:640 1474s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:640: PytestUnknownMarkWarning: Unknown pytest.mark.db - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.db 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:653 1474s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:653: PytestUnknownMarkWarning: Unknown pytest.mark.db - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.db 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:675 1474s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:675: PytestUnknownMarkWarning: Unknown pytest.mark.db - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.db 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:688 1474s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:688: PytestUnknownMarkWarning: Unknown pytest.mark.db - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.db 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:699 1474s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:699: PytestUnknownMarkWarning: Unknown pytest.mark.db - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.db 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:709 1474s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:709: PytestUnknownMarkWarning: Unknown pytest.mark.db - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.db 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:728 1474s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:728: PytestUnknownMarkWarning: Unknown pytest.mark.db - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.db 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:747 1474s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:747: PytestUnknownMarkWarning: Unknown pytest.mark.db - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.db 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:785 1474s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:785: PytestUnknownMarkWarning: Unknown pytest.mark.db - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.db 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:825 1474s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:825: PytestUnknownMarkWarning: Unknown pytest.mark.db - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.db 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:884 1474s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:884: PytestUnknownMarkWarning: Unknown pytest.mark.db - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.db 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:938 1474s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:938: PytestUnknownMarkWarning: Unknown pytest.mark.db - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.db 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:2991 1474s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:2991: PytestUnknownMarkWarning: Unknown pytest.mark.db - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.db 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:3027 1474s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:3027: PytestUnknownMarkWarning: Unknown pytest.mark.db - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.db 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_stata.py:1834 1474s /usr/lib/python3/dist-packages/pandas/tests/io/test_stata.py:1834: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.slow 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_user_agent.py:21 1474s /usr/lib/python3/dist-packages/pandas/tests/io/test_user_agent.py:21: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s pytest.mark.single_cpu, 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/excel/test_readers.py:878 1474s /usr/lib/python3/dist-packages/pandas/tests/io/excel/test_readers.py:878: PytestUnknownMarkWarning: Unknown pytest.mark.network - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.network 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/excel/test_readers.py:879 1474s /usr/lib/python3/dist-packages/pandas/tests/io/excel/test_readers.py:879: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.single_cpu 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/excel/test_readers.py:888 1474s /usr/lib/python3/dist-packages/pandas/tests/io/excel/test_readers.py:888: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.single_cpu 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/excel/test_readers.py:900 1474s /usr/lib/python3/dist-packages/pandas/tests/io/excel/test_readers.py:900: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.single_cpu 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/excel/test_readers.py:917 1474s /usr/lib/python3/dist-packages/pandas/tests/io/excel/test_readers.py:917: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.slow 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/excel/test_style.py:275 1474s /usr/lib/python3/dist-packages/pandas/tests/io/excel/test_style.py:275: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.single_cpu 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/formats/test_info.py:513 1474s /usr/lib/python3/dist-packages/pandas/tests/io/formats/test_info.py:513: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.single_cpu 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/json/test_compression.py:43 1474s /usr/lib/python3/dist-packages/pandas/tests/io/json/test_compression.py:43: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.single_cpu 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/json/test_pandas.py:1043 1474s /usr/lib/python3/dist-packages/pandas/tests/io/json/test_pandas.py:1043: PytestUnknownMarkWarning: Unknown pytest.mark.network - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.network 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/json/test_pandas.py:1044 1474s /usr/lib/python3/dist-packages/pandas/tests/io/json/test_pandas.py:1044: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.single_cpu 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/json/test_pandas.py:1309 1474s /usr/lib/python3/dist-packages/pandas/tests/io/json/test_pandas.py:1309: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.single_cpu 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/json/test_pandas.py:1882 1474s /usr/lib/python3/dist-packages/pandas/tests/io/json/test_pandas.py:1882: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.single_cpu 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/test_c_parser_only.py:155 1474s /usr/lib/python3/dist-packages/pandas/tests/io/parser/test_c_parser_only.py:155: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.slow 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/test_c_parser_only.py:295 1474s /usr/lib/python3/dist-packages/pandas/tests/io/parser/test_c_parser_only.py:295: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.slow 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/test_c_parser_only.py:549 1474s /usr/lib/python3/dist-packages/pandas/tests/io/parser/test_c_parser_only.py:549: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.single_cpu 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/test_index_col.py:234 1474s /usr/lib/python3/dist-packages/pandas/tests/io/parser/test_index_col.py:234: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.slow 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/test_multi_thread.py:25 1474s /usr/lib/python3/dist-packages/pandas/tests/io/parser/test_multi_thread.py:25: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s pytest.mark.single_cpu, 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/test_multi_thread.py:26 1474s /usr/lib/python3/dist-packages/pandas/tests/io/parser/test_multi_thread.py:26: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s pytest.mark.slow, 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/test_network.py:24 1474s /usr/lib/python3/dist-packages/pandas/tests/io/parser/test_network.py:24: PytestUnknownMarkWarning: Unknown pytest.mark.network - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.network 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/test_network.py:25 1474s /usr/lib/python3/dist-packages/pandas/tests/io/parser/test_network.py:25: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.single_cpu 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/test_network.py:55 1474s /usr/lib/python3/dist-packages/pandas/tests/io/parser/test_network.py:55: PytestUnknownMarkWarning: Unknown pytest.mark.network - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.network 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/test_network.py:56 1474s /usr/lib/python3/dist-packages/pandas/tests/io/parser/test_network.py:56: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.single_cpu 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/test_network.py:75 1474s /usr/lib/python3/dist-packages/pandas/tests/io/parser/test_network.py:75: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.single_cpu 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/test_network.py:274 1474s /usr/lib/python3/dist-packages/pandas/tests/io/parser/test_network.py:274: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.single_cpu 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/test_network.py:290 1474s /usr/lib/python3/dist-packages/pandas/tests/io/parser/test_network.py:290: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.single_cpu 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/test_read_fwf.py:1016 1474s /usr/lib/python3/dist-packages/pandas/tests/io/parser/test_read_fwf.py:1016: PytestUnknownMarkWarning: Unknown pytest.mark.network - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.network 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/test_read_fwf.py:1017 1474s /usr/lib/python3/dist-packages/pandas/tests/io/parser/test_read_fwf.py:1017: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.single_cpu 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/common/test_chunksize.py:165 1474s /usr/lib/python3/dist-packages/pandas/tests/io/parser/common/test_chunksize.py:165: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.slow 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/common/test_file_buffer_url.py:30 1474s /usr/lib/python3/dist-packages/pandas/tests/io/parser/common/test_file_buffer_url.py:30: PytestUnknownMarkWarning: Unknown pytest.mark.network - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.network 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/common/test_file_buffer_url.py:31 1474s /usr/lib/python3/dist-packages/pandas/tests/io/parser/common/test_file_buffer_url.py:31: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.single_cpu 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/common/test_file_buffer_url.py:46 1474s /usr/lib/python3/dist-packages/pandas/tests/io/parser/common/test_file_buffer_url.py:46: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.slow 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/dtypes/test_categorical.py:109 1474s /usr/lib/python3/dist-packages/pandas/tests/io/parser/dtypes/test_categorical.py:109: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.slow 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_append.py:29 1474s /usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_append.py:29: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s pytestmark = pytest.mark.single_cpu 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_categorical.py:17 1474s /usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_categorical.py:17: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s pytestmark = pytest.mark.single_cpu 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_errors.py:24 1474s /usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_errors.py:24: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s pytestmark = pytest.mark.single_cpu 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py:37 1474s /usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py:37: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s pytestmark = pytest.mark.single_cpu 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_keys.py:13 1474s /usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_keys.py:13: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s pytestmark = pytest.mark.single_cpu 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_put.py:25 1474s /usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_put.py:25: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s pytestmark = pytest.mark.single_cpu 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_read.py:28 1474s /usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_read.py:28: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s pytestmark = pytest.mark.single_cpu 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_retain_attributes.py:18 1474s /usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_retain_attributes.py:18: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s pytestmark = pytest.mark.single_cpu 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_round_trip.py:25 1474s /usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_round_trip.py:25: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s pytestmark = pytest.mark.single_cpu 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_select.py:27 1474s /usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_select.py:27: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s pytestmark = pytest.mark.single_cpu 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py:37 1474s /usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py:37: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s pytestmark = pytest.mark.single_cpu 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_time_series.py:13 1474s /usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_time_series.py:13: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s pytestmark = pytest.mark.single_cpu 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/sas/test_sas7bdat.py:42 1474s /usr/lib/python3/dist-packages/pandas/tests/io/sas/test_sas7bdat.py:42: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.slow 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/sas/test_sas7bdat.py:50 1474s /usr/lib/python3/dist-packages/pandas/tests/io/sas/test_sas7bdat.py:50: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.slow 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/sas/test_sas7bdat.py:64 1474s /usr/lib/python3/dist-packages/pandas/tests/io/sas/test_sas7bdat.py:64: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.slow 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/sas/test_sas7bdat.py:75 1474s /usr/lib/python3/dist-packages/pandas/tests/io/sas/test_sas7bdat.py:75: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.slow 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/sas/test_sas7bdat.py:84 1474s /usr/lib/python3/dist-packages/pandas/tests/io/sas/test_sas7bdat.py:84: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.slow 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/sas/test_sas7bdat.py:94 1474s /usr/lib/python3/dist-packages/pandas/tests/io/sas/test_sas7bdat.py:94: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.slow 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/sas/test_xport.py:42 1474s /usr/lib/python3/dist-packages/pandas/tests/io/sas/test_xport.py:42: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.slow 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/xml/test_to_xml.py:1364 1474s /usr/lib/python3/dist-packages/pandas/tests/io/xml/test_to_xml.py:1364: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.single_cpu 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/xml/test_xml.py:311 1474s /usr/lib/python3/dist-packages/pandas/tests/io/xml/test_xml.py:311: PytestUnknownMarkWarning: Unknown pytest.mark.network - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.network 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/xml/test_xml.py:312 1474s /usr/lib/python3/dist-packages/pandas/tests/io/xml/test_xml.py:312: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.single_cpu 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/xml/test_xml.py:505 1474s /usr/lib/python3/dist-packages/pandas/tests/io/xml/test_xml.py:505: PytestUnknownMarkWarning: Unknown pytest.mark.network - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.network 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/xml/test_xml.py:506 1474s /usr/lib/python3/dist-packages/pandas/tests/io/xml/test_xml.py:506: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.single_cpu 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/xml/test_xml.py:526 1474s /usr/lib/python3/dist-packages/pandas/tests/io/xml/test_xml.py:526: PytestUnknownMarkWarning: Unknown pytest.mark.network - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.network 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/xml/test_xml.py:527 1474s /usr/lib/python3/dist-packages/pandas/tests/io/xml/test_xml.py:527: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.single_cpu 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/xml/test_xml.py:1450 1474s /usr/lib/python3/dist-packages/pandas/tests/io/xml/test_xml.py:1450: PytestUnknownMarkWarning: Unknown pytest.mark.network - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.network 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/xml/test_xml.py:1451 1474s /usr/lib/python3/dist-packages/pandas/tests/io/xml/test_xml.py:1451: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.single_cpu 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/xml/test_xml.py:1993 1474s /usr/lib/python3/dist-packages/pandas/tests/io/xml/test_xml.py:1993: PytestUnknownMarkWarning: Unknown pytest.mark.network - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.network 1474s 1474s ../../../usr/lib/python3/dist-packages/pandas/tests/io/xml/test_xml.py:1994 1474s /usr/lib/python3/dist-packages/pandas/tests/io/xml/test_xml.py:1994: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1474s @pytest.mark.single_cpu 1474s 1474s test_common.py: 4 warnings 1474s pytables/test_append.py: 29 warnings 1474s pytables/test_categorical.py: 10 warnings 1474s pytables/test_compat.py: 4 warnings 1474s pytables/test_complex.py: 13 warnings 1474s pytables/test_errors.py: 16 warnings 1474s pytables/test_file_handling.py: 180 warnings 1474s pytables/test_keys.py: 4 warnings 1474s pytables/test_put.py: 25 warnings 1474s pytables/test_read.py: 28 warnings 1474s pytables/test_retain_attributes.py: 3 warnings 1474s pytables/test_round_trip.py: 79 warnings 1474s pytables/test_select.py: 47 warnings 1474s pytables/test_store.py: 60 warnings 1474s pytables/test_subclass.py: 3 warnings 1474s pytables/test_time_series.py: 3 warnings 1474s pytables/test_timezones.py: 75 warnings 1474s /usr/lib/python3/dist-packages/pandas/io/pytables.py:567: UserWarning: Non-x86 system detected, HDF(5) format I/O may give wrong results (particularly on files created with older versions) or crash - https://bugs.debian.org/877419 1474s warnings.warn(warn_hdf_platform) 1474s 1474s xml/test_xml.py::test_wrong_file_path[lxml] 1474s xml/test_xml.py::test_wrong_file_path[etree] 1474s /usr/lib/python3/dist-packages/pandas/tests/io/xml/test_xml.py:502: FutureWarning: Passing literal xml to 'read_xml' is deprecated and will be removed in a future version. To read from a literal string, wrap it in a 'StringIO' object. 1474s read_xml(filename, parser=parser) 1474s 1474s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451 1474s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/io/.pytest_cache/v/cache/nodeids: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/io/.pytest_cache' 1474s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 1474s 1474s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:56 1474s /usr/lib/python3/dist-packages/_pytest/stepwise.py:56: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/io/.pytest_cache/v/cache/stepwise: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/io/.pytest_cache' 1474s session.config.cache.set(STEPWISE_CACHE_DIR, []) 1474s 1474s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 1474s = 10187 passed, 2683 skipped, 142 deselected, 145 xfailed, 3 xpassed, 720 warnings in 151.30s (0:02:31) = 1476s rdjoqkol test state = true 1476s + echo 'rdjoqkol test state = true' 1476s + for TEST_SUBSET in $modpath/tests/* 1476s + echo /usr/lib/python3/dist-packages/pandas/tests/libs 1476s + grep -q -e __pycache__ 1476s + PANDAS_CI=1 1476s + LC_ALL=C.UTF-8 1476s + xvfb-run --auto-servernum '--server-args=-screen 0 1024x768x24' python3.12 -m pytest --tb=long -s -m 'not slow' --deb-data-root-dir=/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/libs 1478s ============================= test session starts ============================== 1478s platform linux -- Python 3.12.4, pytest-7.4.4, pluggy-1.5.0 1478s rootdir: /usr/lib/python3/dist-packages/pandas/tests/libs 1478s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 1478s asyncio: mode=Mode.STRICT 1478s collected 2257 items 1478s 1480s ../../../usr/lib/python3/dist-packages/pandas/tests/libs/test_hashtable.py ..............s.....................................................................s.............s.......................................................s.............s..................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... 1480s ../../../usr/lib/python3/dist-packages/pandas/tests/libs/test_join.py ................. 1480s ../../../usr/lib/python3/dist-packages/pandas/tests/libs/test_lib.py ..........................................................................ss...... 1480s 1480s =============================== warnings summary =============================== 1480s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451 1480s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/libs/.pytest_cache/v/cache/nodeids: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/libs/.pytest_cache' 1480s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 1480s 1480s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:56 1480s /usr/lib/python3/dist-packages/_pytest/stepwise.py:56: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/libs/.pytest_cache/v/cache/stepwise: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/libs/.pytest_cache' 1480s session.config.cache.set(STEPWISE_CACHE_DIR, []) 1480s 1480s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 1480s ================= 2250 passed, 7 skipped, 2 warnings in 2.58s ================== 1480s rdjoqkol test state = true 1480s + echo 'rdjoqkol test state = true' 1480s + for TEST_SUBSET in $modpath/tests/* 1480s + echo /usr/lib/python3/dist-packages/pandas/tests/plotting 1480s + grep -q -e __pycache__ 1480s + PANDAS_CI=1 1480s + LC_ALL=C.UTF-8 1480s + xvfb-run --auto-servernum '--server-args=-screen 0 1024x768x24' python3.12 -m pytest --tb=long -s -m 'not slow' --deb-data-root-dir=/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/plotting 1484s ============================= test session starts ============================== 1484s platform linux -- Python 3.12.4, pytest-7.4.4, pluggy-1.5.0 1484s rootdir: /usr/lib/python3/dist-packages/pandas/tests/plotting 1484s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 1484s asyncio: mode=Mode.STRICT 1484s collected 1350 items / 212 deselected / 1138 selected 1484s 1484s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_backend.py .....s. 1488s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_boxplot_method.py .................................................. 1488s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_common.py ... 1490s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_converter.py ............................................ 1518s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_datetimelike.py ...............................................................................................................x..........................................x......................x...............x..... 1519s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_groupby.py ................. 1526s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_hist_method.py ...........................x..x...................................................... 1533s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_misc.py s................................... 1541s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_series.py ...............................XXXX.............................x........................................................x......................... 1541s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_style.py ...................................... 1569s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py ..................................................XX................................................................................................................................x...................................................................................... 1576s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame_color.py ......................................................................................... 1577s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame_groupby.py ...... 1578s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame_legend.py x..................... 1586s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame_subplots.py .........x....................XX................................................................... 1587s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_hist_box_by.py ............................. 1587s 1587s =============================== warnings summary =============================== 1587s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_boxplot_method.py:60 1587s /usr/lib/python3/dist-packages/pandas/tests/plotting/test_boxplot_method.py:60: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1587s @pytest.mark.slow 1587s 1587s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_boxplot_method.py:390 1587s /usr/lib/python3/dist-packages/pandas/tests/plotting/test_boxplot_method.py:390: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1587s @pytest.mark.slow 1587s 1587s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_boxplot_method.py:402 1587s /usr/lib/python3/dist-packages/pandas/tests/plotting/test_boxplot_method.py:402: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1587s @pytest.mark.slow 1587s 1587s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_boxplot_method.py:458 1587s /usr/lib/python3/dist-packages/pandas/tests/plotting/test_boxplot_method.py:458: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1587s @pytest.mark.slow 1587s 1587s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_boxplot_method.py:469 1587s /usr/lib/python3/dist-packages/pandas/tests/plotting/test_boxplot_method.py:469: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1587s @pytest.mark.slow 1587s 1587s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_boxplot_method.py:476 1587s /usr/lib/python3/dist-packages/pandas/tests/plotting/test_boxplot_method.py:476: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1587s @pytest.mark.slow 1587s 1587s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_boxplot_method.py:489 1587s /usr/lib/python3/dist-packages/pandas/tests/plotting/test_boxplot_method.py:489: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1587s @pytest.mark.slow 1587s 1587s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_boxplot_method.py:505 1587s /usr/lib/python3/dist-packages/pandas/tests/plotting/test_boxplot_method.py:505: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1587s @pytest.mark.slow 1587s 1587s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_boxplot_method.py:513 1587s /usr/lib/python3/dist-packages/pandas/tests/plotting/test_boxplot_method.py:513: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1587s @pytest.mark.slow 1587s 1587s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_boxplot_method.py:524 1587s /usr/lib/python3/dist-packages/pandas/tests/plotting/test_boxplot_method.py:524: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1587s @pytest.mark.slow 1587s 1587s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_boxplot_method.py:531 1587s /usr/lib/python3/dist-packages/pandas/tests/plotting/test_boxplot_method.py:531: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1587s @pytest.mark.slow 1587s 1587s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_boxplot_method.py:547 1587s /usr/lib/python3/dist-packages/pandas/tests/plotting/test_boxplot_method.py:547: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1587s @pytest.mark.slow 1587s 1587s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_boxplot_method.py:562 1587s /usr/lib/python3/dist-packages/pandas/tests/plotting/test_boxplot_method.py:562: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1587s @pytest.mark.slow 1587s 1587s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_boxplot_method.py:570 1587s /usr/lib/python3/dist-packages/pandas/tests/plotting/test_boxplot_method.py:570: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1587s @pytest.mark.slow 1587s 1587s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_boxplot_method.py:583 1587s /usr/lib/python3/dist-packages/pandas/tests/plotting/test_boxplot_method.py:583: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1587s @pytest.mark.slow 1587s 1587s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_boxplot_method.py:592 1587s /usr/lib/python3/dist-packages/pandas/tests/plotting/test_boxplot_method.py:592: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1587s @pytest.mark.slow 1587s 1587s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_boxplot_method.py:603 1587s /usr/lib/python3/dist-packages/pandas/tests/plotting/test_boxplot_method.py:603: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1587s @pytest.mark.slow 1587s 1587s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_boxplot_method.py:618 1587s /usr/lib/python3/dist-packages/pandas/tests/plotting/test_boxplot_method.py:618: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1587s @pytest.mark.slow 1587s 1587s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_boxplot_method.py:645 1587s /usr/lib/python3/dist-packages/pandas/tests/plotting/test_boxplot_method.py:645: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1587s @pytest.mark.slow 1587s 1587s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_converter.py:46 1587s /usr/lib/python3/dist-packages/pandas/tests/plotting/test_converter.py:46: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1587s @pytest.mark.single_cpu 1587s 1587s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_converter.py:67 1587s /usr/lib/python3/dist-packages/pandas/tests/plotting/test_converter.py:67: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1587s @pytest.mark.single_cpu 1587s 1587s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_datetimelike.py:536 1587s /usr/lib/python3/dist-packages/pandas/tests/plotting/test_datetimelike.py:536: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1587s @pytest.mark.slow 1587s 1587s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_hist_method.py:86 1587s /usr/lib/python3/dist-packages/pandas/tests/plotting/test_hist_method.py:86: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1587s @pytest.mark.slow 1587s 1587s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_hist_method.py:252 1587s /usr/lib/python3/dist-packages/pandas/tests/plotting/test_hist_method.py:252: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1587s @pytest.mark.slow 1587s 1587s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_hist_method.py:257 1587s /usr/lib/python3/dist-packages/pandas/tests/plotting/test_hist_method.py:257: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1587s @pytest.mark.slow 1587s 1587s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_hist_method.py:276 1587s /usr/lib/python3/dist-packages/pandas/tests/plotting/test_hist_method.py:276: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1587s @pytest.mark.slow 1587s 1587s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_hist_method.py:281 1587s /usr/lib/python3/dist-packages/pandas/tests/plotting/test_hist_method.py:281: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1587s @pytest.mark.slow 1587s 1587s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_hist_method.py:297 1587s /usr/lib/python3/dist-packages/pandas/tests/plotting/test_hist_method.py:297: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1587s @pytest.mark.slow 1587s 1587s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_hist_method.py:317 1587s /usr/lib/python3/dist-packages/pandas/tests/plotting/test_hist_method.py:317: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1587s @pytest.mark.slow 1587s 1587s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_hist_method.py:326 1587s /usr/lib/python3/dist-packages/pandas/tests/plotting/test_hist_method.py:326: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1587s @pytest.mark.slow 1587s 1587s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_hist_method.py:336 1587s /usr/lib/python3/dist-packages/pandas/tests/plotting/test_hist_method.py:336: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1587s @pytest.mark.slow 1587s 1587s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_hist_method.py:343 1587s /usr/lib/python3/dist-packages/pandas/tests/plotting/test_hist_method.py:343: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1587s @pytest.mark.slow 1587s 1587s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_hist_method.py:816 1587s /usr/lib/python3/dist-packages/pandas/tests/plotting/test_hist_method.py:816: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1587s @pytest.mark.slow 1587s 1587s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_hist_method.py:845 1587s /usr/lib/python3/dist-packages/pandas/tests/plotting/test_hist_method.py:845: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1587s @pytest.mark.slow 1587s 1587s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_hist_method.py:854 1587s /usr/lib/python3/dist-packages/pandas/tests/plotting/test_hist_method.py:854: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1587s @pytest.mark.slow 1587s 1587s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_hist_method.py:864 1587s /usr/lib/python3/dist-packages/pandas/tests/plotting/test_hist_method.py:864: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1587s @pytest.mark.slow 1587s 1587s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_hist_method.py:873 1587s /usr/lib/python3/dist-packages/pandas/tests/plotting/test_hist_method.py:873: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1587s @pytest.mark.slow 1587s 1587s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_misc.py:150 1587s /usr/lib/python3/dist-packages/pandas/tests/plotting/test_misc.py:150: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1587s @pytest.mark.slow 1587s 1587s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_misc.py:159 1587s /usr/lib/python3/dist-packages/pandas/tests/plotting/test_misc.py:159: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1587s @pytest.mark.slow 1587s 1587s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_misc.py:193 1587s /usr/lib/python3/dist-packages/pandas/tests/plotting/test_misc.py:193: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1587s @pytest.mark.slow 1587s 1587s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_misc.py:219 1587s /usr/lib/python3/dist-packages/pandas/tests/plotting/test_misc.py:219: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1587s @pytest.mark.slow 1587s 1587s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_misc.py:229 1587s /usr/lib/python3/dist-packages/pandas/tests/plotting/test_misc.py:229: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1587s @pytest.mark.slow 1587s 1587s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_misc.py:244 1588s /usr/lib/python3/dist-packages/pandas/tests/plotting/test_misc.py:244: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1588s @pytest.mark.slow 1588s 1588s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_misc.py:258 1588s /usr/lib/python3/dist-packages/pandas/tests/plotting/test_misc.py:258: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1588s @pytest.mark.slow 1588s 1588s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_misc.py:273 1588s /usr/lib/python3/dist-packages/pandas/tests/plotting/test_misc.py:273: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1588s @pytest.mark.slow 1588s 1588s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_series.py:54 1588s /usr/lib/python3/dist-packages/pandas/tests/plotting/test_series.py:54: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1588s @pytest.mark.slow 1588s 1588s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_series.py:59 1588s /usr/lib/python3/dist-packages/pandas/tests/plotting/test_series.py:59: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1588s @pytest.mark.slow 1588s 1588s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_series.py:64 1588s /usr/lib/python3/dist-packages/pandas/tests/plotting/test_series.py:64: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1588s @pytest.mark.slow 1588s 1588s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_series.py:77 1588s /usr/lib/python3/dist-packages/pandas/tests/plotting/test_series.py:77: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1588s @pytest.mark.slow 1588s 1588s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_series.py:81 1588s /usr/lib/python3/dist-packages/pandas/tests/plotting/test_series.py:81: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1588s @pytest.mark.slow 1588s 1588s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_series.py:679 1588s /usr/lib/python3/dist-packages/pandas/tests/plotting/test_series.py:679: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1588s @pytest.mark.slow 1588s 1588s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_series.py:698 1588s /usr/lib/python3/dist-packages/pandas/tests/plotting/test_series.py:698: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1588s @pytest.mark.slow 1588s 1588s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_series.py:705 1588s /usr/lib/python3/dist-packages/pandas/tests/plotting/test_series.py:705: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1588s @pytest.mark.slow 1588s 1588s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_series.py:725 1588s /usr/lib/python3/dist-packages/pandas/tests/plotting/test_series.py:725: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1588s @pytest.mark.slow 1588s 1588s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_series.py:732 1588s /usr/lib/python3/dist-packages/pandas/tests/plotting/test_series.py:732: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1588s @pytest.mark.slow 1588s 1588s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_series.py:739 1588s /usr/lib/python3/dist-packages/pandas/tests/plotting/test_series.py:739: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1588s @pytest.mark.slow 1588s 1588s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_series.py:743 1588s /usr/lib/python3/dist-packages/pandas/tests/plotting/test_series.py:743: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1588s @pytest.mark.slow 1588s 1588s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_series.py:747 1588s /usr/lib/python3/dist-packages/pandas/tests/plotting/test_series.py:747: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1588s @pytest.mark.slow 1588s 1588s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_series.py:977 1588s /usr/lib/python3/dist-packages/pandas/tests/plotting/test_series.py:977: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1588s @pytest.mark.slow 1588s 1588s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:51 1588s /usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:51: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1588s @pytest.mark.slow 1588s 1588s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:56 1588s /usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:56: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1588s @pytest.mark.slow 1588s 1588s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:63 1588s /usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:63: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1588s @pytest.mark.slow 1588s 1588s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:74 1588s /usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:74: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1588s @pytest.mark.slow 1588s 1588s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:87 1588s /usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:87: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1588s @pytest.mark.slow 1588s 1588s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:94 1588s /usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:94: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1588s @pytest.mark.slow 1588s 1588s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:104 1588s /usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:104: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1588s @pytest.mark.slow 1588s 1588s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:121 1588s /usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:121: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1588s @pytest.mark.slow 1588s 1588s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:145 1588s /usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:145: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1588s @pytest.mark.slow 1588s 1588s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:153 1588s /usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:153: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1588s @pytest.mark.slow 1588s 1588s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:163 1588s /usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:163: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1588s @pytest.mark.slow 1588s 1588s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:189 1588s /usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:189: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1588s @pytest.mark.slow 1588s 1588s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:198 1588s /usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:198: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1588s @pytest.mark.slow 1588s 1588s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:236 1588s /usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:236: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1588s @pytest.mark.slow 1588s 1588s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:245 1588s /usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:245: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1588s @pytest.mark.slow 1588s 1588s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:925 1588s /usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:925: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1588s @pytest.mark.slow 1588s 1588s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:944 1588s /usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:944: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1588s @pytest.mark.slow 1588s 1588s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:953 1588s /usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:953: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1588s @pytest.mark.slow 1588s 1588s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:962 1588s /usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:962: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1588s @pytest.mark.slow 1588s 1588s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:1611 1588s /usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:1611: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1588s @pytest.mark.slow 1588s 1588s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:1630 1588s /usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:1630: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1588s @pytest.mark.slow 1588s 1588s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:1641 1588s /usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:1641: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1588s @pytest.mark.slow 1588s 1588s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:1652 1588s /usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:1652: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1588s @pytest.mark.slow 1588s 1588s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:1665 1588s /usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:1665: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1588s @pytest.mark.slow 1588s 1588s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:1672 1588s /usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:1672: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1588s @pytest.mark.slow 1588s 1588s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:1680 1588s /usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:1680: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1588s @pytest.mark.slow 1588s 1588s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:1695 1588s /usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:1695: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1588s @pytest.mark.slow 1588s 1588s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:1713 1588s /usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:1713: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1588s @pytest.mark.slow 1588s 1588s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:1746 1588s /usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:1746: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1588s @pytest.mark.slow 1588s 1588s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:1756 1588s /usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:1756: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1588s @pytest.mark.slow 1588s 1588s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:1768 1588s /usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:1768: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1588s @pytest.mark.slow 1588s 1588s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:2490 1588s /usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:2490: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1588s @pytest.mark.slow 1588s 1588s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame_subplots.py:35 1588s /usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame_subplots.py:35: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1588s @pytest.mark.slow 1588s 1588s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame_subplots.py:65 1588s /usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame_subplots.py:65: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1588s @pytest.mark.slow 1588s 1588s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame_subplots.py:80 1588s /usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame_subplots.py:80: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1588s @pytest.mark.slow 1588s 1588s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame_subplots.py:280 1588s /usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame_subplots.py:280: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1588s @pytest.mark.slow 1588s 1588s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_hist_box_by.py:29 1588s /usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_hist_box_by.py:29: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1588s @pytest.mark.slow 1588s 1588s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_hist_box_by.py:129 1588s /usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_hist_box_by.py:129: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1588s @pytest.mark.slow 1588s 1588s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_hist_box_by.py:169 1588s /usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_hist_box_by.py:169: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1588s @pytest.mark.slow 1588s 1588s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_hist_box_by.py:186 1588s /usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_hist_box_by.py:186: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1588s @pytest.mark.slow 1588s 1588s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_hist_box_by.py:305 1588s /usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_hist_box_by.py:305: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1588s @pytest.mark.slow 1588s 1588s test_datetimelike.py: 33202 warnings 1588s /usr/lib/python3/dist-packages/pandas/tests/plotting/test_datetimelike.py:1648: DeprecationWarning: Pickle, copy, and deepcopy support will be removed from itertools in Python 3.14. 1588s pickle.dump(fig, path) 1588s 1588s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451 1588s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/plotting/.pytest_cache/v/cache/nodeids: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/plotting/.pytest_cache' 1588s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 1588s 1588s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:56 1588s /usr/lib/python3/dist-packages/_pytest/stepwise.py:56: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/plotting/.pytest_cache/v/cache/stepwise: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/plotting/.pytest_cache' 1588s session.config.cache.set(STEPWISE_CACHE_DIR, []) 1588s 1588s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 1588s = 1117 passed, 2 skipped, 212 deselected, 11 xfailed, 8 xpassed, 33304 warnings in 105.29s (0:01:45) = 1588s rdjoqkol test state = true 1588s + echo 'rdjoqkol test state = true' 1588s + for TEST_SUBSET in $modpath/tests/* 1588s + echo /usr/lib/python3/dist-packages/pandas/tests/reductions 1588s + grep -q -e __pycache__ 1589s + PANDAS_CI=1 1589s + LC_ALL=C.UTF-8 1589s + xvfb-run --auto-servernum '--server-args=-screen 0 1024x768x24' python3.12 -m pytest --tb=long -s -m 'not slow' --deb-data-root-dir=/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/reductions 1590s ============================= test session starts ============================== 1590s platform linux -- Python 3.12.4, pytest-7.4.4, pluggy-1.5.0 1590s rootdir: /usr/lib/python3/dist-packages/pandas/tests/reductions 1590s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 1590s asyncio: mode=Mode.STRICT 1590s collected 539 items 1590s 1592s ../../../usr/lib/python3/dist-packages/pandas/tests/reductions/test_reductions.py ..................................................................................................................................................................................................................................................................................................................................s............................................................................................................................... 1592s ../../../usr/lib/python3/dist-packages/pandas/tests/reductions/test_stat_reductions.py ......................................................................................... 1592s 1592s =============================== warnings summary =============================== 1592s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451 1592s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/reductions/.pytest_cache/v/cache/nodeids: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/reductions/.pytest_cache' 1592s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 1592s 1592s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:56 1592s /usr/lib/python3/dist-packages/_pytest/stepwise.py:56: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/reductions/.pytest_cache/v/cache/stepwise: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/reductions/.pytest_cache' 1592s session.config.cache.set(STEPWISE_CACHE_DIR, []) 1592s 1592s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 1592s ================== 538 passed, 1 skipped, 2 warnings in 1.86s ================== 1592s rdjoqkol test state = true 1592s + echo 'rdjoqkol test state = true' 1592s + for TEST_SUBSET in $modpath/tests/* 1592s + echo /usr/lib/python3/dist-packages/pandas/tests/resample 1592s + grep -q -e __pycache__ 1592s + PANDAS_CI=1 1592s + LC_ALL=C.UTF-8 1592s + xvfb-run --auto-servernum '--server-args=-screen 0 1024x768x24' python3.12 -m pytest --tb=long -s -m 'not slow' --deb-data-root-dir=/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/resample 1595s ============================= test session starts ============================== 1595s platform linux -- Python 3.12.4, pytest-7.4.4, pluggy-1.5.0 1595s rootdir: /usr/lib/python3/dist-packages/pandas/tests/resample 1595s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 1595s asyncio: mode=Mode.STRICT 1595s collected 3869 items 1595s 1604s ../../../usr/lib/python3/dist-packages/pandas/tests/resample/test_base.py ..............................................................................................................................................................xxx......xxx......xxx......xxx......xxx......xxx......xxx......xxx......xxx......xxx......xxx......xxx......xxx......xxx......xxx......xxx......................................................................................................................................................................................................................................................................................................................................................................................................... 1662s ../../../usr/lib/python3/dist-packages/pandas/tests/resample/test_datetime_index.py ................................................................................ssss.....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................x...................................................................................................................................................................................................................................................................................................................... 1674s ../../../usr/lib/python3/dist-packages/pandas/tests/resample/test_period_index.py ...................................................................................................................................................................................................................................................................................................................................................................x............................................. 1675s ../../../usr/lib/python3/dist-packages/pandas/tests/resample/test_resample_api.py ................................................................................................................... 1676s ../../../usr/lib/python3/dist-packages/pandas/tests/resample/test_resampler_grouper.py s................................................ 1676s ../../../usr/lib/python3/dist-packages/pandas/tests/resample/test_time_grouper.py .........................x...................... 1676s ../../../usr/lib/python3/dist-packages/pandas/tests/resample/test_timedelta.py ....................... 1676s 1676s =============================== warnings summary =============================== 1676s test_period_index.py::TestPeriodIndex::test_monthly_convention_span 1676s /usr/lib/python3/dist-packages/pandas/tests/resample/test_period_index.py:636: FutureWarning: Series.fillna with 'method' is deprecated and will raise in a future version. Use obj.ffill() or obj.bfill() instead. 1676s expected = expected.fillna(method="bfill") 1676s 1676s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451 1676s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/resample/.pytest_cache/v/cache/nodeids: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/resample/.pytest_cache' 1676s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 1676s 1676s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:56 1676s /usr/lib/python3/dist-packages/_pytest/stepwise.py:56: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/resample/.pytest_cache/v/cache/stepwise: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/resample/.pytest_cache' 1676s session.config.cache.set(STEPWISE_CACHE_DIR, []) 1676s 1676s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 1676s ====== 3813 passed, 5 skipped, 51 xfailed, 3 warnings in 82.15s (0:01:22) ====== 1677s rdjoqkol test state = true 1677s + echo 'rdjoqkol test state = true' 1677s + for TEST_SUBSET in $modpath/tests/* 1677s + echo /usr/lib/python3/dist-packages/pandas/tests/reshape 1677s + grep -q -e __pycache__ 1677s + PANDAS_CI=1 1677s + LC_ALL=C.UTF-8 1677s + xvfb-run --auto-servernum '--server-args=-screen 0 1024x768x24' python3.12 -m pytest --tb=long -s -m 'not slow' --deb-data-root-dir=/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/reshape 1680s ============================= test session starts ============================== 1680s platform linux -- Python 3.12.4, pytest-7.4.4, pluggy-1.5.0 1680s rootdir: /usr/lib/python3/dist-packages/pandas/tests/reshape 1680s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 1680s asyncio: mode=Mode.STRICT 1680s collected 2582 items / 1 deselected / 2581 selected 1680s 1681s ../../../usr/lib/python3/dist-packages/pandas/tests/reshape/test_crosstab.py ..................................... 1681s ../../../usr/lib/python3/dist-packages/pandas/tests/reshape/test_cut.py ............................................................................................................ 1681s ../../../usr/lib/python3/dist-packages/pandas/tests/reshape/test_from_dummies.py ......................................... 1682s ../../../usr/lib/python3/dist-packages/pandas/tests/reshape/test_get_dummies.py ................................................................................................................................................... 1683s ../../../usr/lib/python3/dist-packages/pandas/tests/reshape/test_melt.py ...................................................... 1689s ../../../usr/lib/python3/dist-packages/pandas/tests/reshape/test_pivot.py .....................................................................xx....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... 1689s ../../../usr/lib/python3/dist-packages/pandas/tests/reshape/test_pivot_multilevel.py .......... 1689s ../../../usr/lib/python3/dist-packages/pandas/tests/reshape/test_qcut.py .......................................................................... 1689s ../../../usr/lib/python3/dist-packages/pandas/tests/reshape/test_union_categoricals.py .......................................... 1689s ../../../usr/lib/python3/dist-packages/pandas/tests/reshape/test_util.py ................. 1689s ../../../usr/lib/python3/dist-packages/pandas/tests/reshape/concat/test_append.py .................................................................................. 1690s ../../../usr/lib/python3/dist-packages/pandas/tests/reshape/concat/test_append_common.py ...........................sssssssss....................................................... 1690s ../../../usr/lib/python3/dist-packages/pandas/tests/reshape/concat/test_categorical.py ............. 1690s ../../../usr/lib/python3/dist-packages/pandas/tests/reshape/concat/test_concat.py ........................................................................................... 1692s ../../../usr/lib/python3/dist-packages/pandas/tests/reshape/concat/test_dataframe.py ..................... 1692s ../../../usr/lib/python3/dist-packages/pandas/tests/reshape/concat/test_datetimes.py ................................x....... 1692s ../../../usr/lib/python3/dist-packages/pandas/tests/reshape/concat/test_empty.py .....................s.....s.....s.....s.....s.......... 1692s ../../../usr/lib/python3/dist-packages/pandas/tests/reshape/concat/test_index.py ............................................................. 1692s ../../../usr/lib/python3/dist-packages/pandas/tests/reshape/concat/test_invalid.py .... 1692s ../../../usr/lib/python3/dist-packages/pandas/tests/reshape/concat/test_series.py ............. 1692s ../../../usr/lib/python3/dist-packages/pandas/tests/reshape/concat/test_sort.py .......... 1693s ../../../usr/lib/python3/dist-packages/pandas/tests/reshape/merge/test_join.py ....................................................................... 1696s ../../../usr/lib/python3/dist-packages/pandas/tests/reshape/merge/test_merge.py ..............................................................................................................................................................................................................................................................................................................................................................................................................................ssssssss..............................................................................................................................................................................................................................ss..........ssss 1697s ../../../usr/lib/python3/dist-packages/pandas/tests/reshape/merge/test_merge_asof.py .s................................................................................................s.....................s.................ss. 1697s ../../../usr/lib/python3/dist-packages/pandas/tests/reshape/merge/test_merge_cross.py ................. 1698s ../../../usr/lib/python3/dist-packages/pandas/tests/reshape/merge/test_merge_index_as_string.py ................................................................................ 1698s ../../../usr/lib/python3/dist-packages/pandas/tests/reshape/merge/test_merge_ordered.py .................. 1699s ../../../usr/lib/python3/dist-packages/pandas/tests/reshape/merge/test_multi.py ........................................ 1699s 1699s =============================== warnings summary =============================== 1699s ../../../usr/lib/python3/dist-packages/pandas/tests/reshape/test_pivot.py:2062 1699s /usr/lib/python3/dist-packages/pandas/tests/reshape/test_pivot.py:2062: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1699s @pytest.mark.slow 1699s 1699s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451 1699s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/reshape/.pytest_cache/v/cache/nodeids: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/reshape/.pytest_cache' 1699s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 1699s 1699s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:56 1699s /usr/lib/python3/dist-packages/_pytest/stepwise.py:56: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/reshape/.pytest_cache/v/cache/stepwise: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/reshape/.pytest_cache' 1699s session.config.cache.set(STEPWISE_CACHE_DIR, []) 1699s 1699s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 1699s ==== 2545 passed, 33 skipped, 1 deselected, 3 xfailed, 3 warnings in 20.34s ==== 1699s rdjoqkol test state = true 1699s + echo 'rdjoqkol test state = true' 1699s + for TEST_SUBSET in $modpath/tests/* 1699s + echo /usr/lib/python3/dist-packages/pandas/tests/scalar 1699s + grep -q -e __pycache__ 1699s + PANDAS_CI=1 1699s + LC_ALL=C.UTF-8 1699s + xvfb-run --auto-servernum '--server-args=-screen 0 1024x768x24' python3.12 -m pytest --tb=long -s -m 'not slow' --deb-data-root-dir=/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/scalar 1704s ============================= test session starts ============================== 1704s platform linux -- Python 3.12.4, pytest-7.4.4, pluggy-1.5.0 1704s rootdir: /usr/lib/python3/dist-packages/pandas/tests/scalar 1704s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 1704s asyncio: mode=Mode.STRICT 1704s collected 4311 items 1704s 1704s ../../../usr/lib/python3/dist-packages/pandas/tests/scalar/test_na_scalar.py .....................................................................................ss.....ss.....ss................................................................................................................................................................................ 1704s ../../../usr/lib/python3/dist-packages/pandas/tests/scalar/test_nat.py .....................................................................................................................s............s............................................................................................................................................................................................................................ 1704s ../../../usr/lib/python3/dist-packages/pandas/tests/scalar/interval/test_arithmetic.py ..................... 1704s ../../../usr/lib/python3/dist-packages/pandas/tests/scalar/interval/test_interval.py .............................................................................. 1704s ../../../usr/lib/python3/dist-packages/pandas/tests/scalar/interval/test_ops.py ................................................................................................................................................................................ 1705s ../../../usr/lib/python3/dist-packages/pandas/tests/scalar/period/test_asfreq.py ....................... 1705s ../../../usr/lib/python3/dist-packages/pandas/tests/scalar/period/test_period.py ...................................................................................................................................................................................................................................................................................................................................................................................................... 1705s ../../../usr/lib/python3/dist-packages/pandas/tests/scalar/timedelta/test_arithmetic.py ................................................................................................................................ 1706s ../../../usr/lib/python3/dist-packages/pandas/tests/scalar/timedelta/test_constructors.py ................................................................................................................................. 1706s ../../../usr/lib/python3/dist-packages/pandas/tests/scalar/timedelta/test_formats.py .......... 1707s ../../../usr/lib/python3/dist-packages/pandas/tests/scalar/timedelta/test_timedelta.py ......................................................................................................................................................................................................................................................................x............ 1707s ../../../usr/lib/python3/dist-packages/pandas/tests/scalar/timestamp/test_arithmetic.py ....................................................................................................... 1707s ../../../usr/lib/python3/dist-packages/pandas/tests/scalar/timestamp/test_comparisons.py .............................. 1707s ../../../usr/lib/python3/dist-packages/pandas/tests/scalar/timestamp/test_constructors.py ....................xxx..................................................................................... 1708s ../../../usr/lib/python3/dist-packages/pandas/tests/scalar/timestamp/test_formats.py .................... 1708s ../../../usr/lib/python3/dist-packages/pandas/tests/scalar/timestamp/test_rendering.py .................................................... 1711s ../../../usr/lib/python3/dist-packages/pandas/tests/scalar/timestamp/test_timestamp.py .......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................ss.......................................................................................x........................................................................................................................................................................................................................................................................................................................................... 1711s ../../../usr/lib/python3/dist-packages/pandas/tests/scalar/timestamp/test_timezones.py ........................................................................................................................................................................................................................................................................................................... 1712s ../../../usr/lib/python3/dist-packages/pandas/tests/scalar/timestamp/test_unary_ops.py ..................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... 1712s 1712s =============================== warnings summary =============================== 1712s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451 1712s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/scalar/.pytest_cache/v/cache/nodeids: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/scalar/.pytest_cache' 1712s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 1712s 1712s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:56 1712s /usr/lib/python3/dist-packages/_pytest/stepwise.py:56: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/scalar/.pytest_cache/v/cache/stepwise: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/scalar/.pytest_cache' 1712s session.config.cache.set(STEPWISE_CACHE_DIR, []) 1712s 1712s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 1712s =========== 4296 passed, 10 skipped, 5 xfailed, 2 warnings in 11.62s =========== 1713s + echo 'rdjoqkol test state = true' 1713s + for TEST_SUBSET in $modpath/tests/* 1713s rdjoqkol test state = true 1713s + echo /usr/lib/python3/dist-packages/pandas/tests/series 1713s + grep -q -e __pycache__ 1713s + PANDAS_CI=1 1713s + LC_ALL=C.UTF-8 1713s + xvfb-run --auto-servernum '--server-args=-screen 0 1024x768x24' python3.12 -m pytest --tb=long -s -m 'not slow' --deb-data-root-dir=/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/series 1718s ============================= test session starts ============================== 1718s platform linux -- Python 3.12.4, pytest-7.4.4, pluggy-1.5.0 1718s rootdir: /usr/lib/python3/dist-packages/pandas/tests/series 1718s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 1718s asyncio: mode=Mode.STRICT 1718s collected 12568 items / 1 deselected / 12567 selected 1718s 1719s ../../../usr/lib/python3/dist-packages/pandas/tests/series/test_api.py ............................................................................................................................................................................................ 1727s ../../../usr/lib/python3/dist-packages/pandas/tests/series/test_arithmetic.py ....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................x...............................x............. 1728s ../../../usr/lib/python3/dist-packages/pandas/tests/series/test_constructors.py .....................................................................................................................................................................................................................................x.........x............................................................................................s.................................xx.................................................sssssss.s................... 1728s ../../../usr/lib/python3/dist-packages/pandas/tests/series/test_cumulative.py ....................................... 1728s ../../../usr/lib/python3/dist-packages/pandas/tests/series/test_iteration.py ....... 1728s ../../../usr/lib/python3/dist-packages/pandas/tests/series/test_logical_ops.py ..........................x 1729s ../../../usr/lib/python3/dist-packages/pandas/tests/series/test_missing.py ...x.. 1729s ../../../usr/lib/python3/dist-packages/pandas/tests/series/test_npfuncs.py .... 1729s ../../../usr/lib/python3/dist-packages/pandas/tests/series/test_reductions.py ....s............... 1729s ../../../usr/lib/python3/dist-packages/pandas/tests/series/test_repr.py ................................................... 1729s ../../../usr/lib/python3/dist-packages/pandas/tests/series/test_subclass.py ......... 1730s ../../../usr/lib/python3/dist-packages/pandas/tests/series/test_ufunc.py .....................................................................xxxx........................................................................................................................................ 1730s ../../../usr/lib/python3/dist-packages/pandas/tests/series/test_unary.py .......................... 1730s ../../../usr/lib/python3/dist-packages/pandas/tests/series/test_validate.py ............................ 1730s ../../../usr/lib/python3/dist-packages/pandas/tests/series/accessors/test_cat_accessor.py ................... 1738s ../../../usr/lib/python3/dist-packages/pandas/tests/series/accessors/test_dt_accessor.py ....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... 1738s ../../../usr/lib/python3/dist-packages/pandas/tests/series/accessors/test_sparse_accessor.py . 1738s ../../../usr/lib/python3/dist-packages/pandas/tests/series/accessors/test_str_accessor.py .. 1738s ../../../usr/lib/python3/dist-packages/pandas/tests/series/indexing/test_datetime.py ................. 1738s ../../../usr/lib/python3/dist-packages/pandas/tests/series/indexing/test_delitem.py .... 1738s ../../../usr/lib/python3/dist-packages/pandas/tests/series/indexing/test_get.py ............ 1738s ../../../usr/lib/python3/dist-packages/pandas/tests/series/indexing/test_getitem.py .............................................................................................. 1753s ../../../usr/lib/python3/dist-packages/pandas/tests/series/indexing/test_indexing.py ............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................. 1753s ../../../usr/lib/python3/dist-packages/pandas/tests/series/indexing/test_mask.py .... 1753s ../../../usr/lib/python3/dist-packages/pandas/tests/series/indexing/test_set_value.py ... 1769s ../../../usr/lib/python3/dist-packages/pandas/tests/series/indexing/test_setitem.py .......................................................................................................................sss....sss....sss....sss....sss....sss....sss....sss....sss....sss....sss....sss...s...ssss...ssss...ssss...ssss...ssss...ssss...ssss...ssss...ssss...ssss...ssss...sss.................................................................................................................................................................................sssssssss..................ssssssssssssssssss............................................................ssssssssssss..........................................................................................ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss...........................................................................................................................sss..................ssssssssssss...........................sss.......sssssssssssssssssssssssssss.................................................................................sssssssss.................................ssssss.....................sssssssss........................ssssss........................ssssssssssss....................................ssssssssssss..........................................ssssssssssssssssss................................................ssssssssssss....................................ssssssssssss.........................x........x........x........x........x........x........x........x........x.......sssssssssssssssssssssssssss.........sssssssss..............................ssssssssssss.................................sssssssss....................................ssssssssssssssssss................................................................................................................................................................................................... 1769s ../../../usr/lib/python3/dist-packages/pandas/tests/series/indexing/test_take.py .... 1769s ../../../usr/lib/python3/dist-packages/pandas/tests/series/indexing/test_where.py ......................................................................................................................................................................................................... 1769s ../../../usr/lib/python3/dist-packages/pandas/tests/series/indexing/test_xs.py ...... 1769s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_add_prefix_suffix.py ... 1771s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_align.py ............................................................................................................... 1771s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_argsort.py ..... 1771s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_asof.py ....... 1772s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_astype.py ................................................s....s..........................................................................x........sssssssss................. 1772s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_autocorr.py . 1772s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_between.py ....... 1772s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_clip.py ....s.....s.....s.....s.....s.....s.....s.....s.....s.....s........... 1772s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_combine.py . 1772s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_combine_first.py ........................... 1772s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_compare.py ............ 1774s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_convert_dtypes.py .................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................s......s 1774s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_copy.py .......... 1774s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_count.py ... 1774s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_cov_corr.py ................ 1774s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_describe.py ...................................................... 1774s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_diff.py ....... 1774s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_drop.py ............................. 1775s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_drop_duplicates.py ..................................................................ssssss.............................................................................................................................................................................................................................................................................................................ss 1775s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_dropna.py ........ 1775s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_dtypes.py . 1775s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_duplicated.py .................. 1775s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_equals.py ..................................................... 1775s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_explode.py ...............ss 1775s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_fillna.py .............................................................................................................................. 1775s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_get_numeric_data.py . 1775s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_head_tail.py . 1775s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_infer_objects.py ....... 1777s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_interpolate.py x.........................................................................................................................................................................................................x.x............. 1777s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_is_monotonic.py .. 1777s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_is_unique.py ........ 1777s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_isin.py ........................................ 1777s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_isna.py .. 1777s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_item.py . 1777s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_map.py ......ss...............................xxx........................................... 1777s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_matmul.py . 1777s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_nlargest.py ................................................................. 1777s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_nunique.py .. 1778s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_pct_change.py ............. 1778s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_pop.py . 1778s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_quantile.py ................................... 1779s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_rank.py .......................................................................................................ssssssssssssssssssssssssssssss........................................................ssssssssssssssss.....ss.....ss.....ss.....ss.....ss.....................................................ssssssssssssssssss.............................................ssssssssssssssssss.............................................ssssssssssssssssss.............................................ssssssssssssssssss.............................................ssssssssssssssssss. 1779s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_reindex.py ................................... 1779s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_reindex_like.py .. 1779s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_rename.py ................ 1779s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_rename_axis.py ..... 1779s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_repeat.py ... 1780s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_replace.py ...........................s......................................................................... 1780s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_reset_index.py ........s...... 1780s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_round.py .................................. 1780s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_searchsorted.py ........ 1780s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_set_name.py .. 1780s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_size.py ....... 1780s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_sort_index.py ............................................ 1780s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_sort_values.py .............. 1781s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_to_csv.py ................................... 1781s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_to_dict.py ...... 1781s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_to_frame.py ... 1781s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_to_numpy.py ... 1781s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_tolist.py ..........sss 1781s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_truncate.py .... 1781s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_tz_localize.py ................... 1781s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_unique.py ....... 1781s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_unstack.py ....... 1781s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_update.py ....................s..... 1781s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_value_counts.py ............ 1781s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_values.py ... 1781s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_view.py .................................................. 1781s 1781s =============================== warnings summary =============================== 1781s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_isin.py:200 1781s /usr/lib/python3/dist-packages/pandas/tests/series/methods/test_isin.py:200: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1781s @pytest.mark.slow 1781s 1781s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_rank.py:514 1781s /usr/lib/python3/dist-packages/pandas/tests/series/methods/test_rank.py:514: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1781s @pytest.mark.single_cpu 1781s 1781s test_logical_ops.py::TestSeriesLogicalOps::test_int_dtype_different_index_not_bool 1781s /usr/lib/python3/dist-packages/pandas/tests/series/test_logical_ops.py:510: FutureWarning: Operation between non boolean Series with different indexes will no longer return a boolean result in a future version. Cast both Series to object type to maintain the prior behavior. 1781s result = np.bitwise_xor(ser1, ser2) 1781s 1781s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451 1781s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/series/.pytest_cache/v/cache/nodeids: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/series/.pytest_cache' 1781s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 1781s 1781s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:56 1781s /usr/lib/python3/dist-packages/_pytest/stepwise.py:56: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/series/.pytest_cache/v/cache/stepwise: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/series/.pytest_cache' 1781s session.config.cache.set(STEPWISE_CACHE_DIR, []) 1781s 1781s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 1781s = 11943 passed, 596 skipped, 1 deselected, 28 xfailed, 5 warnings in 66.31s (0:01:06) = 1782s rdjoqkol test state = true 1782s + echo 'rdjoqkol test state = true' 1782s + for TEST_SUBSET in $modpath/tests/* 1782s + echo /usr/lib/python3/dist-packages/pandas/tests/strings 1782s + grep -q -e __pycache__ 1782s + PANDAS_CI=1 1782s + LC_ALL=C.UTF-8 1782s + xvfb-run --auto-servernum '--server-args=-screen 0 1024x768x24' python3.12 -m pytest --tb=long -s -m 'not slow' --deb-data-root-dir=/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/strings 1784s ============================= test session starts ============================== 1784s platform linux -- Python 3.12.4, pytest-7.4.4, pluggy-1.5.0 1784s rootdir: /usr/lib/python3/dist-packages/pandas/tests/strings 1784s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 1784s asyncio: mode=Mode.STRICT 1784s collected 3374 items 1784s 1788s ../../../usr/lib/python3/dist-packages/pandas/tests/strings/test_api.py ..ss.................................................................................................................................................................................................................................................................................................................................................................................................................................................................................x.................................................................................................xx............xx......xx....................xx........................xxxx..........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss 1788s ../../../usr/lib/python3/dist-packages/pandas/tests/strings/test_case_justify.py ..ss...ss.......ssssss...ss....ss..ss...ss..ss..........ssssssssss..ss...ss..ss..ss..ss..ss 1788s ../../../usr/lib/python3/dist-packages/pandas/tests/strings/test_cat.py ................................................................ 1789s ../../../usr/lib/python3/dist-packages/pandas/tests/strings/test_extract.py ..ss..ss....ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ssssss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss...ss..ss..ss..ss....ssss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ssssss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss..ss....ssss..ss..ss................ssssssssssssssss..ss..ss...ss..sss 1790s ../../../usr/lib/python3/dist-packages/pandas/tests/strings/test_find_replace.py ..ss..............ssssssssssss..ss..ss...........................sss...........................sss..ss..ss...ss........................ssssssssssssssssssssssss..ss......ssssss..ss..ss...ss..ss..ss....ssss..ss..ss..ss..ss..ss....ssss..ss...ss..ss..ss..ss..ss..ss...ss..ss..ss.s.sssss.s.sssss...ss 1790s ../../../usr/lib/python3/dist-packages/pandas/tests/strings/test_get_dummies.py ..ss...ss. 1790s ../../../usr/lib/python3/dist-packages/pandas/tests/strings/test_split_partition.py ....ssss....ssss..ss..ss..ss............ssssssss..ss..ss..ss..ss....ssss............ssssssssssss....ssss..ss..ss..ss..ss.....ss..ss..ss.....ss..ss.....ssss....ssss....ssss....ssss....ssss......ssss....ssss..ss..ss......ssss...........ss 1790s ../../../usr/lib/python3/dist-packages/pandas/tests/strings/test_string_array.py .......................................................................sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss....ssss....ssss.s 1790s ../../../usr/lib/python3/dist-packages/pandas/tests/strings/test_strings.py ......ss...ss.....ssss..ss................ssssssssssssssss....ssss....ssss..ss...ss.............ssssssssssss............ssssssssssss..ss..ss....ssss....ssss....ssss..ss..........ssssssssss..................ssssssssssssssss......ssssss.........ssssss....ssss....ssss..ss...ss..ss..ss.....ssss..ss....................ss....... 1790s 1790s =============================== warnings summary =============================== 1790s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451 1790s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/strings/.pytest_cache/v/cache/nodeids: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/strings/.pytest_cache' 1790s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 1790s 1790s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:56 1790s /usr/lib/python3/dist-packages/_pytest/stepwise.py:56: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/strings/.pytest_cache/v/cache/stepwise: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/strings/.pytest_cache' 1790s session.config.cache.set(STEPWISE_CACHE_DIR, []) 1790s 1790s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 1790s ========== 2518 passed, 843 skipped, 13 xfailed, 2 warnings in 7.08s =========== 1791s rdjoqkol test state = true 1791s + echo 'rdjoqkol test state = true' 1791s + for TEST_SUBSET in $modpath/tests/* 1791s + echo /usr/lib/python3/dist-packages/pandas/tests/test_aggregation.py 1791s + grep -q -e __pycache__ 1791s + PANDAS_CI=1 1791s + LC_ALL=C.UTF-8 1791s + xvfb-run --auto-servernum '--server-args=-screen 0 1024x768x24' python3.12 -m pytest --tb=long -s -m 'not slow' --deb-data-root-dir=/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/test_aggregation.py 1793s ============================= test session starts ============================== 1793s platform linux -- Python 3.12.4, pytest-7.4.4, pluggy-1.5.0 1793s rootdir: /usr/lib/python3/dist-packages/pandas/tests 1793s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 1793s asyncio: mode=Mode.STRICT 1793s collected 8 items 1793s 1793s ../../../usr/lib/python3/dist-packages/pandas/tests/test_aggregation.py ........ 1793s 1793s =============================== warnings summary =============================== 1793s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451 1793s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/.pytest_cache/v/cache/nodeids: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/.pytest_cache' 1793s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 1793s 1793s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:56 1793s /usr/lib/python3/dist-packages/_pytest/stepwise.py:56: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/.pytest_cache/v/cache/stepwise: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/.pytest_cache' 1793s session.config.cache.set(STEPWISE_CACHE_DIR, []) 1793s 1793s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 1793s ======================== 8 passed, 2 warnings in 0.03s ========================= 1793s + echo 'rdjoqkol test state = true' 1793s + for TEST_SUBSET in $modpath/tests/* 1793s + echo /usr/lib/python3/dist-packages/pandas/tests/test_algos.py 1793s rdjoqkol test state = true 1793s + grep -q -e __pycache__ 1793s + PANDAS_CI=1 1793s + LC_ALL=C.UTF-8 1793s + xvfb-run --auto-servernum '--server-args=-screen 0 1024x768x24' python3.12 -m pytest --tb=long -s -m 'not slow' --deb-data-root-dir=/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/test_algos.py 1796s ============================= test session starts ============================== 1796s platform linux -- Python 3.12.4, pytest-7.4.4, pluggy-1.5.0 1796s rootdir: /usr/lib/python3/dist-packages/pandas/tests 1796s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 1796s asyncio: mode=Mode.STRICT 1796s collected 447 items 1796s 1798s ../../../usr/lib/python3/dist-packages/pandas/tests/test_algos.py ............................................................................................................................................................................................................................................................................................................................................................................................................................................................... 1798s 1798s =============================== warnings summary =============================== 1798s ../../../usr/lib/python3/dist-packages/pandas/tests/test_algos.py:1790 1798s /usr/lib/python3/dist-packages/pandas/tests/test_algos.py:1790: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1798s @pytest.mark.single_cpu 1798s 1798s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451 1798s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/.pytest_cache/v/cache/nodeids: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/.pytest_cache' 1798s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 1798s 1798s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:56 1798s /usr/lib/python3/dist-packages/_pytest/stepwise.py:56: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/.pytest_cache/v/cache/stepwise: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/.pytest_cache' 1798s session.config.cache.set(STEPWISE_CACHE_DIR, []) 1798s 1798s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 1798s ======================= 447 passed, 3 warnings in 3.29s ======================== 1798s rdjoqkol test state = true 1798s + echo 'rdjoqkol test state = true' 1798s + for TEST_SUBSET in $modpath/tests/* 1798s + echo /usr/lib/python3/dist-packages/pandas/tests/test_common.py 1798s + grep -q -e __pycache__ 1798s + PANDAS_CI=1 1798s + LC_ALL=C.UTF-8 1798s + xvfb-run --auto-servernum '--server-args=-screen 0 1024x768x24' python3.12 -m pytest --tb=long -s -m 'not slow' --deb-data-root-dir=/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/test_common.py 1800s ============================= test session starts ============================== 1800s platform linux -- Python 3.12.4, pytest-7.4.4, pluggy-1.5.0 1800s rootdir: /usr/lib/python3/dist-packages/pandas/tests 1800s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 1800s asyncio: mode=Mode.STRICT 1800s collected 128 items 1800s 1801s ../../../usr/lib/python3/dist-packages/pandas/tests/test_common.py ...............x.x.............................................................................................................. 1801s 1801s =============================== warnings summary =============================== 1801s ../../../usr/lib/python3/dist-packages/pandas/tests/test_common.py:237 1801s /usr/lib/python3/dist-packages/pandas/tests/test_common.py:237: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1801s @pytest.mark.single_cpu 1801s 1801s ../../../usr/lib/python3/dist-packages/pandas/tests/test_common.py:252 1801s /usr/lib/python3/dist-packages/pandas/tests/test_common.py:252: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1801s @pytest.mark.single_cpu 1801s 1801s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451 1801s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/.pytest_cache/v/cache/nodeids: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/.pytest_cache' 1801s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 1801s 1801s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:56 1801s /usr/lib/python3/dist-packages/_pytest/stepwise.py:56: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/.pytest_cache/v/cache/stepwise: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/.pytest_cache' 1801s session.config.cache.set(STEPWISE_CACHE_DIR, []) 1801s 1801s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 1801s ================== 126 passed, 2 xfailed, 4 warnings in 1.28s ================== 1801s + echo 'rdjoqkol test state = true' 1801s + for TEST_SUBSET in $modpath/tests/* 1801s rdjoqkol test state = true 1801s + echo /usr/lib/python3/dist-packages/pandas/tests/test_downstream.py 1801s + grep -q -e __pycache__ 1801s + PANDAS_CI=1 1801s + LC_ALL=C.UTF-8 1801s + xvfb-run --auto-servernum '--server-args=-screen 0 1024x768x24' python3.12 -m pytest --tb=long -s -m 'not slow' --deb-data-root-dir=/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/test_downstream.py 1803s ============================= test session starts ============================== 1803s platform linux -- Python 3.12.4, pytest-7.4.4, pluggy-1.5.0 1803s rootdir: /usr/lib/python3/dist-packages/pandas/tests 1803s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 1803s asyncio: mode=Mode.STRICT 1803s collected 27 items 1803s 1809s ../../../usr/lib/python3/dist-packages/pandas/tests/test_downstream.py XXX.s..ssssss.sx.........s. 1809s 1809s =============================== warnings summary =============================== 1809s ../../../usr/lib/python3/dist-packages/pandas/tests/test_downstream.py:124 1809s /usr/lib/python3/dist-packages/pandas/tests/test_downstream.py:124: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1809s @pytest.mark.single_cpu 1809s 1809s ../../../usr/lib/python3/dist-packages/pandas/tests/test_downstream.py:130 1809s /usr/lib/python3/dist-packages/pandas/tests/test_downstream.py:130: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1809s @pytest.mark.single_cpu 1809s 1809s ../../../usr/lib/python3/dist-packages/pandas/tests/test_downstream.py:205 1809s /usr/lib/python3/dist-packages/pandas/tests/test_downstream.py:205: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1809s @pytest.mark.single_cpu 1809s 1809s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451 1809s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/.pytest_cache/v/cache/nodeids: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/.pytest_cache' 1809s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 1809s 1809s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:56 1809s /usr/lib/python3/dist-packages/_pytest/stepwise.py:56: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/.pytest_cache/v/cache/stepwise: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/.pytest_cache' 1809s session.config.cache.set(STEPWISE_CACHE_DIR, []) 1809s 1809s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 1809s ======= 14 passed, 9 skipped, 1 xfailed, 3 xpassed, 5 warnings in 5.99s ======== 1809s rdjoqkol test state = true 1809s + echo 'rdjoqkol test state = true' 1809s + for TEST_SUBSET in $modpath/tests/* 1809s + echo /usr/lib/python3/dist-packages/pandas/tests/test_errors.py 1809s + grep -q -e __pycache__ 1809s + PANDAS_CI=1 1809s + LC_ALL=C.UTF-8 1809s + xvfb-run --auto-servernum '--server-args=-screen 0 1024x768x24' python3.12 -m pytest --tb=long -s -m 'not slow' --deb-data-root-dir=/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/test_errors.py 1812s ============================= test session starts ============================== 1812s platform linux -- Python 3.12.4, pytest-7.4.4, pluggy-1.5.0 1812s rootdir: /usr/lib/python3/dist-packages/pandas/tests 1812s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 1812s asyncio: mode=Mode.STRICT 1812s collected 36 items 1812s 1812s ../../../usr/lib/python3/dist-packages/pandas/tests/test_errors.py .................................... 1812s 1812s =============================== warnings summary =============================== 1812s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451 1812s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/.pytest_cache/v/cache/nodeids: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/.pytest_cache' 1812s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 1812s 1812s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:56 1812s /usr/lib/python3/dist-packages/_pytest/stepwise.py:56: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/.pytest_cache/v/cache/stepwise: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/.pytest_cache' 1812s session.config.cache.set(STEPWISE_CACHE_DIR, []) 1812s 1812s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 1812s ======================== 36 passed, 2 warnings in 0.04s ======================== 1812s + echo 'rdjoqkol test state = true' 1812s + for TEST_SUBSET in $modpath/tests/* 1812s rdjoqkol test state = true 1812s + echo /usr/lib/python3/dist-packages/pandas/tests/test_expressions.py 1812s + grep -q -e __pycache__ 1812s + PANDAS_CI=1 1812s + LC_ALL=C.UTF-8 1812s + xvfb-run --auto-servernum '--server-args=-screen 0 1024x768x24' python3.12 -m pytest --tb=long -s -m 'not slow' --deb-data-root-dir=/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/test_expressions.py 1814s ============================= test session starts ============================== 1814s platform linux -- Python 3.12.4, pytest-7.4.4, pluggy-1.5.0 1814s rootdir: /usr/lib/python3/dist-packages/pandas/tests 1814s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 1814s asyncio: mode=Mode.STRICT 1814s collected 243 items 1814s 1815s ../../../usr/lib/python3/dist-packages/pandas/tests/test_expressions.py ................................................................................................................................................................................................................................................... 1815s 1815s =============================== warnings summary =============================== 1815s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451 1815s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/.pytest_cache/v/cache/nodeids: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/.pytest_cache' 1815s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 1815s 1815s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:56 1815s /usr/lib/python3/dist-packages/_pytest/stepwise.py:56: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/.pytest_cache/v/cache/stepwise: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/.pytest_cache' 1815s session.config.cache.set(STEPWISE_CACHE_DIR, []) 1815s 1815s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 1815s ======================= 243 passed, 2 warnings in 1.73s ======================== 1816s + echo 'rdjoqkol test state = true' 1816s + for TEST_SUBSET in $modpath/tests/* 1816s rdjoqkol test state = true 1816s + grep -q -e __pycache__ 1816s + echo /usr/lib/python3/dist-packages/pandas/tests/test_flags.py 1816s + PANDAS_CI=1 1816s + LC_ALL=C.UTF-8 1816s + xvfb-run --auto-servernum '--server-args=-screen 0 1024x768x24' python3.12 -m pytest --tb=long -s -m 'not slow' --deb-data-root-dir=/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/test_flags.py 1817s ============================= test session starts ============================== 1817s platform linux -- Python 3.12.4, pytest-7.4.4, pluggy-1.5.0 1817s rootdir: /usr/lib/python3/dist-packages/pandas/tests 1817s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 1817s asyncio: mode=Mode.STRICT 1817s collected 5 items 1817s 1817s ../../../usr/lib/python3/dist-packages/pandas/tests/test_flags.py ..... 1817s 1817s =============================== warnings summary =============================== 1817s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451 1817s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/.pytest_cache/v/cache/nodeids: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/.pytest_cache' 1817s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 1817s 1817s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:56 1817s /usr/lib/python3/dist-packages/_pytest/stepwise.py:56: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/.pytest_cache/v/cache/stepwise: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/.pytest_cache' 1817s session.config.cache.set(STEPWISE_CACHE_DIR, []) 1817s 1817s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 1817s ======================== 5 passed, 2 warnings in 0.03s ========================= 1817s rdjoqkol test state = true 1817s + echo 'rdjoqkol test state = true' 1817s + for TEST_SUBSET in $modpath/tests/* 1817s + echo /usr/lib/python3/dist-packages/pandas/tests/test_multilevel.py 1817s + grep -q -e __pycache__ 1817s + PANDAS_CI=1 1817s + LC_ALL=C.UTF-8 1817s + xvfb-run --auto-servernum '--server-args=-screen 0 1024x768x24' python3.12 -m pytest --tb=long -s -m 'not slow' --deb-data-root-dir=/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/test_multilevel.py 1819s ============================= test session starts ============================== 1819s platform linux -- Python 3.12.4, pytest-7.4.4, pluggy-1.5.0 1819s rootdir: /usr/lib/python3/dist-packages/pandas/tests 1819s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 1819s asyncio: mode=Mode.STRICT 1819s collected 19 items 1819s 1819s ../../../usr/lib/python3/dist-packages/pandas/tests/test_multilevel.py ................... 1819s 1819s =============================== warnings summary =============================== 1819s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451 1819s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/.pytest_cache/v/cache/nodeids: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/.pytest_cache' 1819s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 1819s 1819s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:56 1819s /usr/lib/python3/dist-packages/_pytest/stepwise.py:56: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/.pytest_cache/v/cache/stepwise: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/.pytest_cache' 1819s session.config.cache.set(STEPWISE_CACHE_DIR, []) 1819s 1819s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 1819s ======================== 19 passed, 2 warnings in 0.24s ======================== 1819s + echo 'rdjoqkol test state = true' 1819s + for TEST_SUBSET in $modpath/tests/* 1819s + echo /usr/lib/python3/dist-packages/pandas/tests/test_nanops.py 1819s + grep -q -e __pycache__ 1819s + PANDAS_CI=1 1819s + LC_ALL=C.UTF-8 1819s + xvfb-run --auto-servernum '--server-args=-screen 0 1024x768x24' python3.12 -m pytest --tb=long -s -m 'not slow' --deb-data-root-dir=/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/test_nanops.py 1819s rdjoqkol test state = true 1821s ============================= test session starts ============================== 1821s platform linux -- Python 3.12.4, pytest-7.4.4, pluggy-1.5.0 1821s rootdir: /usr/lib/python3/dist-packages/pandas/tests 1821s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 1821s asyncio: mode=Mode.STRICT 1821s collected 245 items 1821s 1822s ../../../usr/lib/python3/dist-packages/pandas/tests/test_nanops.py ..............................................................................................................................................................................ss................................s.....s.....s.....s.....s.....s.....s 1822s 1822s =============================== warnings summary =============================== 1822s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451 1822s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/.pytest_cache/v/cache/nodeids: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/.pytest_cache' 1822s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 1822s 1822s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:56 1822s /usr/lib/python3/dist-packages/_pytest/stepwise.py:56: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/.pytest_cache/v/cache/stepwise: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/.pytest_cache' 1822s session.config.cache.set(STEPWISE_CACHE_DIR, []) 1822s 1822s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 1822s ================== 236 passed, 9 skipped, 2 warnings in 0.82s ================== 1822s rdjoqkol test state = true 1822s + echo 'rdjoqkol test state = true' 1822s + for TEST_SUBSET in $modpath/tests/* 1822s + echo /usr/lib/python3/dist-packages/pandas/tests/test_optional_dependency.py 1822s + grep -q -e __pycache__ 1822s + PANDAS_CI=1 1822s + LC_ALL=C.UTF-8 1822s + xvfb-run --auto-servernum '--server-args=-screen 0 1024x768x24' python3.12 -m pytest --tb=long -s -m 'not slow' --deb-data-root-dir=/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/test_optional_dependency.py 1823s ============================= test session starts ============================== 1823s platform linux -- Python 3.12.4, pytest-7.4.4, pluggy-1.5.0 1823s rootdir: /usr/lib/python3/dist-packages/pandas/tests 1823s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 1823s asyncio: mode=Mode.STRICT 1823s collected 5 items 1823s 1823s ../../../usr/lib/python3/dist-packages/pandas/tests/test_optional_dependency.py .s... 1823s 1823s =============================== warnings summary =============================== 1823s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451 1823s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/.pytest_cache/v/cache/nodeids: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/.pytest_cache' 1823s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 1823s 1823s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:56 1823s /usr/lib/python3/dist-packages/_pytest/stepwise.py:56: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/.pytest_cache/v/cache/stepwise: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/.pytest_cache' 1823s session.config.cache.set(STEPWISE_CACHE_DIR, []) 1823s 1823s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 1823s =================== 4 passed, 1 skipped, 2 warnings in 0.08s =================== 1824s rdjoqkol test state = true 1824s + echo 'rdjoqkol test state = true' 1824s + for TEST_SUBSET in $modpath/tests/* 1824s + echo /usr/lib/python3/dist-packages/pandas/tests/test_register_accessor.py 1824s + grep -q -e __pycache__ 1824s + PANDAS_CI=1 1824s + LC_ALL=C.UTF-8 1824s + xvfb-run --auto-servernum '--server-args=-screen 0 1024x768x24' python3.12 -m pytest --tb=long -s -m 'not slow' --deb-data-root-dir=/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/test_register_accessor.py 1825s ============================= test session starts ============================== 1825s platform linux -- Python 3.12.4, pytest-7.4.4, pluggy-1.5.0 1825s rootdir: /usr/lib/python3/dist-packages/pandas/tests 1825s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 1825s asyncio: mode=Mode.STRICT 1825s collected 7 items 1825s 1825s ../../../usr/lib/python3/dist-packages/pandas/tests/test_register_accessor.py ....... 1825s 1825s =============================== warnings summary =============================== 1825s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451 1825s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/.pytest_cache/v/cache/nodeids: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/.pytest_cache' 1825s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 1825s 1825s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:56 1825s /usr/lib/python3/dist-packages/_pytest/stepwise.py:56: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/.pytest_cache/v/cache/stepwise: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/.pytest_cache' 1825s session.config.cache.set(STEPWISE_CACHE_DIR, []) 1825s 1825s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 1825s ======================== 7 passed, 2 warnings in 0.09s ========================= 1826s rdjoqkol test state = true 1826s + echo 'rdjoqkol test state = true' 1826s + for TEST_SUBSET in $modpath/tests/* 1826s + echo /usr/lib/python3/dist-packages/pandas/tests/test_sorting.py 1826s + grep -q -e __pycache__ 1826s + PANDAS_CI=1 1826s + LC_ALL=C.UTF-8 1826s + xvfb-run --auto-servernum '--server-args=-screen 0 1024x768x24' python3.12 -m pytest --tb=long -s -m 'not slow' --deb-data-root-dir=/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/test_sorting.py 1827s ============================= test session starts ============================== 1827s platform linux -- Python 3.12.4, pytest-7.4.4, pluggy-1.5.0 1827s rootdir: /usr/lib/python3/dist-packages/pandas/tests 1827s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 1827s asyncio: mode=Mode.STRICT 1827s collected 54 items / 15 deselected / 39 selected 1827s 1829s ../../../usr/lib/python3/dist-packages/pandas/tests/test_sorting.py ....................................... 1829s 1829s =============================== warnings summary =============================== 1829s ../../../usr/lib/python3/dist-packages/pandas/tests/test_sorting.py:53 1829s /usr/lib/python3/dist-packages/pandas/tests/test_sorting.py:53: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1829s @pytest.mark.slow 1829s 1829s ../../../usr/lib/python3/dist-packages/pandas/tests/test_sorting.py:215 1829s /usr/lib/python3/dist-packages/pandas/tests/test_sorting.py:215: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1829s @pytest.mark.slow 1829s 1829s ../../../usr/lib/python3/dist-packages/pandas/tests/test_sorting.py:226 1829s /usr/lib/python3/dist-packages/pandas/tests/test_sorting.py:226: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1829s @pytest.mark.slow 1829s 1829s ../../../usr/lib/python3/dist-packages/pandas/tests/test_sorting.py:237 1829s /usr/lib/python3/dist-packages/pandas/tests/test_sorting.py:237: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1829s @pytest.mark.slow 1829s 1829s ../../../usr/lib/python3/dist-packages/pandas/tests/test_sorting.py:249 1829s /usr/lib/python3/dist-packages/pandas/tests/test_sorting.py:249: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1829s @pytest.mark.slow 1829s 1829s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451 1829s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/.pytest_cache/v/cache/nodeids: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/.pytest_cache' 1829s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 1829s 1829s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:56 1829s /usr/lib/python3/dist-packages/_pytest/stepwise.py:56: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/.pytest_cache/v/cache/stepwise: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/.pytest_cache' 1829s session.config.cache.set(STEPWISE_CACHE_DIR, []) 1829s 1829s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 1829s ================ 39 passed, 15 deselected, 7 warnings in 1.93s ================= 1829s rdjoqkol test state = true 1830s + echo 'rdjoqkol test state = true' 1830s + for TEST_SUBSET in $modpath/tests/* 1830s + echo /usr/lib/python3/dist-packages/pandas/tests/test_take.py 1830s + grep -q -e __pycache__ 1830s + PANDAS_CI=1 1830s + LC_ALL=C.UTF-8 1830s + xvfb-run --auto-servernum '--server-args=-screen 0 1024x768x24' python3.12 -m pytest --tb=long -s -m 'not slow' --deb-data-root-dir=/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/test_take.py 1831s ============================= test session starts ============================== 1831s platform linux -- Python 3.12.4, pytest-7.4.4, pluggy-1.5.0 1831s rootdir: /usr/lib/python3/dist-packages/pandas/tests 1831s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 1831s asyncio: mode=Mode.STRICT 1831s collected 81 items 1831s 1831s ../../../usr/lib/python3/dist-packages/pandas/tests/test_take.py ................................................................................. 1831s 1831s =============================== warnings summary =============================== 1831s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451 1831s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/.pytest_cache/v/cache/nodeids: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/.pytest_cache' 1831s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 1831s 1831s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:56 1831s /usr/lib/python3/dist-packages/_pytest/stepwise.py:56: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/.pytest_cache/v/cache/stepwise: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/.pytest_cache' 1831s session.config.cache.set(STEPWISE_CACHE_DIR, []) 1831s 1831s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 1831s ======================== 81 passed, 2 warnings in 0.20s ======================== 1831s rdjoqkol test state = true 1831s + echo 'rdjoqkol test state = true' 1831s + for TEST_SUBSET in $modpath/tests/* 1831s + echo /usr/lib/python3/dist-packages/pandas/tests/tools 1831s + grep -q -e __pycache__ 1831s + PANDAS_CI=1 1831s + LC_ALL=C.UTF-8 1831s + xvfb-run --auto-servernum '--server-args=-screen 0 1024x768x24' python3.12 -m pytest --tb=long -s -m 'not slow' --deb-data-root-dir=/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/tools 1833s ============================= test session starts ============================== 1833s platform linux -- Python 3.12.4, pytest-7.4.4, pluggy-1.5.0 1833s rootdir: /usr/lib/python3/dist-packages/pandas/tests/tools 1833s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 1833s asyncio: mode=Mode.STRICT 1833s collected 1479 items 1833s 1838s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py ............................................................................ss...................................................................................................................................................ssssssss...................................................................ss..............................................................................................................xx..xx..........................................................................................................................................................xx....ss.ssssss....................................................s........................................................................................................................................................................................................................................................................................................ssssssssss.. 1838s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_numeric.py ...s.s....................................................................................................................................................................................................................................................xx.......................................................................................................................ssssss.s.s.................................sss...sss.s....ssss.s.s 1838s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_time.py ........... 1838s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_timedelta.py .......................................................................ssssssssssss 1838s 1838s =============================== warnings summary =============================== 1838s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451 1838s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/tools/.pytest_cache/v/cache/nodeids: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/tools/.pytest_cache' 1838s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 1838s 1838s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:56 1838s /usr/lib/python3/dist-packages/_pytest/stepwise.py:56: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/tools/.pytest_cache/v/cache/stepwise: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/tools/.pytest_cache' 1838s session.config.cache.set(STEPWISE_CACHE_DIR, []) 1838s 1838s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 1838s =========== 1405 passed, 66 skipped, 8 xfailed, 2 warnings in 5.53s ============ 1839s + echo 'rdjoqkol test state = true' 1839s + for TEST_SUBSET in $modpath/tests/* 1839s + echo /usr/lib/python3/dist-packages/pandas/tests/tseries 1839s + grep -q -e __pycache__ 1839s rdjoqkol test state = true 1839s + PANDAS_CI=1 1839s + LC_ALL=C.UTF-8 1839s + xvfb-run --auto-servernum '--server-args=-screen 0 1024x768x24' python3.12 -m pytest --tb=long -s -m 'not slow' --deb-data-root-dir=/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/tseries 1841s ============================= test session starts ============================== 1841s platform linux -- Python 3.12.4, pytest-7.4.4, pluggy-1.5.0 1841s rootdir: /usr/lib/python3/dist-packages/pandas/tests/tseries 1841s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 1841s asyncio: mode=Mode.STRICT 1841s collected 5314 items 1841s 1842s ../../../usr/lib/python3/dist-packages/pandas/tests/tseries/frequencies/test_freq_code.py .................................... 1842s ../../../usr/lib/python3/dist-packages/pandas/tests/tseries/frequencies/test_frequencies.py .......... 1843s ../../../usr/lib/python3/dist-packages/pandas/tests/tseries/frequencies/test_inference.py ................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................. 1843s ../../../usr/lib/python3/dist-packages/pandas/tests/tseries/holiday/test_calendar.py ........ 1843s ../../../usr/lib/python3/dist-packages/pandas/tests/tseries/holiday/test_federal.py ... 1843s ../../../usr/lib/python3/dist-packages/pandas/tests/tseries/holiday/test_holiday.py ................................................ 1843s ../../../usr/lib/python3/dist-packages/pandas/tests/tseries/holiday/test_observance.py ................................. 1843s ../../../usr/lib/python3/dist-packages/pandas/tests/tseries/offsets/test_business_day.py ....................... 1843s ../../../usr/lib/python3/dist-packages/pandas/tests/tseries/offsets/test_business_hour.py ................................................................................ 1844s ../../../usr/lib/python3/dist-packages/pandas/tests/tseries/offsets/test_business_month.py ..................... 1844s ../../../usr/lib/python3/dist-packages/pandas/tests/tseries/offsets/test_business_quarter.py .............................................. 1844s ../../../usr/lib/python3/dist-packages/pandas/tests/tseries/offsets/test_business_year.py ................... 1844s ../../../usr/lib/python3/dist-packages/pandas/tests/tseries/offsets/test_common.py ...................................................................................................................................................................................................................................................................................XXXXXX..XXXXXXXXXXXX............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................. 1845s ../../../usr/lib/python3/dist-packages/pandas/tests/tseries/offsets/test_custom_business_day.py ....... 1845s ../../../usr/lib/python3/dist-packages/pandas/tests/tseries/offsets/test_custom_business_hour.py ............................ 1845s ../../../usr/lib/python3/dist-packages/pandas/tests/tseries/offsets/test_custom_business_month.py ...................................................... 1845s ../../../usr/lib/python3/dist-packages/pandas/tests/tseries/offsets/test_dst.py .......................... 1845s ../../../usr/lib/python3/dist-packages/pandas/tests/tseries/offsets/test_easter.py .......... 1845s ../../../usr/lib/python3/dist-packages/pandas/tests/tseries/offsets/test_fiscal.py ............................................................................................................................................. 1847s ../../../usr/lib/python3/dist-packages/pandas/tests/tseries/offsets/test_index.py ........................ 1847s ../../../usr/lib/python3/dist-packages/pandas/tests/tseries/offsets/test_month.py ............................................................ 1852s ../../../usr/lib/python3/dist-packages/pandas/tests/tseries/offsets/test_offsets.py .................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................x..................................................................................................................................................................................................................................................x............................................................................................................................................................................................................................................... 1853s ../../../usr/lib/python3/dist-packages/pandas/tests/tseries/offsets/test_offsets_properties.py .. 1853s ../../../usr/lib/python3/dist-packages/pandas/tests/tseries/offsets/test_quarter.py ........................................................................................ 1855s ../../../usr/lib/python3/dist-packages/pandas/tests/tseries/offsets/test_ticks.py ........................................................................................................... 1856s ../../../usr/lib/python3/dist-packages/pandas/tests/tseries/offsets/test_week.py .............................................. 1856s ../../../usr/lib/python3/dist-packages/pandas/tests/tseries/offsets/test_year.py ................................. 1856s 1856s =============================== warnings summary =============================== 1856s ../../../usr/lib/python3/dist-packages/pandas/tests/tseries/offsets/test_offsets_properties.py:27 1856s /usr/lib/python3/dist-packages/pandas/tests/tseries/offsets/test_offsets_properties.py:27: PytestUnknownMarkWarning: Unknown pytest.mark.arm_slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1856s @pytest.mark.arm_slow 1856s 1856s ../../../usr/lib/python3/dist-packages/pandas/tests/tseries/offsets/test_ticks.py:82 1856s /usr/lib/python3/dist-packages/pandas/tests/tseries/offsets/test_ticks.py:82: PytestUnknownMarkWarning: Unknown pytest.mark.arm_slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1856s @pytest.mark.arm_slow 1856s 1856s offsets/test_offsets_properties.py::test_on_offset_implementations 1856s /usr/lib/python3/dist-packages/dateutil/zoneinfo/__init__.py:26: UserWarning: I/O error(2): No such file or directory 1856s warnings.warn("I/O error({0}): {1}".format(e.errno, e.strerror)) 1856s 1856s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451 1856s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/tseries/.pytest_cache/v/cache/nodeids: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/tseries/.pytest_cache' 1856s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 1856s 1856s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:56 1856s /usr/lib/python3/dist-packages/_pytest/stepwise.py:56: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/tseries/.pytest_cache/v/cache/stepwise: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/tseries/.pytest_cache' 1856s session.config.cache.set(STEPWISE_CACHE_DIR, []) 1856s 1856s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 1856s =========== 5294 passed, 2 xfailed, 18 xpassed, 5 warnings in 15.42s =========== 1856s rdjoqkol test state = true 1856s + echo 'rdjoqkol test state = true' 1856s + for TEST_SUBSET in $modpath/tests/* 1856s + echo /usr/lib/python3/dist-packages/pandas/tests/tslibs 1856s + grep -q -e __pycache__ 1856s + PANDAS_CI=1 1856s + LC_ALL=C.UTF-8 1856s + xvfb-run --auto-servernum '--server-args=-screen 0 1024x768x24' python3.12 -m pytest --tb=long -s -m 'not slow' --deb-data-root-dir=/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/tslibs 1858s ============================= test session starts ============================== 1858s platform linux -- Python 3.12.4, pytest-7.4.4, pluggy-1.5.0 1858s rootdir: /usr/lib/python3/dist-packages/pandas/tests/tslibs 1858s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 1858s asyncio: mode=Mode.STRICT 1858s collected 1026 items 1858s 1858s ../../../usr/lib/python3/dist-packages/pandas/tests/tslibs/test_api.py . 1858s ../../../usr/lib/python3/dist-packages/pandas/tests/tslibs/test_array_to_datetime.py ........................... 1858s ../../../usr/lib/python3/dist-packages/pandas/tests/tslibs/test_ccalendar.py ................. 1862s ../../../usr/lib/python3/dist-packages/pandas/tests/tslibs/test_conversion.py ...................................................................... 1862s ../../../usr/lib/python3/dist-packages/pandas/tests/tslibs/test_fields.py .... 1862s ../../../usr/lib/python3/dist-packages/pandas/tests/tslibs/test_libfrequencies.py .............. 1862s ../../../usr/lib/python3/dist-packages/pandas/tests/tslibs/test_liboffsets.py .......................................................................... 1862s ../../../usr/lib/python3/dist-packages/pandas/tests/tslibs/test_np_datetime.py ........ 1862s ../../../usr/lib/python3/dist-packages/pandas/tests/tslibs/test_parse_iso8601.py ................................................... 1862s ../../../usr/lib/python3/dist-packages/pandas/tests/tslibs/test_parsing.py .................................ssssssssssssssssssssssssssssssssssssssss..sss............................................. 1862s ../../../usr/lib/python3/dist-packages/pandas/tests/tslibs/test_period_asfreq.py ...................................... 1862s ../../../usr/lib/python3/dist-packages/pandas/tests/tslibs/test_resolution.py .. 1862s ../../../usr/lib/python3/dist-packages/pandas/tests/tslibs/test_timedeltas.py ......................... 1863s ../../../usr/lib/python3/dist-packages/pandas/tests/tslibs/test_timezones.py ........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................ 1863s ../../../usr/lib/python3/dist-packages/pandas/tests/tslibs/test_to_offset.py ................................................................................... 1863s ../../../usr/lib/python3/dist-packages/pandas/tests/tslibs/test_tzconversion.py . 1863s 1863s =============================== warnings summary =============================== 1863s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451 1863s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/tslibs/.pytest_cache/v/cache/nodeids: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/tslibs/.pytest_cache' 1863s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 1863s 1863s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:56 1863s /usr/lib/python3/dist-packages/_pytest/stepwise.py:56: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/tslibs/.pytest_cache/v/cache/stepwise: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/tslibs/.pytest_cache' 1863s session.config.cache.set(STEPWISE_CACHE_DIR, []) 1863s 1863s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 1863s ================= 983 passed, 43 skipped, 2 warnings in 5.36s ================== 1863s rdjoqkol test state = true 1863s + echo 'rdjoqkol test state = true' 1863s + for TEST_SUBSET in $modpath/tests/* 1863s + echo /usr/lib/python3/dist-packages/pandas/tests/util 1863s + grep -q -e __pycache__ 1863s + PANDAS_CI=1 1863s + LC_ALL=C.UTF-8 1863s + xvfb-run --auto-servernum '--server-args=-screen 0 1024x768x24' python3.12 -m pytest --tb=long -s -m 'not slow' --deb-data-root-dir=/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/util 1865s ============================= test session starts ============================== 1865s platform linux -- Python 3.12.4, pytest-7.4.4, pluggy-1.5.0 1865s rootdir: /usr/lib/python3/dist-packages/pandas/tests/util 1865s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 1865s asyncio: mode=Mode.STRICT 1865s collected 910 items 1865s 1866s ../../../usr/lib/python3/dist-packages/pandas/tests/util/test_assert_almost_equal.py .................................................................................................................................................................... 1866s ../../../usr/lib/python3/dist-packages/pandas/tests/util/test_assert_attr_equal.py .......................................... 1866s ../../../usr/lib/python3/dist-packages/pandas/tests/util/test_assert_categorical_equal.py .......... 1866s ../../../usr/lib/python3/dist-packages/pandas/tests/util/test_assert_extension_array_equal.py .................... 1866s ../../../usr/lib/python3/dist-packages/pandas/tests/util/test_assert_frame_equal.py ............................................................................................................... 1866s ../../../usr/lib/python3/dist-packages/pandas/tests/util/test_assert_index_equal.py ................................................................ 1866s ../../../usr/lib/python3/dist-packages/pandas/tests/util/test_assert_interval_array_equal.py ....... 1866s ../../../usr/lib/python3/dist-packages/pandas/tests/util/test_assert_numpy_array_equal.py ......................... 1867s ../../../usr/lib/python3/dist-packages/pandas/tests/util/test_assert_produces_warning.py ............................................................................................................................ 1867s ../../../usr/lib/python3/dist-packages/pandas/tests/util/test_assert_series_equal.py .................................................................................. 1867s ../../../usr/lib/python3/dist-packages/pandas/tests/util/test_deprecate.py ... 1867s ../../../usr/lib/python3/dist-packages/pandas/tests/util/test_deprecate_kwarg.py .............. 1868s ../../../usr/lib/python3/dist-packages/pandas/tests/util/test_deprecate_nonkeyword_arguments.py ................... 1868s ../../../usr/lib/python3/dist-packages/pandas/tests/util/test_doc.py .... 1868s ../../../usr/lib/python3/dist-packages/pandas/tests/util/test_hashing.py ..................................................................................................................................................... 1868s ../../../usr/lib/python3/dist-packages/pandas/tests/util/test_make_objects.py . 1868s ../../../usr/lib/python3/dist-packages/pandas/tests/util/test_numba.py . 1868s ../../../usr/lib/python3/dist-packages/pandas/tests/util/test_rewrite_warning.py .......... 1868s ../../../usr/lib/python3/dist-packages/pandas/tests/util/test_safe_import.py ........ 1868s ../../../usr/lib/python3/dist-packages/pandas/tests/util/test_shares_memory.py . 1869s ../../../usr/lib/python3/dist-packages/pandas/tests/util/test_show_versions.py .... 1869s ../../../usr/lib/python3/dist-packages/pandas/tests/util/test_util.py ...sx. 1869s ../../../usr/lib/python3/dist-packages/pandas/tests/util/test_validate_args.py ...... 1869s ../../../usr/lib/python3/dist-packages/pandas/tests/util/test_validate_args_and_kwargs.py ...... 1869s ../../../usr/lib/python3/dist-packages/pandas/tests/util/test_validate_inclusive.py ........... 1869s ../../../usr/lib/python3/dist-packages/pandas/tests/util/test_validate_kwargs.py .................. 1869s 1869s =============================== warnings summary =============================== 1869s test_show_versions.py::test_show_versions 1869s test_show_versions.py::test_show_versions 1869s test_show_versions.py::test_show_versions_console_json 1869s test_show_versions.py::test_show_versions_console 1869s test_show_versions.py::test_json_output_match 1869s /usr/lib/python3/dist-packages/pandas/compat/_optional.py:127: UserWarning: Non-x86 system detected, Numba may give wrong results or crash 1869s warnings.warn(warn_numba_platform) 1869s 1869s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451 1869s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/util/.pytest_cache/v/cache/nodeids: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/util/.pytest_cache' 1869s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 1869s 1869s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:56 1869s /usr/lib/python3/dist-packages/_pytest/stepwise.py:56: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/util/.pytest_cache/v/cache/stepwise: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/util/.pytest_cache' 1869s session.config.cache.set(STEPWISE_CACHE_DIR, []) 1869s 1869s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 1869s ============ 908 passed, 1 skipped, 1 xfailed, 7 warnings in 4.14s ============= 1869s + echo 'rdjoqkol test state = true' 1869s + for TEST_SUBSET in $modpath/tests/* 1869s + echo /usr/lib/python3/dist-packages/pandas/tests/window 1869s + grep -q -e __pycache__ 1869s rdjoqkol test state = true 1869s + PANDAS_CI=1 1869s + LC_ALL=C.UTF-8 1869s + xvfb-run --auto-servernum '--server-args=-screen 0 1024x768x24' python3.12 -m pytest --tb=long -s -m 'not slow' --deb-data-root-dir=/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/window 1872s ============================= test session starts ============================== 1872s platform linux -- Python 3.12.4, pytest-7.4.4, pluggy-1.5.0 1872s rootdir: /usr/lib/python3/dist-packages/pandas/tests/window 1872s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 1872s asyncio: mode=Mode.STRICT 1872s collected 10139 items / 536 deselected / 1 skipped / 9603 selected 1872s 1874s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py ......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... 1875s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py ...s....sssss..........s..s....................................................... 1876s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py .................................................................................................................................................................................................................................... 1876s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py ........................................................................ 1881s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py .................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... 1881s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py ..............................................................................................................................................................................ssssssssssss........ssssssssssssssss................ 1883s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py ..........x................................................................................................................................................................................................ss....s...................s..s......s............................................................................................. 1884s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py .......................................................................................................... 1884s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss 1886s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py .....................................................................................................................................................X.....X.....X.....X.....X.....X.....X.....X.....X................................................................................................................. 1889s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py ...................................................................................................................................................................................................................................................................................................................................................................XXXX........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................ 1891s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py .................................................................................................................................................................................................................................................................................................................................................................................................................................. 1892s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py .......................................................................................................................................................................................... 1893s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py .................................................................... 1893s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py ......................................................................... 1893s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py ............................................................................................................................................................................................................................................................................................... 1896s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py ................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................ 1897s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py ........x.......................x..x..x..x..x..x....................x.......................x..x..x..x..x..x................................................................................................................................................................................................................................................................................ 1899s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py ..............x..x............................................x..x..x..x..x..x..x..x..x..x..x..x......................................x..x............................................x..x..x..x..x..x..x..x..x..x..x..x................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................ 1899s 1899s =============================== warnings summary =============================== 1899s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py:27 1899s /usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py:27: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1899s pytest.mark.single_cpu, 1899s 1899s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py:339 1899s /usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py:339: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1899s @pytest.mark.slow 1899s 1899s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_online.py:17 1899s /usr/lib/python3/dist-packages/pandas/tests/window/test_online.py:17: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1899s pytest.mark.single_cpu, 1899s 1899s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py:154 1899s /usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py:154: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 1899s @pytest.mark.slow 1899s 1899s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451 1899s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/window/.pytest_cache/v/cache/nodeids: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/window/.pytest_cache' 1899s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 1899s 1899s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:56 1899s /usr/lib/python3/dist-packages/_pytest/stepwise.py:56: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/window/.pytest_cache/v/cache/stepwise: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/window/.pytest_cache' 1899s session.config.cache.set(STEPWISE_CACHE_DIR, []) 1899s 1899s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 1899s = 8900 passed, 648 skipped, 536 deselected, 43 xfailed, 13 xpassed, 6 warnings in 28.72s = 1900s + echo 'rdjoqkol test state = true' 1900s + true 1900s rdjoqkol test state = true 1901s autopkgtest [13:11:33]: test unittests3: -----------------------] 1906s autopkgtest [13:11:38]: test unittests3: - - - - - - - - - - results - - - - - - - - - - 1906s unittests3 PASS 1911s autopkgtest [13:11:43]: test ignoredtests: preparing testbed 1926s Reading package lists... 1927s Building dependency tree... 1927s Reading state information... 1927s Starting pkgProblemResolver with broken count: 0 1927s Starting 2 pkgProblemResolver with broken count: 0 1927s Done 1928s The following additional packages will be installed: 1928s libpq5 python3-psycopg2 python3-pymysql 1928s Suggested packages: 1928s python-psycopg2-doc python-pymysql-doc 1929s The following NEW packages will be installed: 1929s autopkgtest-satdep libpq5 python3-psycopg2 python3-pymysql 1929s 0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded. 1929s Need to get 283 kB/284 kB of archives. 1929s After this operation, 865 kB of additional disk space will be used. 1929s Get:1 /tmp/autopkgtest.9HcbfU/3-autopkgtest-satdep.deb autopkgtest-satdep armhf 0 [1056 B] 1929s Get:2 http://ftpmaster.internal/ubuntu oracular/main armhf libpq5 armhf 16.3-1 [122 kB] 1930s Get:3 http://ftpmaster.internal/ubuntu oracular/main armhf python3-psycopg2 armhf 2.9.9-1build1 [121 kB] 1930s Get:4 http://ftpmaster.internal/ubuntu oracular/main armhf python3-pymysql all 1.1.1-1ubuntu1 [39.4 kB] 1939s Fetched 283 kB in 1s (317 kB/s) 1940s Selecting previously unselected package libpq5:armhf. 1940s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 77660 files and directories currently installed.) 1940s Preparing to unpack .../libpq5_16.3-1_armhf.deb ... 1940s Unpacking libpq5:armhf (16.3-1) ... 1941s Selecting previously unselected package python3-psycopg2. 1944s Preparing to unpack .../python3-psycopg2_2.9.9-1build1_armhf.deb ... 1944s Unpacking python3-psycopg2 (2.9.9-1build1) ... 1945s Selecting previously unselected package python3-pymysql. 1948s Preparing to unpack .../python3-pymysql_1.1.1-1ubuntu1_all.deb ... 1948s Unpacking python3-pymysql (1.1.1-1ubuntu1) ... 1949s Selecting previously unselected package autopkgtest-satdep. 1951s Preparing to unpack .../3-autopkgtest-satdep.deb ... 1951s Unpacking autopkgtest-satdep (0) ... 1952s Setting up libpq5:armhf (16.3-1) ... 1952s Setting up python3-psycopg2 (2.9.9-1build1) ... 1953s Setting up python3-pymysql (1.1.1-1ubuntu1) ... 1953s Setting up autopkgtest-satdep (0) ... 1953s Processing triggers for libc-bin (2.39-0ubuntu9) ... 1967s (Reading database ... 77713 files and directories currently installed.) 1967s Removing autopkgtest-satdep (0) ... 1973s autopkgtest [13:12:45]: test ignoredtests: [----------------------- 1975s === python3.12 === 1975s tests that use numba (may crash on non-x86) - checked with grep -rl -e numba pandas/tests - -m not slow because there are enough to time out otherwise 1977s ============================= test session starts ============================== 1977s platform linux -- Python 3.12.4, pytest-7.4.4, pluggy-1.5.0 -- /usr/bin/python3.12 1977s cachedir: .pytest_cache 1977s hypothesis profile 'ci' -> deadline=None, suppress_health_check=[HealthCheck.too_slow, HealthCheck.differing_executors], database=DirectoryBasedExampleDatabase(PosixPath('/tmp/autopkgtest.9HcbfU/autopkgtest_tmp/.hypothesis/examples')) 1977s rootdir: /usr/lib/python3/dist-packages/pandas/tests 1977s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 1977s asyncio: mode=Mode.STRICT 1978s collecting ... collected 10342 items / 536 deselected / 2 skipped / 9806 selected 1978s 1978s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_ufunc.py::test_unary_unary[int64] PASSED 1978s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_ufunc.py::test_unary_unary[Int64] PASSED 1978s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_ufunc.py::test_unary_unary[dtype2] PASSED 1978s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_ufunc.py::test_unary_binary[int64] PASSED 1979s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_ufunc.py::test_unary_binary[Int64] XFAIL 1979s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_ufunc.py::test_unary_binary[dtype2] XFAIL 1979s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_ufunc.py::test_binary_input_dispatch_binop[int64] PASSED 1979s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_ufunc.py::test_binary_input_dispatch_binop[Int64] PASSED 1979s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_ufunc.py::test_binary_input_dispatch_binop[dtype2] PASSED 1979s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_ufunc.py::test_ufunc_passes_args[add-1-expected0] PASSED 1979s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_ufunc.py::test_ufunc_passes_args[func1-arg1-expected1] PASSED 1979s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_ufunc.py::test_ufunc_passes_args[power-arg2-expected2] PASSED 1979s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_ufunc.py::test_ufunc_passes_args[subtract-2-expected3] PASSED 1979s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_ufunc.py::test_ufunc_passes_args[func4-None-expected4] PASSED 1980s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_ufunc.py::test_binary_input_aligns_columns[int64-int64] PASSED 1980s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_ufunc.py::test_binary_input_aligns_columns[int64-Int64] XFAIL 1981s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_ufunc.py::test_binary_input_aligns_columns[int64-dtype_a2] XFAIL 1981s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_ufunc.py::test_binary_input_aligns_columns[Int64-int64] XFAIL 1981s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_ufunc.py::test_binary_input_aligns_columns[Int64-Int64] XFAIL 1982s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_ufunc.py::test_binary_input_aligns_columns[Int64-dtype_a2] XFAIL 1982s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_ufunc.py::test_binary_input_aligns_columns[dtype_b2-int64] XFAIL 1982s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_ufunc.py::test_binary_input_aligns_columns[dtype_b2-Int64] XFAIL 1982s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_ufunc.py::test_binary_input_aligns_columns[dtype_b2-dtype_a2] XFAIL 1982s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_ufunc.py::test_binary_input_aligns_index[int64] PASSED 1983s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_ufunc.py::test_binary_input_aligns_index[Int64] XFAIL 1983s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_ufunc.py::test_binary_input_aligns_index[dtype2] XFAIL 1983s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_ufunc.py::test_binary_frame_series_raises PASSED 1983s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_ufunc.py::test_unary_accumulate_axis PASSED 1983s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_ufunc.py::test_frame_outer_disallowed PASSED 1983s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_ufunc.py::test_alignment_deprecation_enforced PASSED 1983s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_ufunc.py::test_alignment_deprecation_many_inputs_enforced SKIPPED 1983s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_ufunc.py::test_array_ufuncs_for_many_arguments PASSED 1983s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_timegrouper.py::TestGroupBy::test_groupby_with_timegrouper PASSED 1983s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_timegrouper.py::TestGroupBy::test_groupby_with_timegrouper_methods[True] PASSED 1983s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_timegrouper.py::TestGroupBy::test_groupby_with_timegrouper_methods[False] PASSED 1984s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_timegrouper.py::TestGroupBy::test_timegrouper_with_reg_groups PASSED 1984s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_timegrouper.py::TestGroupBy::test_timegrouper_with_reg_groups_freq[D] PASSED 1984s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_timegrouper.py::TestGroupBy::test_timegrouper_with_reg_groups_freq[M] PASSED 1984s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_timegrouper.py::TestGroupBy::test_timegrouper_with_reg_groups_freq[A] PASSED 1984s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_timegrouper.py::TestGroupBy::test_timegrouper_with_reg_groups_freq[Q-APR] PASSED 1985s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_timegrouper.py::TestGroupBy::test_timegrouper_get_group PASSED 1985s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_timegrouper.py::TestGroupBy::test_timegrouper_apply_return_type_series PASSED 1985s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_timegrouper.py::TestGroupBy::test_timegrouper_apply_return_type_value PASSED 1985s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_timegrouper.py::TestGroupBy::test_groupby_groups_datetimeindex PASSED 1985s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_timegrouper.py::TestGroupBy::test_groupby_groups_datetimeindex_tz PASSED 1986s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_timegrouper.py::TestGroupBy::test_frame_datetime64_handling_groupby PASSED 1986s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_timegrouper.py::TestGroupBy::test_groupby_multi_timezone PASSED 1986s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_timegrouper.py::TestGroupBy::test_groupby_groups_periods PASSED 1986s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_timegrouper.py::TestGroupBy::test_groupby_first_datetime64 PASSED 1986s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_timegrouper.py::TestGroupBy::test_groupby_max_datetime64 PASSED 1986s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_timegrouper.py::TestGroupBy::test_groupby_datetime64_32_bit PASSED 1987s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_timegrouper.py::TestGroupBy::test_groupby_with_timezone_selection PASSED 1987s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_timegrouper.py::TestGroupBy::test_timezone_info PASSED 1987s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_timegrouper.py::TestGroupBy::test_datetime_count PASSED 1987s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_timegrouper.py::TestGroupBy::test_first_last_max_min_on_time_data PASSED 1987s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_timegrouper.py::TestGroupBy::test_nunique_with_timegrouper_and_nat PASSED 1987s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_timegrouper.py::TestGroupBy::test_scalar_call_versus_list_call PASSED 1987s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_timegrouper.py::TestGroupBy::test_grouper_period_index PASSED 1987s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_timegrouper.py::TestGroupBy::test_groupby_apply_timegrouper_with_nat_dict_returns PASSED 1987s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_timegrouper.py::TestGroupBy::test_groupby_apply_timegrouper_with_nat_scalar_returns PASSED 1987s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_timegrouper.py::TestGroupBy::test_groupby_apply_timegrouper_with_nat_apply_squeeze PASSED 1987s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_timegrouper.py::TestGroupBy::test_groupby_agg_numba_timegrouper_with_nat SKIPPED 1987s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_correct_function_signature SKIPPED 1987s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_check_nopython_kwargs SKIPPED 1987s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_numba_vs_cython[False-True-True-True-Series-True] SKIPPED 1987s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_numba_vs_cython[False-True-True-True-Series-False] SKIPPED 1987s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_numba_vs_cython[False-True-True-True-DataFrame-True] SKIPPED 1987s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_numba_vs_cython[False-True-True-True-DataFrame-False] SKIPPED 1987s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_numba_vs_cython[False-True-True-False-Series-True] SKIPPED 1988s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_numba_vs_cython[False-True-True-False-Series-False] SKIPPED 1988s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_numba_vs_cython[False-True-True-False-DataFrame-True] SKIPPED 1988s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_numba_vs_cython[False-True-True-False-DataFrame-False] SKIPPED 1988s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_numba_vs_cython[False-False-True-True-Series-True] SKIPPED 1988s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_numba_vs_cython[False-False-True-True-Series-False] SKIPPED 1988s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_numba_vs_cython[False-False-True-True-DataFrame-True] SKIPPED 1988s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_numba_vs_cython[False-False-True-True-DataFrame-False] SKIPPED 1988s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_numba_vs_cython[False-False-True-False-Series-True] SKIPPED 1988s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_numba_vs_cython[False-False-True-False-Series-False] SKIPPED 1988s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_numba_vs_cython[False-False-True-False-DataFrame-True] SKIPPED 1988s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_numba_vs_cython[False-False-True-False-DataFrame-False] SKIPPED 1988s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_cache[False-True-True-Series-True] SKIPPED 1989s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_cache[False-True-True-Series-False] SKIPPED 1989s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_cache[False-True-True-DataFrame-True] SKIPPED 1989s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_cache[False-True-True-DataFrame-False] SKIPPED 1989s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_cache[False-False-True-Series-True] SKIPPED 1989s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_cache[False-False-True-Series-False] SKIPPED 1989s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_cache[False-False-True-DataFrame-True] SKIPPED 1989s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_cache[False-False-True-DataFrame-False] SKIPPED 1989s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_use_global_config SKIPPED 1989s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_string_cython_vs_numba[mean-agg_func0] SKIPPED 1989s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_string_cython_vs_numba[mean-min] SKIPPED 1989s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_string_cython_vs_numba[mean-agg_func2] SKIPPED 1989s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_string_cython_vs_numba[var_1-agg_func0] SKIPPED 1990s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_string_cython_vs_numba[var_1-min] SKIPPED 1990s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_string_cython_vs_numba[var_1-agg_func2] SKIPPED 1990s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_string_cython_vs_numba[var_0-agg_func0] SKIPPED 1990s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_string_cython_vs_numba[var_0-min] SKIPPED 1990s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_string_cython_vs_numba[var_0-agg_func2] SKIPPED 1990s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_string_cython_vs_numba[std_1-agg_func0] SKIPPED 1990s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_string_cython_vs_numba[std_1-min] SKIPPED 1990s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_string_cython_vs_numba[std_1-agg_func2] SKIPPED 1990s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_string_cython_vs_numba[std_0-agg_func0] SKIPPED 1990s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_string_cython_vs_numba[std_0-min] SKIPPED 1990s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_string_cython_vs_numba[std_0-agg_func2] SKIPPED 1990s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_string_cython_vs_numba[sum-agg_func0] SKIPPED 1990s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_string_cython_vs_numba[sum-min] SKIPPED 1990s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_string_cython_vs_numba[sum-agg_func2] SKIPPED 1990s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_string_cython_vs_numba[min-agg_func0] SKIPPED 1991s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_string_cython_vs_numba[min-min] SKIPPED 1991s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_string_cython_vs_numba[min-agg_func2] SKIPPED 1991s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_string_cython_vs_numba[max-agg_func0] SKIPPED 1991s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_string_cython_vs_numba[max-min] SKIPPED 1991s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_string_cython_vs_numba[max-agg_func2] SKIPPED 1991s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_string_cython_vs_numba[sum-min_count-agg_func0] SKIPPED 1991s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_string_cython_vs_numba[sum-min_count-min] SKIPPED 1991s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_string_cython_vs_numba[sum-min_count-agg_func2] SKIPPED 1991s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_string_cython_vs_numba[min-min_count-agg_func0] SKIPPED 1991s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_string_cython_vs_numba[min-min_count-min] SKIPPED 1991s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_string_cython_vs_numba[min-min_count-agg_func2] SKIPPED 1991s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_string_cython_vs_numba[max-min_count-agg_func0] SKIPPED 1991s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_string_cython_vs_numba[max-min_count-min] SKIPPED 1991s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_string_cython_vs_numba[max-min_count-agg_func2] SKIPPED 1991s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_args_not_cached SKIPPED 1991s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_index_data_correctly_passed SKIPPED 1991s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_engine_kwargs_not_cached SKIPPED 1992s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_multiindex_one_key[False-True-True] SKIPPED 1992s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_multiindex_one_key[False-False-True] SKIPPED 1992s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_multiindex_multi_key_not_supported[False-True-True] SKIPPED 1992s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_multiindex_multi_key_not_supported[False-False-True] SKIPPED 1992s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_multilabel_numba_vs_cython[mean] SKIPPED 1992s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_multilabel_numba_vs_cython[var_1] SKIPPED 1992s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_multilabel_numba_vs_cython[var_0] SKIPPED 1992s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_multilabel_numba_vs_cython[std_1] SKIPPED 1992s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_multilabel_numba_vs_cython[std_0] SKIPPED 1992s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_multilabel_numba_vs_cython[sum] SKIPPED 1992s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_multilabel_numba_vs_cython[min] SKIPPED 1993s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_multilabel_numba_vs_cython[max] SKIPPED 1993s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_multilabel_numba_vs_cython[sum-min_count] SKIPPED 1993s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_multilabel_numba_vs_cython[min-min_count] SKIPPED 1993s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_multilabel_numba_vs_cython[max-min_count] SKIPPED 1993s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_multilabel_udf_numba_vs_cython SKIPPED 1993s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_correct_function_signature SKIPPED 1993s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_check_nopython_kwargs SKIPPED 1993s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_numba_vs_cython[False-True-True-True-Series-True] SKIPPED 1993s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_numba_vs_cython[False-True-True-True-Series-False] SKIPPED 1993s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_numba_vs_cython[False-True-True-True-DataFrame-True] SKIPPED 1993s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_numba_vs_cython[False-True-True-True-DataFrame-False] SKIPPED 1993s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_numba_vs_cython[False-True-True-False-Series-True] SKIPPED 1993s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_numba_vs_cython[False-True-True-False-Series-False] SKIPPED 1993s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_numba_vs_cython[False-True-True-False-DataFrame-True] SKIPPED 1993s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_numba_vs_cython[False-True-True-False-DataFrame-False] SKIPPED 1993s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_numba_vs_cython[False-False-True-True-Series-True] SKIPPED 1993s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_numba_vs_cython[False-False-True-True-Series-False] SKIPPED 1993s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_numba_vs_cython[False-False-True-True-DataFrame-True] SKIPPED 1994s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_numba_vs_cython[False-False-True-True-DataFrame-False] SKIPPED 1994s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_numba_vs_cython[False-False-True-False-Series-True] SKIPPED 1994s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_numba_vs_cython[False-False-True-False-Series-False] SKIPPED 1994s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_numba_vs_cython[False-False-True-False-DataFrame-True] SKIPPED 1994s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_numba_vs_cython[False-False-True-False-DataFrame-False] SKIPPED 1994s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_cache[False-True-True-Series-True] SKIPPED 1994s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_cache[False-True-True-Series-False] SKIPPED 1994s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_cache[False-True-True-DataFrame-True] SKIPPED 1994s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_cache[False-True-True-DataFrame-False] SKIPPED 1994s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_cache[False-False-True-Series-True] SKIPPED 1994s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_cache[False-False-True-Series-False] SKIPPED 1994s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_cache[False-False-True-DataFrame-True] SKIPPED 1994s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_cache[False-False-True-DataFrame-False] SKIPPED 1994s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_use_global_config SKIPPED 1995s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_multifunc_numba_vs_cython_frame[agg_kwargs0] SKIPPED 1995s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_multifunc_numba_vs_cython_frame[agg_kwargs1] SKIPPED 1995s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_multifunc_numba_vs_cython_frame[agg_kwargs2] SKIPPED 1995s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_multifunc_numba_vs_cython_frame[agg_kwargs3] SKIPPED 1995s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_multifunc_numba_udf_frame[agg_kwargs0-sum] SKIPPED 1995s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_multifunc_numba_udf_frame[agg_kwargs1-expected_func1] SKIPPED 1995s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_multifunc_numba_vs_cython_series[agg_kwargs0] SKIPPED 1995s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_multifunc_numba_vs_cython_series[agg_kwargs1] SKIPPED 1995s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_multifunc_numba_vs_cython_series[agg_kwargs2] SKIPPED 1995s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_multifunc_numba_kwarg_propagation[data0-agg_kwargs0] SKIPPED 1995s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_multifunc_numba_kwarg_propagation[data1-agg_kwargs1] SKIPPED 1995s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_multifunc_numba_kwarg_propagation[data2-agg_kwargs2] SKIPPED 1995s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_multifunc_numba_kwarg_propagation[data3-agg_kwargs3] SKIPPED 1995s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_multifunc_numba_kwarg_propagation[data4-agg_kwargs4] SKIPPED 1995s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_multifunc_numba_kwarg_propagation[data5-agg_kwargs5] SKIPPED 1995s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_args_not_cached SKIPPED 1995s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_index_data_correctly_passed SKIPPED 1995s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_engine_kwargs_not_cached SKIPPED 1995s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_multiindex_one_key[False-True-True] SKIPPED 1995s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_multiindex_one_key[False-False-True] SKIPPED 1995s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_multiindex_multi_key_not_supported[False-True-True] SKIPPED 1995s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_multiindex_multi_key_not_supported[False-False-True] SKIPPED 1995s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_multilabel_numba_vs_cython[mean] SKIPPED 1995s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_multilabel_numba_vs_cython[var_1] SKIPPED 1995s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_multilabel_numba_vs_cython[var_0] SKIPPED 1995s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_multilabel_numba_vs_cython[std_1] SKIPPED 1995s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_multilabel_numba_vs_cython[std_0] SKIPPED 1995s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_multilabel_numba_vs_cython[sum] SKIPPED 1995s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_multilabel_numba_vs_cython[min] SKIPPED 1995s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_multilabel_numba_vs_cython[max] SKIPPED 1995s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_multilabel_numba_vs_cython[sum-min_count] SKIPPED 1995s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_multilabel_numba_vs_cython[min-min_count] SKIPPED 1995s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_multilabel_numba_vs_cython[max-min_count] SKIPPED 1995s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_multilabel_udf_numba_vs_cython SKIPPED 1995s ../../../usr/lib/python3/dist-packages/pandas/tests/util/test_numba.py::test_numba_not_installed_option_context PASSED 1995s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_getitem[None] PASSED 1995s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_getitem[1] PASSED 1995s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_getitem[2] PASSED 1995s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_getitem[5] PASSED 1996s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_getitem[10] PASSED 1996s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_select_bad_cols PASSED 1996s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_attribute_access PASSED 1996s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::tests_skip_nuisance[None] PASSED 1996s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::tests_skip_nuisance[1] PASSED 1996s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::tests_skip_nuisance[2] PASSED 1996s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::tests_skip_nuisance[5] PASSED 1996s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::tests_skip_nuisance[10] PASSED 1996s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_sum_object_str_raises[None] PASSED 1996s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_sum_object_str_raises[1] PASSED 1996s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_sum_object_str_raises[2] PASSED 1996s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_sum_object_str_raises[5] PASSED 1996s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_sum_object_str_raises[10] PASSED 1996s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_agg[None] PASSED 1996s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_agg[1] PASSED 1997s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_agg[2] PASSED 1997s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_agg[5] PASSED 1998s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_agg[10] PASSED 1998s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_multi_axis_1_raises[func0] PASSED 1998s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_multi_axis_1_raises[func1] PASSED 1999s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_multi_axis_1_raises[func2] PASSED 1999s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_multi_axis_1_raises[func3] PASSED 1999s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_agg_apply[True] PASSED 1999s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_agg_apply[False] PASSED 2000s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_agg_consistency[None] PASSED 2000s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_agg_consistency[1] PASSED 2000s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_agg_consistency[2] PASSED 2000s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_agg_consistency[5] PASSED 2001s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_agg_consistency[10] PASSED 2001s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_agg_nested_dicts PASSED 2001s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_count_nonnumeric_types[None] PASSED 2002s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_count_nonnumeric_types[1] PASSED 2004s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_count_nonnumeric_types[2] PASSED 2005s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_count_nonnumeric_types[5] PASSED 2006s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_count_nonnumeric_types[10] PASSED 2006s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_preserve_metadata PASSED 2006s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_multiple_agg_funcs[rolling-2-expected_vals0] PASSED 2006s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_multiple_agg_funcs[expanding-None-expected_vals1] PASSED 2006s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-left-True-None-None] PASSED 2007s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-left-True-None-1] PASSED 2008s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-left-True-None-2] PASSED 2008s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-left-True-None-5] PASSED 2008s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-left-True-None-10] PASSED 2008s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-left-True-1-None] PASSED 2008s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-left-True-1-1] PASSED 2009s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-left-True-1-2] PASSED 2009s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-left-True-1-5] PASSED 2009s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-left-True-1-10] PASSED 2009s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-left-False-None-None] PASSED 2009s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-left-False-None-1] PASSED 2009s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-left-False-None-2] PASSED 2009s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-left-False-None-5] PASSED 2010s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-left-False-None-10] PASSED 2010s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-left-False-1-None] PASSED 2010s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-left-False-1-1] PASSED 2010s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-left-False-1-2] PASSED 2010s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-left-False-1-5] PASSED 2011s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-left-False-1-10] PASSED 2011s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-right-True-None-None] PASSED 2012s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-right-True-None-1] PASSED 2012s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-right-True-None-2] PASSED 2012s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-right-True-None-5] PASSED 2012s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-right-True-None-10] PASSED 2012s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-right-True-1-None] PASSED 2012s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-right-True-1-1] PASSED 2013s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-right-True-1-2] PASSED 2013s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-right-True-1-5] PASSED 2013s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-right-True-1-10] PASSED 2013s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-right-False-None-None] PASSED 2013s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-right-False-None-1] PASSED 2013s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-right-False-None-2] PASSED 2013s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-right-False-None-5] PASSED 2014s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-right-False-None-10] PASSED 2014s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-right-False-1-None] PASSED 2014s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-right-False-1-1] PASSED 2014s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-right-False-1-2] PASSED 2014s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-right-False-1-5] PASSED 2014s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-right-False-1-10] PASSED 2014s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-both-True-None-None] PASSED 2015s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-both-True-None-1] PASSED 2015s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-both-True-None-2] PASSED 2015s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-both-True-None-5] PASSED 2015s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-both-True-None-10] PASSED 2015s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-both-True-1-None] PASSED 2015s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-both-True-1-1] PASSED 2015s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-both-True-1-2] PASSED 2015s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-both-True-1-5] PASSED 2015s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-both-True-1-10] PASSED 2015s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-both-False-None-None] PASSED 2015s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-both-False-None-1] PASSED 2015s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-both-False-None-2] PASSED 2015s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-both-False-None-5] PASSED 2015s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-both-False-None-10] PASSED 2015s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-both-False-1-None] PASSED 2015s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-both-False-1-1] PASSED 2015s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-both-False-1-2] PASSED 2015s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-both-False-1-5] PASSED 2015s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-both-False-1-10] PASSED 2015s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-neither-True-None-None] PASSED 2015s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-neither-True-None-1] PASSED 2015s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-neither-True-None-2] PASSED 2015s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-neither-True-None-5] PASSED 2015s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-neither-True-None-10] PASSED 2015s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-neither-True-1-None] PASSED 2015s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-neither-True-1-1] PASSED 2015s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-neither-True-1-2] PASSED 2015s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-neither-True-1-5] PASSED 2015s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-neither-True-1-10] PASSED 2015s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-neither-False-None-None] PASSED 2015s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-neither-False-None-1] PASSED 2016s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-neither-False-None-2] PASSED 2016s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-neither-False-None-5] PASSED 2016s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-neither-False-None-10] PASSED 2016s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-neither-False-1-None] PASSED 2016s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-neither-False-1-1] PASSED 2016s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-neither-False-1-2] PASSED 2016s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-neither-False-1-5] PASSED 2016s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-neither-False-1-10] PASSED 2016s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-left-True-None-None] PASSED 2016s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-left-True-None-1] PASSED 2016s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-left-True-None-2] PASSED 2016s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-left-True-None-5] PASSED 2016s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-left-True-None-10] PASSED 2016s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-left-True-1-None] PASSED 2016s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-left-True-1-1] PASSED 2016s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-left-True-1-2] PASSED 2016s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-left-True-1-5] PASSED 2016s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-left-True-1-10] PASSED 2016s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-left-False-None-None] PASSED 2016s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-left-False-None-1] PASSED 2016s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-left-False-None-2] PASSED 2016s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-left-False-None-5] PASSED 2016s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-left-False-None-10] PASSED 2016s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-left-False-1-None] PASSED 2016s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-left-False-1-1] PASSED 2017s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-left-False-1-2] PASSED 2017s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-left-False-1-5] PASSED 2017s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-left-False-1-10] PASSED 2017s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-right-True-None-None] PASSED 2017s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-right-True-None-1] PASSED 2017s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-right-True-None-2] PASSED 2017s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-right-True-None-5] PASSED 2017s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-right-True-None-10] PASSED 2017s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-right-True-1-None] PASSED 2017s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-right-True-1-1] PASSED 2017s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-right-True-1-2] PASSED 2017s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-right-True-1-5] PASSED 2017s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-right-True-1-10] PASSED 2017s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-right-False-None-None] PASSED 2017s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-right-False-None-1] PASSED 2017s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-right-False-None-2] PASSED 2017s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-right-False-None-5] PASSED 2017s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-right-False-None-10] PASSED 2017s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-right-False-1-None] PASSED 2017s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-right-False-1-1] PASSED 2018s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-right-False-1-2] PASSED 2018s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-right-False-1-5] PASSED 2018s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-right-False-1-10] PASSED 2018s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-both-True-None-None] PASSED 2018s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-both-True-None-1] PASSED 2018s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-both-True-None-2] PASSED 2018s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-both-True-None-5] PASSED 2018s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-both-True-None-10] PASSED 2018s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-both-True-1-None] PASSED 2018s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-both-True-1-1] PASSED 2018s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-both-True-1-2] PASSED 2018s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-both-True-1-5] PASSED 2018s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-both-True-1-10] PASSED 2018s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-both-False-None-None] PASSED 2018s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-both-False-None-1] PASSED 2019s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-both-False-None-2] PASSED 2019s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-both-False-None-5] PASSED 2019s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-both-False-None-10] PASSED 2019s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-both-False-1-None] PASSED 2019s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-both-False-1-1] PASSED 2019s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-both-False-1-2] PASSED 2019s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-both-False-1-5] PASSED 2019s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-both-False-1-10] PASSED 2019s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-neither-True-None-None] PASSED 2019s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-neither-True-None-1] PASSED 2019s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-neither-True-None-2] PASSED 2019s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-neither-True-None-5] PASSED 2019s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-neither-True-None-10] PASSED 2019s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-neither-True-1-None] PASSED 2019s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-neither-True-1-1] PASSED 2019s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-neither-True-1-2] PASSED 2019s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-neither-True-1-5] PASSED 2019s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-neither-True-1-10] PASSED 2019s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-neither-False-None-None] PASSED 2019s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-neither-False-None-1] PASSED 2019s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-neither-False-None-2] PASSED 2019s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-neither-False-None-5] PASSED 2019s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-neither-False-None-10] PASSED 2019s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-neither-False-1-None] PASSED 2020s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-neither-False-1-1] PASSED 2020s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-neither-False-1-2] PASSED 2020s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-neither-False-1-5] PASSED 2020s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-neither-False-1-10] PASSED 2020s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-left-True-None-None] PASSED 2020s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-left-True-None-1] PASSED 2020s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-left-True-None-2] PASSED 2020s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-left-True-None-5] PASSED 2020s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-left-True-None-10] PASSED 2020s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-left-True-1-None] PASSED 2020s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-left-True-1-1] PASSED 2020s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-left-True-1-2] PASSED 2020s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-left-True-1-5] PASSED 2021s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-left-True-1-10] PASSED 2021s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-left-False-None-None] PASSED 2021s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-left-False-None-1] PASSED 2022s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-left-False-None-2] PASSED 2022s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-left-False-None-5] PASSED 2022s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-left-False-None-10] PASSED 2022s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-left-False-1-None] PASSED 2022s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-left-False-1-1] PASSED 2022s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-left-False-1-2] PASSED 2022s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-left-False-1-5] PASSED 2023s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-left-False-1-10] PASSED 2023s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-right-True-None-None] PASSED 2023s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-right-True-None-1] PASSED 2023s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-right-True-None-2] PASSED 2023s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-right-True-None-5] PASSED 2023s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-right-True-None-10] PASSED 2023s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-right-True-1-None] PASSED 2023s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-right-True-1-1] PASSED 2023s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-right-True-1-2] PASSED 2023s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-right-True-1-5] PASSED 2023s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-right-True-1-10] PASSED 2023s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-right-False-None-None] PASSED 2023s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-right-False-None-1] PASSED 2023s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-right-False-None-2] PASSED 2023s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-right-False-None-5] PASSED 2023s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-right-False-None-10] PASSED 2023s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-right-False-1-None] PASSED 2023s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-right-False-1-1] PASSED 2023s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-right-False-1-2] PASSED 2023s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-right-False-1-5] PASSED 2023s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-right-False-1-10] PASSED 2023s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-both-True-None-None] PASSED 2023s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-both-True-None-1] PASSED 2024s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-both-True-None-2] PASSED 2024s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-both-True-None-5] PASSED 2024s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-both-True-None-10] PASSED 2024s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-both-True-1-None] PASSED 2024s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-both-True-1-1] PASSED 2024s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-both-True-1-2] PASSED 2024s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-both-True-1-5] PASSED 2024s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-both-True-1-10] PASSED 2024s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-both-False-None-None] PASSED 2024s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-both-False-None-1] PASSED 2024s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-both-False-None-2] PASSED 2024s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-both-False-None-5] PASSED 2025s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-both-False-None-10] PASSED 2025s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-both-False-1-None] PASSED 2025s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-both-False-1-1] PASSED 2025s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-both-False-1-2] PASSED 2025s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-both-False-1-5] PASSED 2025s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-both-False-1-10] PASSED 2025s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-neither-True-None-None] PASSED 2025s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-neither-True-None-1] PASSED 2025s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-neither-True-None-2] PASSED 2025s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-neither-True-None-5] PASSED 2025s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-neither-True-None-10] PASSED 2025s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-neither-True-1-None] PASSED 2025s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-neither-True-1-1] PASSED 2025s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-neither-True-1-2] PASSED 2025s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-neither-True-1-5] PASSED 2025s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-neither-True-1-10] PASSED 2025s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-neither-False-None-None] PASSED 2025s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-neither-False-None-1] PASSED 2025s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-neither-False-None-2] PASSED 2025s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-neither-False-None-5] PASSED 2026s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-neither-False-None-10] PASSED 2026s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-neither-False-1-None] PASSED 2026s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-neither-False-1-1] PASSED 2026s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-neither-False-1-2] PASSED 2026s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-neither-False-1-5] PASSED 2027s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-neither-False-1-10] PASSED 2028s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-left-True-None-None] PASSED 2028s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-left-True-None-1] PASSED 2028s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-left-True-None-2] PASSED 2028s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-left-True-None-5] PASSED 2028s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-left-True-None-10] PASSED 2028s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-left-True-1-None] PASSED 2028s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-left-True-1-1] PASSED 2028s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-left-True-1-2] PASSED 2029s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-left-True-1-5] PASSED 2029s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-left-True-1-10] PASSED 2029s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-left-False-None-None] PASSED 2029s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-left-False-None-1] PASSED 2029s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-left-False-None-2] PASSED 2029s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-left-False-None-5] PASSED 2029s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-left-False-None-10] PASSED 2029s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-left-False-1-None] PASSED 2029s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-left-False-1-1] PASSED 2029s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-left-False-1-2] PASSED 2029s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-left-False-1-5] PASSED 2029s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-left-False-1-10] PASSED 2029s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-right-True-None-None] PASSED 2029s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-right-True-None-1] PASSED 2029s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-right-True-None-2] PASSED 2029s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-right-True-None-5] PASSED 2029s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-right-True-None-10] PASSED 2029s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-right-True-1-None] PASSED 2029s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-right-True-1-1] PASSED 2029s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-right-True-1-2] PASSED 2029s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-right-True-1-5] PASSED 2029s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-right-True-1-10] PASSED 2029s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-right-False-None-None] PASSED 2029s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-right-False-None-1] PASSED 2030s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-right-False-None-2] PASSED 2030s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-right-False-None-5] PASSED 2030s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-right-False-None-10] PASSED 2030s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-right-False-1-None] PASSED 2030s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-right-False-1-1] PASSED 2030s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-right-False-1-2] PASSED 2030s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-right-False-1-5] PASSED 2030s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-right-False-1-10] PASSED 2030s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-both-True-None-None] PASSED 2030s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-both-True-None-1] PASSED 2030s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-both-True-None-2] PASSED 2030s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-both-True-None-5] PASSED 2030s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-both-True-None-10] PASSED 2030s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-both-True-1-None] PASSED 2030s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-both-True-1-1] PASSED 2030s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-both-True-1-2] PASSED 2030s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-both-True-1-5] PASSED 2030s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-both-True-1-10] PASSED 2030s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-both-False-None-None] PASSED 2030s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-both-False-None-1] PASSED 2030s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-both-False-None-2] PASSED 2031s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-both-False-None-5] PASSED 2031s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-both-False-None-10] PASSED 2031s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-both-False-1-None] PASSED 2031s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-both-False-1-1] PASSED 2031s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-both-False-1-2] PASSED 2031s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-both-False-1-5] PASSED 2031s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-both-False-1-10] PASSED 2031s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-neither-True-None-None] PASSED 2031s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-neither-True-None-1] PASSED 2031s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-neither-True-None-2] PASSED 2031s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-neither-True-None-5] PASSED 2031s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-neither-True-None-10] PASSED 2031s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-neither-True-1-None] PASSED 2031s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-neither-True-1-1] PASSED 2031s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-neither-True-1-2] PASSED 2031s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-neither-True-1-5] PASSED 2031s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-neither-True-1-10] PASSED 2031s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-neither-False-None-None] PASSED 2031s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-neither-False-None-1] PASSED 2031s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-neither-False-None-2] PASSED 2031s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-neither-False-None-5] PASSED 2031s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-neither-False-None-10] PASSED 2031s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-neither-False-1-None] PASSED 2031s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-neither-False-1-1] PASSED 2031s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-neither-False-1-2] PASSED 2031s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-neither-False-1-5] PASSED 2031s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-neither-False-1-10] PASSED 2031s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-left-True-None-None] PASSED 2032s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-left-True-None-1] PASSED 2032s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-left-True-None-2] PASSED 2032s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-left-True-None-5] PASSED 2032s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-left-True-None-10] PASSED 2032s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-left-True-1-None] PASSED 2032s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-left-True-1-1] PASSED 2032s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-left-True-1-2] PASSED 2032s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-left-True-1-5] PASSED 2032s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-left-True-1-10] PASSED 2032s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-left-False-None-None] PASSED 2032s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-left-False-None-1] PASSED 2032s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-left-False-None-2] PASSED 2032s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-left-False-None-5] PASSED 2032s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-left-False-None-10] PASSED 2032s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-left-False-1-None] PASSED 2032s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-left-False-1-1] PASSED 2032s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-left-False-1-2] PASSED 2032s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-left-False-1-5] PASSED 2032s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-left-False-1-10] PASSED 2032s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-right-True-None-None] PASSED 2032s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-right-True-None-1] PASSED 2032s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-right-True-None-2] PASSED 2032s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-right-True-None-5] PASSED 2032s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-right-True-None-10] PASSED 2032s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-right-True-1-None] PASSED 2032s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-right-True-1-1] PASSED 2033s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-right-True-1-2] PASSED 2033s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-right-True-1-5] PASSED 2033s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-right-True-1-10] PASSED 2033s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-right-False-None-None] PASSED 2033s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-right-False-None-1] PASSED 2033s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-right-False-None-2] PASSED 2033s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-right-False-None-5] PASSED 2033s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-right-False-None-10] PASSED 2033s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-right-False-1-None] PASSED 2033s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-right-False-1-1] PASSED 2033s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-right-False-1-2] PASSED 2033s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-right-False-1-5] PASSED 2033s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-right-False-1-10] PASSED 2033s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-both-True-None-None] PASSED 2033s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-both-True-None-1] PASSED 2033s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-both-True-None-2] PASSED 2034s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-both-True-None-5] PASSED 2034s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-both-True-None-10] PASSED 2034s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-both-True-1-None] PASSED 2034s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-both-True-1-1] PASSED 2034s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-both-True-1-2] PASSED 2034s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-both-True-1-5] PASSED 2034s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-both-True-1-10] PASSED 2034s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-both-False-None-None] PASSED 2034s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-both-False-None-1] PASSED 2034s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-both-False-None-2] PASSED 2034s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-both-False-None-5] PASSED 2034s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-both-False-None-10] PASSED 2034s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-both-False-1-None] PASSED 2034s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-both-False-1-1] PASSED 2034s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-both-False-1-2] PASSED 2034s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-both-False-1-5] PASSED 2034s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-both-False-1-10] PASSED 2034s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-neither-True-None-None] PASSED 2034s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-neither-True-None-1] PASSED 2034s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-neither-True-None-2] PASSED 2034s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-neither-True-None-5] PASSED 2034s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-neither-True-None-10] PASSED 2034s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-neither-True-1-None] PASSED 2034s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-neither-True-1-1] PASSED 2034s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-neither-True-1-2] PASSED 2034s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-neither-True-1-5] PASSED 2034s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-neither-True-1-10] PASSED 2034s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-neither-False-None-None] PASSED 2034s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-neither-False-None-1] PASSED 2034s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-neither-False-None-2] PASSED 2034s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-neither-False-None-5] PASSED 2034s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-neither-False-None-10] PASSED 2034s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-neither-False-1-None] PASSED 2034s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-neither-False-1-1] PASSED 2035s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-neither-False-1-2] PASSED 2035s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-neither-False-1-5] PASSED 2035s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-neither-False-1-10] PASSED 2035s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-left-True-None-None] PASSED 2035s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-left-True-None-1] PASSED 2035s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-left-True-None-2] PASSED 2036s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-left-True-None-5] PASSED 2036s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-left-True-None-10] PASSED 2036s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-left-True-1-None] PASSED 2036s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-left-True-1-1] PASSED 2036s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-left-True-1-2] PASSED 2037s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-left-True-1-5] PASSED 2037s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-left-True-1-10] PASSED 2037s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-left-False-None-None] PASSED 2037s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-left-False-None-1] PASSED 2037s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-left-False-None-2] PASSED 2037s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-left-False-None-5] PASSED 2037s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-left-False-None-10] PASSED 2037s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-left-False-1-None] PASSED 2037s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-left-False-1-1] PASSED 2037s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-left-False-1-2] PASSED 2037s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-left-False-1-5] PASSED 2037s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-left-False-1-10] PASSED 2037s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-right-True-None-None] PASSED 2037s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-right-True-None-1] PASSED 2037s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-right-True-None-2] PASSED 2037s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-right-True-None-5] PASSED 2037s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-right-True-None-10] PASSED 2037s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-right-True-1-None] PASSED 2037s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-right-True-1-1] PASSED 2038s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-right-True-1-2] PASSED 2038s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-right-True-1-5] PASSED 2038s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-right-True-1-10] PASSED 2038s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-right-False-None-None] PASSED 2038s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-right-False-None-1] PASSED 2038s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-right-False-None-2] PASSED 2038s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-right-False-None-5] PASSED 2038s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-right-False-None-10] PASSED 2038s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-right-False-1-None] PASSED 2038s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-right-False-1-1] PASSED 2038s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-right-False-1-2] PASSED 2038s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-right-False-1-5] PASSED 2038s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-right-False-1-10] PASSED 2038s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-both-True-None-None] PASSED 2038s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-both-True-None-1] PASSED 2038s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-both-True-None-2] PASSED 2038s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-both-True-None-5] PASSED 2038s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-both-True-None-10] PASSED 2038s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-both-True-1-None] PASSED 2038s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-both-True-1-1] PASSED 2038s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-both-True-1-2] PASSED 2038s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-both-True-1-5] PASSED 2038s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-both-True-1-10] PASSED 2038s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-both-False-None-None] PASSED 2038s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-both-False-None-1] PASSED 2038s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-both-False-None-2] PASSED 2038s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-both-False-None-5] PASSED 2038s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-both-False-None-10] PASSED 2038s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-both-False-1-None] PASSED 2038s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-both-False-1-1] PASSED 2038s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-both-False-1-2] PASSED 2039s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-both-False-1-5] PASSED 2039s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-both-False-1-10] PASSED 2039s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-neither-True-None-None] PASSED 2039s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-neither-True-None-1] PASSED 2039s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-neither-True-None-2] PASSED 2039s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-neither-True-None-5] PASSED 2039s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-neither-True-None-10] PASSED 2039s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-neither-True-1-None] PASSED 2039s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-neither-True-1-1] PASSED 2039s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-neither-True-1-2] PASSED 2039s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-neither-True-1-5] PASSED 2039s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-neither-True-1-10] PASSED 2039s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-neither-False-None-None] PASSED 2039s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-neither-False-None-1] PASSED 2039s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-neither-False-None-2] PASSED 2039s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-neither-False-None-5] PASSED 2039s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-neither-False-None-10] PASSED 2039s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-neither-False-1-None] PASSED 2039s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-neither-False-1-1] PASSED 2039s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-neither-False-1-2] PASSED 2039s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-neither-False-1-5] PASSED 2039s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-neither-False-1-10] PASSED 2039s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-left-True-None-None] PASSED 2039s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-left-True-None-1] PASSED 2039s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-left-True-None-2] PASSED 2039s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-left-True-None-5] PASSED 2039s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-left-True-None-10] PASSED 2040s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-left-True-1-None] PASSED 2040s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-left-True-1-1] PASSED 2040s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-left-True-1-2] PASSED 2040s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-left-True-1-5] PASSED 2040s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-left-True-1-10] PASSED 2040s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-left-False-None-None] PASSED 2040s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-left-False-None-1] PASSED 2040s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-left-False-None-2] PASSED 2040s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-left-False-None-5] PASSED 2040s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-left-False-None-10] PASSED 2040s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-left-False-1-None] PASSED 2040s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-left-False-1-1] PASSED 2040s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-left-False-1-2] PASSED 2040s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-left-False-1-5] PASSED 2040s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-left-False-1-10] PASSED 2040s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-right-True-None-None] PASSED 2040s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-right-True-None-1] PASSED 2041s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-right-True-None-2] PASSED 2041s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-right-True-None-5] PASSED 2041s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-right-True-None-10] PASSED 2041s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-right-True-1-None] PASSED 2041s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-right-True-1-1] PASSED 2041s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-right-True-1-2] PASSED 2041s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-right-True-1-5] PASSED 2041s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-right-True-1-10] PASSED 2041s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-right-False-None-None] PASSED 2041s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-right-False-None-1] PASSED 2041s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-right-False-None-2] PASSED 2041s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-right-False-None-5] PASSED 2041s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-right-False-None-10] PASSED 2041s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-right-False-1-None] PASSED 2041s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-right-False-1-1] PASSED 2041s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-right-False-1-2] PASSED 2041s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-right-False-1-5] PASSED 2041s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-right-False-1-10] PASSED 2042s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-both-True-None-None] PASSED 2042s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-both-True-None-1] PASSED 2042s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-both-True-None-2] PASSED 2042s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-both-True-None-5] PASSED 2042s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-both-True-None-10] PASSED 2042s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-both-True-1-None] PASSED 2042s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-both-True-1-1] PASSED 2042s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-both-True-1-2] PASSED 2042s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-both-True-1-5] PASSED 2042s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-both-True-1-10] PASSED 2042s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-both-False-None-None] PASSED 2042s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-both-False-None-1] PASSED 2042s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-both-False-None-2] PASSED 2042s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-both-False-None-5] PASSED 2042s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-both-False-None-10] PASSED 2042s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-both-False-1-None] PASSED 2042s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-both-False-1-1] PASSED 2042s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-both-False-1-2] PASSED 2042s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-both-False-1-5] PASSED 2042s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-both-False-1-10] PASSED 2042s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-neither-True-None-None] PASSED 2042s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-neither-True-None-1] PASSED 2042s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-neither-True-None-2] PASSED 2043s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-neither-True-None-5] PASSED 2043s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-neither-True-None-10] PASSED 2043s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-neither-True-1-None] PASSED 2043s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-neither-True-1-1] PASSED 2043s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-neither-True-1-2] PASSED 2043s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-neither-True-1-5] PASSED 2043s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-neither-True-1-10] PASSED 2043s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-neither-False-None-None] PASSED 2043s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-neither-False-None-1] PASSED 2043s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-neither-False-None-2] PASSED 2043s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-neither-False-None-5] PASSED 2043s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-neither-False-None-10] PASSED 2043s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-neither-False-1-None] PASSED 2043s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-neither-False-1-1] PASSED 2043s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-neither-False-1-2] PASSED 2043s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-neither-False-1-5] PASSED 2043s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-neither-False-1-10] PASSED 2043s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-left-True-None-None] PASSED 2043s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-left-True-None-1] PASSED 2043s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-left-True-None-2] PASSED 2043s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-left-True-None-5] PASSED 2043s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-left-True-None-10] PASSED 2043s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-left-True-1-None] PASSED 2043s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-left-True-1-1] PASSED 2043s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-left-True-1-2] PASSED 2043s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-left-True-1-5] PASSED 2043s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-left-True-1-10] PASSED 2043s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-left-False-None-None] PASSED 2043s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-left-False-None-1] PASSED 2043s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-left-False-None-2] PASSED 2043s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-left-False-None-5] PASSED 2044s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-left-False-None-10] PASSED 2044s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-left-False-1-None] PASSED 2044s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-left-False-1-1] PASSED 2044s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-left-False-1-2] PASSED 2044s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-left-False-1-5] PASSED 2044s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-left-False-1-10] PASSED 2044s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-right-True-None-None] PASSED 2044s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-right-True-None-1] PASSED 2044s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-right-True-None-2] PASSED 2044s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-right-True-None-5] PASSED 2044s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-right-True-None-10] PASSED 2044s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-right-True-1-None] PASSED 2044s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-right-True-1-1] PASSED 2044s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-right-True-1-2] PASSED 2044s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-right-True-1-5] PASSED 2044s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-right-True-1-10] PASSED 2044s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-right-False-None-None] PASSED 2044s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-right-False-None-1] PASSED 2044s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-right-False-None-2] PASSED 2044s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-right-False-None-5] PASSED 2044s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-right-False-None-10] PASSED 2044s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-right-False-1-None] PASSED 2045s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-right-False-1-1] PASSED 2045s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-right-False-1-2] PASSED 2045s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-right-False-1-5] PASSED 2045s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-right-False-1-10] PASSED 2045s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-both-True-None-None] PASSED 2045s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-both-True-None-1] PASSED 2045s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-both-True-None-2] PASSED 2045s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-both-True-None-5] PASSED 2045s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-both-True-None-10] PASSED 2045s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-both-True-1-None] PASSED 2045s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-both-True-1-1] PASSED 2045s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-both-True-1-2] PASSED 2045s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-both-True-1-5] PASSED 2045s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-both-True-1-10] PASSED 2045s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-both-False-None-None] PASSED 2045s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-both-False-None-1] PASSED 2045s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-both-False-None-2] PASSED 2045s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-both-False-None-5] PASSED 2045s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-both-False-None-10] PASSED 2045s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-both-False-1-None] PASSED 2045s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-both-False-1-1] PASSED 2045s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-both-False-1-2] PASSED 2045s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-both-False-1-5] PASSED 2045s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-both-False-1-10] PASSED 2045s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-neither-True-None-None] PASSED 2045s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-neither-True-None-1] PASSED 2045s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-neither-True-None-2] PASSED 2045s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-neither-True-None-5] PASSED 2045s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-neither-True-None-10] PASSED 2045s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-neither-True-1-None] PASSED 2046s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-neither-True-1-1] PASSED 2046s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-neither-True-1-2] PASSED 2046s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-neither-True-1-5] PASSED 2046s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-neither-True-1-10] PASSED 2046s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-neither-False-None-None] PASSED 2046s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-neither-False-None-1] PASSED 2046s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-neither-False-None-2] PASSED 2046s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-neither-False-None-5] PASSED 2046s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-neither-False-None-10] PASSED 2046s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-neither-False-1-None] PASSED 2046s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-neither-False-1-1] PASSED 2046s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-neither-False-1-2] PASSED 2046s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-neither-False-1-5] PASSED 2046s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-neither-False-1-10] PASSED 2046s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-left-True-None-None] PASSED 2046s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-left-True-None-1] PASSED 2046s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-left-True-None-2] PASSED 2046s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-left-True-None-5] PASSED 2046s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-left-True-None-10] PASSED 2046s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-left-True-1-None] PASSED 2046s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-left-True-1-1] PASSED 2046s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-left-True-1-2] PASSED 2046s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-left-True-1-5] PASSED 2046s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-left-True-1-10] PASSED 2046s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-left-False-None-None] PASSED 2046s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-left-False-None-1] PASSED 2046s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-left-False-None-2] PASSED 2046s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-left-False-None-5] PASSED 2046s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-left-False-None-10] PASSED 2046s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-left-False-1-None] PASSED 2046s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-left-False-1-1] PASSED 2046s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-left-False-1-2] PASSED 2046s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-left-False-1-5] PASSED 2046s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-left-False-1-10] PASSED 2046s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-right-True-None-None] PASSED 2046s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-right-True-None-1] PASSED 2046s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-right-True-None-2] PASSED 2046s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-right-True-None-5] PASSED 2047s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-right-True-None-10] PASSED 2047s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-right-True-1-None] PASSED 2047s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-right-True-1-1] PASSED 2047s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-right-True-1-2] PASSED 2047s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-right-True-1-5] PASSED 2047s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-right-True-1-10] PASSED 2047s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-right-False-None-None] PASSED 2047s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-right-False-None-1] PASSED 2047s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-right-False-None-2] PASSED 2047s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-right-False-None-5] PASSED 2047s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-right-False-None-10] PASSED 2047s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-right-False-1-None] PASSED 2047s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-right-False-1-1] PASSED 2047s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-right-False-1-2] PASSED 2047s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-right-False-1-5] PASSED 2047s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-right-False-1-10] PASSED 2047s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-both-True-None-None] PASSED 2047s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-both-True-None-1] PASSED 2047s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-both-True-None-2] PASSED 2047s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-both-True-None-5] PASSED 2047s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-both-True-None-10] PASSED 2047s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-both-True-1-None] PASSED 2047s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-both-True-1-1] PASSED 2047s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-both-True-1-2] PASSED 2047s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-both-True-1-5] PASSED 2047s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-both-True-1-10] PASSED 2047s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-both-False-None-None] PASSED 2047s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-both-False-None-1] PASSED 2047s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-both-False-None-2] PASSED 2047s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-both-False-None-5] PASSED 2047s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-both-False-None-10] PASSED 2047s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-both-False-1-None] PASSED 2047s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-both-False-1-1] PASSED 2047s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-both-False-1-2] PASSED 2047s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-both-False-1-5] PASSED 2047s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-both-False-1-10] PASSED 2047s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-neither-True-None-None] PASSED 2047s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-neither-True-None-1] PASSED 2047s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-neither-True-None-2] PASSED 2047s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-neither-True-None-5] PASSED 2048s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-neither-True-None-10] PASSED 2048s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-neither-True-1-None] PASSED 2048s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-neither-True-1-1] PASSED 2048s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-neither-True-1-2] PASSED 2048s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-neither-True-1-5] PASSED 2048s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-neither-True-1-10] PASSED 2048s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-neither-False-None-None] PASSED 2048s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-neither-False-None-1] PASSED 2048s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-neither-False-None-2] PASSED 2048s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-neither-False-None-5] PASSED 2048s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-neither-False-None-10] PASSED 2048s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-neither-False-1-None] PASSED 2048s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-neither-False-1-1] PASSED 2048s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-neither-False-1-2] PASSED 2048s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-neither-False-1-5] PASSED 2048s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-neither-False-1-10] PASSED 2048s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-left-True-None-None] PASSED 2048s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-left-True-None-1] PASSED 2048s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-left-True-None-2] PASSED 2048s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-left-True-None-5] PASSED 2048s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-left-True-None-10] PASSED 2048s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-left-True-1-None] PASSED 2048s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-left-True-1-1] PASSED 2048s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-left-True-1-2] PASSED 2048s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-left-True-1-5] PASSED 2048s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-left-True-1-10] PASSED 2048s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-left-False-None-None] PASSED 2048s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-left-False-None-1] PASSED 2048s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-left-False-None-2] PASSED 2048s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-left-False-None-5] PASSED 2048s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-left-False-None-10] PASSED 2048s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-left-False-1-None] PASSED 2048s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-left-False-1-1] PASSED 2048s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-left-False-1-2] PASSED 2048s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-left-False-1-5] PASSED 2048s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-left-False-1-10] PASSED 2048s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-right-True-None-None] PASSED 2048s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-right-True-None-1] PASSED 2048s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-right-True-None-2] PASSED 2048s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-right-True-None-5] PASSED 2048s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-right-True-None-10] PASSED 2049s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-right-True-1-None] PASSED 2049s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-right-True-1-1] PASSED 2049s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-right-True-1-2] PASSED 2049s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-right-True-1-5] PASSED 2049s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-right-True-1-10] PASSED 2049s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-right-False-None-None] PASSED 2049s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-right-False-None-1] PASSED 2049s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-right-False-None-2] PASSED 2049s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-right-False-None-5] PASSED 2049s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-right-False-None-10] PASSED 2049s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-right-False-1-None] PASSED 2049s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-right-False-1-1] PASSED 2049s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-right-False-1-2] PASSED 2049s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-right-False-1-5] PASSED 2049s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-right-False-1-10] PASSED 2049s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-both-True-None-None] PASSED 2049s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-both-True-None-1] PASSED 2049s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-both-True-None-2] PASSED 2049s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-both-True-None-5] PASSED 2049s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-both-True-None-10] PASSED 2049s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-both-True-1-None] PASSED 2049s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-both-True-1-1] PASSED 2049s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-both-True-1-2] PASSED 2049s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-both-True-1-5] PASSED 2049s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-both-True-1-10] PASSED 2049s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-both-False-None-None] PASSED 2049s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-both-False-None-1] PASSED 2049s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-both-False-None-2] PASSED 2049s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-both-False-None-5] PASSED 2049s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-both-False-None-10] PASSED 2049s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-both-False-1-None] PASSED 2049s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-both-False-1-1] PASSED 2049s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-both-False-1-2] PASSED 2049s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-both-False-1-5] PASSED 2049s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-both-False-1-10] PASSED 2049s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-neither-True-None-None] PASSED 2049s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-neither-True-None-1] PASSED 2049s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-neither-True-None-2] PASSED 2049s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-neither-True-None-5] PASSED 2049s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-neither-True-None-10] PASSED 2049s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-neither-True-1-None] PASSED 2049s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-neither-True-1-1] PASSED 2049s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-neither-True-1-2] PASSED 2049s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-neither-True-1-5] PASSED 2050s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-neither-True-1-10] PASSED 2050s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-neither-False-None-None] PASSED 2050s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-neither-False-None-1] PASSED 2050s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-neither-False-None-2] PASSED 2050s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-neither-False-None-5] PASSED 2050s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-neither-False-None-10] PASSED 2050s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-neither-False-1-None] PASSED 2050s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-neither-False-1-1] PASSED 2050s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-neither-False-1-2] PASSED 2050s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-neither-False-1-5] PASSED 2050s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-neither-False-1-10] PASSED 2050s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-left-True-None-None] PASSED 2050s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-left-True-None-1] PASSED 2050s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-left-True-None-2] PASSED 2050s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-left-True-None-5] PASSED 2050s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-left-True-None-10] PASSED 2050s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-left-True-1-None] PASSED 2050s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-left-True-1-1] PASSED 2050s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-left-True-1-2] PASSED 2050s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-left-True-1-5] PASSED 2050s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-left-True-1-10] PASSED 2050s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-left-False-None-None] PASSED 2050s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-left-False-None-1] PASSED 2050s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-left-False-None-2] PASSED 2050s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-left-False-None-5] PASSED 2050s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-left-False-None-10] PASSED 2050s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-left-False-1-None] PASSED 2050s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-left-False-1-1] PASSED 2050s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-left-False-1-2] PASSED 2050s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-left-False-1-5] PASSED 2050s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-left-False-1-10] PASSED 2050s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-right-True-None-None] PASSED 2050s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-right-True-None-1] PASSED 2050s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-right-True-None-2] PASSED 2050s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-right-True-None-5] PASSED 2050s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-right-True-None-10] PASSED 2051s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-right-True-1-None] PASSED 2051s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-right-True-1-1] PASSED 2051s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-right-True-1-2] PASSED 2051s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-right-True-1-5] PASSED 2051s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-right-True-1-10] PASSED 2051s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-right-False-None-None] PASSED 2051s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-right-False-None-1] PASSED 2051s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-right-False-None-2] PASSED 2051s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-right-False-None-5] PASSED 2051s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-right-False-None-10] PASSED 2051s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-right-False-1-None] PASSED 2051s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-right-False-1-1] PASSED 2051s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-right-False-1-2] PASSED 2051s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-right-False-1-5] PASSED 2051s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-right-False-1-10] PASSED 2051s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-both-True-None-None] PASSED 2051s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-both-True-None-1] PASSED 2051s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-both-True-None-2] PASSED 2051s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-both-True-None-5] PASSED 2051s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-both-True-None-10] PASSED 2051s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-both-True-1-None] PASSED 2051s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-both-True-1-1] PASSED 2051s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-both-True-1-2] PASSED 2051s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-both-True-1-5] PASSED 2051s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-both-True-1-10] PASSED 2051s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-both-False-None-None] PASSED 2051s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-both-False-None-1] PASSED 2051s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-both-False-None-2] PASSED 2051s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-both-False-None-5] PASSED 2051s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-both-False-None-10] PASSED 2051s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-both-False-1-None] PASSED 2051s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-both-False-1-1] PASSED 2051s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-both-False-1-2] PASSED 2051s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-both-False-1-5] PASSED 2051s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-both-False-1-10] PASSED 2052s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-neither-True-None-None] PASSED 2052s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-neither-True-None-1] PASSED 2052s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-neither-True-None-2] PASSED 2052s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-neither-True-None-5] PASSED 2052s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-neither-True-None-10] PASSED 2052s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-neither-True-1-None] PASSED 2052s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-neither-True-1-1] PASSED 2052s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-neither-True-1-2] PASSED 2052s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-neither-True-1-5] PASSED 2052s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-neither-True-1-10] PASSED 2052s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-neither-False-None-None] PASSED 2052s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-neither-False-None-1] PASSED 2052s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-neither-False-None-2] PASSED 2052s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-neither-False-None-5] PASSED 2052s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-neither-False-None-10] PASSED 2052s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-neither-False-1-None] PASSED 2052s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-neither-False-1-1] PASSED 2052s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-neither-False-1-2] PASSED 2052s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-neither-False-1-5] PASSED 2052s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-neither-False-1-10] PASSED 2052s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_centered_axis_validation[None] PASSED 2052s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_centered_axis_validation[1] PASSED 2052s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_centered_axis_validation[2] PASSED 2053s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_centered_axis_validation[5] PASSED 2053s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_centered_axis_validation[10] PASSED 2053s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_rolling_min_min_periods[None] PASSED 2053s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_rolling_min_min_periods[1] PASSED 2053s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_rolling_min_min_periods[2] PASSED 2053s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_rolling_min_min_periods[5] PASSED 2053s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_rolling_min_min_periods[10] PASSED 2053s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_rolling_max_min_periods[None] PASSED 2053s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_rolling_max_min_periods[1] PASSED 2053s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_rolling_max_min_periods[2] PASSED 2053s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_rolling_max_min_periods[5] PASSED 2053s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_rolling_max_min_periods[10] PASSED 2053s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_rolling_apply_invalid_raw[None] PASSED 2053s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_rolling_apply_invalid_raw[1] PASSED 2053s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_rolling_apply_invalid_raw[0] PASSED 2053s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_rolling_apply_out_of_bounds[engine_and_raw0] SKIPPED 2053s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_rolling_apply_out_of_bounds[engine_and_raw1] PASSED 2053s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_rolling_apply_out_of_bounds[engine_and_raw2] PASSED 2053s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_rolling_apply_with_pandas_objects[2] PASSED 2053s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_rolling_apply_with_pandas_objects[2s] PASSED 2053s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_rolling_apply[engine_and_raw0-None] SKIPPED 2053s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_rolling_apply[engine_and_raw0-1] SKIPPED 2053s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_rolling_apply[engine_and_raw0-2] SKIPPED 2053s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_rolling_apply[engine_and_raw0-5] SKIPPED 2053s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_rolling_apply[engine_and_raw0-10] SKIPPED 2053s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_rolling_apply[engine_and_raw1-None] PASSED 2053s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_rolling_apply[engine_and_raw1-1] PASSED 2053s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_rolling_apply[engine_and_raw1-2] PASSED 2053s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_rolling_apply[engine_and_raw1-5] PASSED 2053s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_rolling_apply[engine_and_raw1-10] PASSED 2053s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_rolling_apply[engine_and_raw2-None] PASSED 2053s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_rolling_apply[engine_and_raw2-1] PASSED 2053s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_rolling_apply[engine_and_raw2-2] PASSED 2053s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_rolling_apply[engine_and_raw2-5] PASSED 2053s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_rolling_apply[engine_and_raw2-10] PASSED 2053s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_all_apply[engine_and_raw0] SKIPPED 2053s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_all_apply[engine_and_raw1] PASSED 2054s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_all_apply[engine_and_raw2] PASSED 2054s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_ragged_apply[engine_and_raw0] SKIPPED 2054s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_ragged_apply[engine_and_raw1] PASSED 2054s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_ragged_apply[engine_and_raw2] PASSED 2054s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_invalid_engine PASSED 2054s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_invalid_engine_kwargs_cython PASSED 2054s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_invalid_raw_numba PASSED 2054s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_rolling_apply_args_kwargs[args_kwargs0] PASSED 2054s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_rolling_apply_args_kwargs[args_kwargs1] PASSED 2054s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_nans[True] PASSED 2054s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_nans[False] PASSED 2054s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_center[True] PASSED 2054s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_center[False] PASSED 2054s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_series[True] PASSED 2054s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_series[False] PASSED 2054s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_frame[True] PASSED 2054s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_frame[False] PASSED 2054s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_time_rule_series[True] PASSED 2054s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_time_rule_series[False] PASSED 2054s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_time_rule_frame[True] PASSED 2054s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_time_rule_frame[False] PASSED 2054s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_min_periods[True-None-0] PASSED 2054s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_min_periods[True-None-99] PASSED 2055s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_min_periods[True-None-100] PASSED 2055s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_min_periods[True-1-0] PASSED 2055s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_min_periods[True-1-99] PASSED 2055s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_min_periods[True-1-100] PASSED 2055s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_min_periods[True-2-0] PASSED 2055s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_min_periods[True-2-99] PASSED 2055s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_min_periods[True-2-100] PASSED 2055s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_min_periods[True-5-0] PASSED 2055s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_min_periods[True-5-99] PASSED 2055s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_min_periods[True-5-100] PASSED 2055s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_min_periods[True-10-0] PASSED 2055s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_min_periods[True-10-99] PASSED 2055s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_min_periods[True-10-100] PASSED 2055s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_min_periods[False-None-0] PASSED 2055s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_min_periods[False-None-99] PASSED 2055s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_min_periods[False-None-100] PASSED 2055s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_min_periods[False-1-0] PASSED 2055s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_min_periods[False-1-99] PASSED 2055s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_min_periods[False-1-100] PASSED 2055s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_min_periods[False-2-0] PASSED 2055s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_min_periods[False-2-99] PASSED 2055s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_min_periods[False-2-100] PASSED 2055s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_min_periods[False-5-0] PASSED 2055s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_min_periods[False-5-99] PASSED 2055s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_min_periods[False-5-100] PASSED 2055s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_min_periods[False-10-0] PASSED 2055s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_min_periods[False-10-99] PASSED 2056s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_min_periods[False-10-100] PASSED 2056s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_center_reindex_series[True] PASSED 2056s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_center_reindex_series[False] PASSED 2056s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_center_reindex_frame[True] PASSED 2056s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_center_reindex_frame[False] PASSED 2056s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_axis1[True] PASSED 2056s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_axis1[False] PASSED 2056s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_bad_get_window_bounds_signature PASSED 2056s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_expanding_indexer PASSED 2056s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_indexer_constructor_arg PASSED 2056s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_indexer_accepts_rolling_args PASSED 2056s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[DataFrame-None-count-len-expected0-np_kwargs0] PASSED 2056s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[DataFrame-None-min-min-expected1-np_kwargs1] PASSED 2056s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[DataFrame-None-max-max-expected2-np_kwargs2] PASSED 2056s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[DataFrame-None-std-std-expected3-np_kwargs3] PASSED 2056s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[DataFrame-None-var-var-expected4-np_kwargs4] PASSED 2056s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[DataFrame-None-median-median-expected5-np_kwargs5] PASSED 2056s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[DataFrame-1-count-len-expected0-np_kwargs0] PASSED 2057s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[DataFrame-1-min-min-expected1-np_kwargs1] PASSED 2057s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[DataFrame-1-max-max-expected2-np_kwargs2] PASSED 2057s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[DataFrame-1-std-std-expected3-np_kwargs3] PASSED 2057s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[DataFrame-1-var-var-expected4-np_kwargs4] PASSED 2057s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[DataFrame-1-median-median-expected5-np_kwargs5] PASSED 2057s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[DataFrame-2-count-len-expected0-np_kwargs0] PASSED 2057s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[DataFrame-2-min-min-expected1-np_kwargs1] PASSED 2057s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[DataFrame-2-max-max-expected2-np_kwargs2] PASSED 2057s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[DataFrame-2-std-std-expected3-np_kwargs3] PASSED 2057s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[DataFrame-2-var-var-expected4-np_kwargs4] PASSED 2057s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[DataFrame-2-median-median-expected5-np_kwargs5] PASSED 2057s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[DataFrame-5-count-len-expected0-np_kwargs0] PASSED 2057s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[DataFrame-5-min-min-expected1-np_kwargs1] PASSED 2057s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[DataFrame-5-max-max-expected2-np_kwargs2] PASSED 2057s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[DataFrame-5-std-std-expected3-np_kwargs3] PASSED 2057s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[DataFrame-5-var-var-expected4-np_kwargs4] PASSED 2057s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[DataFrame-5-median-median-expected5-np_kwargs5] PASSED 2057s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[DataFrame-10-count-len-expected0-np_kwargs0] PASSED 2057s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[DataFrame-10-min-min-expected1-np_kwargs1] PASSED 2057s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[DataFrame-10-max-max-expected2-np_kwargs2] PASSED 2057s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[DataFrame-10-std-std-expected3-np_kwargs3] PASSED 2057s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[DataFrame-10-var-var-expected4-np_kwargs4] PASSED 2057s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[DataFrame-10-median-median-expected5-np_kwargs5] PASSED 2057s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[Series-None-count-len-expected0-np_kwargs0] PASSED 2057s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[Series-None-min-min-expected1-np_kwargs1] PASSED 2057s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[Series-None-max-max-expected2-np_kwargs2] PASSED 2057s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[Series-None-std-std-expected3-np_kwargs3] PASSED 2057s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[Series-None-var-var-expected4-np_kwargs4] PASSED 2057s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[Series-None-median-median-expected5-np_kwargs5] PASSED 2058s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[Series-1-count-len-expected0-np_kwargs0] PASSED 2058s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[Series-1-min-min-expected1-np_kwargs1] PASSED 2058s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[Series-1-max-max-expected2-np_kwargs2] PASSED 2058s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[Series-1-std-std-expected3-np_kwargs3] PASSED 2058s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[Series-1-var-var-expected4-np_kwargs4] PASSED 2058s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[Series-1-median-median-expected5-np_kwargs5] PASSED 2058s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[Series-2-count-len-expected0-np_kwargs0] PASSED 2058s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[Series-2-min-min-expected1-np_kwargs1] PASSED 2058s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[Series-2-max-max-expected2-np_kwargs2] PASSED 2058s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[Series-2-std-std-expected3-np_kwargs3] PASSED 2058s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[Series-2-var-var-expected4-np_kwargs4] PASSED 2058s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[Series-2-median-median-expected5-np_kwargs5] PASSED 2058s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[Series-5-count-len-expected0-np_kwargs0] PASSED 2058s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[Series-5-min-min-expected1-np_kwargs1] PASSED 2058s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[Series-5-max-max-expected2-np_kwargs2] PASSED 2058s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[Series-5-std-std-expected3-np_kwargs3] PASSED 2058s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[Series-5-var-var-expected4-np_kwargs4] PASSED 2058s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[Series-5-median-median-expected5-np_kwargs5] PASSED 2058s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[Series-10-count-len-expected0-np_kwargs0] PASSED 2059s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[Series-10-min-min-expected1-np_kwargs1] PASSED 2059s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[Series-10-max-max-expected2-np_kwargs2] PASSED 2059s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[Series-10-std-std-expected3-np_kwargs3] PASSED 2059s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[Series-10-var-var-expected4-np_kwargs4] PASSED 2059s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[Series-10-median-median-expected5-np_kwargs5] PASSED 2059s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_skewness[DataFrame-None] PASSED 2059s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_skewness[DataFrame-1] PASSED 2059s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_skewness[DataFrame-2] PASSED 2059s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_skewness[DataFrame-5] PASSED 2059s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_skewness[DataFrame-10] PASSED 2059s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_skewness[Series-None] PASSED 2059s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_skewness[Series-1] PASSED 2059s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_skewness[Series-2] PASSED 2059s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_skewness[Series-5] PASSED 2059s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_skewness[Series-10] PASSED 2059s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_cov_corr[cov-expected0] PASSED 2059s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_cov_corr[corr-expected1] PASSED 2060s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_non_fixed_variable_window_indexer[right-expected_data0] PASSED 2060s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_non_fixed_variable_window_indexer[left-expected_data1] PASSED 2060s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_variableoffsetwindowindexer_not_dti PASSED 2060s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_variableoffsetwindowindexer_not_offset PASSED 2060s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_fixed_forward_indexer_count[None] PASSED 2060s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_fixed_forward_indexer_count[1] PASSED 2060s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_fixed_forward_indexer_count[2] PASSED 2060s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_fixed_forward_indexer_count[5] PASSED 2060s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_fixed_forward_indexer_count[10] PASSED 2060s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_indexer_quantile_sum[median-args0-1-values0] PASSED 2060s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_indexer_quantile_sum[median-args0--1-values1] PASSED 2060s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_indexer_quantile_sum[quantile-args1-1-values0] PASSED 2060s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_indexer_quantile_sum[quantile-args1--1-values1] PASSED 2060s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_indexers_are_reusable_after_groupby_rolling[df_data0-1-FixedWindowIndexer] PASSED 2060s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_indexers_are_reusable_after_groupby_rolling[df_data0-1-FixedForwardWindowIndexer] PASSED 2060s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_indexers_are_reusable_after_groupby_rolling[df_data0-1-ExpandingIndexer] PASSED 2060s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_indexers_are_reusable_after_groupby_rolling[df_data0-2-FixedWindowIndexer] PASSED 2060s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_indexers_are_reusable_after_groupby_rolling[df_data0-2-FixedForwardWindowIndexer] PASSED 2060s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_indexers_are_reusable_after_groupby_rolling[df_data0-2-ExpandingIndexer] PASSED 2060s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_indexers_are_reusable_after_groupby_rolling[df_data0-12-FixedWindowIndexer] PASSED 2060s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_indexers_are_reusable_after_groupby_rolling[df_data0-12-FixedForwardWindowIndexer] PASSED 2060s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_indexers_are_reusable_after_groupby_rolling[df_data0-12-ExpandingIndexer] PASSED 2060s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_indexers_are_reusable_after_groupby_rolling[df_data1-1-FixedWindowIndexer] PASSED 2060s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_indexers_are_reusable_after_groupby_rolling[df_data1-1-FixedForwardWindowIndexer] PASSED 2060s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_indexers_are_reusable_after_groupby_rolling[df_data1-1-ExpandingIndexer] PASSED 2060s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_indexers_are_reusable_after_groupby_rolling[df_data1-2-FixedWindowIndexer] PASSED 2060s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_indexers_are_reusable_after_groupby_rolling[df_data1-2-FixedForwardWindowIndexer] PASSED 2060s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_indexers_are_reusable_after_groupby_rolling[df_data1-2-ExpandingIndexer] PASSED 2060s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_indexers_are_reusable_after_groupby_rolling[df_data1-12-FixedWindowIndexer] PASSED 2060s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_indexers_are_reusable_after_groupby_rolling[df_data1-12-FixedForwardWindowIndexer] PASSED 2060s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_indexers_are_reusable_after_groupby_rolling[df_data1-12-ExpandingIndexer] PASSED 2060s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_indexers_are_reusable_after_groupby_rolling[df_data2-1-FixedWindowIndexer] PASSED 2061s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_indexers_are_reusable_after_groupby_rolling[df_data2-1-FixedForwardWindowIndexer] PASSED 2061s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_indexers_are_reusable_after_groupby_rolling[df_data2-1-ExpandingIndexer] PASSED 2061s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_indexers_are_reusable_after_groupby_rolling[df_data2-2-FixedWindowIndexer] PASSED 2061s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_indexers_are_reusable_after_groupby_rolling[df_data2-2-FixedForwardWindowIndexer] PASSED 2061s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_indexers_are_reusable_after_groupby_rolling[df_data2-2-ExpandingIndexer] PASSED 2061s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_indexers_are_reusable_after_groupby_rolling[df_data2-12-FixedWindowIndexer] PASSED 2061s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_indexers_are_reusable_after_groupby_rolling[df_data2-12-FixedForwardWindowIndexer] PASSED 2061s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_indexers_are_reusable_after_groupby_rolling[df_data2-12-ExpandingIndexer] PASSED 2061s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_fixed_forward_indexer_bounds[None-1-1-expected_start0-expected_end0] PASSED 2061s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_fixed_forward_indexer_bounds[None-1-2-expected_start1-expected_end1] PASSED 2061s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_fixed_forward_indexer_bounds[None-2-1-expected_start2-expected_end2] PASSED 2061s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_fixed_forward_indexer_bounds[None-2-2-expected_start3-expected_end3] PASSED 2061s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_fixed_forward_indexer_bounds[None-5-12-expected_start4-expected_end4] PASSED 2061s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_fixed_forward_indexer_bounds[None-12-5-expected_start5-expected_end5] PASSED 2061s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_fixed_forward_indexer_bounds[None-0-0-expected_start6-expected_end6] PASSED 2061s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_fixed_forward_indexer_bounds[None-1-0-expected_start7-expected_end7] PASSED 2061s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_fixed_forward_indexer_bounds[None-0-1-expected_start8-expected_end8] PASSED 2061s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_fixed_forward_indexer_bounds[1-1-1-expected_start0-expected_end0] PASSED 2061s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_fixed_forward_indexer_bounds[1-1-2-expected_start1-expected_end1] PASSED 2061s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_fixed_forward_indexer_bounds[1-2-1-expected_start2-expected_end2] PASSED 2061s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_fixed_forward_indexer_bounds[1-2-2-expected_start3-expected_end3] PASSED 2061s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_fixed_forward_indexer_bounds[1-5-12-expected_start4-expected_end4] PASSED 2061s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_fixed_forward_indexer_bounds[1-12-5-expected_start5-expected_end5] PASSED 2061s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_fixed_forward_indexer_bounds[1-0-0-expected_start6-expected_end6] PASSED 2061s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_fixed_forward_indexer_bounds[1-1-0-expected_start7-expected_end7] PASSED 2061s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_fixed_forward_indexer_bounds[1-0-1-expected_start8-expected_end8] PASSED 2061s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_fixed_forward_indexer_bounds[2-1-1-expected_start0-expected_end0] PASSED 2061s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_fixed_forward_indexer_bounds[2-1-2-expected_start1-expected_end1] PASSED 2061s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_fixed_forward_indexer_bounds[2-2-1-expected_start2-expected_end2] PASSED 2061s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_fixed_forward_indexer_bounds[2-2-2-expected_start3-expected_end3] PASSED 2061s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_fixed_forward_indexer_bounds[2-5-12-expected_start4-expected_end4] PASSED 2061s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_fixed_forward_indexer_bounds[2-12-5-expected_start5-expected_end5] PASSED 2061s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_fixed_forward_indexer_bounds[2-0-0-expected_start6-expected_end6] PASSED 2061s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_fixed_forward_indexer_bounds[2-1-0-expected_start7-expected_end7] PASSED 2061s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_fixed_forward_indexer_bounds[2-0-1-expected_start8-expected_end8] PASSED 2061s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_fixed_forward_indexer_bounds[5-1-1-expected_start0-expected_end0] PASSED 2061s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_fixed_forward_indexer_bounds[5-1-2-expected_start1-expected_end1] PASSED 2061s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_fixed_forward_indexer_bounds[5-2-1-expected_start2-expected_end2] PASSED 2061s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_fixed_forward_indexer_bounds[5-2-2-expected_start3-expected_end3] PASSED 2061s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_fixed_forward_indexer_bounds[5-5-12-expected_start4-expected_end4] PASSED 2061s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_fixed_forward_indexer_bounds[5-12-5-expected_start5-expected_end5] PASSED 2061s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_fixed_forward_indexer_bounds[5-0-0-expected_start6-expected_end6] PASSED 2061s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_fixed_forward_indexer_bounds[5-1-0-expected_start7-expected_end7] PASSED 2061s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_fixed_forward_indexer_bounds[5-0-1-expected_start8-expected_end8] PASSED 2061s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_fixed_forward_indexer_bounds[10-1-1-expected_start0-expected_end0] PASSED 2061s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_fixed_forward_indexer_bounds[10-1-2-expected_start1-expected_end1] PASSED 2062s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_fixed_forward_indexer_bounds[10-2-1-expected_start2-expected_end2] PASSED 2062s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_fixed_forward_indexer_bounds[10-2-2-expected_start3-expected_end3] PASSED 2062s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_fixed_forward_indexer_bounds[10-5-12-expected_start4-expected_end4] PASSED 2062s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_fixed_forward_indexer_bounds[10-12-5-expected_start5-expected_end5] PASSED 2062s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_fixed_forward_indexer_bounds[10-0-0-expected_start6-expected_end6] PASSED 2062s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_fixed_forward_indexer_bounds[10-1-0-expected_start7-expected_end7] PASSED 2062s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_fixed_forward_indexer_bounds[10-0-1-expected_start8-expected_end8] PASSED 2062s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_specific[df0-2-expected0] PASSED 2062s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_specific[df1-12-expected1] PASSED 2062s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[1-group_keys0] PASSED 2062s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[1-group_keys1] PASSED 2062s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[1-group_keys2] PASSED 2062s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[1-group_keys3] PASSED 2062s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[1-group_keys4] PASSED 2062s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[1-group_keys5] PASSED 2062s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[1-group_keys6] PASSED 2062s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[1-group_keys7] PASSED 2062s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[1-group_keys8] PASSED 2062s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[2-group_keys0] PASSED 2062s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[2-group_keys1] PASSED 2062s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[2-group_keys2] PASSED 2062s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[2-group_keys3] PASSED 2062s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[2-group_keys4] PASSED 2062s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[2-group_keys5] PASSED 2062s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[2-group_keys6] PASSED 2062s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[2-group_keys7] PASSED 2063s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[2-group_keys8] PASSED 2063s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[3-group_keys0] PASSED 2063s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[3-group_keys1] PASSED 2063s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[3-group_keys2] PASSED 2063s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[3-group_keys3] PASSED 2063s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[3-group_keys4] PASSED 2063s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[3-group_keys5] PASSED 2063s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[3-group_keys6] PASSED 2063s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[3-group_keys7] PASSED 2063s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[3-group_keys8] PASSED 2063s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[4-group_keys0] PASSED 2063s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[4-group_keys1] PASSED 2063s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[4-group_keys2] PASSED 2063s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[4-group_keys3] PASSED 2063s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[4-group_keys4] PASSED 2063s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[4-group_keys5] PASSED 2063s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[4-group_keys6] PASSED 2063s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[4-group_keys7] PASSED 2063s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[4-group_keys8] PASSED 2063s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[5-group_keys0] PASSED 2063s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[5-group_keys1] PASSED 2063s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[5-group_keys2] PASSED 2063s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[5-group_keys3] PASSED 2063s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[5-group_keys4] PASSED 2063s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[5-group_keys5] PASSED 2063s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[5-group_keys6] PASSED 2063s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[5-group_keys7] PASSED 2063s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[5-group_keys8] PASSED 2063s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[8-group_keys0] PASSED 2063s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[8-group_keys1] PASSED 2063s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[8-group_keys2] PASSED 2064s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[8-group_keys3] PASSED 2064s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[8-group_keys4] PASSED 2064s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[8-group_keys5] PASSED 2064s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[8-group_keys6] PASSED 2064s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[8-group_keys7] PASSED 2064s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[8-group_keys8] PASSED 2064s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[20-group_keys0] PASSED 2064s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[20-group_keys1] PASSED 2064s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[20-group_keys2] PASSED 2064s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[20-group_keys3] PASSED 2064s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[20-group_keys4] PASSED 2064s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[20-group_keys5] PASSED 2064s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[20-group_keys6] PASSED 2064s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[20-group_keys7] PASSED 2064s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[20-group_keys8] PASSED 2064s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_unequal_start_end_bounds PASSED 2064s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_unequal_bounds_to_object PASSED 2064s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_boundary_consistency[roll_sum] PASSED 2064s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_boundary_consistency[roll_mean] PASSED 2064s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_boundary_consistency[roll_var(0)] PASSED 2064s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_boundary_consistency[roll_var(1)] PASSED 2064s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_boundary_consistency[roll_skew] PASSED 2064s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_boundary_consistency[roll_kurt] PASSED 2064s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_boundary_consistency[roll_median_c] PASSED 2064s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_boundary_consistency[roll_max] PASSED 2064s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_boundary_consistency[roll_min] PASSED 2064s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_boundary_consistency[roll_quantile(0.0001,linear)] PASSED 2064s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_boundary_consistency[roll_quantile(0.0001,lower)] PASSED 2064s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_boundary_consistency[roll_quantile(0.0001,higher)] PASSED 2064s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_boundary_consistency[roll_quantile(0.0001,nearest)] PASSED 2064s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_boundary_consistency[roll_quantile(0.0001,midpoint)] PASSED 2064s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_boundary_consistency[roll_quantile(0.5,linear)] PASSED 2064s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_boundary_consistency[roll_quantile(0.5,lower)] PASSED 2064s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_boundary_consistency[roll_quantile(0.5,higher)] PASSED 2064s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_boundary_consistency[roll_quantile(0.5,nearest)] PASSED 2064s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_boundary_consistency[roll_quantile(0.5,midpoint)] PASSED 2064s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_boundary_consistency[roll_quantile(0.9999,linear)] PASSED 2065s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_boundary_consistency[roll_quantile(0.9999,lower)] PASSED 2065s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_boundary_consistency[roll_quantile(0.9999,higher)] PASSED 2065s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_boundary_consistency[roll_quantile(0.9999,nearest)] PASSED 2065s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_boundary_consistency[roll_quantile(0.9999,midpoint)] PASSED 2065s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_boundary_consistency[roll_rank(True,average,True)] PASSED 2065s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_boundary_consistency[roll_rank(True,average,False)] PASSED 2065s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_boundary_consistency[roll_rank(True,min,True)] PASSED 2065s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_boundary_consistency[roll_rank(True,min,False)] PASSED 2065s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_boundary_consistency[roll_rank(True,max,True)] PASSED 2065s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_boundary_consistency[roll_rank(True,max,False)] PASSED 2065s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_boundary_consistency[roll_rank(False,average,True)] PASSED 2065s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_boundary_consistency[roll_rank(False,average,False)] PASSED 2065s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_boundary_consistency[roll_rank(False,min,True)] PASSED 2065s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_boundary_consistency[roll_rank(False,min,False)] PASSED 2065s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_boundary_consistency[roll_rank(False,max,True)] PASSED 2065s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_boundary_consistency[roll_rank(False,max,False)] PASSED 2065s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_with_unused_elements[roll_sum] PASSED 2065s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_with_unused_elements[roll_mean] PASSED 2065s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_with_unused_elements[roll_var(0)] PASSED 2065s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_with_unused_elements[roll_var(1)] PASSED 2065s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_with_unused_elements[roll_skew] PASSED 2065s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_with_unused_elements[roll_kurt] PASSED 2065s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_with_unused_elements[roll_median_c] PASSED 2065s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_with_unused_elements[roll_max] PASSED 2065s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_with_unused_elements[roll_min] PASSED 2065s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_with_unused_elements[roll_quantile(0.0001,linear)] PASSED 2065s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_with_unused_elements[roll_quantile(0.0001,lower)] PASSED 2065s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_with_unused_elements[roll_quantile(0.0001,higher)] PASSED 2065s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_with_unused_elements[roll_quantile(0.0001,nearest)] PASSED 2065s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_with_unused_elements[roll_quantile(0.0001,midpoint)] PASSED 2065s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_with_unused_elements[roll_quantile(0.5,linear)] PASSED 2066s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_with_unused_elements[roll_quantile(0.5,lower)] PASSED 2066s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_with_unused_elements[roll_quantile(0.5,higher)] PASSED 2066s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_with_unused_elements[roll_quantile(0.5,nearest)] PASSED 2066s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_with_unused_elements[roll_quantile(0.5,midpoint)] PASSED 2066s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_with_unused_elements[roll_quantile(0.9999,linear)] PASSED 2066s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_with_unused_elements[roll_quantile(0.9999,lower)] PASSED 2066s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_with_unused_elements[roll_quantile(0.9999,higher)] PASSED 2066s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_with_unused_elements[roll_quantile(0.9999,nearest)] PASSED 2066s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_with_unused_elements[roll_quantile(0.9999,midpoint)] PASSED 2066s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_with_unused_elements[roll_rank(True,average,True)] PASSED 2066s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_with_unused_elements[roll_rank(True,average,False)] PASSED 2066s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_with_unused_elements[roll_rank(True,min,True)] PASSED 2066s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_with_unused_elements[roll_rank(True,min,False)] PASSED 2066s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_with_unused_elements[roll_rank(True,max,True)] PASSED 2066s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_with_unused_elements[roll_rank(True,max,False)] PASSED 2066s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_with_unused_elements[roll_rank(False,average,True)] PASSED 2066s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_with_unused_elements[roll_rank(False,average,False)] PASSED 2066s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_with_unused_elements[roll_rank(False,min,True)] PASSED 2066s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_with_unused_elements[roll_rank(False,min,False)] PASSED 2066s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_with_unused_elements[roll_rank(False,max,True)] PASSED 2066s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_with_unused_elements[roll_rank(False,max,False)] PASSED 2066s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-None-count-data0-expected_data0-True-0] PASSED 2066s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-None-count-data1-expected_data1-True-0] PASSED 2066s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-None-count-data2-expected_data2-False-0] PASSED 2066s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-None-max-data3-expected_data3-True-None] PASSED 2066s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-None-max-data4-expected_data4-True-None] PASSED 2066s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-None-max-data5-expected_data5-False-None] PASSED 2066s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-None-min-data6-expected_data6-True-None] PASSED 2066s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-None-min-data7-expected_data7-True-None] PASSED 2066s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-None-min-data8-expected_data8-False-None] PASSED 2066s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-None-sum-data9-expected_data9-True-None] PASSED 2066s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-None-sum-data10-expected_data10-True-None] PASSED 2066s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-None-sum-data11-expected_data11-False-None] PASSED 2066s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-None-mean-data12-expected_data12-True-None] PASSED 2066s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-None-mean-data13-expected_data13-True-None] PASSED 2066s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-None-mean-data14-expected_data14-False-None] PASSED 2066s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-None-std-data15-expected_data15-True-None] PASSED 2067s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-None-std-data16-expected_data16-True-None] PASSED 2067s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-None-std-data17-expected_data17-False-None] PASSED 2067s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-None-var-data18-expected_data18-True-None] PASSED 2067s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-None-var-data19-expected_data19-True-None] PASSED 2067s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-None-var-data20-expected_data20-False-None] PASSED 2067s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-None-median-data21-expected_data21-True-None] PASSED 2067s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-None-median-data22-expected_data22-True-None] PASSED 2067s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-None-median-data23-expected_data23-False-None] PASSED 2067s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-1-count-data0-expected_data0-True-0] PASSED 2067s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-1-count-data1-expected_data1-True-0] PASSED 2067s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-1-count-data2-expected_data2-False-0] PASSED 2067s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-1-max-data3-expected_data3-True-None] PASSED 2067s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-1-max-data4-expected_data4-True-None] PASSED 2067s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-1-max-data5-expected_data5-False-None] PASSED 2067s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-1-min-data6-expected_data6-True-None] PASSED 2067s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-1-min-data7-expected_data7-True-None] PASSED 2067s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-1-min-data8-expected_data8-False-None] PASSED 2067s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-1-sum-data9-expected_data9-True-None] PASSED 2067s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-1-sum-data10-expected_data10-True-None] PASSED 2067s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-1-sum-data11-expected_data11-False-None] PASSED 2067s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-1-mean-data12-expected_data12-True-None] PASSED 2067s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-1-mean-data13-expected_data13-True-None] PASSED 2067s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-1-mean-data14-expected_data14-False-None] PASSED 2067s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-1-std-data15-expected_data15-True-None] PASSED 2067s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-1-std-data16-expected_data16-True-None] PASSED 2067s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-1-std-data17-expected_data17-False-None] PASSED 2067s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-1-var-data18-expected_data18-True-None] PASSED 2067s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-1-var-data19-expected_data19-True-None] PASSED 2067s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-1-var-data20-expected_data20-False-None] PASSED 2067s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-1-median-data21-expected_data21-True-None] PASSED 2067s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-1-median-data22-expected_data22-True-None] PASSED 2067s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-1-median-data23-expected_data23-False-None] PASSED 2067s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-2-count-data0-expected_data0-True-0] PASSED 2067s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-2-count-data1-expected_data1-True-0] PASSED 2067s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-2-count-data2-expected_data2-False-0] PASSED 2067s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-2-max-data3-expected_data3-True-None] PASSED 2067s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-2-max-data4-expected_data4-True-None] PASSED 2067s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-2-max-data5-expected_data5-False-None] PASSED 2067s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-2-min-data6-expected_data6-True-None] PASSED 2067s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-2-min-data7-expected_data7-True-None] PASSED 2067s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-2-min-data8-expected_data8-False-None] PASSED 2067s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-2-sum-data9-expected_data9-True-None] PASSED 2068s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-2-sum-data10-expected_data10-True-None] PASSED 2068s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-2-sum-data11-expected_data11-False-None] PASSED 2068s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-2-mean-data12-expected_data12-True-None] PASSED 2068s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-2-mean-data13-expected_data13-True-None] PASSED 2068s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-2-mean-data14-expected_data14-False-None] PASSED 2068s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-2-std-data15-expected_data15-True-None] PASSED 2068s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-2-std-data16-expected_data16-True-None] PASSED 2068s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-2-std-data17-expected_data17-False-None] PASSED 2068s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-2-var-data18-expected_data18-True-None] PASSED 2068s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-2-var-data19-expected_data19-True-None] PASSED 2068s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-2-var-data20-expected_data20-False-None] PASSED 2068s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-2-median-data21-expected_data21-True-None] PASSED 2068s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-2-median-data22-expected_data22-True-None] PASSED 2068s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-2-median-data23-expected_data23-False-None] PASSED 2068s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-5-count-data0-expected_data0-True-0] PASSED 2068s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-5-count-data1-expected_data1-True-0] PASSED 2068s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-5-count-data2-expected_data2-False-0] PASSED 2068s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-5-max-data3-expected_data3-True-None] PASSED 2068s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-5-max-data4-expected_data4-True-None] PASSED 2068s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-5-max-data5-expected_data5-False-None] PASSED 2068s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-5-min-data6-expected_data6-True-None] PASSED 2068s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-5-min-data7-expected_data7-True-None] PASSED 2068s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-5-min-data8-expected_data8-False-None] PASSED 2068s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-5-sum-data9-expected_data9-True-None] PASSED 2068s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-5-sum-data10-expected_data10-True-None] PASSED 2068s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-5-sum-data11-expected_data11-False-None] PASSED 2068s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-5-mean-data12-expected_data12-True-None] PASSED 2068s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-5-mean-data13-expected_data13-True-None] PASSED 2069s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-5-mean-data14-expected_data14-False-None] PASSED 2069s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-5-std-data15-expected_data15-True-None] PASSED 2069s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-5-std-data16-expected_data16-True-None] PASSED 2069s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-5-std-data17-expected_data17-False-None] PASSED 2069s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-5-var-data18-expected_data18-True-None] PASSED 2069s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-5-var-data19-expected_data19-True-None] PASSED 2069s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-5-var-data20-expected_data20-False-None] PASSED 2069s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-5-median-data21-expected_data21-True-None] PASSED 2069s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-5-median-data22-expected_data22-True-None] PASSED 2069s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-5-median-data23-expected_data23-False-None] PASSED 2069s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-10-count-data0-expected_data0-True-0] PASSED 2069s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-10-count-data1-expected_data1-True-0] PASSED 2069s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-10-count-data2-expected_data2-False-0] PASSED 2069s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-10-max-data3-expected_data3-True-None] PASSED 2069s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-10-max-data4-expected_data4-True-None] PASSED 2069s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-10-max-data5-expected_data5-False-None] PASSED 2069s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-10-min-data6-expected_data6-True-None] PASSED 2069s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-10-min-data7-expected_data7-True-None] PASSED 2069s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-10-min-data8-expected_data8-False-None] PASSED 2069s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-10-sum-data9-expected_data9-True-None] PASSED 2069s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-10-sum-data10-expected_data10-True-None] PASSED 2069s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-10-sum-data11-expected_data11-False-None] PASSED 2069s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-10-mean-data12-expected_data12-True-None] PASSED 2069s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-10-mean-data13-expected_data13-True-None] PASSED 2069s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-10-mean-data14-expected_data14-False-None] PASSED 2069s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-10-std-data15-expected_data15-True-None] PASSED 2069s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-10-std-data16-expected_data16-True-None] PASSED 2069s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-10-std-data17-expected_data17-False-None] PASSED 2069s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-10-var-data18-expected_data18-True-None] PASSED 2069s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-10-var-data19-expected_data19-True-None] PASSED 2069s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-10-var-data20-expected_data20-False-None] PASSED 2069s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-10-median-data21-expected_data21-True-None] PASSED 2069s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-10-median-data22-expected_data22-True-None] PASSED 2070s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-10-median-data23-expected_data23-False-None] PASSED 2070s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-None-count-data0-expected_data0-True-0] PASSED 2070s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-None-count-data1-expected_data1-True-0] PASSED 2070s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-None-count-data2-expected_data2-False-0] PASSED 2070s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-None-max-data3-expected_data3-True-None] PASSED 2070s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-None-max-data4-expected_data4-True-None] PASSED 2070s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-None-max-data5-expected_data5-False-None] PASSED 2070s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-None-min-data6-expected_data6-True-None] PASSED 2070s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-None-min-data7-expected_data7-True-None] PASSED 2070s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-None-min-data8-expected_data8-False-None] PASSED 2070s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-None-sum-data9-expected_data9-True-None] PASSED 2070s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-None-sum-data10-expected_data10-True-None] PASSED 2070s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-None-sum-data11-expected_data11-False-None] PASSED 2070s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-None-mean-data12-expected_data12-True-None] PASSED 2070s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-None-mean-data13-expected_data13-True-None] PASSED 2070s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-None-mean-data14-expected_data14-False-None] PASSED 2070s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-None-std-data15-expected_data15-True-None] PASSED 2070s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-None-std-data16-expected_data16-True-None] PASSED 2070s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-None-std-data17-expected_data17-False-None] PASSED 2070s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-None-var-data18-expected_data18-True-None] PASSED 2070s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-None-var-data19-expected_data19-True-None] PASSED 2070s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-None-var-data20-expected_data20-False-None] PASSED 2070s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-None-median-data21-expected_data21-True-None] PASSED 2070s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-None-median-data22-expected_data22-True-None] PASSED 2070s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-None-median-data23-expected_data23-False-None] PASSED 2070s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-1-count-data0-expected_data0-True-0] PASSED 2070s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-1-count-data1-expected_data1-True-0] PASSED 2070s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-1-count-data2-expected_data2-False-0] PASSED 2070s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-1-max-data3-expected_data3-True-None] PASSED 2070s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-1-max-data4-expected_data4-True-None] PASSED 2071s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-1-max-data5-expected_data5-False-None] PASSED 2071s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-1-min-data6-expected_data6-True-None] PASSED 2071s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-1-min-data7-expected_data7-True-None] PASSED 2071s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-1-min-data8-expected_data8-False-None] PASSED 2071s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-1-sum-data9-expected_data9-True-None] PASSED 2071s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-1-sum-data10-expected_data10-True-None] PASSED 2071s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-1-sum-data11-expected_data11-False-None] PASSED 2071s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-1-mean-data12-expected_data12-True-None] PASSED 2071s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-1-mean-data13-expected_data13-True-None] PASSED 2071s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-1-mean-data14-expected_data14-False-None] PASSED 2071s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-1-std-data15-expected_data15-True-None] PASSED 2071s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-1-std-data16-expected_data16-True-None] PASSED 2071s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-1-std-data17-expected_data17-False-None] PASSED 2071s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-1-var-data18-expected_data18-True-None] PASSED 2071s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-1-var-data19-expected_data19-True-None] PASSED 2071s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-1-var-data20-expected_data20-False-None] PASSED 2071s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-1-median-data21-expected_data21-True-None] PASSED 2071s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-1-median-data22-expected_data22-True-None] PASSED 2071s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-1-median-data23-expected_data23-False-None] PASSED 2071s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-2-count-data0-expected_data0-True-0] PASSED 2071s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-2-count-data1-expected_data1-True-0] PASSED 2071s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-2-count-data2-expected_data2-False-0] PASSED 2071s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-2-max-data3-expected_data3-True-None] PASSED 2071s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-2-max-data4-expected_data4-True-None] PASSED 2071s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-2-max-data5-expected_data5-False-None] PASSED 2071s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-2-min-data6-expected_data6-True-None] PASSED 2071s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-2-min-data7-expected_data7-True-None] PASSED 2071s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-2-min-data8-expected_data8-False-None] PASSED 2071s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-2-sum-data9-expected_data9-True-None] PASSED 2071s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-2-sum-data10-expected_data10-True-None] PASSED 2072s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-2-sum-data11-expected_data11-False-None] PASSED 2072s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-2-mean-data12-expected_data12-True-None] PASSED 2072s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-2-mean-data13-expected_data13-True-None] PASSED 2072s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-2-mean-data14-expected_data14-False-None] PASSED 2072s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-2-std-data15-expected_data15-True-None] PASSED 2072s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-2-std-data16-expected_data16-True-None] PASSED 2072s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-2-std-data17-expected_data17-False-None] PASSED 2072s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-2-var-data18-expected_data18-True-None] PASSED 2072s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-2-var-data19-expected_data19-True-None] PASSED 2072s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-2-var-data20-expected_data20-False-None] PASSED 2072s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-2-median-data21-expected_data21-True-None] PASSED 2072s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-2-median-data22-expected_data22-True-None] PASSED 2072s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-2-median-data23-expected_data23-False-None] PASSED 2072s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-5-count-data0-expected_data0-True-0] PASSED 2072s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-5-count-data1-expected_data1-True-0] PASSED 2072s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-5-count-data2-expected_data2-False-0] PASSED 2072s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-5-max-data3-expected_data3-True-None] PASSED 2072s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-5-max-data4-expected_data4-True-None] PASSED 2072s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-5-max-data5-expected_data5-False-None] PASSED 2072s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-5-min-data6-expected_data6-True-None] PASSED 2072s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-5-min-data7-expected_data7-True-None] PASSED 2072s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-5-min-data8-expected_data8-False-None] PASSED 2072s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-5-sum-data9-expected_data9-True-None] PASSED 2072s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-5-sum-data10-expected_data10-True-None] PASSED 2072s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-5-sum-data11-expected_data11-False-None] PASSED 2072s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-5-mean-data12-expected_data12-True-None] PASSED 2073s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-5-mean-data13-expected_data13-True-None] PASSED 2073s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-5-mean-data14-expected_data14-False-None] PASSED 2073s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-5-std-data15-expected_data15-True-None] PASSED 2073s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-5-std-data16-expected_data16-True-None] PASSED 2073s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-5-std-data17-expected_data17-False-None] PASSED 2073s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-5-var-data18-expected_data18-True-None] PASSED 2073s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-5-var-data19-expected_data19-True-None] PASSED 2073s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-5-var-data20-expected_data20-False-None] PASSED 2073s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-5-median-data21-expected_data21-True-None] PASSED 2073s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-5-median-data22-expected_data22-True-None] PASSED 2073s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-5-median-data23-expected_data23-False-None] PASSED 2073s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-10-count-data0-expected_data0-True-0] PASSED 2073s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-10-count-data1-expected_data1-True-0] PASSED 2073s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-10-count-data2-expected_data2-False-0] PASSED 2073s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-10-max-data3-expected_data3-True-None] PASSED 2073s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-10-max-data4-expected_data4-True-None] PASSED 2073s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-10-max-data5-expected_data5-False-None] PASSED 2073s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-10-min-data6-expected_data6-True-None] PASSED 2073s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-10-min-data7-expected_data7-True-None] PASSED 2073s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-10-min-data8-expected_data8-False-None] PASSED 2073s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-10-sum-data9-expected_data9-True-None] PASSED 2073s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-10-sum-data10-expected_data10-True-None] PASSED 2073s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-10-sum-data11-expected_data11-False-None] PASSED 2073s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-10-mean-data12-expected_data12-True-None] PASSED 2073s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-10-mean-data13-expected_data13-True-None] PASSED 2073s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-10-mean-data14-expected_data14-False-None] PASSED 2073s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-10-std-data15-expected_data15-True-None] PASSED 2073s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-10-std-data16-expected_data16-True-None] PASSED 2073s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-10-std-data17-expected_data17-False-None] PASSED 2073s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-10-var-data18-expected_data18-True-None] PASSED 2073s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-10-var-data19-expected_data19-True-None] PASSED 2073s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-10-var-data20-expected_data20-False-None] PASSED 2073s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-10-median-data21-expected_data21-True-None] PASSED 2073s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-10-median-data22-expected_data22-True-None] PASSED 2073s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-10-median-data23-expected_data23-False-None] PASSED 2074s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-None-count-data0-expected_data0-True-0] PASSED 2074s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-None-count-data1-expected_data1-True-0] PASSED 2074s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-None-count-data2-expected_data2-False-0] PASSED 2074s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-None-max-data3-expected_data3-True-None] PASSED 2074s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-None-max-data4-expected_data4-True-None] PASSED 2074s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-None-max-data5-expected_data5-False-None] PASSED 2074s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-None-min-data6-expected_data6-True-None] PASSED 2074s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-None-min-data7-expected_data7-True-None] PASSED 2074s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-None-min-data8-expected_data8-False-None] PASSED 2074s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-None-sum-data9-expected_data9-True-None] PASSED 2074s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-None-sum-data10-expected_data10-True-None] PASSED 2074s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-None-sum-data11-expected_data11-False-None] PASSED 2074s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-None-mean-data12-expected_data12-True-None] PASSED 2074s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-None-mean-data13-expected_data13-True-None] PASSED 2074s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-None-mean-data14-expected_data14-False-None] PASSED 2074s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-None-std-data15-expected_data15-True-None] PASSED 2074s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-None-std-data16-expected_data16-True-None] PASSED 2074s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-None-std-data17-expected_data17-False-None] PASSED 2074s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-None-var-data18-expected_data18-True-None] PASSED 2074s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-None-var-data19-expected_data19-True-None] PASSED 2074s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-None-var-data20-expected_data20-False-None] PASSED 2074s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-None-median-data21-expected_data21-True-None] PASSED 2074s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-None-median-data22-expected_data22-True-None] PASSED 2074s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-None-median-data23-expected_data23-False-None] PASSED 2074s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-1-count-data0-expected_data0-True-0] PASSED 2074s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-1-count-data1-expected_data1-True-0] PASSED 2074s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-1-count-data2-expected_data2-False-0] PASSED 2074s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-1-max-data3-expected_data3-True-None] PASSED 2074s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-1-max-data4-expected_data4-True-None] PASSED 2074s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-1-max-data5-expected_data5-False-None] PASSED 2074s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-1-min-data6-expected_data6-True-None] PASSED 2074s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-1-min-data7-expected_data7-True-None] PASSED 2074s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-1-min-data8-expected_data8-False-None] PASSED 2074s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-1-sum-data9-expected_data9-True-None] PASSED 2074s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-1-sum-data10-expected_data10-True-None] PASSED 2074s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-1-sum-data11-expected_data11-False-None] PASSED 2074s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-1-mean-data12-expected_data12-True-None] PASSED 2074s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-1-mean-data13-expected_data13-True-None] PASSED 2074s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-1-mean-data14-expected_data14-False-None] PASSED 2075s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-1-std-data15-expected_data15-True-None] PASSED 2075s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-1-std-data16-expected_data16-True-None] PASSED 2075s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-1-std-data17-expected_data17-False-None] PASSED 2075s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-1-var-data18-expected_data18-True-None] PASSED 2075s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-1-var-data19-expected_data19-True-None] PASSED 2075s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-1-var-data20-expected_data20-False-None] PASSED 2075s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-1-median-data21-expected_data21-True-None] PASSED 2075s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-1-median-data22-expected_data22-True-None] PASSED 2075s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-1-median-data23-expected_data23-False-None] PASSED 2075s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-2-count-data0-expected_data0-True-0] PASSED 2075s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-2-count-data1-expected_data1-True-0] PASSED 2075s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-2-count-data2-expected_data2-False-0] PASSED 2075s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-2-max-data3-expected_data3-True-None] PASSED 2075s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-2-max-data4-expected_data4-True-None] PASSED 2075s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-2-max-data5-expected_data5-False-None] PASSED 2075s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-2-min-data6-expected_data6-True-None] PASSED 2075s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-2-min-data7-expected_data7-True-None] PASSED 2075s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-2-min-data8-expected_data8-False-None] PASSED 2075s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-2-sum-data9-expected_data9-True-None] PASSED 2075s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-2-sum-data10-expected_data10-True-None] PASSED 2075s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-2-sum-data11-expected_data11-False-None] PASSED 2075s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-2-mean-data12-expected_data12-True-None] PASSED 2075s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-2-mean-data13-expected_data13-True-None] PASSED 2075s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-2-mean-data14-expected_data14-False-None] PASSED 2075s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-2-std-data15-expected_data15-True-None] PASSED 2075s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-2-std-data16-expected_data16-True-None] PASSED 2075s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-2-std-data17-expected_data17-False-None] PASSED 2075s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-2-var-data18-expected_data18-True-None] PASSED 2075s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-2-var-data19-expected_data19-True-None] PASSED 2075s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-2-var-data20-expected_data20-False-None] PASSED 2075s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-2-median-data21-expected_data21-True-None] PASSED 2075s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-2-median-data22-expected_data22-True-None] PASSED 2075s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-2-median-data23-expected_data23-False-None] PASSED 2075s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-5-count-data0-expected_data0-True-0] PASSED 2075s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-5-count-data1-expected_data1-True-0] PASSED 2076s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-5-count-data2-expected_data2-False-0] PASSED 2076s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-5-max-data3-expected_data3-True-None] PASSED 2076s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-5-max-data4-expected_data4-True-None] PASSED 2076s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-5-max-data5-expected_data5-False-None] PASSED 2076s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-5-min-data6-expected_data6-True-None] PASSED 2076s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-5-min-data7-expected_data7-True-None] PASSED 2076s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-5-min-data8-expected_data8-False-None] PASSED 2076s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-5-sum-data9-expected_data9-True-None] PASSED 2076s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-5-sum-data10-expected_data10-True-None] PASSED 2076s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-5-sum-data11-expected_data11-False-None] PASSED 2076s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-5-mean-data12-expected_data12-True-None] PASSED 2076s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-5-mean-data13-expected_data13-True-None] PASSED 2076s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-5-mean-data14-expected_data14-False-None] PASSED 2076s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-5-std-data15-expected_data15-True-None] PASSED 2076s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-5-std-data16-expected_data16-True-None] PASSED 2076s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-5-std-data17-expected_data17-False-None] PASSED 2076s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-5-var-data18-expected_data18-True-None] PASSED 2076s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-5-var-data19-expected_data19-True-None] PASSED 2076s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-5-var-data20-expected_data20-False-None] PASSED 2076s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-5-median-data21-expected_data21-True-None] PASSED 2076s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-5-median-data22-expected_data22-True-None] PASSED 2076s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-5-median-data23-expected_data23-False-None] PASSED 2076s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-10-count-data0-expected_data0-True-0] PASSED 2077s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-10-count-data1-expected_data1-True-0] PASSED 2077s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-10-count-data2-expected_data2-False-0] PASSED 2077s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-10-max-data3-expected_data3-True-None] PASSED 2077s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-10-max-data4-expected_data4-True-None] PASSED 2077s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-10-max-data5-expected_data5-False-None] PASSED 2077s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-10-min-data6-expected_data6-True-None] PASSED 2077s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-10-min-data7-expected_data7-True-None] PASSED 2077s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-10-min-data8-expected_data8-False-None] PASSED 2077s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-10-sum-data9-expected_data9-True-None] PASSED 2077s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-10-sum-data10-expected_data10-True-None] PASSED 2077s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-10-sum-data11-expected_data11-False-None] PASSED 2077s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-10-mean-data12-expected_data12-True-None] PASSED 2077s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-10-mean-data13-expected_data13-True-None] PASSED 2077s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-10-mean-data14-expected_data14-False-None] PASSED 2077s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-10-std-data15-expected_data15-True-None] PASSED 2077s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-10-std-data16-expected_data16-True-None] PASSED 2077s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-10-std-data17-expected_data17-False-None] PASSED 2077s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-10-var-data18-expected_data18-True-None] PASSED 2077s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-10-var-data19-expected_data19-True-None] PASSED 2077s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-10-var-data20-expected_data20-False-None] PASSED 2077s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-10-median-data21-expected_data21-True-None] PASSED 2077s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-10-median-data22-expected_data22-True-None] PASSED 2077s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-10-median-data23-expected_data23-False-None] PASSED 2077s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-None-count-data0-expected_data0-True-0] PASSED 2077s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-None-count-data1-expected_data1-True-0] PASSED 2077s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-None-count-data2-expected_data2-False-0] PASSED 2077s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-None-max-data3-expected_data3-True-None] PASSED 2077s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-None-max-data4-expected_data4-True-None] PASSED 2077s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-None-max-data5-expected_data5-False-None] PASSED 2077s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-None-min-data6-expected_data6-True-None] PASSED 2077s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-None-min-data7-expected_data7-True-None] PASSED 2077s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-None-min-data8-expected_data8-False-None] PASSED 2077s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-None-sum-data9-expected_data9-True-None] PASSED 2077s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-None-sum-data10-expected_data10-True-None] PASSED 2077s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-None-sum-data11-expected_data11-False-None] PASSED 2077s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-None-mean-data12-expected_data12-True-None] PASSED 2077s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-None-mean-data13-expected_data13-True-None] PASSED 2078s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-None-mean-data14-expected_data14-False-None] PASSED 2078s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-None-std-data15-expected_data15-True-None] PASSED 2078s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-None-std-data16-expected_data16-True-None] PASSED 2078s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-None-std-data17-expected_data17-False-None] PASSED 2078s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-None-var-data18-expected_data18-True-None] PASSED 2078s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-None-var-data19-expected_data19-True-None] PASSED 2078s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-None-var-data20-expected_data20-False-None] PASSED 2078s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-None-median-data21-expected_data21-True-None] PASSED 2078s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-None-median-data22-expected_data22-True-None] PASSED 2078s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-None-median-data23-expected_data23-False-None] PASSED 2078s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-1-count-data0-expected_data0-True-0] PASSED 2078s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-1-count-data1-expected_data1-True-0] PASSED 2078s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-1-count-data2-expected_data2-False-0] PASSED 2078s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-1-max-data3-expected_data3-True-None] PASSED 2078s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-1-max-data4-expected_data4-True-None] PASSED 2078s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-1-max-data5-expected_data5-False-None] PASSED 2078s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-1-min-data6-expected_data6-True-None] PASSED 2078s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-1-min-data7-expected_data7-True-None] PASSED 2078s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-1-min-data8-expected_data8-False-None] PASSED 2078s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-1-sum-data9-expected_data9-True-None] PASSED 2078s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-1-sum-data10-expected_data10-True-None] PASSED 2078s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-1-sum-data11-expected_data11-False-None] PASSED 2078s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-1-mean-data12-expected_data12-True-None] PASSED 2078s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-1-mean-data13-expected_data13-True-None] PASSED 2078s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-1-mean-data14-expected_data14-False-None] PASSED 2078s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-1-std-data15-expected_data15-True-None] PASSED 2078s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-1-std-data16-expected_data16-True-None] PASSED 2078s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-1-std-data17-expected_data17-False-None] PASSED 2078s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-1-var-data18-expected_data18-True-None] PASSED 2078s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-1-var-data19-expected_data19-True-None] PASSED 2078s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-1-var-data20-expected_data20-False-None] PASSED 2078s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-1-median-data21-expected_data21-True-None] PASSED 2078s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-1-median-data22-expected_data22-True-None] PASSED 2078s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-1-median-data23-expected_data23-False-None] PASSED 2079s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-2-count-data0-expected_data0-True-0] PASSED 2079s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-2-count-data1-expected_data1-True-0] PASSED 2079s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-2-count-data2-expected_data2-False-0] PASSED 2079s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-2-max-data3-expected_data3-True-None] PASSED 2079s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-2-max-data4-expected_data4-True-None] PASSED 2079s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-2-max-data5-expected_data5-False-None] PASSED 2079s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-2-min-data6-expected_data6-True-None] PASSED 2079s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-2-min-data7-expected_data7-True-None] PASSED 2079s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-2-min-data8-expected_data8-False-None] PASSED 2079s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-2-sum-data9-expected_data9-True-None] PASSED 2079s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-2-sum-data10-expected_data10-True-None] PASSED 2080s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-2-sum-data11-expected_data11-False-None] PASSED 2080s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-2-mean-data12-expected_data12-True-None] PASSED 2080s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-2-mean-data13-expected_data13-True-None] PASSED 2080s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-2-mean-data14-expected_data14-False-None] PASSED 2080s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-2-std-data15-expected_data15-True-None] PASSED 2080s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-2-std-data16-expected_data16-True-None] PASSED 2080s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-2-std-data17-expected_data17-False-None] PASSED 2080s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-2-var-data18-expected_data18-True-None] PASSED 2080s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-2-var-data19-expected_data19-True-None] PASSED 2080s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-2-var-data20-expected_data20-False-None] PASSED 2080s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-2-median-data21-expected_data21-True-None] PASSED 2080s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-2-median-data22-expected_data22-True-None] PASSED 2080s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-2-median-data23-expected_data23-False-None] PASSED 2080s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-5-count-data0-expected_data0-True-0] PASSED 2080s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-5-count-data1-expected_data1-True-0] PASSED 2080s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-5-count-data2-expected_data2-False-0] PASSED 2081s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-5-max-data3-expected_data3-True-None] PASSED 2081s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-5-max-data4-expected_data4-True-None] PASSED 2081s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-5-max-data5-expected_data5-False-None] PASSED 2081s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-5-min-data6-expected_data6-True-None] PASSED 2081s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-5-min-data7-expected_data7-True-None] PASSED 2081s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-5-min-data8-expected_data8-False-None] PASSED 2081s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-5-sum-data9-expected_data9-True-None] PASSED 2081s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-5-sum-data10-expected_data10-True-None] PASSED 2081s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-5-sum-data11-expected_data11-False-None] PASSED 2081s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-5-mean-data12-expected_data12-True-None] PASSED 2081s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-5-mean-data13-expected_data13-True-None] PASSED 2081s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-5-mean-data14-expected_data14-False-None] PASSED 2081s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-5-std-data15-expected_data15-True-None] PASSED 2081s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-5-std-data16-expected_data16-True-None] PASSED 2081s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-5-std-data17-expected_data17-False-None] PASSED 2081s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-5-var-data18-expected_data18-True-None] PASSED 2081s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-5-var-data19-expected_data19-True-None] PASSED 2081s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-5-var-data20-expected_data20-False-None] PASSED 2081s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-5-median-data21-expected_data21-True-None] PASSED 2081s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-5-median-data22-expected_data22-True-None] PASSED 2081s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-5-median-data23-expected_data23-False-None] PASSED 2081s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-10-count-data0-expected_data0-True-0] PASSED 2081s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-10-count-data1-expected_data1-True-0] PASSED 2081s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-10-count-data2-expected_data2-False-0] PASSED 2081s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-10-max-data3-expected_data3-True-None] PASSED 2081s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-10-max-data4-expected_data4-True-None] PASSED 2081s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-10-max-data5-expected_data5-False-None] PASSED 2081s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-10-min-data6-expected_data6-True-None] PASSED 2081s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-10-min-data7-expected_data7-True-None] PASSED 2081s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-10-min-data8-expected_data8-False-None] PASSED 2081s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-10-sum-data9-expected_data9-True-None] PASSED 2081s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-10-sum-data10-expected_data10-True-None] PASSED 2081s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-10-sum-data11-expected_data11-False-None] PASSED 2081s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-10-mean-data12-expected_data12-True-None] PASSED 2081s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-10-mean-data13-expected_data13-True-None] PASSED 2082s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-10-mean-data14-expected_data14-False-None] PASSED 2082s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-10-std-data15-expected_data15-True-None] PASSED 2082s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-10-std-data16-expected_data16-True-None] PASSED 2082s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-10-std-data17-expected_data17-False-None] PASSED 2082s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-10-var-data18-expected_data18-True-None] PASSED 2082s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-10-var-data19-expected_data19-True-None] PASSED 2082s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-10-var-data20-expected_data20-False-None] PASSED 2082s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-10-median-data21-expected_data21-True-None] PASSED 2082s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-10-median-data22-expected_data22-True-None] PASSED 2082s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-10-median-data23-expected_data23-False-None] PASSED 2082s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-None-count-data0-expected_data0-True-0] PASSED 2082s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-None-count-data1-expected_data1-True-0] PASSED 2082s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-None-count-data2-expected_data2-False-0] PASSED 2082s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-None-max-data3-expected_data3-True-None] PASSED 2082s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-None-max-data4-expected_data4-True-None] PASSED 2082s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-None-max-data5-expected_data5-False-None] PASSED 2082s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-None-min-data6-expected_data6-True-None] PASSED 2082s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-None-min-data7-expected_data7-True-None] PASSED 2082s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-None-min-data8-expected_data8-False-None] PASSED 2082s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-None-sum-data9-expected_data9-True-None] PASSED 2082s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-None-sum-data10-expected_data10-True-None] PASSED 2082s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-None-sum-data11-expected_data11-False-None] PASSED 2083s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-None-mean-data12-expected_data12-True-None] PASSED 2083s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-None-mean-data13-expected_data13-True-None] PASSED 2083s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-None-mean-data14-expected_data14-False-None] PASSED 2083s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-None-std-data15-expected_data15-True-None] PASSED 2083s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-None-std-data16-expected_data16-True-None] PASSED 2083s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-None-std-data17-expected_data17-False-None] PASSED 2083s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-None-var-data18-expected_data18-True-None] PASSED 2083s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-None-var-data19-expected_data19-True-None] PASSED 2083s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-None-var-data20-expected_data20-False-None] PASSED 2083s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-None-median-data21-expected_data21-True-None] PASSED 2083s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-None-median-data22-expected_data22-True-None] PASSED 2083s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-None-median-data23-expected_data23-False-None] PASSED 2083s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-1-count-data0-expected_data0-True-0] PASSED 2083s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-1-count-data1-expected_data1-True-0] PASSED 2083s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-1-count-data2-expected_data2-False-0] PASSED 2083s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-1-max-data3-expected_data3-True-None] PASSED 2083s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-1-max-data4-expected_data4-True-None] PASSED 2083s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-1-max-data5-expected_data5-False-None] PASSED 2083s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-1-min-data6-expected_data6-True-None] PASSED 2083s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-1-min-data7-expected_data7-True-None] PASSED 2083s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-1-min-data8-expected_data8-False-None] PASSED 2083s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-1-sum-data9-expected_data9-True-None] PASSED 2083s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-1-sum-data10-expected_data10-True-None] PASSED 2083s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-1-sum-data11-expected_data11-False-None] PASSED 2083s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-1-mean-data12-expected_data12-True-None] PASSED 2083s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-1-mean-data13-expected_data13-True-None] PASSED 2083s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-1-mean-data14-expected_data14-False-None] PASSED 2083s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-1-std-data15-expected_data15-True-None] PASSED 2084s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-1-std-data16-expected_data16-True-None] PASSED 2084s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-1-std-data17-expected_data17-False-None] PASSED 2084s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-1-var-data18-expected_data18-True-None] PASSED 2084s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-1-var-data19-expected_data19-True-None] PASSED 2084s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-1-var-data20-expected_data20-False-None] PASSED 2084s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-1-median-data21-expected_data21-True-None] PASSED 2084s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-1-median-data22-expected_data22-True-None] PASSED 2084s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-1-median-data23-expected_data23-False-None] PASSED 2084s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-2-count-data0-expected_data0-True-0] PASSED 2084s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-2-count-data1-expected_data1-True-0] PASSED 2084s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-2-count-data2-expected_data2-False-0] PASSED 2084s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-2-max-data3-expected_data3-True-None] PASSED 2084s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-2-max-data4-expected_data4-True-None] PASSED 2084s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-2-max-data5-expected_data5-False-None] PASSED 2084s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-2-min-data6-expected_data6-True-None] PASSED 2084s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-2-min-data7-expected_data7-True-None] PASSED 2084s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-2-min-data8-expected_data8-False-None] PASSED 2084s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-2-sum-data9-expected_data9-True-None] PASSED 2084s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-2-sum-data10-expected_data10-True-None] PASSED 2085s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-2-sum-data11-expected_data11-False-None] PASSED 2085s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-2-mean-data12-expected_data12-True-None] PASSED 2085s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-2-mean-data13-expected_data13-True-None] PASSED 2085s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-2-mean-data14-expected_data14-False-None] PASSED 2085s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-2-std-data15-expected_data15-True-None] PASSED 2085s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-2-std-data16-expected_data16-True-None] PASSED 2085s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-2-std-data17-expected_data17-False-None] PASSED 2086s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-2-var-data18-expected_data18-True-None] PASSED 2086s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-2-var-data19-expected_data19-True-None] PASSED 2086s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-2-var-data20-expected_data20-False-None] PASSED 2086s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-2-median-data21-expected_data21-True-None] PASSED 2086s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-2-median-data22-expected_data22-True-None] PASSED 2086s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-2-median-data23-expected_data23-False-None] PASSED 2086s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-5-count-data0-expected_data0-True-0] PASSED 2086s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-5-count-data1-expected_data1-True-0] PASSED 2086s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-5-count-data2-expected_data2-False-0] PASSED 2086s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-5-max-data3-expected_data3-True-None] PASSED 2086s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-5-max-data4-expected_data4-True-None] PASSED 2086s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-5-max-data5-expected_data5-False-None] PASSED 2087s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-5-min-data6-expected_data6-True-None] PASSED 2087s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-5-min-data7-expected_data7-True-None] PASSED 2087s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-5-min-data8-expected_data8-False-None] PASSED 2087s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-5-sum-data9-expected_data9-True-None] PASSED 2087s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-5-sum-data10-expected_data10-True-None] PASSED 2087s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-5-sum-data11-expected_data11-False-None] PASSED 2087s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-5-mean-data12-expected_data12-True-None] PASSED 2087s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-5-mean-data13-expected_data13-True-None] PASSED 2087s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-5-mean-data14-expected_data14-False-None] PASSED 2088s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-5-std-data15-expected_data15-True-None] PASSED 2088s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-5-std-data16-expected_data16-True-None] PASSED 2088s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-5-std-data17-expected_data17-False-None] PASSED 2088s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-5-var-data18-expected_data18-True-None] PASSED 2088s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-5-var-data19-expected_data19-True-None] PASSED 2088s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-5-var-data20-expected_data20-False-None] PASSED 2088s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-5-median-data21-expected_data21-True-None] PASSED 2088s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-5-median-data22-expected_data22-True-None] PASSED 2088s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-5-median-data23-expected_data23-False-None] PASSED 2088s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-10-count-data0-expected_data0-True-0] PASSED 2088s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-10-count-data1-expected_data1-True-0] PASSED 2088s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-10-count-data2-expected_data2-False-0] PASSED 2088s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-10-max-data3-expected_data3-True-None] PASSED 2088s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-10-max-data4-expected_data4-True-None] PASSED 2088s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-10-max-data5-expected_data5-False-None] PASSED 2088s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-10-min-data6-expected_data6-True-None] PASSED 2088s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-10-min-data7-expected_data7-True-None] PASSED 2088s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-10-min-data8-expected_data8-False-None] PASSED 2088s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-10-sum-data9-expected_data9-True-None] PASSED 2088s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-10-sum-data10-expected_data10-True-None] PASSED 2089s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-10-sum-data11-expected_data11-False-None] PASSED 2089s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-10-mean-data12-expected_data12-True-None] PASSED 2089s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-10-mean-data13-expected_data13-True-None] PASSED 2089s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-10-mean-data14-expected_data14-False-None] PASSED 2089s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-10-std-data15-expected_data15-True-None] PASSED 2089s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-10-std-data16-expected_data16-True-None] PASSED 2089s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-10-std-data17-expected_data17-False-None] PASSED 2089s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-10-var-data18-expected_data18-True-None] PASSED 2089s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-10-var-data19-expected_data19-True-None] PASSED 2089s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-10-var-data20-expected_data20-False-None] PASSED 2089s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-10-median-data21-expected_data21-True-None] PASSED 2089s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-10-median-data22-expected_data22-True-None] PASSED 2089s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-10-median-data23-expected_data23-False-None] PASSED 2089s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-None-count-data0-expected_data0-True-0] PASSED 2089s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-None-count-data1-expected_data1-True-0] PASSED 2089s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-None-count-data2-expected_data2-False-0] PASSED 2089s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-None-max-data3-expected_data3-True-None] PASSED 2089s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-None-max-data4-expected_data4-True-None] PASSED 2089s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-None-max-data5-expected_data5-False-None] PASSED 2089s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-None-min-data6-expected_data6-True-None] PASSED 2089s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-None-min-data7-expected_data7-True-None] PASSED 2089s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-None-min-data8-expected_data8-False-None] PASSED 2089s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-None-sum-data9-expected_data9-True-None] PASSED 2089s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-None-sum-data10-expected_data10-True-None] PASSED 2089s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-None-sum-data11-expected_data11-False-None] PASSED 2089s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-None-mean-data12-expected_data12-True-None] PASSED 2089s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-None-mean-data13-expected_data13-True-None] PASSED 2089s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-None-mean-data14-expected_data14-False-None] PASSED 2089s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-None-std-data15-expected_data15-True-None] PASSED 2089s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-None-std-data16-expected_data16-True-None] PASSED 2089s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-None-std-data17-expected_data17-False-None] PASSED 2089s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-None-var-data18-expected_data18-True-None] PASSED 2089s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-None-var-data19-expected_data19-True-None] PASSED 2089s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-None-var-data20-expected_data20-False-None] PASSED 2090s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-None-median-data21-expected_data21-True-None] PASSED 2090s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-None-median-data22-expected_data22-True-None] PASSED 2090s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-None-median-data23-expected_data23-False-None] PASSED 2090s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-1-count-data0-expected_data0-True-0] PASSED 2090s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-1-count-data1-expected_data1-True-0] PASSED 2090s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-1-count-data2-expected_data2-False-0] PASSED 2090s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-1-max-data3-expected_data3-True-None] PASSED 2090s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-1-max-data4-expected_data4-True-None] PASSED 2090s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-1-max-data5-expected_data5-False-None] PASSED 2090s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-1-min-data6-expected_data6-True-None] PASSED 2091s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-1-min-data7-expected_data7-True-None] PASSED 2091s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-1-min-data8-expected_data8-False-None] PASSED 2091s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-1-sum-data9-expected_data9-True-None] PASSED 2091s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-1-sum-data10-expected_data10-True-None] PASSED 2091s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-1-sum-data11-expected_data11-False-None] PASSED 2091s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-1-mean-data12-expected_data12-True-None] PASSED 2091s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-1-mean-data13-expected_data13-True-None] PASSED 2091s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-1-mean-data14-expected_data14-False-None] PASSED 2091s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-1-std-data15-expected_data15-True-None] PASSED 2091s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-1-std-data16-expected_data16-True-None] PASSED 2091s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-1-std-data17-expected_data17-False-None] PASSED 2092s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-1-var-data18-expected_data18-True-None] PASSED 2092s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-1-var-data19-expected_data19-True-None] PASSED 2092s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-1-var-data20-expected_data20-False-None] PASSED 2092s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-1-median-data21-expected_data21-True-None] PASSED 2092s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-1-median-data22-expected_data22-True-None] PASSED 2092s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-1-median-data23-expected_data23-False-None] PASSED 2092s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-2-count-data0-expected_data0-True-0] PASSED 2092s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-2-count-data1-expected_data1-True-0] PASSED 2093s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-2-count-data2-expected_data2-False-0] PASSED 2093s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-2-max-data3-expected_data3-True-None] PASSED 2093s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-2-max-data4-expected_data4-True-None] PASSED 2093s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-2-max-data5-expected_data5-False-None] PASSED 2093s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-2-min-data6-expected_data6-True-None] PASSED 2093s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-2-min-data7-expected_data7-True-None] PASSED 2093s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-2-min-data8-expected_data8-False-None] PASSED 2093s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-2-sum-data9-expected_data9-True-None] PASSED 2093s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-2-sum-data10-expected_data10-True-None] PASSED 2093s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-2-sum-data11-expected_data11-False-None] PASSED 2093s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-2-mean-data12-expected_data12-True-None] PASSED 2093s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-2-mean-data13-expected_data13-True-None] PASSED 2093s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-2-mean-data14-expected_data14-False-None] PASSED 2093s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-2-std-data15-expected_data15-True-None] PASSED 2093s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-2-std-data16-expected_data16-True-None] PASSED 2093s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-2-std-data17-expected_data17-False-None] PASSED 2093s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-2-var-data18-expected_data18-True-None] PASSED 2093s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-2-var-data19-expected_data19-True-None] PASSED 2093s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-2-var-data20-expected_data20-False-None] PASSED 2093s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-2-median-data21-expected_data21-True-None] PASSED 2093s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-2-median-data22-expected_data22-True-None] PASSED 2093s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-2-median-data23-expected_data23-False-None] PASSED 2093s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-5-count-data0-expected_data0-True-0] PASSED 2093s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-5-count-data1-expected_data1-True-0] PASSED 2093s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-5-count-data2-expected_data2-False-0] PASSED 2094s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-5-max-data3-expected_data3-True-None] PASSED 2094s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-5-max-data4-expected_data4-True-None] PASSED 2094s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-5-max-data5-expected_data5-False-None] PASSED 2094s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-5-min-data6-expected_data6-True-None] PASSED 2094s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-5-min-data7-expected_data7-True-None] PASSED 2094s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-5-min-data8-expected_data8-False-None] PASSED 2094s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-5-sum-data9-expected_data9-True-None] PASSED 2094s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-5-sum-data10-expected_data10-True-None] PASSED 2094s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-5-sum-data11-expected_data11-False-None] PASSED 2094s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-5-mean-data12-expected_data12-True-None] PASSED 2094s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-5-mean-data13-expected_data13-True-None] PASSED 2094s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-5-mean-data14-expected_data14-False-None] PASSED 2094s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-5-std-data15-expected_data15-True-None] PASSED 2094s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-5-std-data16-expected_data16-True-None] PASSED 2094s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-5-std-data17-expected_data17-False-None] PASSED 2094s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-5-var-data18-expected_data18-True-None] PASSED 2094s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-5-var-data19-expected_data19-True-None] PASSED 2094s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-5-var-data20-expected_data20-False-None] PASSED 2094s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-5-median-data21-expected_data21-True-None] PASSED 2094s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-5-median-data22-expected_data22-True-None] PASSED 2094s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-5-median-data23-expected_data23-False-None] PASSED 2094s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-10-count-data0-expected_data0-True-0] PASSED 2094s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-10-count-data1-expected_data1-True-0] PASSED 2094s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-10-count-data2-expected_data2-False-0] PASSED 2094s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-10-max-data3-expected_data3-True-None] PASSED 2094s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-10-max-data4-expected_data4-True-None] PASSED 2094s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-10-max-data5-expected_data5-False-None] PASSED 2094s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-10-min-data6-expected_data6-True-None] PASSED 2094s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-10-min-data7-expected_data7-True-None] PASSED 2094s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-10-min-data8-expected_data8-False-None] PASSED 2094s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-10-sum-data9-expected_data9-True-None] PASSED 2094s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-10-sum-data10-expected_data10-True-None] PASSED 2094s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-10-sum-data11-expected_data11-False-None] PASSED 2094s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-10-mean-data12-expected_data12-True-None] PASSED 2095s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-10-mean-data13-expected_data13-True-None] PASSED 2095s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-10-mean-data14-expected_data14-False-None] PASSED 2095s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-10-std-data15-expected_data15-True-None] PASSED 2095s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-10-std-data16-expected_data16-True-None] PASSED 2095s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-10-std-data17-expected_data17-False-None] PASSED 2095s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-10-var-data18-expected_data18-True-None] PASSED 2095s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-10-var-data19-expected_data19-True-None] PASSED 2095s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-10-var-data20-expected_data20-False-None] PASSED 2095s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-10-median-data21-expected_data21-True-None] PASSED 2095s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-10-median-data22-expected_data22-True-None] PASSED 2095s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-10-median-data23-expected_data23-False-None] PASSED 2095s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-None-count-data0-expected_data0-True-0] PASSED 2095s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-None-count-data1-expected_data1-True-0] PASSED 2095s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-None-count-data2-expected_data2-False-0] PASSED 2095s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-None-max-data3-expected_data3-True-None] PASSED 2095s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-None-max-data4-expected_data4-True-None] PASSED 2095s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-None-max-data5-expected_data5-False-None] PASSED 2095s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-None-min-data6-expected_data6-True-None] PASSED 2095s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-None-min-data7-expected_data7-True-None] PASSED 2095s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-None-min-data8-expected_data8-False-None] PASSED 2095s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-None-sum-data9-expected_data9-True-None] PASSED 2095s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-None-sum-data10-expected_data10-True-None] PASSED 2095s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-None-sum-data11-expected_data11-False-None] PASSED 2095s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-None-mean-data12-expected_data12-True-None] PASSED 2095s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-None-mean-data13-expected_data13-True-None] PASSED 2095s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-None-mean-data14-expected_data14-False-None] PASSED 2095s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-None-std-data15-expected_data15-True-None] PASSED 2095s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-None-std-data16-expected_data16-True-None] PASSED 2095s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-None-std-data17-expected_data17-False-None] PASSED 2095s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-None-var-data18-expected_data18-True-None] PASSED 2095s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-None-var-data19-expected_data19-True-None] PASSED 2095s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-None-var-data20-expected_data20-False-None] PASSED 2095s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-None-median-data21-expected_data21-True-None] PASSED 2095s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-None-median-data22-expected_data22-True-None] PASSED 2095s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-None-median-data23-expected_data23-False-None] PASSED 2095s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-1-count-data0-expected_data0-True-0] PASSED 2095s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-1-count-data1-expected_data1-True-0] PASSED 2095s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-1-count-data2-expected_data2-False-0] PASSED 2096s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-1-max-data3-expected_data3-True-None] PASSED 2096s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-1-max-data4-expected_data4-True-None] PASSED 2096s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-1-max-data5-expected_data5-False-None] PASSED 2096s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-1-min-data6-expected_data6-True-None] PASSED 2096s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-1-min-data7-expected_data7-True-None] PASSED 2096s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-1-min-data8-expected_data8-False-None] PASSED 2096s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-1-sum-data9-expected_data9-True-None] PASSED 2096s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-1-sum-data10-expected_data10-True-None] PASSED 2096s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-1-sum-data11-expected_data11-False-None] PASSED 2096s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-1-mean-data12-expected_data12-True-None] PASSED 2096s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-1-mean-data13-expected_data13-True-None] PASSED 2096s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-1-mean-data14-expected_data14-False-None] PASSED 2096s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-1-std-data15-expected_data15-True-None] PASSED 2096s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-1-std-data16-expected_data16-True-None] PASSED 2096s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-1-std-data17-expected_data17-False-None] PASSED 2096s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-1-var-data18-expected_data18-True-None] PASSED 2096s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-1-var-data19-expected_data19-True-None] PASSED 2096s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-1-var-data20-expected_data20-False-None] PASSED 2096s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-1-median-data21-expected_data21-True-None] PASSED 2096s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-1-median-data22-expected_data22-True-None] PASSED 2096s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-1-median-data23-expected_data23-False-None] PASSED 2096s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-2-count-data0-expected_data0-True-0] PASSED 2096s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-2-count-data1-expected_data1-True-0] PASSED 2096s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-2-count-data2-expected_data2-False-0] PASSED 2096s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-2-max-data3-expected_data3-True-None] PASSED 2096s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-2-max-data4-expected_data4-True-None] PASSED 2097s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-2-max-data5-expected_data5-False-None] PASSED 2097s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-2-min-data6-expected_data6-True-None] PASSED 2097s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-2-min-data7-expected_data7-True-None] PASSED 2097s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-2-min-data8-expected_data8-False-None] PASSED 2097s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-2-sum-data9-expected_data9-True-None] PASSED 2097s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-2-sum-data10-expected_data10-True-None] PASSED 2097s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-2-sum-data11-expected_data11-False-None] PASSED 2097s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-2-mean-data12-expected_data12-True-None] PASSED 2097s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-2-mean-data13-expected_data13-True-None] PASSED 2097s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-2-mean-data14-expected_data14-False-None] PASSED 2097s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-2-std-data15-expected_data15-True-None] PASSED 2097s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-2-std-data16-expected_data16-True-None] PASSED 2097s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-2-std-data17-expected_data17-False-None] PASSED 2097s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-2-var-data18-expected_data18-True-None] PASSED 2097s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-2-var-data19-expected_data19-True-None] PASSED 2097s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-2-var-data20-expected_data20-False-None] PASSED 2097s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-2-median-data21-expected_data21-True-None] PASSED 2097s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-2-median-data22-expected_data22-True-None] PASSED 2097s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-2-median-data23-expected_data23-False-None] PASSED 2098s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-5-count-data0-expected_data0-True-0] PASSED 2098s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-5-count-data1-expected_data1-True-0] PASSED 2098s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-5-count-data2-expected_data2-False-0] PASSED 2098s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-5-max-data3-expected_data3-True-None] PASSED 2098s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-5-max-data4-expected_data4-True-None] PASSED 2098s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-5-max-data5-expected_data5-False-None] PASSED 2098s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-5-min-data6-expected_data6-True-None] PASSED 2098s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-5-min-data7-expected_data7-True-None] PASSED 2098s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-5-min-data8-expected_data8-False-None] PASSED 2098s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-5-sum-data9-expected_data9-True-None] PASSED 2098s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-5-sum-data10-expected_data10-True-None] PASSED 2098s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-5-sum-data11-expected_data11-False-None] PASSED 2098s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-5-mean-data12-expected_data12-True-None] PASSED 2098s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-5-mean-data13-expected_data13-True-None] PASSED 2098s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-5-mean-data14-expected_data14-False-None] PASSED 2098s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-5-std-data15-expected_data15-True-None] PASSED 2098s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-5-std-data16-expected_data16-True-None] PASSED 2098s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-5-std-data17-expected_data17-False-None] PASSED 2098s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-5-var-data18-expected_data18-True-None] PASSED 2099s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-5-var-data19-expected_data19-True-None] PASSED 2099s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-5-var-data20-expected_data20-False-None] PASSED 2099s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-5-median-data21-expected_data21-True-None] PASSED 2099s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-5-median-data22-expected_data22-True-None] PASSED 2099s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-5-median-data23-expected_data23-False-None] PASSED 2099s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-10-count-data0-expected_data0-True-0] PASSED 2099s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-10-count-data1-expected_data1-True-0] PASSED 2099s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-10-count-data2-expected_data2-False-0] PASSED 2099s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-10-max-data3-expected_data3-True-None] PASSED 2099s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-10-max-data4-expected_data4-True-None] PASSED 2099s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-10-max-data5-expected_data5-False-None] PASSED 2099s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-10-min-data6-expected_data6-True-None] PASSED 2100s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-10-min-data7-expected_data7-True-None] PASSED 2100s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-10-min-data8-expected_data8-False-None] PASSED 2100s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-10-sum-data9-expected_data9-True-None] PASSED 2100s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-10-sum-data10-expected_data10-True-None] PASSED 2100s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-10-sum-data11-expected_data11-False-None] PASSED 2100s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-10-mean-data12-expected_data12-True-None] PASSED 2100s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-10-mean-data13-expected_data13-True-None] PASSED 2100s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-10-mean-data14-expected_data14-False-None] PASSED 2100s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-10-std-data15-expected_data15-True-None] PASSED 2100s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-10-std-data16-expected_data16-True-None] PASSED 2100s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-10-std-data17-expected_data17-False-None] PASSED 2100s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-10-var-data18-expected_data18-True-None] PASSED 2100s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-10-var-data19-expected_data19-True-None] PASSED 2100s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-10-var-data20-expected_data20-False-None] PASSED 2100s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-10-median-data21-expected_data21-True-None] PASSED 2100s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-10-median-data22-expected_data22-True-None] PASSED 2100s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-10-median-data23-expected_data23-False-None] PASSED 2100s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-None-count-data0-expected_data0-True-0] PASSED 2101s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-None-count-data1-expected_data1-True-0] PASSED 2101s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-None-count-data2-expected_data2-False-0] PASSED 2101s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-None-max-data3-expected_data3-True-None] PASSED 2101s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-None-max-data4-expected_data4-True-None] PASSED 2101s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-None-max-data5-expected_data5-False-None] PASSED 2101s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-None-min-data6-expected_data6-True-None] PASSED 2101s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-None-min-data7-expected_data7-True-None] PASSED 2101s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-None-min-data8-expected_data8-False-None] PASSED 2101s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-None-sum-data9-expected_data9-True-None] PASSED 2101s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-None-sum-data10-expected_data10-True-None] PASSED 2101s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-None-sum-data11-expected_data11-False-None] PASSED 2101s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-None-mean-data12-expected_data12-True-None] PASSED 2101s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-None-mean-data13-expected_data13-True-None] PASSED 2101s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-None-mean-data14-expected_data14-False-None] PASSED 2101s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-None-std-data15-expected_data15-True-None] PASSED 2101s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-None-std-data16-expected_data16-True-None] PASSED 2101s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-None-std-data17-expected_data17-False-None] PASSED 2101s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-None-var-data18-expected_data18-True-None] PASSED 2101s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-None-var-data19-expected_data19-True-None] PASSED 2101s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-None-var-data20-expected_data20-False-None] PASSED 2101s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-None-median-data21-expected_data21-True-None] PASSED 2101s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-None-median-data22-expected_data22-True-None] PASSED 2101s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-None-median-data23-expected_data23-False-None] PASSED 2101s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-1-count-data0-expected_data0-True-0] PASSED 2101s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-1-count-data1-expected_data1-True-0] PASSED 2102s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-1-count-data2-expected_data2-False-0] PASSED 2102s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-1-max-data3-expected_data3-True-None] PASSED 2102s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-1-max-data4-expected_data4-True-None] PASSED 2102s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-1-max-data5-expected_data5-False-None] PASSED 2102s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-1-min-data6-expected_data6-True-None] PASSED 2102s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-1-min-data7-expected_data7-True-None] PASSED 2102s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-1-min-data8-expected_data8-False-None] PASSED 2102s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-1-sum-data9-expected_data9-True-None] PASSED 2102s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-1-sum-data10-expected_data10-True-None] PASSED 2102s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-1-sum-data11-expected_data11-False-None] PASSED 2102s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-1-mean-data12-expected_data12-True-None] PASSED 2102s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-1-mean-data13-expected_data13-True-None] PASSED 2102s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-1-mean-data14-expected_data14-False-None] PASSED 2102s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-1-std-data15-expected_data15-True-None] PASSED 2102s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-1-std-data16-expected_data16-True-None] PASSED 2102s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-1-std-data17-expected_data17-False-None] PASSED 2102s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-1-var-data18-expected_data18-True-None] PASSED 2102s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-1-var-data19-expected_data19-True-None] PASSED 2102s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-1-var-data20-expected_data20-False-None] PASSED 2102s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-1-median-data21-expected_data21-True-None] PASSED 2102s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-1-median-data22-expected_data22-True-None] PASSED 2102s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-1-median-data23-expected_data23-False-None] PASSED 2102s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-2-count-data0-expected_data0-True-0] PASSED 2102s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-2-count-data1-expected_data1-True-0] PASSED 2102s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-2-count-data2-expected_data2-False-0] PASSED 2102s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-2-max-data3-expected_data3-True-None] PASSED 2102s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-2-max-data4-expected_data4-True-None] PASSED 2102s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-2-max-data5-expected_data5-False-None] PASSED 2102s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-2-min-data6-expected_data6-True-None] PASSED 2102s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-2-min-data7-expected_data7-True-None] PASSED 2102s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-2-min-data8-expected_data8-False-None] PASSED 2102s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-2-sum-data9-expected_data9-True-None] PASSED 2102s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-2-sum-data10-expected_data10-True-None] PASSED 2102s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-2-sum-data11-expected_data11-False-None] PASSED 2102s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-2-mean-data12-expected_data12-True-None] PASSED 2102s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-2-mean-data13-expected_data13-True-None] PASSED 2102s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-2-mean-data14-expected_data14-False-None] PASSED 2102s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-2-std-data15-expected_data15-True-None] PASSED 2102s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-2-std-data16-expected_data16-True-None] PASSED 2102s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-2-std-data17-expected_data17-False-None] PASSED 2103s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-2-var-data18-expected_data18-True-None] PASSED 2103s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-2-var-data19-expected_data19-True-None] PASSED 2103s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-2-var-data20-expected_data20-False-None] PASSED 2103s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-2-median-data21-expected_data21-True-None] PASSED 2103s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-2-median-data22-expected_data22-True-None] PASSED 2103s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-2-median-data23-expected_data23-False-None] PASSED 2103s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-5-count-data0-expected_data0-True-0] PASSED 2103s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-5-count-data1-expected_data1-True-0] PASSED 2103s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-5-count-data2-expected_data2-False-0] PASSED 2103s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-5-max-data3-expected_data3-True-None] PASSED 2103s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-5-max-data4-expected_data4-True-None] PASSED 2103s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-5-max-data5-expected_data5-False-None] PASSED 2103s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-5-min-data6-expected_data6-True-None] PASSED 2103s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-5-min-data7-expected_data7-True-None] PASSED 2103s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-5-min-data8-expected_data8-False-None] PASSED 2103s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-5-sum-data9-expected_data9-True-None] PASSED 2103s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-5-sum-data10-expected_data10-True-None] PASSED 2104s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-5-sum-data11-expected_data11-False-None] PASSED 2104s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-5-mean-data12-expected_data12-True-None] PASSED 2104s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-5-mean-data13-expected_data13-True-None] PASSED 2104s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-5-mean-data14-expected_data14-False-None] PASSED 2104s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-5-std-data15-expected_data15-True-None] PASSED 2104s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-5-std-data16-expected_data16-True-None] PASSED 2104s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-5-std-data17-expected_data17-False-None] PASSED 2104s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-5-var-data18-expected_data18-True-None] PASSED 2104s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-5-var-data19-expected_data19-True-None] PASSED 2104s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-5-var-data20-expected_data20-False-None] PASSED 2104s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-5-median-data21-expected_data21-True-None] PASSED 2104s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-5-median-data22-expected_data22-True-None] PASSED 2104s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-5-median-data23-expected_data23-False-None] PASSED 2104s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-10-count-data0-expected_data0-True-0] PASSED 2104s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-10-count-data1-expected_data1-True-0] PASSED 2104s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-10-count-data2-expected_data2-False-0] PASSED 2104s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-10-max-data3-expected_data3-True-None] PASSED 2104s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-10-max-data4-expected_data4-True-None] PASSED 2104s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-10-max-data5-expected_data5-False-None] PASSED 2104s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-10-min-data6-expected_data6-True-None] PASSED 2104s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-10-min-data7-expected_data7-True-None] PASSED 2104s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-10-min-data8-expected_data8-False-None] PASSED 2104s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-10-sum-data9-expected_data9-True-None] PASSED 2104s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-10-sum-data10-expected_data10-True-None] PASSED 2104s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-10-sum-data11-expected_data11-False-None] PASSED 2104s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-10-mean-data12-expected_data12-True-None] PASSED 2104s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-10-mean-data13-expected_data13-True-None] PASSED 2104s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-10-mean-data14-expected_data14-False-None] PASSED 2104s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-10-std-data15-expected_data15-True-None] PASSED 2105s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-10-std-data16-expected_data16-True-None] PASSED 2105s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-10-std-data17-expected_data17-False-None] PASSED 2105s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-10-var-data18-expected_data18-True-None] PASSED 2105s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-10-var-data19-expected_data19-True-None] PASSED 2105s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-10-var-data20-expected_data20-False-None] PASSED 2105s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-10-median-data21-expected_data21-True-None] PASSED 2105s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-10-median-data22-expected_data22-True-None] PASSED 2105s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-10-median-data23-expected_data23-False-None] PASSED 2105s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-None-count-data0-expected_data0-True-0] PASSED 2105s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-None-count-data1-expected_data1-True-0] PASSED 2105s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-None-count-data2-expected_data2-False-0] PASSED 2105s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-None-max-data3-expected_data3-True-None] PASSED 2105s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-None-max-data4-expected_data4-True-None] PASSED 2105s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-None-max-data5-expected_data5-False-None] PASSED 2105s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-None-min-data6-expected_data6-True-None] PASSED 2105s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-None-min-data7-expected_data7-True-None] PASSED 2105s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-None-min-data8-expected_data8-False-None] PASSED 2105s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-None-sum-data9-expected_data9-True-None] PASSED 2105s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-None-sum-data10-expected_data10-True-None] PASSED 2105s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-None-sum-data11-expected_data11-False-None] PASSED 2105s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-None-mean-data12-expected_data12-True-None] PASSED 2105s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-None-mean-data13-expected_data13-True-None] PASSED 2105s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-None-mean-data14-expected_data14-False-None] PASSED 2105s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-None-std-data15-expected_data15-True-None] PASSED 2105s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-None-std-data16-expected_data16-True-None] PASSED 2105s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-None-std-data17-expected_data17-False-None] PASSED 2105s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-None-var-data18-expected_data18-True-None] PASSED 2105s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-None-var-data19-expected_data19-True-None] PASSED 2105s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-None-var-data20-expected_data20-False-None] PASSED 2105s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-None-median-data21-expected_data21-True-None] PASSED 2105s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-None-median-data22-expected_data22-True-None] PASSED 2105s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-None-median-data23-expected_data23-False-None] PASSED 2105s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-1-count-data0-expected_data0-True-0] PASSED 2105s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-1-count-data1-expected_data1-True-0] PASSED 2106s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-1-count-data2-expected_data2-False-0] PASSED 2106s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-1-max-data3-expected_data3-True-None] PASSED 2106s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-1-max-data4-expected_data4-True-None] PASSED 2106s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-1-max-data5-expected_data5-False-None] PASSED 2106s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-1-min-data6-expected_data6-True-None] PASSED 2106s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-1-min-data7-expected_data7-True-None] PASSED 2106s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-1-min-data8-expected_data8-False-None] PASSED 2106s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-1-sum-data9-expected_data9-True-None] PASSED 2106s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-1-sum-data10-expected_data10-True-None] PASSED 2106s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-1-sum-data11-expected_data11-False-None] PASSED 2106s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-1-mean-data12-expected_data12-True-None] PASSED 2106s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-1-mean-data13-expected_data13-True-None] PASSED 2106s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-1-mean-data14-expected_data14-False-None] PASSED 2106s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-1-std-data15-expected_data15-True-None] PASSED 2106s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-1-std-data16-expected_data16-True-None] PASSED 2106s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-1-std-data17-expected_data17-False-None] PASSED 2106s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-1-var-data18-expected_data18-True-None] PASSED 2106s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-1-var-data19-expected_data19-True-None] PASSED 2106s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-1-var-data20-expected_data20-False-None] PASSED 2106s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-1-median-data21-expected_data21-True-None] PASSED 2106s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-1-median-data22-expected_data22-True-None] PASSED 2106s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-1-median-data23-expected_data23-False-None] PASSED 2106s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-2-count-data0-expected_data0-True-0] PASSED 2106s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-2-count-data1-expected_data1-True-0] PASSED 2106s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-2-count-data2-expected_data2-False-0] PASSED 2107s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-2-max-data3-expected_data3-True-None] PASSED 2107s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-2-max-data4-expected_data4-True-None] PASSED 2107s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-2-max-data5-expected_data5-False-None] PASSED 2107s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-2-min-data6-expected_data6-True-None] PASSED 2107s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-2-min-data7-expected_data7-True-None] PASSED 2107s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-2-min-data8-expected_data8-False-None] PASSED 2107s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-2-sum-data9-expected_data9-True-None] PASSED 2107s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-2-sum-data10-expected_data10-True-None] PASSED 2107s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-2-sum-data11-expected_data11-False-None] PASSED 2107s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-2-mean-data12-expected_data12-True-None] PASSED 2107s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-2-mean-data13-expected_data13-True-None] PASSED 2107s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-2-mean-data14-expected_data14-False-None] PASSED 2107s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-2-std-data15-expected_data15-True-None] PASSED 2107s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-2-std-data16-expected_data16-True-None] PASSED 2107s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-2-std-data17-expected_data17-False-None] PASSED 2107s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-2-var-data18-expected_data18-True-None] PASSED 2107s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-2-var-data19-expected_data19-True-None] PASSED 2107s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-2-var-data20-expected_data20-False-None] PASSED 2107s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-2-median-data21-expected_data21-True-None] PASSED 2107s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-2-median-data22-expected_data22-True-None] PASSED 2107s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-2-median-data23-expected_data23-False-None] PASSED 2108s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-5-count-data0-expected_data0-True-0] PASSED 2108s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-5-count-data1-expected_data1-True-0] PASSED 2108s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-5-count-data2-expected_data2-False-0] PASSED 2108s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-5-max-data3-expected_data3-True-None] PASSED 2108s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-5-max-data4-expected_data4-True-None] PASSED 2108s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-5-max-data5-expected_data5-False-None] PASSED 2108s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-5-min-data6-expected_data6-True-None] PASSED 2108s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-5-min-data7-expected_data7-True-None] PASSED 2108s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-5-min-data8-expected_data8-False-None] PASSED 2108s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-5-sum-data9-expected_data9-True-None] PASSED 2108s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-5-sum-data10-expected_data10-True-None] PASSED 2108s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-5-sum-data11-expected_data11-False-None] PASSED 2108s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-5-mean-data12-expected_data12-True-None] PASSED 2108s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-5-mean-data13-expected_data13-True-None] PASSED 2108s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-5-mean-data14-expected_data14-False-None] PASSED 2108s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-5-std-data15-expected_data15-True-None] PASSED 2108s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-5-std-data16-expected_data16-True-None] PASSED 2108s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-5-std-data17-expected_data17-False-None] PASSED 2108s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-5-var-data18-expected_data18-True-None] PASSED 2108s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-5-var-data19-expected_data19-True-None] PASSED 2108s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-5-var-data20-expected_data20-False-None] PASSED 2108s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-5-median-data21-expected_data21-True-None] PASSED 2108s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-5-median-data22-expected_data22-True-None] PASSED 2108s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-5-median-data23-expected_data23-False-None] PASSED 2108s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-10-count-data0-expected_data0-True-0] PASSED 2108s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-10-count-data1-expected_data1-True-0] PASSED 2108s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-10-count-data2-expected_data2-False-0] PASSED 2108s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-10-max-data3-expected_data3-True-None] PASSED 2108s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-10-max-data4-expected_data4-True-None] PASSED 2108s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-10-max-data5-expected_data5-False-None] PASSED 2108s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-10-min-data6-expected_data6-True-None] PASSED 2108s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-10-min-data7-expected_data7-True-None] PASSED 2108s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-10-min-data8-expected_data8-False-None] PASSED 2109s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-10-sum-data9-expected_data9-True-None] PASSED 2109s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-10-sum-data10-expected_data10-True-None] PASSED 2109s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-10-sum-data11-expected_data11-False-None] PASSED 2109s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-10-mean-data12-expected_data12-True-None] PASSED 2109s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-10-mean-data13-expected_data13-True-None] PASSED 2109s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-10-mean-data14-expected_data14-False-None] PASSED 2109s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-10-std-data15-expected_data15-True-None] PASSED 2109s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-10-std-data16-expected_data16-True-None] PASSED 2109s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-10-std-data17-expected_data17-False-None] PASSED 2109s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-10-var-data18-expected_data18-True-None] PASSED 2109s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-10-var-data19-expected_data19-True-None] PASSED 2109s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-10-var-data20-expected_data20-False-None] PASSED 2110s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-10-median-data21-expected_data21-True-None] PASSED 2110s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-10-median-data22-expected_data22-True-None] PASSED 2110s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-10-median-data23-expected_data23-False-None] PASSED 2110s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-None-count-data0-expected_data0-True-0] PASSED 2110s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-None-count-data1-expected_data1-True-0] PASSED 2110s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-None-count-data2-expected_data2-False-0] PASSED 2110s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-None-max-data3-expected_data3-True-None] PASSED 2110s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-None-max-data4-expected_data4-True-None] PASSED 2110s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-None-max-data5-expected_data5-False-None] PASSED 2110s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-None-min-data6-expected_data6-True-None] PASSED 2110s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-None-min-data7-expected_data7-True-None] PASSED 2110s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-None-min-data8-expected_data8-False-None] PASSED 2110s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-None-sum-data9-expected_data9-True-None] PASSED 2110s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-None-sum-data10-expected_data10-True-None] PASSED 2110s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-None-sum-data11-expected_data11-False-None] PASSED 2111s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-None-mean-data12-expected_data12-True-None] PASSED 2111s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-None-mean-data13-expected_data13-True-None] PASSED 2111s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-None-mean-data14-expected_data14-False-None] PASSED 2111s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-None-std-data15-expected_data15-True-None] PASSED 2111s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-None-std-data16-expected_data16-True-None] PASSED 2111s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-None-std-data17-expected_data17-False-None] PASSED 2111s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-None-var-data18-expected_data18-True-None] PASSED 2111s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-None-var-data19-expected_data19-True-None] PASSED 2111s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-None-var-data20-expected_data20-False-None] PASSED 2111s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-None-median-data21-expected_data21-True-None] PASSED 2112s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-None-median-data22-expected_data22-True-None] PASSED 2112s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-None-median-data23-expected_data23-False-None] PASSED 2112s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-1-count-data0-expected_data0-True-0] PASSED 2112s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-1-count-data1-expected_data1-True-0] PASSED 2112s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-1-count-data2-expected_data2-False-0] PASSED 2112s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-1-max-data3-expected_data3-True-None] PASSED 2112s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-1-max-data4-expected_data4-True-None] PASSED 2112s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-1-max-data5-expected_data5-False-None] PASSED 2112s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-1-min-data6-expected_data6-True-None] PASSED 2112s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-1-min-data7-expected_data7-True-None] PASSED 2112s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-1-min-data8-expected_data8-False-None] PASSED 2112s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-1-sum-data9-expected_data9-True-None] PASSED 2112s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-1-sum-data10-expected_data10-True-None] PASSED 2112s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-1-sum-data11-expected_data11-False-None] PASSED 2112s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-1-mean-data12-expected_data12-True-None] PASSED 2112s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-1-mean-data13-expected_data13-True-None] PASSED 2112s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-1-mean-data14-expected_data14-False-None] PASSED 2112s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-1-std-data15-expected_data15-True-None] PASSED 2112s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-1-std-data16-expected_data16-True-None] PASSED 2112s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-1-std-data17-expected_data17-False-None] PASSED 2112s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-1-var-data18-expected_data18-True-None] PASSED 2112s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-1-var-data19-expected_data19-True-None] PASSED 2113s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-1-var-data20-expected_data20-False-None] PASSED 2113s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-1-median-data21-expected_data21-True-None] PASSED 2113s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-1-median-data22-expected_data22-True-None] PASSED 2113s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-1-median-data23-expected_data23-False-None] PASSED 2113s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-2-count-data0-expected_data0-True-0] PASSED 2113s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-2-count-data1-expected_data1-True-0] PASSED 2113s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-2-count-data2-expected_data2-False-0] PASSED 2113s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-2-max-data3-expected_data3-True-None] PASSED 2113s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-2-max-data4-expected_data4-True-None] PASSED 2113s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-2-max-data5-expected_data5-False-None] PASSED 2114s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-2-min-data6-expected_data6-True-None] PASSED 2114s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-2-min-data7-expected_data7-True-None] PASSED 2114s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-2-min-data8-expected_data8-False-None] PASSED 2114s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-2-sum-data9-expected_data9-True-None] PASSED 2114s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-2-sum-data10-expected_data10-True-None] PASSED 2114s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-2-sum-data11-expected_data11-False-None] PASSED 2114s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-2-mean-data12-expected_data12-True-None] PASSED 2114s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-2-mean-data13-expected_data13-True-None] PASSED 2114s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-2-mean-data14-expected_data14-False-None] PASSED 2114s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-2-std-data15-expected_data15-True-None] PASSED 2114s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-2-std-data16-expected_data16-True-None] PASSED 2114s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-2-std-data17-expected_data17-False-None] PASSED 2114s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-2-var-data18-expected_data18-True-None] PASSED 2114s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-2-var-data19-expected_data19-True-None] PASSED 2114s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-2-var-data20-expected_data20-False-None] PASSED 2114s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-2-median-data21-expected_data21-True-None] PASSED 2114s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-2-median-data22-expected_data22-True-None] PASSED 2115s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-2-median-data23-expected_data23-False-None] PASSED 2115s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-5-count-data0-expected_data0-True-0] PASSED 2115s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-5-count-data1-expected_data1-True-0] PASSED 2115s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-5-count-data2-expected_data2-False-0] PASSED 2115s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-5-max-data3-expected_data3-True-None] PASSED 2115s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-5-max-data4-expected_data4-True-None] PASSED 2115s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-5-max-data5-expected_data5-False-None] PASSED 2115s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-5-min-data6-expected_data6-True-None] PASSED 2115s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-5-min-data7-expected_data7-True-None] PASSED 2115s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-5-min-data8-expected_data8-False-None] PASSED 2115s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-5-sum-data9-expected_data9-True-None] PASSED 2115s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-5-sum-data10-expected_data10-True-None] PASSED 2115s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-5-sum-data11-expected_data11-False-None] PASSED 2115s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-5-mean-data12-expected_data12-True-None] PASSED 2115s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-5-mean-data13-expected_data13-True-None] PASSED 2115s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-5-mean-data14-expected_data14-False-None] PASSED 2115s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-5-std-data15-expected_data15-True-None] PASSED 2115s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-5-std-data16-expected_data16-True-None] PASSED 2115s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-5-std-data17-expected_data17-False-None] PASSED 2115s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-5-var-data18-expected_data18-True-None] PASSED 2116s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-5-var-data19-expected_data19-True-None] PASSED 2117s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-5-var-data20-expected_data20-False-None] PASSED 2117s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-5-median-data21-expected_data21-True-None] PASSED 2117s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-5-median-data22-expected_data22-True-None] PASSED 2117s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-5-median-data23-expected_data23-False-None] PASSED 2118s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-10-count-data0-expected_data0-True-0] PASSED 2118s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-10-count-data1-expected_data1-True-0] PASSED 2118s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-10-count-data2-expected_data2-False-0] PASSED 2118s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-10-max-data3-expected_data3-True-None] PASSED 2119s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-10-max-data4-expected_data4-True-None] PASSED 2119s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-10-max-data5-expected_data5-False-None] PASSED 2119s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-10-min-data6-expected_data6-True-None] PASSED 2119s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-10-min-data7-expected_data7-True-None] PASSED 2119s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-10-min-data8-expected_data8-False-None] PASSED 2119s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-10-sum-data9-expected_data9-True-None] PASSED 2119s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-10-sum-data10-expected_data10-True-None] PASSED 2119s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-10-sum-data11-expected_data11-False-None] PASSED 2119s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-10-mean-data12-expected_data12-True-None] PASSED 2119s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-10-mean-data13-expected_data13-True-None] PASSED 2119s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-10-mean-data14-expected_data14-False-None] PASSED 2119s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-10-std-data15-expected_data15-True-None] PASSED 2119s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-10-std-data16-expected_data16-True-None] PASSED 2119s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-10-std-data17-expected_data17-False-None] PASSED 2119s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-10-var-data18-expected_data18-True-None] PASSED 2119s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-10-var-data19-expected_data19-True-None] PASSED 2119s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-10-var-data20-expected_data20-False-None] PASSED 2119s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-10-median-data21-expected_data21-True-None] PASSED 2119s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-10-median-data22-expected_data22-True-None] PASSED 2119s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-10-median-data23-expected_data23-False-None] PASSED 2119s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-None-count-data0-expected_data0-True-0] PASSED 2119s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-None-count-data1-expected_data1-True-0] PASSED 2119s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-None-count-data2-expected_data2-False-0] PASSED 2120s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-None-max-data3-expected_data3-True-None] PASSED 2120s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-None-max-data4-expected_data4-True-None] PASSED 2120s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-None-max-data5-expected_data5-False-None] PASSED 2120s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-None-min-data6-expected_data6-True-None] PASSED 2120s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-None-min-data7-expected_data7-True-None] PASSED 2120s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-None-min-data8-expected_data8-False-None] PASSED 2120s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-None-sum-data9-expected_data9-True-None] PASSED 2120s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-None-sum-data10-expected_data10-True-None] PASSED 2120s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-None-sum-data11-expected_data11-False-None] PASSED 2120s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-None-mean-data12-expected_data12-True-None] PASSED 2120s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-None-mean-data13-expected_data13-True-None] PASSED 2120s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-None-mean-data14-expected_data14-False-None] PASSED 2120s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-None-std-data15-expected_data15-True-None] PASSED 2120s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-None-std-data16-expected_data16-True-None] PASSED 2120s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-None-std-data17-expected_data17-False-None] PASSED 2120s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-None-var-data18-expected_data18-True-None] PASSED 2120s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-None-var-data19-expected_data19-True-None] PASSED 2120s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-None-var-data20-expected_data20-False-None] PASSED 2120s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-None-median-data21-expected_data21-True-None] PASSED 2120s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-None-median-data22-expected_data22-True-None] PASSED 2120s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-None-median-data23-expected_data23-False-None] PASSED 2120s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-1-count-data0-expected_data0-True-0] PASSED 2120s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-1-count-data1-expected_data1-True-0] PASSED 2120s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-1-count-data2-expected_data2-False-0] PASSED 2120s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-1-max-data3-expected_data3-True-None] PASSED 2120s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-1-max-data4-expected_data4-True-None] PASSED 2120s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-1-max-data5-expected_data5-False-None] PASSED 2121s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-1-min-data6-expected_data6-True-None] PASSED 2121s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-1-min-data7-expected_data7-True-None] PASSED 2121s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-1-min-data8-expected_data8-False-None] PASSED 2121s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-1-sum-data9-expected_data9-True-None] PASSED 2121s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-1-sum-data10-expected_data10-True-None] PASSED 2121s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-1-sum-data11-expected_data11-False-None] PASSED 2121s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-1-mean-data12-expected_data12-True-None] PASSED 2121s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-1-mean-data13-expected_data13-True-None] PASSED 2121s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-1-mean-data14-expected_data14-False-None] PASSED 2121s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-1-std-data15-expected_data15-True-None] PASSED 2121s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-1-std-data16-expected_data16-True-None] PASSED 2121s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-1-std-data17-expected_data17-False-None] PASSED 2121s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-1-var-data18-expected_data18-True-None] PASSED 2121s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-1-var-data19-expected_data19-True-None] PASSED 2121s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-1-var-data20-expected_data20-False-None] PASSED 2121s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-1-median-data21-expected_data21-True-None] PASSED 2121s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-1-median-data22-expected_data22-True-None] PASSED 2121s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-1-median-data23-expected_data23-False-None] PASSED 2121s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-2-count-data0-expected_data0-True-0] PASSED 2121s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-2-count-data1-expected_data1-True-0] PASSED 2121s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-2-count-data2-expected_data2-False-0] PASSED 2121s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-2-max-data3-expected_data3-True-None] PASSED 2121s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-2-max-data4-expected_data4-True-None] PASSED 2121s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-2-max-data5-expected_data5-False-None] PASSED 2121s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-2-min-data6-expected_data6-True-None] PASSED 2121s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-2-min-data7-expected_data7-True-None] PASSED 2122s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-2-min-data8-expected_data8-False-None] PASSED 2122s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-2-sum-data9-expected_data9-True-None] PASSED 2122s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-2-sum-data10-expected_data10-True-None] PASSED 2122s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-2-sum-data11-expected_data11-False-None] PASSED 2122s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-2-mean-data12-expected_data12-True-None] PASSED 2122s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-2-mean-data13-expected_data13-True-None] PASSED 2122s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-2-mean-data14-expected_data14-False-None] PASSED 2122s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-2-std-data15-expected_data15-True-None] PASSED 2122s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-2-std-data16-expected_data16-True-None] PASSED 2122s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-2-std-data17-expected_data17-False-None] PASSED 2122s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-2-var-data18-expected_data18-True-None] PASSED 2122s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-2-var-data19-expected_data19-True-None] PASSED 2122s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-2-var-data20-expected_data20-False-None] PASSED 2122s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-2-median-data21-expected_data21-True-None] PASSED 2122s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-2-median-data22-expected_data22-True-None] PASSED 2122s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-2-median-data23-expected_data23-False-None] PASSED 2122s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-5-count-data0-expected_data0-True-0] PASSED 2122s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-5-count-data1-expected_data1-True-0] PASSED 2122s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-5-count-data2-expected_data2-False-0] PASSED 2122s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-5-max-data3-expected_data3-True-None] PASSED 2122s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-5-max-data4-expected_data4-True-None] PASSED 2122s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-5-max-data5-expected_data5-False-None] PASSED 2122s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-5-min-data6-expected_data6-True-None] PASSED 2122s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-5-min-data7-expected_data7-True-None] PASSED 2122s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-5-min-data8-expected_data8-False-None] PASSED 2122s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-5-sum-data9-expected_data9-True-None] PASSED 2123s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-5-sum-data10-expected_data10-True-None] PASSED 2123s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-5-sum-data11-expected_data11-False-None] PASSED 2123s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-5-mean-data12-expected_data12-True-None] PASSED 2123s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-5-mean-data13-expected_data13-True-None] PASSED 2123s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-5-mean-data14-expected_data14-False-None] PASSED 2123s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-5-std-data15-expected_data15-True-None] PASSED 2123s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-5-std-data16-expected_data16-True-None] PASSED 2123s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-5-std-data17-expected_data17-False-None] PASSED 2123s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-5-var-data18-expected_data18-True-None] PASSED 2123s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-5-var-data19-expected_data19-True-None] PASSED 2123s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-5-var-data20-expected_data20-False-None] PASSED 2123s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-5-median-data21-expected_data21-True-None] PASSED 2123s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-5-median-data22-expected_data22-True-None] PASSED 2123s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-5-median-data23-expected_data23-False-None] PASSED 2123s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-10-count-data0-expected_data0-True-0] PASSED 2123s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-10-count-data1-expected_data1-True-0] PASSED 2123s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-10-count-data2-expected_data2-False-0] PASSED 2123s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-10-max-data3-expected_data3-True-None] PASSED 2123s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-10-max-data4-expected_data4-True-None] PASSED 2123s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-10-max-data5-expected_data5-False-None] PASSED 2123s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-10-min-data6-expected_data6-True-None] PASSED 2123s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-10-min-data7-expected_data7-True-None] PASSED 2123s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-10-min-data8-expected_data8-False-None] PASSED 2123s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-10-sum-data9-expected_data9-True-None] PASSED 2123s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-10-sum-data10-expected_data10-True-None] PASSED 2123s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-10-sum-data11-expected_data11-False-None] PASSED 2123s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-10-mean-data12-expected_data12-True-None] PASSED 2123s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-10-mean-data13-expected_data13-True-None] PASSED 2123s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-10-mean-data14-expected_data14-False-None] PASSED 2123s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-10-std-data15-expected_data15-True-None] PASSED 2123s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-10-std-data16-expected_data16-True-None] PASSED 2123s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-10-std-data17-expected_data17-False-None] PASSED 2123s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-10-var-data18-expected_data18-True-None] PASSED 2123s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-10-var-data19-expected_data19-True-None] PASSED 2123s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-10-var-data20-expected_data20-False-None] PASSED 2123s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-10-median-data21-expected_data21-True-None] PASSED 2123s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-10-median-data22-expected_data22-True-None] PASSED 2123s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-10-median-data23-expected_data23-False-None] PASSED 2124s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-None-count-data0-expected_data0-True-0] PASSED 2124s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-None-count-data1-expected_data1-True-0] PASSED 2124s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-None-count-data2-expected_data2-False-0] PASSED 2124s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-None-max-data3-expected_data3-True-None] PASSED 2124s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-None-max-data4-expected_data4-True-None] PASSED 2124s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-None-max-data5-expected_data5-False-None] PASSED 2124s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-None-min-data6-expected_data6-True-None] PASSED 2124s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-None-min-data7-expected_data7-True-None] PASSED 2124s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-None-min-data8-expected_data8-False-None] PASSED 2124s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-None-sum-data9-expected_data9-True-None] PASSED 2124s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-None-sum-data10-expected_data10-True-None] PASSED 2124s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-None-sum-data11-expected_data11-False-None] PASSED 2124s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-None-mean-data12-expected_data12-True-None] PASSED 2124s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-None-mean-data13-expected_data13-True-None] PASSED 2124s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-None-mean-data14-expected_data14-False-None] PASSED 2124s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-None-std-data15-expected_data15-True-None] PASSED 2124s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-None-std-data16-expected_data16-True-None] PASSED 2124s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-None-std-data17-expected_data17-False-None] PASSED 2124s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-None-var-data18-expected_data18-True-None] PASSED 2124s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-None-var-data19-expected_data19-True-None] PASSED 2124s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-None-var-data20-expected_data20-False-None] PASSED 2124s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-None-median-data21-expected_data21-True-None] PASSED 2124s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-None-median-data22-expected_data22-True-None] PASSED 2124s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-None-median-data23-expected_data23-False-None] PASSED 2124s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-1-count-data0-expected_data0-True-0] PASSED 2124s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-1-count-data1-expected_data1-True-0] PASSED 2124s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-1-count-data2-expected_data2-False-0] PASSED 2124s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-1-max-data3-expected_data3-True-None] PASSED 2124s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-1-max-data4-expected_data4-True-None] PASSED 2124s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-1-max-data5-expected_data5-False-None] PASSED 2124s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-1-min-data6-expected_data6-True-None] PASSED 2124s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-1-min-data7-expected_data7-True-None] PASSED 2124s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-1-min-data8-expected_data8-False-None] PASSED 2124s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-1-sum-data9-expected_data9-True-None] PASSED 2124s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-1-sum-data10-expected_data10-True-None] PASSED 2124s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-1-sum-data11-expected_data11-False-None] PASSED 2124s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-1-mean-data12-expected_data12-True-None] PASSED 2124s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-1-mean-data13-expected_data13-True-None] PASSED 2124s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-1-mean-data14-expected_data14-False-None] PASSED 2124s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-1-std-data15-expected_data15-True-None] PASSED 2124s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-1-std-data16-expected_data16-True-None] PASSED 2124s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-1-std-data17-expected_data17-False-None] PASSED 2125s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-1-var-data18-expected_data18-True-None] PASSED 2125s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-1-var-data19-expected_data19-True-None] PASSED 2125s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-1-var-data20-expected_data20-False-None] PASSED 2125s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-1-median-data21-expected_data21-True-None] PASSED 2125s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-1-median-data22-expected_data22-True-None] PASSED 2125s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-1-median-data23-expected_data23-False-None] PASSED 2125s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-2-count-data0-expected_data0-True-0] PASSED 2125s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-2-count-data1-expected_data1-True-0] PASSED 2125s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-2-count-data2-expected_data2-False-0] PASSED 2125s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-2-max-data3-expected_data3-True-None] PASSED 2125s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-2-max-data4-expected_data4-True-None] PASSED 2125s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-2-max-data5-expected_data5-False-None] PASSED 2125s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-2-min-data6-expected_data6-True-None] PASSED 2125s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-2-min-data7-expected_data7-True-None] PASSED 2125s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-2-min-data8-expected_data8-False-None] PASSED 2125s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-2-sum-data9-expected_data9-True-None] PASSED 2125s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-2-sum-data10-expected_data10-True-None] PASSED 2125s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-2-sum-data11-expected_data11-False-None] PASSED 2125s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-2-mean-data12-expected_data12-True-None] PASSED 2125s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-2-mean-data13-expected_data13-True-None] PASSED 2125s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-2-mean-data14-expected_data14-False-None] PASSED 2125s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-2-std-data15-expected_data15-True-None] PASSED 2125s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-2-std-data16-expected_data16-True-None] PASSED 2125s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-2-std-data17-expected_data17-False-None] PASSED 2125s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-2-var-data18-expected_data18-True-None] PASSED 2125s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-2-var-data19-expected_data19-True-None] PASSED 2125s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-2-var-data20-expected_data20-False-None] PASSED 2125s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-2-median-data21-expected_data21-True-None] PASSED 2125s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-2-median-data22-expected_data22-True-None] PASSED 2126s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-2-median-data23-expected_data23-False-None] PASSED 2126s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-5-count-data0-expected_data0-True-0] PASSED 2126s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-5-count-data1-expected_data1-True-0] PASSED 2126s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-5-count-data2-expected_data2-False-0] PASSED 2126s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-5-max-data3-expected_data3-True-None] PASSED 2126s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-5-max-data4-expected_data4-True-None] PASSED 2126s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-5-max-data5-expected_data5-False-None] PASSED 2126s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-5-min-data6-expected_data6-True-None] PASSED 2126s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-5-min-data7-expected_data7-True-None] PASSED 2126s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-5-min-data8-expected_data8-False-None] PASSED 2126s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-5-sum-data9-expected_data9-True-None] PASSED 2126s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-5-sum-data10-expected_data10-True-None] PASSED 2126s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-5-sum-data11-expected_data11-False-None] PASSED 2126s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-5-mean-data12-expected_data12-True-None] PASSED 2126s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-5-mean-data13-expected_data13-True-None] PASSED 2126s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-5-mean-data14-expected_data14-False-None] PASSED 2126s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-5-std-data15-expected_data15-True-None] PASSED 2126s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-5-std-data16-expected_data16-True-None] PASSED 2126s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-5-std-data17-expected_data17-False-None] PASSED 2126s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-5-var-data18-expected_data18-True-None] PASSED 2126s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-5-var-data19-expected_data19-True-None] PASSED 2126s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-5-var-data20-expected_data20-False-None] PASSED 2126s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-5-median-data21-expected_data21-True-None] PASSED 2126s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-5-median-data22-expected_data22-True-None] PASSED 2126s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-5-median-data23-expected_data23-False-None] PASSED 2126s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-10-count-data0-expected_data0-True-0] PASSED 2126s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-10-count-data1-expected_data1-True-0] PASSED 2126s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-10-count-data2-expected_data2-False-0] PASSED 2126s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-10-max-data3-expected_data3-True-None] PASSED 2126s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-10-max-data4-expected_data4-True-None] PASSED 2126s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-10-max-data5-expected_data5-False-None] PASSED 2126s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-10-min-data6-expected_data6-True-None] PASSED 2126s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-10-min-data7-expected_data7-True-None] PASSED 2126s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-10-min-data8-expected_data8-False-None] PASSED 2127s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-10-sum-data9-expected_data9-True-None] PASSED 2127s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-10-sum-data10-expected_data10-True-None] PASSED 2127s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-10-sum-data11-expected_data11-False-None] PASSED 2127s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-10-mean-data12-expected_data12-True-None] PASSED 2127s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-10-mean-data13-expected_data13-True-None] PASSED 2127s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-10-mean-data14-expected_data14-False-None] PASSED 2127s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-10-std-data15-expected_data15-True-None] PASSED 2127s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-10-std-data16-expected_data16-True-None] PASSED 2127s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-10-std-data17-expected_data17-False-None] PASSED 2127s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-10-var-data18-expected_data18-True-None] PASSED 2127s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-10-var-data19-expected_data19-True-None] PASSED 2127s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-10-var-data20-expected_data20-False-None] PASSED 2127s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-10-median-data21-expected_data21-True-None] PASSED 2127s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-10-median-data22-expected_data22-True-None] PASSED 2127s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-10-median-data23-expected_data23-False-None] PASSED 2127s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-None-count-data0-expected_data0-True-0] PASSED 2127s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-None-count-data1-expected_data1-True-0] PASSED 2127s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-None-count-data2-expected_data2-False-0] PASSED 2127s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-None-max-data3-expected_data3-True-None] PASSED 2127s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-None-max-data4-expected_data4-True-None] PASSED 2127s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-None-max-data5-expected_data5-False-None] PASSED 2127s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-None-min-data6-expected_data6-True-None] PASSED 2127s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-None-min-data7-expected_data7-True-None] PASSED 2127s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-None-min-data8-expected_data8-False-None] PASSED 2127s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-None-sum-data9-expected_data9-True-None] PASSED 2127s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-None-sum-data10-expected_data10-True-None] PASSED 2127s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-None-sum-data11-expected_data11-False-None] PASSED 2127s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-None-mean-data12-expected_data12-True-None] PASSED 2127s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-None-mean-data13-expected_data13-True-None] PASSED 2127s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-None-mean-data14-expected_data14-False-None] PASSED 2127s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-None-std-data15-expected_data15-True-None] PASSED 2127s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-None-std-data16-expected_data16-True-None] PASSED 2127s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-None-std-data17-expected_data17-False-None] PASSED 2127s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-None-var-data18-expected_data18-True-None] PASSED 2127s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-None-var-data19-expected_data19-True-None] PASSED 2127s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-None-var-data20-expected_data20-False-None] PASSED 2127s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-None-median-data21-expected_data21-True-None] PASSED 2127s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-None-median-data22-expected_data22-True-None] PASSED 2127s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-None-median-data23-expected_data23-False-None] PASSED 2127s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-1-count-data0-expected_data0-True-0] PASSED 2127s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-1-count-data1-expected_data1-True-0] PASSED 2127s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-1-count-data2-expected_data2-False-0] PASSED 2127s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-1-max-data3-expected_data3-True-None] PASSED 2128s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-1-max-data4-expected_data4-True-None] PASSED 2128s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-1-max-data5-expected_data5-False-None] PASSED 2128s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-1-min-data6-expected_data6-True-None] PASSED 2128s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-1-min-data7-expected_data7-True-None] PASSED 2128s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-1-min-data8-expected_data8-False-None] PASSED 2128s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-1-sum-data9-expected_data9-True-None] PASSED 2128s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-1-sum-data10-expected_data10-True-None] PASSED 2128s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-1-sum-data11-expected_data11-False-None] PASSED 2128s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-1-mean-data12-expected_data12-True-None] PASSED 2128s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-1-mean-data13-expected_data13-True-None] PASSED 2128s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-1-mean-data14-expected_data14-False-None] PASSED 2128s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-1-std-data15-expected_data15-True-None] PASSED 2128s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-1-std-data16-expected_data16-True-None] PASSED 2128s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-1-std-data17-expected_data17-False-None] PASSED 2128s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-1-var-data18-expected_data18-True-None] PASSED 2128s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-1-var-data19-expected_data19-True-None] PASSED 2128s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-1-var-data20-expected_data20-False-None] PASSED 2128s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-1-median-data21-expected_data21-True-None] PASSED 2128s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-1-median-data22-expected_data22-True-None] PASSED 2128s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-1-median-data23-expected_data23-False-None] PASSED 2128s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-2-count-data0-expected_data0-True-0] PASSED 2128s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-2-count-data1-expected_data1-True-0] PASSED 2128s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-2-count-data2-expected_data2-False-0] PASSED 2128s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-2-max-data3-expected_data3-True-None] PASSED 2128s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-2-max-data4-expected_data4-True-None] PASSED 2128s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-2-max-data5-expected_data5-False-None] PASSED 2128s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-2-min-data6-expected_data6-True-None] PASSED 2128s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-2-min-data7-expected_data7-True-None] PASSED 2128s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-2-min-data8-expected_data8-False-None] PASSED 2128s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-2-sum-data9-expected_data9-True-None] PASSED 2128s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-2-sum-data10-expected_data10-True-None] PASSED 2128s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-2-sum-data11-expected_data11-False-None] PASSED 2128s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-2-mean-data12-expected_data12-True-None] PASSED 2128s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-2-mean-data13-expected_data13-True-None] PASSED 2129s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-2-mean-data14-expected_data14-False-None] PASSED 2129s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-2-std-data15-expected_data15-True-None] PASSED 2129s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-2-std-data16-expected_data16-True-None] PASSED 2129s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-2-std-data17-expected_data17-False-None] PASSED 2129s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-2-var-data18-expected_data18-True-None] PASSED 2129s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-2-var-data19-expected_data19-True-None] PASSED 2129s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-2-var-data20-expected_data20-False-None] PASSED 2129s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-2-median-data21-expected_data21-True-None] PASSED 2129s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-2-median-data22-expected_data22-True-None] PASSED 2129s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-2-median-data23-expected_data23-False-None] PASSED 2129s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-5-count-data0-expected_data0-True-0] PASSED 2129s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-5-count-data1-expected_data1-True-0] PASSED 2129s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-5-count-data2-expected_data2-False-0] PASSED 2129s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-5-max-data3-expected_data3-True-None] PASSED 2129s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-5-max-data4-expected_data4-True-None] PASSED 2129s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-5-max-data5-expected_data5-False-None] PASSED 2129s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-5-min-data6-expected_data6-True-None] PASSED 2129s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-5-min-data7-expected_data7-True-None] PASSED 2129s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-5-min-data8-expected_data8-False-None] PASSED 2129s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-5-sum-data9-expected_data9-True-None] PASSED 2129s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-5-sum-data10-expected_data10-True-None] PASSED 2129s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-5-sum-data11-expected_data11-False-None] PASSED 2129s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-5-mean-data12-expected_data12-True-None] PASSED 2129s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-5-mean-data13-expected_data13-True-None] PASSED 2129s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-5-mean-data14-expected_data14-False-None] PASSED 2129s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-5-std-data15-expected_data15-True-None] PASSED 2129s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-5-std-data16-expected_data16-True-None] PASSED 2129s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-5-std-data17-expected_data17-False-None] PASSED 2129s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-5-var-data18-expected_data18-True-None] PASSED 2129s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-5-var-data19-expected_data19-True-None] PASSED 2129s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-5-var-data20-expected_data20-False-None] PASSED 2129s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-5-median-data21-expected_data21-True-None] PASSED 2129s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-5-median-data22-expected_data22-True-None] PASSED 2130s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-5-median-data23-expected_data23-False-None] PASSED 2130s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-10-count-data0-expected_data0-True-0] PASSED 2130s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-10-count-data1-expected_data1-True-0] PASSED 2130s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-10-count-data2-expected_data2-False-0] PASSED 2130s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-10-max-data3-expected_data3-True-None] PASSED 2130s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-10-max-data4-expected_data4-True-None] PASSED 2130s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-10-max-data5-expected_data5-False-None] PASSED 2130s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-10-min-data6-expected_data6-True-None] PASSED 2130s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-10-min-data7-expected_data7-True-None] PASSED 2130s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-10-min-data8-expected_data8-False-None] PASSED 2130s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-10-sum-data9-expected_data9-True-None] PASSED 2130s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-10-sum-data10-expected_data10-True-None] PASSED 2130s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-10-sum-data11-expected_data11-False-None] PASSED 2130s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-10-mean-data12-expected_data12-True-None] PASSED 2130s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-10-mean-data13-expected_data13-True-None] PASSED 2130s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-10-mean-data14-expected_data14-False-None] PASSED 2130s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-10-std-data15-expected_data15-True-None] PASSED 2130s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-10-std-data16-expected_data16-True-None] PASSED 2130s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-10-std-data17-expected_data17-False-None] PASSED 2130s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-10-var-data18-expected_data18-True-None] PASSED 2130s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-10-var-data19-expected_data19-True-None] PASSED 2130s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-10-var-data20-expected_data20-False-None] PASSED 2130s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-10-median-data21-expected_data21-True-None] PASSED 2130s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-10-median-data22-expected_data22-True-None] PASSED 2130s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-10-median-data23-expected_data23-False-None] PASSED 2130s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-None-count-data0-expected_data0-True-0] PASSED 2130s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-None-count-data1-expected_data1-True-0] PASSED 2130s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-None-count-data2-expected_data2-False-0] PASSED 2130s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-None-max-data3-expected_data3-True-None] PASSED 2130s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-None-max-data4-expected_data4-True-None] PASSED 2131s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-None-max-data5-expected_data5-False-None] PASSED 2131s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-None-min-data6-expected_data6-True-None] PASSED 2131s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-None-min-data7-expected_data7-True-None] PASSED 2131s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-None-min-data8-expected_data8-False-None] PASSED 2131s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-None-sum-data9-expected_data9-True-None] PASSED 2131s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-None-sum-data10-expected_data10-True-None] PASSED 2131s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-None-sum-data11-expected_data11-False-None] PASSED 2131s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-None-mean-data12-expected_data12-True-None] PASSED 2131s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-None-mean-data13-expected_data13-True-None] PASSED 2131s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-None-mean-data14-expected_data14-False-None] PASSED 2131s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-None-std-data15-expected_data15-True-None] PASSED 2131s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-None-std-data16-expected_data16-True-None] PASSED 2131s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-None-std-data17-expected_data17-False-None] PASSED 2131s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-None-var-data18-expected_data18-True-None] PASSED 2131s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-None-var-data19-expected_data19-True-None] PASSED 2131s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-None-var-data20-expected_data20-False-None] PASSED 2131s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-None-median-data21-expected_data21-True-None] PASSED 2131s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-None-median-data22-expected_data22-True-None] PASSED 2131s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-None-median-data23-expected_data23-False-None] PASSED 2131s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-1-count-data0-expected_data0-True-0] PASSED 2131s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-1-count-data1-expected_data1-True-0] PASSED 2131s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-1-count-data2-expected_data2-False-0] PASSED 2131s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-1-max-data3-expected_data3-True-None] PASSED 2131s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-1-max-data4-expected_data4-True-None] PASSED 2131s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-1-max-data5-expected_data5-False-None] PASSED 2131s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-1-min-data6-expected_data6-True-None] PASSED 2131s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-1-min-data7-expected_data7-True-None] PASSED 2131s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-1-min-data8-expected_data8-False-None] PASSED 2131s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-1-sum-data9-expected_data9-True-None] PASSED 2131s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-1-sum-data10-expected_data10-True-None] PASSED 2131s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-1-sum-data11-expected_data11-False-None] PASSED 2131s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-1-mean-data12-expected_data12-True-None] PASSED 2131s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-1-mean-data13-expected_data13-True-None] PASSED 2131s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-1-mean-data14-expected_data14-False-None] PASSED 2131s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-1-std-data15-expected_data15-True-None] PASSED 2131s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-1-std-data16-expected_data16-True-None] PASSED 2131s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-1-std-data17-expected_data17-False-None] PASSED 2131s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-1-var-data18-expected_data18-True-None] PASSED 2132s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-1-var-data19-expected_data19-True-None] PASSED 2132s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-1-var-data20-expected_data20-False-None] PASSED 2132s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-1-median-data21-expected_data21-True-None] PASSED 2132s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-1-median-data22-expected_data22-True-None] PASSED 2132s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-1-median-data23-expected_data23-False-None] PASSED 2132s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-2-count-data0-expected_data0-True-0] PASSED 2132s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-2-count-data1-expected_data1-True-0] PASSED 2132s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-2-count-data2-expected_data2-False-0] PASSED 2132s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-2-max-data3-expected_data3-True-None] PASSED 2132s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-2-max-data4-expected_data4-True-None] PASSED 2132s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-2-max-data5-expected_data5-False-None] PASSED 2132s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-2-min-data6-expected_data6-True-None] PASSED 2132s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-2-min-data7-expected_data7-True-None] PASSED 2132s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-2-min-data8-expected_data8-False-None] PASSED 2132s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-2-sum-data9-expected_data9-True-None] PASSED 2132s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-2-sum-data10-expected_data10-True-None] PASSED 2132s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-2-sum-data11-expected_data11-False-None] PASSED 2132s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-2-mean-data12-expected_data12-True-None] PASSED 2132s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-2-mean-data13-expected_data13-True-None] PASSED 2132s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-2-mean-data14-expected_data14-False-None] PASSED 2132s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-2-std-data15-expected_data15-True-None] PASSED 2132s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-2-std-data16-expected_data16-True-None] PASSED 2132s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-2-std-data17-expected_data17-False-None] PASSED 2132s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-2-var-data18-expected_data18-True-None] PASSED 2132s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-2-var-data19-expected_data19-True-None] PASSED 2132s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-2-var-data20-expected_data20-False-None] PASSED 2132s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-2-median-data21-expected_data21-True-None] PASSED 2132s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-2-median-data22-expected_data22-True-None] PASSED 2132s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-2-median-data23-expected_data23-False-None] PASSED 2132s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-5-count-data0-expected_data0-True-0] PASSED 2132s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-5-count-data1-expected_data1-True-0] PASSED 2132s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-5-count-data2-expected_data2-False-0] PASSED 2132s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-5-max-data3-expected_data3-True-None] PASSED 2133s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-5-max-data4-expected_data4-True-None] PASSED 2133s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-5-max-data5-expected_data5-False-None] PASSED 2133s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-5-min-data6-expected_data6-True-None] PASSED 2133s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-5-min-data7-expected_data7-True-None] PASSED 2133s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-5-min-data8-expected_data8-False-None] PASSED 2133s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-5-sum-data9-expected_data9-True-None] PASSED 2133s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-5-sum-data10-expected_data10-True-None] PASSED 2133s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-5-sum-data11-expected_data11-False-None] PASSED 2133s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-5-mean-data12-expected_data12-True-None] PASSED 2133s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-5-mean-data13-expected_data13-True-None] PASSED 2133s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-5-mean-data14-expected_data14-False-None] PASSED 2133s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-5-std-data15-expected_data15-True-None] PASSED 2133s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-5-std-data16-expected_data16-True-None] PASSED 2133s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-5-std-data17-expected_data17-False-None] PASSED 2133s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-5-var-data18-expected_data18-True-None] PASSED 2133s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-5-var-data19-expected_data19-True-None] PASSED 2133s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-5-var-data20-expected_data20-False-None] PASSED 2133s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-5-median-data21-expected_data21-True-None] PASSED 2133s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-5-median-data22-expected_data22-True-None] PASSED 2133s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-5-median-data23-expected_data23-False-None] PASSED 2133s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-10-count-data0-expected_data0-True-0] PASSED 2133s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-10-count-data1-expected_data1-True-0] PASSED 2133s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-10-count-data2-expected_data2-False-0] PASSED 2133s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-10-max-data3-expected_data3-True-None] PASSED 2133s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-10-max-data4-expected_data4-True-None] PASSED 2133s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-10-max-data5-expected_data5-False-None] PASSED 2133s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-10-min-data6-expected_data6-True-None] PASSED 2133s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-10-min-data7-expected_data7-True-None] PASSED 2133s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-10-min-data8-expected_data8-False-None] PASSED 2134s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-10-sum-data9-expected_data9-True-None] PASSED 2134s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-10-sum-data10-expected_data10-True-None] PASSED 2134s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-10-sum-data11-expected_data11-False-None] PASSED 2134s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-10-mean-data12-expected_data12-True-None] PASSED 2134s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-10-mean-data13-expected_data13-True-None] PASSED 2135s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-10-mean-data14-expected_data14-False-None] PASSED 2135s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-10-std-data15-expected_data15-True-None] PASSED 2135s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-10-std-data16-expected_data16-True-None] PASSED 2135s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-10-std-data17-expected_data17-False-None] PASSED 2135s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-10-var-data18-expected_data18-True-None] PASSED 2135s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-10-var-data19-expected_data19-True-None] PASSED 2135s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-10-var-data20-expected_data20-False-None] PASSED 2135s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-10-median-data21-expected_data21-True-None] PASSED 2135s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-10-median-data22-expected_data22-True-None] PASSED 2135s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-10-median-data23-expected_data23-False-None] PASSED 2135s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-None-count-data0-expected_data0-True-0] PASSED 2135s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-None-count-data1-expected_data1-True-0] PASSED 2136s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-None-count-data2-expected_data2-False-0] PASSED 2136s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-None-max-data3-expected_data3-True-None] PASSED 2136s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-None-max-data4-expected_data4-True-None] PASSED 2136s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-None-max-data5-expected_data5-False-None] PASSED 2136s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-None-min-data6-expected_data6-True-None] PASSED 2136s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-None-min-data7-expected_data7-True-None] PASSED 2137s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-None-min-data8-expected_data8-False-None] PASSED 2137s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-None-sum-data9-expected_data9-True-None] PASSED 2137s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-None-sum-data10-expected_data10-True-None] PASSED 2137s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-None-sum-data11-expected_data11-False-None] PASSED 2137s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-None-mean-data12-expected_data12-True-None] PASSED 2137s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-None-mean-data13-expected_data13-True-None] PASSED 2137s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-None-mean-data14-expected_data14-False-None] PASSED 2137s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-None-std-data15-expected_data15-True-None] PASSED 2137s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-None-std-data16-expected_data16-True-None] PASSED 2137s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-None-std-data17-expected_data17-False-None] PASSED 2137s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-None-var-data18-expected_data18-True-None] PASSED 2137s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-None-var-data19-expected_data19-True-None] PASSED 2137s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-None-var-data20-expected_data20-False-None] PASSED 2137s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-None-median-data21-expected_data21-True-None] PASSED 2137s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-None-median-data22-expected_data22-True-None] PASSED 2137s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-None-median-data23-expected_data23-False-None] PASSED 2137s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-1-count-data0-expected_data0-True-0] PASSED 2137s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-1-count-data1-expected_data1-True-0] PASSED 2137s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-1-count-data2-expected_data2-False-0] PASSED 2137s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-1-max-data3-expected_data3-True-None] PASSED 2137s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-1-max-data4-expected_data4-True-None] PASSED 2137s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-1-max-data5-expected_data5-False-None] PASSED 2138s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-1-min-data6-expected_data6-True-None] PASSED 2138s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-1-min-data7-expected_data7-True-None] PASSED 2138s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-1-min-data8-expected_data8-False-None] PASSED 2139s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-1-sum-data9-expected_data9-True-None] PASSED 2139s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-1-sum-data10-expected_data10-True-None] PASSED 2139s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-1-sum-data11-expected_data11-False-None] PASSED 2139s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-1-mean-data12-expected_data12-True-None] PASSED 2139s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-1-mean-data13-expected_data13-True-None] PASSED 2139s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-1-mean-data14-expected_data14-False-None] PASSED 2139s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-1-std-data15-expected_data15-True-None] PASSED 2139s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-1-std-data16-expected_data16-True-None] PASSED 2140s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-1-std-data17-expected_data17-False-None] PASSED 2140s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-1-var-data18-expected_data18-True-None] PASSED 2140s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-1-var-data19-expected_data19-True-None] PASSED 2140s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-1-var-data20-expected_data20-False-None] PASSED 2140s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-1-median-data21-expected_data21-True-None] PASSED 2140s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-1-median-data22-expected_data22-True-None] PASSED 2140s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-1-median-data23-expected_data23-False-None] PASSED 2140s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-2-count-data0-expected_data0-True-0] PASSED 2140s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-2-count-data1-expected_data1-True-0] PASSED 2140s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-2-count-data2-expected_data2-False-0] PASSED 2140s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-2-max-data3-expected_data3-True-None] PASSED 2140s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-2-max-data4-expected_data4-True-None] PASSED 2140s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-2-max-data5-expected_data5-False-None] PASSED 2140s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-2-min-data6-expected_data6-True-None] PASSED 2140s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-2-min-data7-expected_data7-True-None] PASSED 2140s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-2-min-data8-expected_data8-False-None] PASSED 2140s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-2-sum-data9-expected_data9-True-None] PASSED 2140s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-2-sum-data10-expected_data10-True-None] PASSED 2140s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-2-sum-data11-expected_data11-False-None] PASSED 2141s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-2-mean-data12-expected_data12-True-None] PASSED 2141s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-2-mean-data13-expected_data13-True-None] PASSED 2141s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-2-mean-data14-expected_data14-False-None] PASSED 2141s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-2-std-data15-expected_data15-True-None] PASSED 2141s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-2-std-data16-expected_data16-True-None] PASSED 2141s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-2-std-data17-expected_data17-False-None] PASSED 2141s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-2-var-data18-expected_data18-True-None] PASSED 2142s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-2-var-data19-expected_data19-True-None] PASSED 2142s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-2-var-data20-expected_data20-False-None] PASSED 2142s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-2-median-data21-expected_data21-True-None] PASSED 2142s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-2-median-data22-expected_data22-True-None] PASSED 2142s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-2-median-data23-expected_data23-False-None] PASSED 2142s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-5-count-data0-expected_data0-True-0] PASSED 2142s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-5-count-data1-expected_data1-True-0] PASSED 2142s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-5-count-data2-expected_data2-False-0] PASSED 2142s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-5-max-data3-expected_data3-True-None] PASSED 2142s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-5-max-data4-expected_data4-True-None] PASSED 2142s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-5-max-data5-expected_data5-False-None] PASSED 2142s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-5-min-data6-expected_data6-True-None] PASSED 2142s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-5-min-data7-expected_data7-True-None] PASSED 2142s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-5-min-data8-expected_data8-False-None] PASSED 2142s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-5-sum-data9-expected_data9-True-None] PASSED 2142s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-5-sum-data10-expected_data10-True-None] PASSED 2142s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-5-sum-data11-expected_data11-False-None] PASSED 2142s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-5-mean-data12-expected_data12-True-None] PASSED 2142s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-5-mean-data13-expected_data13-True-None] PASSED 2142s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-5-mean-data14-expected_data14-False-None] PASSED 2142s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-5-std-data15-expected_data15-True-None] PASSED 2142s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-5-std-data16-expected_data16-True-None] PASSED 2142s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-5-std-data17-expected_data17-False-None] PASSED 2142s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-5-var-data18-expected_data18-True-None] PASSED 2142s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-5-var-data19-expected_data19-True-None] PASSED 2142s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-5-var-data20-expected_data20-False-None] PASSED 2142s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-5-median-data21-expected_data21-True-None] PASSED 2142s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-5-median-data22-expected_data22-True-None] PASSED 2143s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-5-median-data23-expected_data23-False-None] PASSED 2143s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-10-count-data0-expected_data0-True-0] PASSED 2143s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-10-count-data1-expected_data1-True-0] PASSED 2143s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-10-count-data2-expected_data2-False-0] PASSED 2143s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-10-max-data3-expected_data3-True-None] PASSED 2143s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-10-max-data4-expected_data4-True-None] PASSED 2143s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-10-max-data5-expected_data5-False-None] PASSED 2143s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-10-min-data6-expected_data6-True-None] PASSED 2143s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-10-min-data7-expected_data7-True-None] PASSED 2143s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-10-min-data8-expected_data8-False-None] PASSED 2143s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-10-sum-data9-expected_data9-True-None] PASSED 2143s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-10-sum-data10-expected_data10-True-None] PASSED 2144s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-10-sum-data11-expected_data11-False-None] PASSED 2144s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-10-mean-data12-expected_data12-True-None] PASSED 2144s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-10-mean-data13-expected_data13-True-None] PASSED 2144s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-10-mean-data14-expected_data14-False-None] PASSED 2144s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-10-std-data15-expected_data15-True-None] PASSED 2144s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-10-std-data16-expected_data16-True-None] PASSED 2144s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-10-std-data17-expected_data17-False-None] PASSED 2144s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-10-var-data18-expected_data18-True-None] PASSED 2144s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-10-var-data19-expected_data19-True-None] PASSED 2144s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-10-var-data20-expected_data20-False-None] PASSED 2144s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-10-median-data21-expected_data21-True-None] PASSED 2144s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-10-median-data22-expected_data22-True-None] PASSED 2144s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-10-median-data23-expected_data23-False-None] PASSED 2144s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-None-count-data0-expected_data0-True-0] PASSED 2144s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-None-count-data1-expected_data1-True-0] PASSED 2144s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-None-count-data2-expected_data2-False-0] PASSED 2144s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-None-max-data3-expected_data3-True-None] PASSED 2144s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-None-max-data4-expected_data4-True-None] PASSED 2144s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-None-max-data5-expected_data5-False-None] PASSED 2144s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-None-min-data6-expected_data6-True-None] PASSED 2145s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-None-min-data7-expected_data7-True-None] PASSED 2145s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-None-min-data8-expected_data8-False-None] PASSED 2145s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-None-sum-data9-expected_data9-True-None] PASSED 2145s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-None-sum-data10-expected_data10-True-None] PASSED 2145s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-None-sum-data11-expected_data11-False-None] PASSED 2145s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-None-mean-data12-expected_data12-True-None] PASSED 2145s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-None-mean-data13-expected_data13-True-None] PASSED 2145s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-None-mean-data14-expected_data14-False-None] PASSED 2145s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-None-std-data15-expected_data15-True-None] PASSED 2145s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-None-std-data16-expected_data16-True-None] PASSED 2145s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-None-std-data17-expected_data17-False-None] PASSED 2145s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-None-var-data18-expected_data18-True-None] PASSED 2145s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-None-var-data19-expected_data19-True-None] PASSED 2145s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-None-var-data20-expected_data20-False-None] PASSED 2145s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-None-median-data21-expected_data21-True-None] PASSED 2145s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-None-median-data22-expected_data22-True-None] PASSED 2145s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-None-median-data23-expected_data23-False-None] PASSED 2145s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-1-count-data0-expected_data0-True-0] PASSED 2145s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-1-count-data1-expected_data1-True-0] PASSED 2145s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-1-count-data2-expected_data2-False-0] PASSED 2145s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-1-max-data3-expected_data3-True-None] PASSED 2145s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-1-max-data4-expected_data4-True-None] PASSED 2145s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-1-max-data5-expected_data5-False-None] PASSED 2145s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-1-min-data6-expected_data6-True-None] PASSED 2145s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-1-min-data7-expected_data7-True-None] PASSED 2145s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-1-min-data8-expected_data8-False-None] PASSED 2145s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-1-sum-data9-expected_data9-True-None] PASSED 2145s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-1-sum-data10-expected_data10-True-None] PASSED 2146s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-1-sum-data11-expected_data11-False-None] PASSED 2146s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-1-mean-data12-expected_data12-True-None] PASSED 2146s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-1-mean-data13-expected_data13-True-None] PASSED 2146s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-1-mean-data14-expected_data14-False-None] PASSED 2146s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-1-std-data15-expected_data15-True-None] PASSED 2146s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-1-std-data16-expected_data16-True-None] PASSED 2146s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-1-std-data17-expected_data17-False-None] PASSED 2146s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-1-var-data18-expected_data18-True-None] PASSED 2146s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-1-var-data19-expected_data19-True-None] PASSED 2146s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-1-var-data20-expected_data20-False-None] PASSED 2146s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-1-median-data21-expected_data21-True-None] PASSED 2146s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-1-median-data22-expected_data22-True-None] PASSED 2146s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-1-median-data23-expected_data23-False-None] PASSED 2146s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-2-count-data0-expected_data0-True-0] PASSED 2146s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-2-count-data1-expected_data1-True-0] PASSED 2146s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-2-count-data2-expected_data2-False-0] PASSED 2146s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-2-max-data3-expected_data3-True-None] PASSED 2146s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-2-max-data4-expected_data4-True-None] PASSED 2146s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-2-max-data5-expected_data5-False-None] PASSED 2146s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-2-min-data6-expected_data6-True-None] PASSED 2146s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-2-min-data7-expected_data7-True-None] PASSED 2146s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-2-min-data8-expected_data8-False-None] PASSED 2146s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-2-sum-data9-expected_data9-True-None] PASSED 2146s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-2-sum-data10-expected_data10-True-None] PASSED 2146s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-2-sum-data11-expected_data11-False-None] PASSED 2146s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-2-mean-data12-expected_data12-True-None] PASSED 2147s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-2-mean-data13-expected_data13-True-None] PASSED 2147s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-2-mean-data14-expected_data14-False-None] PASSED 2147s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-2-std-data15-expected_data15-True-None] PASSED 2147s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-2-std-data16-expected_data16-True-None] PASSED 2147s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-2-std-data17-expected_data17-False-None] PASSED 2147s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-2-var-data18-expected_data18-True-None] PASSED 2147s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-2-var-data19-expected_data19-True-None] PASSED 2147s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-2-var-data20-expected_data20-False-None] PASSED 2147s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-2-median-data21-expected_data21-True-None] PASSED 2147s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-2-median-data22-expected_data22-True-None] PASSED 2147s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-2-median-data23-expected_data23-False-None] PASSED 2147s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-5-count-data0-expected_data0-True-0] PASSED 2147s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-5-count-data1-expected_data1-True-0] PASSED 2147s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-5-count-data2-expected_data2-False-0] PASSED 2147s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-5-max-data3-expected_data3-True-None] PASSED 2147s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-5-max-data4-expected_data4-True-None] PASSED 2147s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-5-max-data5-expected_data5-False-None] PASSED 2147s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-5-min-data6-expected_data6-True-None] PASSED 2147s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-5-min-data7-expected_data7-True-None] PASSED 2147s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-5-min-data8-expected_data8-False-None] PASSED 2147s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-5-sum-data9-expected_data9-True-None] PASSED 2147s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-5-sum-data10-expected_data10-True-None] PASSED 2147s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-5-sum-data11-expected_data11-False-None] PASSED 2148s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-5-mean-data12-expected_data12-True-None] PASSED 2148s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-5-mean-data13-expected_data13-True-None] PASSED 2148s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-5-mean-data14-expected_data14-False-None] PASSED 2148s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-5-std-data15-expected_data15-True-None] PASSED 2148s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-5-std-data16-expected_data16-True-None] PASSED 2148s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-5-std-data17-expected_data17-False-None] PASSED 2148s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-5-var-data18-expected_data18-True-None] PASSED 2148s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-5-var-data19-expected_data19-True-None] PASSED 2148s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-5-var-data20-expected_data20-False-None] PASSED 2148s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-5-median-data21-expected_data21-True-None] PASSED 2148s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-5-median-data22-expected_data22-True-None] PASSED 2148s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-5-median-data23-expected_data23-False-None] PASSED 2148s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-10-count-data0-expected_data0-True-0] PASSED 2148s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-10-count-data1-expected_data1-True-0] PASSED 2148s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-10-count-data2-expected_data2-False-0] PASSED 2148s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-10-max-data3-expected_data3-True-None] PASSED 2148s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-10-max-data4-expected_data4-True-None] PASSED 2148s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-10-max-data5-expected_data5-False-None] PASSED 2148s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-10-min-data6-expected_data6-True-None] PASSED 2148s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-10-min-data7-expected_data7-True-None] PASSED 2148s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-10-min-data8-expected_data8-False-None] PASSED 2148s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-10-sum-data9-expected_data9-True-None] PASSED 2148s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-10-sum-data10-expected_data10-True-None] PASSED 2148s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-10-sum-data11-expected_data11-False-None] PASSED 2148s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-10-mean-data12-expected_data12-True-None] PASSED 2148s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-10-mean-data13-expected_data13-True-None] PASSED 2148s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-10-mean-data14-expected_data14-False-None] PASSED 2148s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-10-std-data15-expected_data15-True-None] PASSED 2148s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-10-std-data16-expected_data16-True-None] PASSED 2149s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-10-std-data17-expected_data17-False-None] PASSED 2149s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-10-var-data18-expected_data18-True-None] PASSED 2149s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-10-var-data19-expected_data19-True-None] PASSED 2149s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-10-var-data20-expected_data20-False-None] PASSED 2149s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-10-median-data21-expected_data21-True-None] PASSED 2149s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-10-median-data22-expected_data22-True-None] PASSED 2149s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[datetime64[ns, UTC]-10-median-data23-expected_data23-False-None] PASSED 2149s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_nullable_int[Int8-None] PASSED 2149s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_nullable_int[Int8-1] PASSED 2149s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_nullable_int[Int8-2] PASSED 2149s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_nullable_int[Int8-5] PASSED 2149s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_nullable_int[Int8-10] PASSED 2149s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_nullable_int[Int16-None] PASSED 2149s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_nullable_int[Int16-1] PASSED 2149s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_nullable_int[Int16-2] PASSED 2149s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_nullable_int[Int16-5] PASSED 2149s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_nullable_int[Int16-10] PASSED 2149s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_nullable_int[Int32-None] PASSED 2149s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_nullable_int[Int32-1] PASSED 2149s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_nullable_int[Int32-2] PASSED 2149s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_nullable_int[Int32-5] PASSED 2150s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_nullable_int[Int32-10] PASSED 2150s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_nullable_int[Int64-None] PASSED 2150s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_nullable_int[Int64-1] PASSED 2150s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_nullable_int[Int64-2] PASSED 2150s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_nullable_int[Int64-5] PASSED 2150s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_nullable_int[Int64-10] PASSED 2150s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[object-None-count-expected_data0-0] PASSED 2150s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[object-None-max-expected_data1-None] PASSED 2150s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[object-None-min-expected_data2-None] PASSED 2150s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[object-None-sum-expected_data3-None] PASSED 2150s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[object-None-mean-expected_data4-None] PASSED 2150s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[object-None-std-expected_data5-None] PASSED 2150s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[object-None-var-expected_data6-None] PASSED 2150s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[object-None-median-expected_data7-None] PASSED 2150s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[object-1-count-expected_data0-0] PASSED 2150s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[object-1-max-expected_data1-None] PASSED 2150s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[object-1-min-expected_data2-None] PASSED 2150s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[object-1-sum-expected_data3-None] PASSED 2150s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[object-1-mean-expected_data4-None] PASSED 2150s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[object-1-std-expected_data5-None] PASSED 2150s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[object-1-var-expected_data6-None] PASSED 2150s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[object-1-median-expected_data7-None] PASSED 2150s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[object-2-count-expected_data0-0] PASSED 2150s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[object-2-max-expected_data1-None] PASSED 2150s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[object-2-min-expected_data2-None] PASSED 2150s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[object-2-sum-expected_data3-None] PASSED 2151s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[object-2-mean-expected_data4-None] PASSED 2151s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[object-2-std-expected_data5-None] PASSED 2151s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[object-2-var-expected_data6-None] PASSED 2151s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[object-2-median-expected_data7-None] PASSED 2151s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[object-5-count-expected_data0-0] PASSED 2151s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[object-5-max-expected_data1-None] PASSED 2151s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[object-5-min-expected_data2-None] PASSED 2151s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[object-5-sum-expected_data3-None] PASSED 2151s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[object-5-mean-expected_data4-None] PASSED 2151s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[object-5-std-expected_data5-None] PASSED 2151s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[object-5-var-expected_data6-None] PASSED 2151s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[object-5-median-expected_data7-None] PASSED 2151s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[object-10-count-expected_data0-0] PASSED 2151s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[object-10-max-expected_data1-None] PASSED 2151s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[object-10-min-expected_data2-None] PASSED 2151s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[object-10-sum-expected_data3-None] PASSED 2151s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[object-10-mean-expected_data4-None] PASSED 2151s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[object-10-std-expected_data5-None] PASSED 2151s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[object-10-var-expected_data6-None] PASSED 2151s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[object-10-median-expected_data7-None] PASSED 2151s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[category-None-count-expected_data0-0] PASSED 2151s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[category-None-max-expected_data1-None] PASSED 2151s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[category-None-min-expected_data2-None] PASSED 2152s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[category-None-sum-expected_data3-None] PASSED 2152s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[category-None-mean-expected_data4-None] PASSED 2152s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[category-None-std-expected_data5-None] PASSED 2152s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[category-None-var-expected_data6-None] PASSED 2152s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[category-None-median-expected_data7-None] PASSED 2152s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[category-1-count-expected_data0-0] PASSED 2152s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[category-1-max-expected_data1-None] PASSED 2152s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[category-1-min-expected_data2-None] PASSED 2152s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[category-1-sum-expected_data3-None] PASSED 2152s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[category-1-mean-expected_data4-None] PASSED 2152s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[category-1-std-expected_data5-None] PASSED 2152s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[category-1-var-expected_data6-None] PASSED 2153s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[category-1-median-expected_data7-None] PASSED 2153s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[category-2-count-expected_data0-0] PASSED 2153s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[category-2-max-expected_data1-None] PASSED 2153s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[category-2-min-expected_data2-None] PASSED 2153s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[category-2-sum-expected_data3-None] PASSED 2153s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[category-2-mean-expected_data4-None] PASSED 2153s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[category-2-std-expected_data5-None] PASSED 2153s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[category-2-var-expected_data6-None] PASSED 2153s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[category-2-median-expected_data7-None] PASSED 2153s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[category-5-count-expected_data0-0] PASSED 2153s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[category-5-max-expected_data1-None] PASSED 2153s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[category-5-min-expected_data2-None] PASSED 2153s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[category-5-sum-expected_data3-None] PASSED 2153s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[category-5-mean-expected_data4-None] PASSED 2153s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[category-5-std-expected_data5-None] PASSED 2154s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[category-5-var-expected_data6-None] PASSED 2154s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[category-5-median-expected_data7-None] PASSED 2154s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[category-10-count-expected_data0-0] PASSED 2154s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[category-10-max-expected_data1-None] PASSED 2154s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[category-10-min-expected_data2-None] PASSED 2154s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[category-10-sum-expected_data3-None] PASSED 2154s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[category-10-mean-expected_data4-None] PASSED 2154s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[category-10-std-expected_data5-None] PASSED 2154s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[category-10-var-expected_data6-None] PASSED 2154s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[category-10-median-expected_data7-None] PASSED 2154s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int8-None-count-expected_data0-0] PASSED 2154s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int8-None-max-expected_data1-None] PASSED 2154s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int8-None-min-expected_data2-None] PASSED 2154s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int8-None-sum-expected_data3-None] PASSED 2154s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int8-None-mean-expected_data4-None] PASSED 2154s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int8-None-std-expected_data5-None] PASSED 2154s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int8-None-var-expected_data6-None] PASSED 2154s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int8-None-median-expected_data7-None] PASSED 2154s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int8-1-count-expected_data0-0] PASSED 2155s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int8-1-max-expected_data1-None] PASSED 2155s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int8-1-min-expected_data2-None] PASSED 2155s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int8-1-sum-expected_data3-None] PASSED 2155s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int8-1-mean-expected_data4-None] PASSED 2155s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int8-1-std-expected_data5-None] PASSED 2155s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int8-1-var-expected_data6-None] PASSED 2155s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int8-1-median-expected_data7-None] PASSED 2155s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int8-2-count-expected_data0-0] PASSED 2155s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int8-2-max-expected_data1-None] PASSED 2155s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int8-2-min-expected_data2-None] PASSED 2155s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int8-2-sum-expected_data3-None] PASSED 2155s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int8-2-mean-expected_data4-None] PASSED 2156s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int8-2-std-expected_data5-None] PASSED 2156s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int8-2-var-expected_data6-None] PASSED 2156s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int8-2-median-expected_data7-None] PASSED 2156s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int8-5-count-expected_data0-0] PASSED 2156s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int8-5-max-expected_data1-None] PASSED 2156s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int8-5-min-expected_data2-None] PASSED 2156s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int8-5-sum-expected_data3-None] PASSED 2156s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int8-5-mean-expected_data4-None] PASSED 2156s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int8-5-std-expected_data5-None] PASSED 2156s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int8-5-var-expected_data6-None] PASSED 2156s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int8-5-median-expected_data7-None] PASSED 2156s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int8-10-count-expected_data0-0] PASSED 2156s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int8-10-max-expected_data1-None] PASSED 2156s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int8-10-min-expected_data2-None] PASSED 2156s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int8-10-sum-expected_data3-None] PASSED 2156s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int8-10-mean-expected_data4-None] PASSED 2156s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int8-10-std-expected_data5-None] PASSED 2156s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int8-10-var-expected_data6-None] PASSED 2156s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int8-10-median-expected_data7-None] PASSED 2156s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int16-None-count-expected_data0-0] PASSED 2156s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int16-None-max-expected_data1-None] PASSED 2157s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int16-None-min-expected_data2-None] PASSED 2157s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int16-None-sum-expected_data3-None] PASSED 2157s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int16-None-mean-expected_data4-None] PASSED 2157s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int16-None-std-expected_data5-None] PASSED 2157s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int16-None-var-expected_data6-None] PASSED 2157s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int16-None-median-expected_data7-None] PASSED 2157s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int16-1-count-expected_data0-0] PASSED 2157s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int16-1-max-expected_data1-None] PASSED 2157s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int16-1-min-expected_data2-None] PASSED 2157s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int16-1-sum-expected_data3-None] PASSED 2157s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int16-1-mean-expected_data4-None] PASSED 2157s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int16-1-std-expected_data5-None] PASSED 2157s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int16-1-var-expected_data6-None] PASSED 2157s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int16-1-median-expected_data7-None] PASSED 2157s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int16-2-count-expected_data0-0] PASSED 2157s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int16-2-max-expected_data1-None] PASSED 2157s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int16-2-min-expected_data2-None] PASSED 2157s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int16-2-sum-expected_data3-None] PASSED 2157s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int16-2-mean-expected_data4-None] PASSED 2157s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int16-2-std-expected_data5-None] PASSED 2157s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int16-2-var-expected_data6-None] PASSED 2158s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int16-2-median-expected_data7-None] PASSED 2158s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int16-5-count-expected_data0-0] PASSED 2158s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int16-5-max-expected_data1-None] PASSED 2158s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int16-5-min-expected_data2-None] PASSED 2158s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int16-5-sum-expected_data3-None] PASSED 2158s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int16-5-mean-expected_data4-None] PASSED 2158s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int16-5-std-expected_data5-None] PASSED 2158s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int16-5-var-expected_data6-None] PASSED 2158s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int16-5-median-expected_data7-None] PASSED 2158s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int16-10-count-expected_data0-0] PASSED 2158s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int16-10-max-expected_data1-None] PASSED 2158s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int16-10-min-expected_data2-None] PASSED 2158s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int16-10-sum-expected_data3-None] PASSED 2158s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int16-10-mean-expected_data4-None] PASSED 2158s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int16-10-std-expected_data5-None] PASSED 2158s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int16-10-var-expected_data6-None] PASSED 2158s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int16-10-median-expected_data7-None] PASSED 2158s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int32-None-count-expected_data0-0] PASSED 2158s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int32-None-max-expected_data1-None] PASSED 2158s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int32-None-min-expected_data2-None] PASSED 2159s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int32-None-sum-expected_data3-None] PASSED 2159s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int32-None-mean-expected_data4-None] PASSED 2159s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int32-None-std-expected_data5-None] PASSED 2159s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int32-None-var-expected_data6-None] PASSED 2159s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int32-None-median-expected_data7-None] PASSED 2159s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int32-1-count-expected_data0-0] PASSED 2159s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int32-1-max-expected_data1-None] PASSED 2159s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int32-1-min-expected_data2-None] PASSED 2159s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int32-1-sum-expected_data3-None] PASSED 2159s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int32-1-mean-expected_data4-None] PASSED 2159s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int32-1-std-expected_data5-None] PASSED 2159s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int32-1-var-expected_data6-None] PASSED 2159s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int32-1-median-expected_data7-None] PASSED 2159s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int32-2-count-expected_data0-0] PASSED 2159s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int32-2-max-expected_data1-None] PASSED 2159s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int32-2-min-expected_data2-None] PASSED 2159s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int32-2-sum-expected_data3-None] PASSED 2159s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int32-2-mean-expected_data4-None] PASSED 2160s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int32-2-std-expected_data5-None] PASSED 2160s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int32-2-var-expected_data6-None] PASSED 2160s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int32-2-median-expected_data7-None] PASSED 2160s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int32-5-count-expected_data0-0] PASSED 2160s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int32-5-max-expected_data1-None] PASSED 2160s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int32-5-min-expected_data2-None] PASSED 2160s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int32-5-sum-expected_data3-None] PASSED 2160s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int32-5-mean-expected_data4-None] PASSED 2160s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int32-5-std-expected_data5-None] PASSED 2160s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int32-5-var-expected_data6-None] PASSED 2160s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int32-5-median-expected_data7-None] PASSED 2160s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int32-10-count-expected_data0-0] PASSED 2160s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int32-10-max-expected_data1-None] PASSED 2160s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int32-10-min-expected_data2-None] PASSED 2160s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int32-10-sum-expected_data3-None] PASSED 2160s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int32-10-mean-expected_data4-None] PASSED 2160s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int32-10-std-expected_data5-None] PASSED 2161s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int32-10-var-expected_data6-None] PASSED 2161s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int32-10-median-expected_data7-None] PASSED 2161s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int64-None-count-expected_data0-0] PASSED 2161s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int64-None-max-expected_data1-None] PASSED 2162s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int64-None-min-expected_data2-None] PASSED 2162s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int64-None-sum-expected_data3-None] PASSED 2162s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int64-None-mean-expected_data4-None] PASSED 2162s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int64-None-std-expected_data5-None] PASSED 2162s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int64-None-var-expected_data6-None] PASSED 2162s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int64-None-median-expected_data7-None] PASSED 2162s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int64-1-count-expected_data0-0] PASSED 2162s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int64-1-max-expected_data1-None] PASSED 2162s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int64-1-min-expected_data2-None] PASSED 2162s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int64-1-sum-expected_data3-None] PASSED 2162s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int64-1-mean-expected_data4-None] PASSED 2162s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int64-1-std-expected_data5-None] PASSED 2162s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int64-1-var-expected_data6-None] PASSED 2162s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int64-1-median-expected_data7-None] PASSED 2162s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int64-2-count-expected_data0-0] PASSED 2162s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int64-2-max-expected_data1-None] PASSED 2162s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int64-2-min-expected_data2-None] PASSED 2163s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int64-2-sum-expected_data3-None] PASSED 2163s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int64-2-mean-expected_data4-None] PASSED 2163s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int64-2-std-expected_data5-None] PASSED 2163s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int64-2-var-expected_data6-None] PASSED 2163s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int64-2-median-expected_data7-None] PASSED 2163s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int64-5-count-expected_data0-0] PASSED 2163s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int64-5-max-expected_data1-None] PASSED 2163s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int64-5-min-expected_data2-None] PASSED 2163s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int64-5-sum-expected_data3-None] PASSED 2163s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int64-5-mean-expected_data4-None] PASSED 2163s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int64-5-std-expected_data5-None] PASSED 2163s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int64-5-var-expected_data6-None] PASSED 2163s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int64-5-median-expected_data7-None] PASSED 2164s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int64-10-count-expected_data0-0] PASSED 2164s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int64-10-max-expected_data1-None] PASSED 2164s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int64-10-min-expected_data2-None] PASSED 2164s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int64-10-sum-expected_data3-None] PASSED 2164s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int64-10-mean-expected_data4-None] PASSED 2164s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int64-10-std-expected_data5-None] PASSED 2164s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int64-10-var-expected_data6-None] PASSED 2164s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int64-10-median-expected_data7-None] PASSED 2164s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint8-None-count-expected_data0-0] PASSED 2164s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint8-None-max-expected_data1-None] PASSED 2164s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint8-None-min-expected_data2-None] PASSED 2164s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint8-None-sum-expected_data3-None] PASSED 2164s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint8-None-mean-expected_data4-None] PASSED 2164s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint8-None-std-expected_data5-None] PASSED 2164s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint8-None-var-expected_data6-None] PASSED 2164s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint8-None-median-expected_data7-None] PASSED 2164s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint8-1-count-expected_data0-0] PASSED 2164s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint8-1-max-expected_data1-None] PASSED 2164s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint8-1-min-expected_data2-None] PASSED 2164s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint8-1-sum-expected_data3-None] PASSED 2164s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint8-1-mean-expected_data4-None] PASSED 2164s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint8-1-std-expected_data5-None] PASSED 2164s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint8-1-var-expected_data6-None] PASSED 2164s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint8-1-median-expected_data7-None] PASSED 2164s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint8-2-count-expected_data0-0] PASSED 2164s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint8-2-max-expected_data1-None] PASSED 2164s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint8-2-min-expected_data2-None] PASSED 2164s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint8-2-sum-expected_data3-None] PASSED 2164s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint8-2-mean-expected_data4-None] PASSED 2164s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint8-2-std-expected_data5-None] PASSED 2164s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint8-2-var-expected_data6-None] PASSED 2164s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint8-2-median-expected_data7-None] PASSED 2165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint8-5-count-expected_data0-0] PASSED 2165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint8-5-max-expected_data1-None] PASSED 2165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint8-5-min-expected_data2-None] PASSED 2165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint8-5-sum-expected_data3-None] PASSED 2165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint8-5-mean-expected_data4-None] PASSED 2165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint8-5-std-expected_data5-None] PASSED 2165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint8-5-var-expected_data6-None] PASSED 2165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint8-5-median-expected_data7-None] PASSED 2165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint8-10-count-expected_data0-0] PASSED 2165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint8-10-max-expected_data1-None] PASSED 2165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint8-10-min-expected_data2-None] PASSED 2165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint8-10-sum-expected_data3-None] PASSED 2165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint8-10-mean-expected_data4-None] PASSED 2165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint8-10-std-expected_data5-None] PASSED 2165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint8-10-var-expected_data6-None] PASSED 2165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint8-10-median-expected_data7-None] PASSED 2165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint16-None-count-expected_data0-0] PASSED 2165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint16-None-max-expected_data1-None] PASSED 2165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint16-None-min-expected_data2-None] PASSED 2165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint16-None-sum-expected_data3-None] PASSED 2165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint16-None-mean-expected_data4-None] PASSED 2165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint16-None-std-expected_data5-None] PASSED 2165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint16-None-var-expected_data6-None] PASSED 2165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint16-None-median-expected_data7-None] PASSED 2165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint16-1-count-expected_data0-0] PASSED 2165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint16-1-max-expected_data1-None] PASSED 2165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint16-1-min-expected_data2-None] PASSED 2165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint16-1-sum-expected_data3-None] PASSED 2165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint16-1-mean-expected_data4-None] PASSED 2165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint16-1-std-expected_data5-None] PASSED 2165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint16-1-var-expected_data6-None] PASSED 2166s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint16-1-median-expected_data7-None] PASSED 2166s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint16-2-count-expected_data0-0] PASSED 2166s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint16-2-max-expected_data1-None] PASSED 2166s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint16-2-min-expected_data2-None] PASSED 2166s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint16-2-sum-expected_data3-None] PASSED 2166s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint16-2-mean-expected_data4-None] PASSED 2166s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint16-2-std-expected_data5-None] PASSED 2166s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint16-2-var-expected_data6-None] PASSED 2166s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint16-2-median-expected_data7-None] PASSED 2166s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint16-5-count-expected_data0-0] PASSED 2166s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint16-5-max-expected_data1-None] PASSED 2166s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint16-5-min-expected_data2-None] PASSED 2166s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint16-5-sum-expected_data3-None] PASSED 2166s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint16-5-mean-expected_data4-None] PASSED 2166s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint16-5-std-expected_data5-None] PASSED 2166s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint16-5-var-expected_data6-None] PASSED 2166s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint16-5-median-expected_data7-None] PASSED 2166s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint16-10-count-expected_data0-0] PASSED 2166s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint16-10-max-expected_data1-None] PASSED 2166s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint16-10-min-expected_data2-None] PASSED 2166s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint16-10-sum-expected_data3-None] PASSED 2166s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint16-10-mean-expected_data4-None] PASSED 2166s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint16-10-std-expected_data5-None] PASSED 2166s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint16-10-var-expected_data6-None] PASSED 2166s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint16-10-median-expected_data7-None] PASSED 2166s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint32-None-count-expected_data0-0] PASSED 2166s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint32-None-max-expected_data1-None] PASSED 2166s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint32-None-min-expected_data2-None] PASSED 2167s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint32-None-sum-expected_data3-None] PASSED 2167s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint32-None-mean-expected_data4-None] PASSED 2167s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint32-None-std-expected_data5-None] PASSED 2167s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint32-None-var-expected_data6-None] PASSED 2167s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint32-None-median-expected_data7-None] PASSED 2167s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint32-1-count-expected_data0-0] PASSED 2167s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint32-1-max-expected_data1-None] PASSED 2167s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint32-1-min-expected_data2-None] PASSED 2167s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint32-1-sum-expected_data3-None] PASSED 2167s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint32-1-mean-expected_data4-None] PASSED 2167s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint32-1-std-expected_data5-None] PASSED 2167s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint32-1-var-expected_data6-None] PASSED 2167s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint32-1-median-expected_data7-None] PASSED 2167s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint32-2-count-expected_data0-0] PASSED 2167s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint32-2-max-expected_data1-None] PASSED 2167s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint32-2-min-expected_data2-None] PASSED 2167s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint32-2-sum-expected_data3-None] PASSED 2167s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint32-2-mean-expected_data4-None] PASSED 2167s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint32-2-std-expected_data5-None] PASSED 2167s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint32-2-var-expected_data6-None] PASSED 2167s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint32-2-median-expected_data7-None] PASSED 2167s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint32-5-count-expected_data0-0] PASSED 2167s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint32-5-max-expected_data1-None] PASSED 2167s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint32-5-min-expected_data2-None] PASSED 2167s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint32-5-sum-expected_data3-None] PASSED 2167s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint32-5-mean-expected_data4-None] PASSED 2167s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint32-5-std-expected_data5-None] PASSED 2167s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint32-5-var-expected_data6-None] PASSED 2167s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint32-5-median-expected_data7-None] PASSED 2167s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint32-10-count-expected_data0-0] PASSED 2167s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint32-10-max-expected_data1-None] PASSED 2168s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint32-10-min-expected_data2-None] PASSED 2168s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint32-10-sum-expected_data3-None] PASSED 2168s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint32-10-mean-expected_data4-None] PASSED 2168s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint32-10-std-expected_data5-None] PASSED 2168s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint32-10-var-expected_data6-None] PASSED 2168s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint32-10-median-expected_data7-None] PASSED 2168s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint64-None-count-expected_data0-0] PASSED 2168s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint64-None-max-expected_data1-None] PASSED 2168s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint64-None-min-expected_data2-None] PASSED 2168s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint64-None-sum-expected_data3-None] PASSED 2168s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint64-None-mean-expected_data4-None] PASSED 2168s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint64-None-std-expected_data5-None] PASSED 2168s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint64-None-var-expected_data6-None] PASSED 2168s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint64-None-median-expected_data7-None] PASSED 2168s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint64-1-count-expected_data0-0] PASSED 2168s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint64-1-max-expected_data1-None] PASSED 2168s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint64-1-min-expected_data2-None] PASSED 2168s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint64-1-sum-expected_data3-None] PASSED 2168s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint64-1-mean-expected_data4-None] PASSED 2168s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint64-1-std-expected_data5-None] PASSED 2168s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint64-1-var-expected_data6-None] PASSED 2168s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint64-1-median-expected_data7-None] PASSED 2168s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint64-2-count-expected_data0-0] PASSED 2168s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint64-2-max-expected_data1-None] PASSED 2168s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint64-2-min-expected_data2-None] PASSED 2168s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint64-2-sum-expected_data3-None] PASSED 2168s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint64-2-mean-expected_data4-None] PASSED 2168s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint64-2-std-expected_data5-None] PASSED 2168s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint64-2-var-expected_data6-None] PASSED 2168s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint64-2-median-expected_data7-None] PASSED 2168s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint64-5-count-expected_data0-0] PASSED 2168s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint64-5-max-expected_data1-None] PASSED 2169s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint64-5-min-expected_data2-None] PASSED 2169s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint64-5-sum-expected_data3-None] PASSED 2169s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint64-5-mean-expected_data4-None] PASSED 2169s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint64-5-std-expected_data5-None] PASSED 2169s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint64-5-var-expected_data6-None] PASSED 2169s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint64-5-median-expected_data7-None] PASSED 2169s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint64-10-count-expected_data0-0] PASSED 2169s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint64-10-max-expected_data1-None] PASSED 2169s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint64-10-min-expected_data2-None] PASSED 2169s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint64-10-sum-expected_data3-None] PASSED 2169s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint64-10-mean-expected_data4-None] PASSED 2169s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint64-10-std-expected_data5-None] PASSED 2169s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint64-10-var-expected_data6-None] PASSED 2169s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint64-10-median-expected_data7-None] PASSED 2169s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float16-None-count-expected_data0-0] PASSED 2169s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float16-None-max-expected_data1-None] PASSED 2169s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float16-None-min-expected_data2-None] PASSED 2169s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float16-None-sum-expected_data3-None] PASSED 2169s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float16-None-mean-expected_data4-None] PASSED 2169s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float16-None-std-expected_data5-None] PASSED 2169s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float16-None-var-expected_data6-None] PASSED 2169s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float16-None-median-expected_data7-None] PASSED 2169s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float16-1-count-expected_data0-0] PASSED 2169s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float16-1-max-expected_data1-None] PASSED 2169s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float16-1-min-expected_data2-None] PASSED 2169s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float16-1-sum-expected_data3-None] PASSED 2170s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float16-1-mean-expected_data4-None] PASSED 2170s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float16-1-std-expected_data5-None] PASSED 2170s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float16-1-var-expected_data6-None] PASSED 2170s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float16-1-median-expected_data7-None] PASSED 2170s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float16-2-count-expected_data0-0] PASSED 2170s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float16-2-max-expected_data1-None] PASSED 2170s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float16-2-min-expected_data2-None] PASSED 2170s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float16-2-sum-expected_data3-None] PASSED 2171s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float16-2-mean-expected_data4-None] PASSED 2171s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float16-2-std-expected_data5-None] PASSED 2171s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float16-2-var-expected_data6-None] PASSED 2171s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float16-2-median-expected_data7-None] PASSED 2171s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float16-5-count-expected_data0-0] PASSED 2171s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float16-5-max-expected_data1-None] PASSED 2171s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float16-5-min-expected_data2-None] PASSED 2171s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float16-5-sum-expected_data3-None] PASSED 2171s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float16-5-mean-expected_data4-None] PASSED 2171s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float16-5-std-expected_data5-None] PASSED 2171s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float16-5-var-expected_data6-None] PASSED 2171s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float16-5-median-expected_data7-None] PASSED 2171s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float16-10-count-expected_data0-0] PASSED 2171s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float16-10-max-expected_data1-None] PASSED 2171s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float16-10-min-expected_data2-None] PASSED 2171s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float16-10-sum-expected_data3-None] PASSED 2171s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float16-10-mean-expected_data4-None] PASSED 2171s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float16-10-std-expected_data5-None] PASSED 2171s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float16-10-var-expected_data6-None] PASSED 2171s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float16-10-median-expected_data7-None] PASSED 2172s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float32-None-count-expected_data0-0] PASSED 2172s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float32-None-max-expected_data1-None] PASSED 2172s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float32-None-min-expected_data2-None] PASSED 2172s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float32-None-sum-expected_data3-None] PASSED 2172s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float32-None-mean-expected_data4-None] PASSED 2172s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float32-None-std-expected_data5-None] PASSED 2172s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float32-None-var-expected_data6-None] PASSED 2172s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float32-None-median-expected_data7-None] PASSED 2172s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float32-1-count-expected_data0-0] PASSED 2172s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float32-1-max-expected_data1-None] PASSED 2172s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float32-1-min-expected_data2-None] PASSED 2172s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float32-1-sum-expected_data3-None] PASSED 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float32-1-mean-expected_data4-None] PASSED 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float32-1-std-expected_data5-None] PASSED 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float32-1-var-expected_data6-None] PASSED 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float32-1-median-expected_data7-None] PASSED 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float32-2-count-expected_data0-0] PASSED 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float32-2-max-expected_data1-None] PASSED 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float32-2-min-expected_data2-None] PASSED 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float32-2-sum-expected_data3-None] PASSED 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float32-2-mean-expected_data4-None] PASSED 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float32-2-std-expected_data5-None] PASSED 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float32-2-var-expected_data6-None] PASSED 2174s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float32-2-median-expected_data7-None] PASSED 2174s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float32-5-count-expected_data0-0] PASSED 2174s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float32-5-max-expected_data1-None] PASSED 2174s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float32-5-min-expected_data2-None] PASSED 2174s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float32-5-sum-expected_data3-None] PASSED 2174s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float32-5-mean-expected_data4-None] PASSED 2174s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float32-5-std-expected_data5-None] PASSED 2174s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float32-5-var-expected_data6-None] PASSED 2174s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float32-5-median-expected_data7-None] PASSED 2174s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float32-10-count-expected_data0-0] PASSED 2174s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float32-10-max-expected_data1-None] PASSED 2174s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float32-10-min-expected_data2-None] PASSED 2174s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float32-10-sum-expected_data3-None] PASSED 2174s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float32-10-mean-expected_data4-None] PASSED 2174s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float32-10-std-expected_data5-None] PASSED 2174s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float32-10-var-expected_data6-None] PASSED 2174s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float32-10-median-expected_data7-None] PASSED 2174s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float64-None-count-expected_data0-0] PASSED 2174s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float64-None-max-expected_data1-None] PASSED 2174s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float64-None-min-expected_data2-None] PASSED 2175s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float64-None-sum-expected_data3-None] PASSED 2175s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float64-None-mean-expected_data4-None] PASSED 2175s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float64-None-std-expected_data5-None] PASSED 2175s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float64-None-var-expected_data6-None] PASSED 2175s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float64-None-median-expected_data7-None] PASSED 2175s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float64-1-count-expected_data0-0] PASSED 2175s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float64-1-max-expected_data1-None] PASSED 2175s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float64-1-min-expected_data2-None] PASSED 2175s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float64-1-sum-expected_data3-None] PASSED 2175s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float64-1-mean-expected_data4-None] PASSED 2175s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float64-1-std-expected_data5-None] PASSED 2175s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float64-1-var-expected_data6-None] PASSED 2175s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float64-1-median-expected_data7-None] PASSED 2175s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float64-2-count-expected_data0-0] PASSED 2175s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float64-2-max-expected_data1-None] PASSED 2175s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float64-2-min-expected_data2-None] PASSED 2175s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float64-2-sum-expected_data3-None] PASSED 2175s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float64-2-mean-expected_data4-None] PASSED 2175s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float64-2-std-expected_data5-None] PASSED 2175s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float64-2-var-expected_data6-None] PASSED 2175s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float64-2-median-expected_data7-None] PASSED 2175s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float64-5-count-expected_data0-0] PASSED 2175s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float64-5-max-expected_data1-None] PASSED 2176s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float64-5-min-expected_data2-None] PASSED 2176s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float64-5-sum-expected_data3-None] PASSED 2176s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float64-5-mean-expected_data4-None] PASSED 2176s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float64-5-std-expected_data5-None] PASSED 2176s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float64-5-var-expected_data6-None] PASSED 2176s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float64-5-median-expected_data7-None] PASSED 2176s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float64-10-count-expected_data0-0] PASSED 2176s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float64-10-max-expected_data1-None] PASSED 2176s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float64-10-min-expected_data2-None] PASSED 2176s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float64-10-sum-expected_data3-None] PASSED 2176s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float64-10-mean-expected_data4-None] PASSED 2176s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float64-10-std-expected_data5-None] PASSED 2176s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float64-10-var-expected_data6-None] PASSED 2176s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float64-10-median-expected_data7-None] PASSED 2177s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[m8[ns]-None-count-expected_data0-0] PASSED 2177s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[m8[ns]-None-max-expected_data1-None] PASSED 2177s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[m8[ns]-None-min-expected_data2-None] PASSED 2177s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[m8[ns]-None-sum-expected_data3-None] PASSED 2178s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[m8[ns]-None-mean-expected_data4-None] PASSED 2178s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[m8[ns]-None-std-expected_data5-None] PASSED 2178s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[m8[ns]-None-var-expected_data6-None] PASSED 2179s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[m8[ns]-None-median-expected_data7-None] PASSED 2179s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[m8[ns]-1-count-expected_data0-0] PASSED 2179s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[m8[ns]-1-max-expected_data1-None] PASSED 2179s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[m8[ns]-1-min-expected_data2-None] PASSED 2180s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[m8[ns]-1-sum-expected_data3-None] PASSED 2180s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[m8[ns]-1-mean-expected_data4-None] PASSED 2180s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[m8[ns]-1-std-expected_data5-None] PASSED 2180s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[m8[ns]-1-var-expected_data6-None] PASSED 2180s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[m8[ns]-1-median-expected_data7-None] PASSED 2180s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[m8[ns]-2-count-expected_data0-0] PASSED 2180s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[m8[ns]-2-max-expected_data1-None] PASSED 2181s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[m8[ns]-2-min-expected_data2-None] PASSED 2181s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[m8[ns]-2-sum-expected_data3-None] PASSED 2181s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[m8[ns]-2-mean-expected_data4-None] PASSED 2181s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[m8[ns]-2-std-expected_data5-None] PASSED 2181s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[m8[ns]-2-var-expected_data6-None] PASSED 2181s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[m8[ns]-2-median-expected_data7-None] PASSED 2181s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[m8[ns]-5-count-expected_data0-0] PASSED 2181s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[m8[ns]-5-max-expected_data1-None] PASSED 2181s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[m8[ns]-5-min-expected_data2-None] PASSED 2181s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[m8[ns]-5-sum-expected_data3-None] PASSED 2181s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[m8[ns]-5-mean-expected_data4-None] PASSED 2181s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[m8[ns]-5-std-expected_data5-None] PASSED 2181s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[m8[ns]-5-var-expected_data6-None] PASSED 2181s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[m8[ns]-5-median-expected_data7-None] PASSED 2181s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[m8[ns]-10-count-expected_data0-0] PASSED 2181s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[m8[ns]-10-max-expected_data1-None] PASSED 2181s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[m8[ns]-10-min-expected_data2-None] PASSED 2181s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[m8[ns]-10-sum-expected_data3-None] PASSED 2181s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[m8[ns]-10-mean-expected_data4-None] PASSED 2181s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[m8[ns]-10-std-expected_data5-None] PASSED 2181s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[m8[ns]-10-var-expected_data6-None] PASSED 2181s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[m8[ns]-10-median-expected_data7-None] PASSED 2181s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[M8[ns]-None-count-expected_data0-0] PASSED 2181s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[M8[ns]-None-max-expected_data1-None] PASSED 2181s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[M8[ns]-None-min-expected_data2-None] PASSED 2181s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[M8[ns]-None-sum-expected_data3-None] PASSED 2181s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[M8[ns]-None-mean-expected_data4-None] PASSED 2182s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[M8[ns]-None-std-expected_data5-None] PASSED 2182s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[M8[ns]-None-var-expected_data6-None] PASSED 2182s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[M8[ns]-None-median-expected_data7-None] PASSED 2182s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[M8[ns]-1-count-expected_data0-0] PASSED 2182s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[M8[ns]-1-max-expected_data1-None] PASSED 2182s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[M8[ns]-1-min-expected_data2-None] PASSED 2182s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[M8[ns]-1-sum-expected_data3-None] PASSED 2182s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[M8[ns]-1-mean-expected_data4-None] PASSED 2182s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[M8[ns]-1-std-expected_data5-None] PASSED 2182s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[M8[ns]-1-var-expected_data6-None] PASSED 2182s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[M8[ns]-1-median-expected_data7-None] PASSED 2182s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[M8[ns]-2-count-expected_data0-0] PASSED 2182s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[M8[ns]-2-max-expected_data1-None] PASSED 2183s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[M8[ns]-2-min-expected_data2-None] PASSED 2183s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[M8[ns]-2-sum-expected_data3-None] PASSED 2183s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[M8[ns]-2-mean-expected_data4-None] PASSED 2183s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[M8[ns]-2-std-expected_data5-None] PASSED 2183s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[M8[ns]-2-var-expected_data6-None] PASSED 2183s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[M8[ns]-2-median-expected_data7-None] PASSED 2183s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[M8[ns]-5-count-expected_data0-0] PASSED 2183s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[M8[ns]-5-max-expected_data1-None] PASSED 2183s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[M8[ns]-5-min-expected_data2-None] PASSED 2183s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[M8[ns]-5-sum-expected_data3-None] PASSED 2183s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[M8[ns]-5-mean-expected_data4-None] PASSED 2183s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[M8[ns]-5-std-expected_data5-None] PASSED 2183s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[M8[ns]-5-var-expected_data6-None] PASSED 2183s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[M8[ns]-5-median-expected_data7-None] PASSED 2183s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[M8[ns]-10-count-expected_data0-0] PASSED 2184s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[M8[ns]-10-max-expected_data1-None] PASSED 2184s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[M8[ns]-10-min-expected_data2-None] PASSED 2184s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[M8[ns]-10-sum-expected_data3-None] PASSED 2184s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[M8[ns]-10-mean-expected_data4-None] PASSED 2184s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[M8[ns]-10-std-expected_data5-None] PASSED 2184s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[M8[ns]-10-var-expected_data6-None] PASSED 2184s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[M8[ns]-10-median-expected_data7-None] PASSED 2184s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[datetime64[ns, UTC]-None-count-expected_data0-0] PASSED 2184s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[datetime64[ns, UTC]-None-max-expected_data1-None] PASSED 2184s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[datetime64[ns, UTC]-None-min-expected_data2-None] PASSED 2184s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[datetime64[ns, UTC]-None-sum-expected_data3-None] PASSED 2184s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[datetime64[ns, UTC]-None-mean-expected_data4-None] PASSED 2184s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[datetime64[ns, UTC]-None-std-expected_data5-None] PASSED 2184s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[datetime64[ns, UTC]-None-var-expected_data6-None] PASSED 2184s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[datetime64[ns, UTC]-None-median-expected_data7-None] PASSED 2184s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[datetime64[ns, UTC]-1-count-expected_data0-0] PASSED 2184s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[datetime64[ns, UTC]-1-max-expected_data1-None] PASSED 2185s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[datetime64[ns, UTC]-1-min-expected_data2-None] PASSED 2185s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[datetime64[ns, UTC]-1-sum-expected_data3-None] PASSED 2185s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[datetime64[ns, UTC]-1-mean-expected_data4-None] PASSED 2185s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[datetime64[ns, UTC]-1-std-expected_data5-None] PASSED 2185s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[datetime64[ns, UTC]-1-var-expected_data6-None] PASSED 2185s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[datetime64[ns, UTC]-1-median-expected_data7-None] PASSED 2185s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[datetime64[ns, UTC]-2-count-expected_data0-0] PASSED 2185s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[datetime64[ns, UTC]-2-max-expected_data1-None] PASSED 2185s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[datetime64[ns, UTC]-2-min-expected_data2-None] PASSED 2185s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[datetime64[ns, UTC]-2-sum-expected_data3-None] PASSED 2185s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[datetime64[ns, UTC]-2-mean-expected_data4-None] PASSED 2185s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[datetime64[ns, UTC]-2-std-expected_data5-None] PASSED 2185s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[datetime64[ns, UTC]-2-var-expected_data6-None] PASSED 2185s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[datetime64[ns, UTC]-2-median-expected_data7-None] PASSED 2185s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[datetime64[ns, UTC]-5-count-expected_data0-0] PASSED 2185s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[datetime64[ns, UTC]-5-max-expected_data1-None] PASSED 2185s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[datetime64[ns, UTC]-5-min-expected_data2-None] PASSED 2185s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[datetime64[ns, UTC]-5-sum-expected_data3-None] PASSED 2185s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[datetime64[ns, UTC]-5-mean-expected_data4-None] PASSED 2185s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[datetime64[ns, UTC]-5-std-expected_data5-None] PASSED 2185s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[datetime64[ns, UTC]-5-var-expected_data6-None] PASSED 2185s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[datetime64[ns, UTC]-5-median-expected_data7-None] PASSED 2185s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[datetime64[ns, UTC]-10-count-expected_data0-0] PASSED 2185s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[datetime64[ns, UTC]-10-max-expected_data1-None] PASSED 2185s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[datetime64[ns, UTC]-10-min-expected_data2-None] PASSED 2185s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[datetime64[ns, UTC]-10-sum-expected_data3-None] PASSED 2185s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[datetime64[ns, UTC]-10-mean-expected_data4-None] PASSED 2185s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[datetime64[ns, UTC]-10-std-expected_data5-None] PASSED 2186s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[datetime64[ns, UTC]-10-var-expected_data6-None] PASSED 2186s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[datetime64[ns, UTC]-10-median-expected_data7-None] PASSED 2186s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_doc_string PASSED 2186s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_constructor[DataFrame] PASSED 2186s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_constructor[Series] PASSED 2186s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_times_not_datetime_type PASSED 2186s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_times_not_same_length PASSED 2186s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_halflife_not_correct_type PASSED 2186s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_halflife_without_times[1 day] PASSED 2186s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_halflife_without_times[halflife_with_times1] PASSED 2186s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_halflife_without_times[halflife_with_times2] PASSED 2186s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_with_times_equal_spacing[1 day-0-times0] PASSED 2186s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_with_times_equal_spacing[1 day-0-times1] PASSED 2186s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_with_times_equal_spacing[1 day-0-times2] PASSED 2186s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_with_times_equal_spacing[1 day-2-times0] PASSED 2186s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_with_times_equal_spacing[1 day-2-times1] PASSED 2186s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_with_times_equal_spacing[1 day-2-times2] PASSED 2186s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_with_times_equal_spacing[halflife_with_times1-0-times0] PASSED 2186s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_with_times_equal_spacing[halflife_with_times1-0-times1] PASSED 2186s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_with_times_equal_spacing[halflife_with_times1-0-times2] PASSED 2186s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_with_times_equal_spacing[halflife_with_times1-2-times0] PASSED 2186s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_with_times_equal_spacing[halflife_with_times1-2-times1] PASSED 2186s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_with_times_equal_spacing[halflife_with_times1-2-times2] PASSED 2186s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_with_times_equal_spacing[halflife_with_times2-0-times0] PASSED 2186s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_with_times_equal_spacing[halflife_with_times2-0-times1] PASSED 2186s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_with_times_equal_spacing[halflife_with_times2-0-times2] PASSED 2187s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_with_times_equal_spacing[halflife_with_times2-2-times0] PASSED 2187s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_with_times_equal_spacing[halflife_with_times2-2-times1] PASSED 2187s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_with_times_equal_spacing[halflife_with_times2-2-times2] PASSED 2187s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_with_times_variable_spacing['UTC'] PASSED 2187s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_with_times_variable_spacing['US/Eastern'] PASSED 2187s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_with_times_variable_spacing['Asia/Tokyo'] PASSED 2187s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_with_times_variable_spacing['dateutil/US/Pacific'] PASSED 2187s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_with_times_variable_spacing['dateutil/Asia/Singapore'] PASSED 2187s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_with_times_variable_spacing['+01:15'] PASSED 2187s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_with_times_variable_spacing['-02:15'] PASSED 2187s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_with_times_variable_spacing['UTC+01:15'] PASSED 2187s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_with_times_variable_spacing['UTC-02:15'] PASSED 2187s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_with_times_variable_spacing[tzutc()] PASSED 2187s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_with_times_variable_spacing[tzlocal()] PASSED 2187s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_with_times_variable_spacing[pytz.FixedOffset(300)] PASSED 2187s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_with_times_variable_spacing[] PASSED 2187s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_with_times_variable_spacing[pytz.FixedOffset(-300)] PASSED 2188s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_with_times_variable_spacing[datetime.timezone.utc] PASSED 2188s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_with_times_variable_spacing[datetime.timezone(datetime.timedelta(seconds=3600))] PASSED 2188s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_with_times_variable_spacing[datetime.timezone(datetime.timedelta(days=-1, seconds=82800), 'foo')] PASSED 2188s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_with_times_variable_spacing[zoneinfo.ZoneInfo(key='US/Pacific')] PASSED 2188s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_with_times_variable_spacing[zoneinfo.ZoneInfo(key='UTC')] PASSED 2188s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewm_with_nat_raises[1 day] PASSED 2188s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewm_with_nat_raises[halflife_with_times1] PASSED 2188s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewm_with_nat_raises[halflife_with_times2] PASSED 2188s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewm_with_times_getitem[1 day] PASSED 2188s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewm_with_times_getitem[halflife_with_times1] PASSED 2188s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewm_with_times_getitem[halflife_with_times2] PASSED 2188s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewm_getitem_attributes_retained[True-True-com] PASSED 2188s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewm_getitem_attributes_retained[True-True-halflife] PASSED 2189s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewm_getitem_attributes_retained[True-True-span] PASSED 2189s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewm_getitem_attributes_retained[True-True-alpha] PASSED 2189s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewm_getitem_attributes_retained[True-False-com] PASSED 2190s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewm_getitem_attributes_retained[True-False-halflife] PASSED 2190s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewm_getitem_attributes_retained[True-False-span] PASSED 2190s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewm_getitem_attributes_retained[True-False-alpha] PASSED 2190s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewm_getitem_attributes_retained[False-True-com] PASSED 2191s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewm_getitem_attributes_retained[False-True-halflife] PASSED 2191s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewm_getitem_attributes_retained[False-True-span] PASSED 2191s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewm_getitem_attributes_retained[False-True-alpha] PASSED 2191s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewm_getitem_attributes_retained[False-False-com] PASSED 2191s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewm_getitem_attributes_retained[False-False-halflife] PASSED 2191s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewm_getitem_attributes_retained[False-False-span] PASSED 2191s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewm_getitem_attributes_retained[False-False-alpha] PASSED 2191s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_times_adjust_false_raises PASSED 2191s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_float_dtype_ewma[float-mean-expected0] PASSED 2192s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_float_dtype_ewma[float-std-expected1] PASSED 2192s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_float_dtype_ewma[float-var-expected2] PASSED 2192s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_float_dtype_ewma[float32-mean-expected0] PASSED 2192s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_float_dtype_ewma[float32-std-expected1] PASSED 2192s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_float_dtype_ewma[float32-var-expected2] PASSED 2193s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_float_dtype_ewma[float64-mean-expected0] PASSED 2193s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_float_dtype_ewma[float64-std-expected1] PASSED 2193s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_float_dtype_ewma[float64-var-expected2] PASSED 2193s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_times_string_col_raises PASSED 2193s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewm_sum_adjust_false_notimplemented PASSED 2193s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewm_sum[expected_data0-False] PASSED 2193s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewm_sum[expected_data1-True] PASSED 2193s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_adjust PASSED 2193s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_cases[True-True] PASSED 2193s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_cases[True-False] PASSED 2193s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_cases[False-True] PASSED 2193s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_cases[False-False] PASSED 2193s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_nan_handling PASSED 2193s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_nan_handling_cases[s0-True-False-w0] PASSED 2193s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_nan_handling_cases[s1-True-True-w1] PASSED 2193s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_nan_handling_cases[s2-False-False-w2] PASSED 2193s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_nan_handling_cases[s3-False-True-w3] PASSED 2193s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_nan_handling_cases[s4-True-False-w4] PASSED 2193s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_nan_handling_cases[s5-True-True-w5] PASSED 2193s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_nan_handling_cases[s6-False-False-w6] PASSED 2193s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_nan_handling_cases[s7-False-True-w7] PASSED 2194s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_nan_handling_cases[s8-True-False-w8] PASSED 2194s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_nan_handling_cases[s9-True-True-w9] PASSED 2194s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_nan_handling_cases[s10-False-False-w10] PASSED 2194s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_nan_handling_cases[s11-False-True-w11] PASSED 2194s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_nan_handling_cases[s12-True-False-w12] PASSED 2194s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_nan_handling_cases[s13-True-True-w13] PASSED 2194s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_nan_handling_cases[s14-False-False-w14] PASSED 2194s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_nan_handling_cases[s15-False-True-w15] PASSED 2194s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewm_alpha PASSED 2194s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewm_domain_checks PASSED 2194s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ew_empty_series[mean] PASSED 2194s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ew_empty_series[std] PASSED 2194s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ew_empty_series[var] PASSED 2194s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ew_min_periods[mean-0] PASSED 2195s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ew_min_periods[mean-1] PASSED 2195s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ew_min_periods[var-0] PASSED 2195s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ew_min_periods[var-1] PASSED 2195s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ew_min_periods[std-0] PASSED 2195s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ew_min_periods[std-1] PASSED 2195s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewm_corr_cov[cov] PASSED 2195s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewm_corr_cov[corr] PASSED 2195s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewm_corr_cov_min_periods[cov-0] PASSED 2195s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewm_corr_cov_min_periods[cov-1] PASSED 2195s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewm_corr_cov_min_periods[cov-2] PASSED 2195s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewm_corr_cov_min_periods[corr-0] PASSED 2195s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewm_corr_cov_min_periods[corr-1] PASSED 2195s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewm_corr_cov_min_periods[corr-2] PASSED 2195s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_different_input_array_raise_exception[cov] PASSED 2195s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_different_input_array_raise_exception[corr] PASSED 2195s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_series[var] PASSED 2195s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_series[std] PASSED 2195s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_series[mean] PASSED 2195s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_frame[var] PASSED 2195s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_frame[std] PASSED 2195s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_frame[mean] PASSED 2195s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_span_com_args PASSED 2195s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_halflife_arg PASSED 2195s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewm_alpha_arg PASSED 2195s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewm_pairwise_cov_corr[cov] PASSED 2195s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewm_pairwise_cov_corr[corr] PASSED 2195s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_frame[sum-True] PASSED 2196s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_frame[sum-False] PASSED 2196s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_frame[mean-True] PASSED 2196s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_frame[mean-False] PASSED 2196s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_frame[median-True] PASSED 2196s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_frame[median-False] PASSED 2196s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_frame[max-True] PASSED 2196s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_frame[max-False] PASSED 2196s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_frame[min-True] PASSED 2196s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_frame[min-False] PASSED 2196s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_frame[var-True] PASSED 2196s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_frame[var-False] PASSED 2196s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_frame[std-True] PASSED 2196s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_frame[std-False] PASSED 2196s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_frame[kurt-True] PASSED 2196s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_frame[kurt-False] PASSED 2196s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_frame[skew-True] PASSED 2197s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_frame[skew-False] PASSED 2197s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_frame[count-True] PASSED 2197s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_frame[count-False] PASSED 2197s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_frame[sem-True] PASSED 2197s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_frame[sem-False] PASSED 2197s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_corr_cov_frame[True-True-corr] PASSED 2197s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_corr_cov_frame[True-True-cov] PASSED 2197s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_corr_cov_frame[True-False-corr] PASSED 2197s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_corr_cov_frame[True-False-cov] PASSED 2197s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_corr_cov_frame[False-True-corr] PASSED 2197s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_corr_cov_frame[False-True-cov] PASSED 2197s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_corr_cov_frame[False-False-corr] PASSED 2197s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_corr_cov_frame[False-False-cov] PASSED 2197s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[sum-True-int] PASSED 2197s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[sum-True-object] PASSED 2197s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[sum-False-int] PASSED 2198s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[sum-False-object] PASSED 2198s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[mean-True-int] PASSED 2198s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[mean-True-object] PASSED 2198s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[mean-False-int] PASSED 2198s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[mean-False-object] PASSED 2198s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[median-True-int] SKIPPED 2198s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[median-True-object] SKIPPED 2198s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[median-False-int] SKIPPED 2198s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[median-False-object] SKIPPED 2198s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[max-True-int] SKIPPED 2198s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[max-True-object] SKIPPED 2198s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[max-False-int] SKIPPED 2198s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[max-False-object] SKIPPED 2198s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[min-True-int] SKIPPED 2198s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[min-True-object] SKIPPED 2198s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[min-False-int] SKIPPED 2198s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[min-False-object] SKIPPED 2198s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[var-True-int] PASSED 2198s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[var-True-object] PASSED 2198s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[var-False-int] PASSED 2198s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[var-False-object] PASSED 2198s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[std-True-int] PASSED 2198s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[std-True-object] PASSED 2198s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[std-False-int] PASSED 2198s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[std-False-object] PASSED 2198s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[kurt-True-int] SKIPPED 2199s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[kurt-True-object] SKIPPED 2199s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[kurt-False-int] SKIPPED 2199s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[kurt-False-object] SKIPPED 2199s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[skew-True-int] SKIPPED 2199s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[skew-True-object] SKIPPED 2199s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[skew-False-int] SKIPPED 2199s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[skew-False-object] SKIPPED 2199s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[count-True-int] SKIPPED 2199s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[count-True-object] SKIPPED 2199s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[count-False-int] SKIPPED 2199s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[count-False-object] SKIPPED 2199s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[sem-True-int] SKIPPED 2199s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[sem-True-object] SKIPPED 2199s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[sem-False-int] SKIPPED 2199s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[sem-False-object] SKIPPED 2199s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_corr_cov_series[True-int-True-corr] PASSED 2199s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_corr_cov_series[True-int-True-cov] PASSED 2199s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_corr_cov_series[True-int-False-corr] PASSED 2199s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_corr_cov_series[True-int-False-cov] PASSED 2199s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_corr_cov_series[True-object-True-corr] PASSED 2199s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_corr_cov_series[True-object-True-cov] PASSED 2199s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_corr_cov_series[True-object-False-corr] PASSED 2199s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_corr_cov_series[True-object-False-cov] PASSED 2199s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_corr_cov_series[False-int-True-corr] PASSED 2199s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_corr_cov_series[False-int-True-cov] PASSED 2199s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_corr_cov_series[False-int-False-corr] PASSED 2199s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_corr_cov_series[False-int-False-cov] PASSED 2199s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_corr_cov_series[False-object-True-corr] PASSED 2199s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_corr_cov_series[False-object-True-cov] PASSED 2199s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_corr_cov_series[False-object-False-corr] PASSED 2199s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_corr_cov_series[False-object-False-cov] PASSED 2199s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_doc_string PASSED 2199s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_constructor[DataFrame] PASSED 2200s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_constructor[Series] PASSED 2200s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_constructor_invalid[DataFrame-2.0] PASSED 2200s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_constructor_invalid[DataFrame-foo] PASSED 2200s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_constructor_invalid[DataFrame-w2] PASSED 2200s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_constructor_invalid[Series-2.0] PASSED 2200s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_constructor_invalid[Series-foo] PASSED 2200s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_constructor_invalid[Series-w2] PASSED 2200s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_empty_df_expanding[1] PASSED 2201s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_empty_df_expanding[ls] XFAIL 2201s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_missing_minp_zero PASSED 2201s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_axis[axis=0] PASSED 2202s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_axis[axis=1] PASSED 2202s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_axis[axis='index'] PASSED 2202s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_axis[axis='columns'] PASSED 2202s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_count_with_min_periods[DataFrame] PASSED 2202s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_count_with_min_periods[Series] PASSED 2203s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_count_default_min_periods_with_null_values[DataFrame] PASSED 2203s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_count_default_min_periods_with_null_values[Series] PASSED 2203s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_count_with_min_periods_exceeding_series_length[DataFrame] PASSED 2203s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_count_with_min_periods_exceeding_series_length[Series] PASSED 2203s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_iter_expanding_dataframe[df0-expected0-3] PASSED 2204s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_iter_expanding_dataframe[df1-expected1-2] PASSED 2204s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_iter_expanding_dataframe[df2-expected2-1] PASSED 2204s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_iter_expanding_dataframe[df3-expected3-2] PASSED 2204s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_iter_expanding_dataframe[df4-expected4-1] PASSED 2204s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_iter_expanding_dataframe[df5-expected5-3] PASSED 2204s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_iter_expanding_dataframe[df6-expected6-2] PASSED 2204s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_iter_expanding_dataframe[df7-expected7-1] PASSED 2204s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_iter_expanding_series[ser0-expected0-3] PASSED 2204s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_iter_expanding_series[ser1-expected1-2] PASSED 2204s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_iter_expanding_series[ser2-expected2-1] PASSED 2204s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_iter_expanding_series[ser3-expected3-2] PASSED 2204s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_iter_expanding_series[ser4-expected4-2] PASSED 2204s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_iter_expanding_series[ser5-expected5-2] PASSED 2204s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_center_invalid PASSED 2204s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_sem[DataFrame] PASSED 2205s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_sem[Series] PASSED 2205s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_skew_kurt_numerical_stability[skew] PASSED 2205s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_skew_kurt_numerical_stability[kurt] PASSED 2205s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-True-True-min-1] PASSED 2205s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-True-True-min-3] PASSED 2205s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-True-True-min-10] PASSED 2205s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-True-True-min-20] PASSED 2205s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-True-True-max-1] PASSED 2205s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-True-True-max-3] PASSED 2205s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-True-True-max-10] PASSED 2205s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-True-True-max-20] PASSED 2205s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-True-True-average-1] PASSED 2205s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-True-True-average-3] PASSED 2205s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-True-True-average-10] PASSED 2205s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-True-True-average-20] PASSED 2206s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-True-False-min-1] PASSED 2206s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-True-False-min-3] PASSED 2206s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-True-False-min-10] PASSED 2206s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-True-False-min-20] PASSED 2206s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-True-False-max-1] PASSED 2206s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-True-False-max-3] PASSED 2206s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-True-False-max-10] PASSED 2206s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-True-False-max-20] PASSED 2206s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-True-False-average-1] PASSED 2206s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-True-False-average-3] PASSED 2206s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-True-False-average-10] PASSED 2206s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-True-False-average-20] PASSED 2206s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-False-True-min-1] PASSED 2206s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-False-True-min-3] PASSED 2206s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-False-True-min-10] PASSED 2206s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-False-True-min-20] PASSED 2206s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-False-True-max-1] PASSED 2206s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-False-True-max-3] PASSED 2206s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-False-True-max-10] PASSED 2206s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-False-True-max-20] PASSED 2206s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-False-True-average-1] PASSED 2206s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-False-True-average-3] PASSED 2207s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-False-True-average-10] PASSED 2207s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-False-True-average-20] PASSED 2207s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-False-False-min-1] PASSED 2207s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-False-False-min-3] PASSED 2207s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-False-False-min-10] PASSED 2207s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-False-False-min-20] PASSED 2207s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-False-False-max-1] PASSED 2207s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-False-False-max-3] PASSED 2207s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-False-False-max-10] PASSED 2207s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-False-False-max-20] PASSED 2207s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-False-False-average-1] PASSED 2207s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-False-False-average-3] PASSED 2208s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-False-False-average-10] PASSED 2208s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-False-False-average-20] PASSED 2208s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-True-True-min-1] PASSED 2208s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-True-True-min-3] PASSED 2208s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-True-True-min-10] PASSED 2208s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-True-True-min-20] PASSED 2208s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-True-True-max-1] PASSED 2208s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-True-True-max-3] PASSED 2208s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-True-True-max-10] PASSED 2208s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-True-True-max-20] PASSED 2208s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-True-True-average-1] PASSED 2208s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-True-True-average-3] PASSED 2208s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-True-True-average-10] PASSED 2208s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-True-True-average-20] PASSED 2208s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-True-False-min-1] PASSED 2208s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-True-False-min-3] PASSED 2208s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-True-False-min-10] PASSED 2208s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-True-False-min-20] PASSED 2208s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-True-False-max-1] PASSED 2208s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-True-False-max-3] PASSED 2208s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-True-False-max-10] PASSED 2208s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-True-False-max-20] PASSED 2208s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-True-False-average-1] PASSED 2208s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-True-False-average-3] PASSED 2208s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-True-False-average-10] PASSED 2208s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-True-False-average-20] PASSED 2208s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-False-True-min-1] PASSED 2208s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-False-True-min-3] PASSED 2208s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-False-True-min-10] PASSED 2208s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-False-True-min-20] PASSED 2208s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-False-True-max-1] PASSED 2208s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-False-True-max-3] PASSED 2209s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-False-True-max-10] PASSED 2209s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-False-True-max-20] PASSED 2209s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-False-True-average-1] PASSED 2209s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-False-True-average-3] PASSED 2209s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-False-True-average-10] PASSED 2209s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-False-True-average-20] PASSED 2209s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-False-False-min-1] PASSED 2209s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-False-False-min-3] PASSED 2209s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-False-False-min-10] PASSED 2209s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-False-False-min-20] PASSED 2209s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-False-False-max-1] PASSED 2209s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-False-False-max-3] PASSED 2209s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-False-False-max-10] PASSED 2209s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-False-False-max-20] PASSED 2209s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-False-False-average-1] PASSED 2209s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-False-False-average-3] PASSED 2210s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-False-False-average-10] PASSED 2210s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-False-False-average-20] PASSED 2210s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-True-True-min-1] PASSED 2210s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-True-True-min-3] PASSED 2210s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-True-True-min-10] PASSED 2210s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-True-True-min-20] PASSED 2210s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-True-True-max-1] PASSED 2210s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-True-True-max-3] PASSED 2210s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-True-True-max-10] PASSED 2210s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-True-True-max-20] PASSED 2210s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-True-True-average-1] PASSED 2210s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-True-True-average-3] PASSED 2210s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-True-True-average-10] PASSED 2210s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-True-True-average-20] PASSED 2210s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-True-False-min-1] PASSED 2210s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-True-False-min-3] PASSED 2210s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-True-False-min-10] PASSED 2210s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-True-False-min-20] PASSED 2210s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-True-False-max-1] PASSED 2210s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-True-False-max-3] PASSED 2210s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-True-False-max-10] PASSED 2210s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-True-False-max-20] PASSED 2210s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-True-False-average-1] PASSED 2210s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-True-False-average-3] PASSED 2211s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-True-False-average-10] PASSED 2211s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-True-False-average-20] PASSED 2211s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-False-True-min-1] PASSED 2211s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-False-True-min-3] PASSED 2211s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-False-True-min-10] PASSED 2211s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-False-True-min-20] PASSED 2211s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-False-True-max-1] PASSED 2211s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-False-True-max-3] PASSED 2211s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-False-True-max-10] PASSED 2211s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-False-True-max-20] PASSED 2212s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-False-True-average-1] PASSED 2212s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-False-True-average-3] PASSED 2212s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-False-True-average-10] PASSED 2212s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-False-True-average-20] PASSED 2212s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-False-False-min-1] PASSED 2212s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-False-False-min-3] PASSED 2212s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-False-False-min-10] PASSED 2212s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-False-False-min-20] PASSED 2212s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-False-False-max-1] PASSED 2212s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-False-False-max-3] PASSED 2212s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-False-False-max-10] PASSED 2212s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-False-False-max-20] PASSED 2212s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-False-False-average-1] PASSED 2213s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-False-False-average-3] PASSED 2213s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-False-False-average-10] PASSED 2213s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-False-False-average-20] PASSED 2213s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_corr PASSED 2213s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_count PASSED 2213s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_quantile PASSED 2213s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_cov PASSED 2213s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_cov_pairwise PASSED 2213s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_corr_pairwise PASSED 2213s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_func[DataFrame-sum] PASSED 2213s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_func[DataFrame-mean] PASSED 2213s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_func[DataFrame-max] PASSED 2213s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_func[DataFrame-min] PASSED 2213s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_func[Series-sum] PASSED 2214s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_func[Series-mean] PASSED 2214s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_func[Series-max] PASSED 2214s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_func[Series-min] PASSED 2214s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_min_periods[sum] PASSED 2214s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_min_periods[mean] PASSED 2214s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_min_periods[max] PASSED 2214s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_min_periods[min] PASSED 2214s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_apply[engine_and_raw0-DataFrame] SKIPPED 2214s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_apply[engine_and_raw0-Series] SKIPPED 2214s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_apply[engine_and_raw1-DataFrame] PASSED 2215s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_apply[engine_and_raw1-Series] PASSED 2215s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_apply[engine_and_raw2-DataFrame] PASSED 2215s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_apply[engine_and_raw2-Series] PASSED 2215s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_min_periods_apply[engine_and_raw0] SKIPPED 2215s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_min_periods_apply[engine_and_raw1] PASSED 2215s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_min_periods_apply[engine_and_raw2] PASSED 2215s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_moment_functions_zero_length_pairwise[0] PASSED 2215s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_moment_functions_zero_length_pairwise[1] PASSED 2215s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_moment_functions_zero_length[0] PASSED 2215s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_moment_functions_zero_length[1] PASSED 2215s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_moment_functions_zero_length[2] PASSED 2215s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_moment_functions_zero_length[3] PASSED 2215s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_moment_functions_zero_length[4] PASSED 2215s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_moment_functions_zero_length[5] PASSED 2215s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_moment_functions_zero_length[6] PASSED 2215s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_moment_functions_zero_length[7] PASSED 2215s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_moment_functions_zero_length[8] PASSED 2215s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_moment_functions_zero_length[9] PASSED 2215s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_moment_functions_zero_length[10] PASSED 2215s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_moment_functions_zero_length[11] PASSED 2215s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_moment_functions_zero_length[12] PASSED 2215s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_moment_functions_zero_length[13] PASSED 2215s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_moment_functions_zero_length[14] PASSED 2215s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_apply_empty_series[engine_and_raw0] SKIPPED 2216s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_apply_empty_series[engine_and_raw1] PASSED 2216s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_apply_empty_series[engine_and_raw2] PASSED 2216s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_apply_min_periods_0[engine_and_raw0] SKIPPED 2216s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_apply_min_periods_0[engine_and_raw1] PASSED 2216s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_apply_min_periods_0[engine_and_raw2] PASSED 2216s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_cov_diff_index PASSED 2216s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_corr_diff_index PASSED 2216s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_cov_pairwise_diff_length PASSED 2216s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_corr_pairwise_diff_length PASSED 2217s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_apply_args_kwargs[engine_and_raw0] SKIPPED 2217s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_apply_args_kwargs[engine_and_raw1] PASSED 2217s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_apply_args_kwargs[engine_and_raw2] PASSED 2217s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_frame[sum-True] PASSED 2217s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_frame[sum-False] PASSED 2217s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_frame[mean-True] PASSED 2217s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_frame[mean-False] PASSED 2217s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_frame[median-True] PASSED 2217s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_frame[median-False] PASSED 2217s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_frame[max-True] PASSED 2217s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_frame[max-False] PASSED 2217s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_frame[min-True] PASSED 2217s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_frame[min-False] PASSED 2217s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_frame[var-True] PASSED 2217s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_frame[var-False] PASSED 2217s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_frame[std-True] PASSED 2218s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_frame[std-False] PASSED 2218s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_frame[kurt-True] PASSED 2218s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_frame[kurt-False] PASSED 2218s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_frame[skew-True] PASSED 2218s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_frame[skew-False] PASSED 2218s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_frame[count-True] PASSED 2218s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_frame[count-False] PASSED 2219s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_frame[sem-True] PASSED 2219s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_frame[sem-False] PASSED 2219s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_corr_cov_frame[True-True-corr] PASSED 2219s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_corr_cov_frame[True-True-cov] PASSED 2219s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_corr_cov_frame[True-False-corr] PASSED 2220s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_corr_cov_frame[True-False-cov] PASSED 2220s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_corr_cov_frame[False-True-corr] PASSED 2220s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_corr_cov_frame[False-True-cov] PASSED 2220s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_corr_cov_frame[False-False-corr] PASSED 2220s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_corr_cov_frame[False-False-cov] PASSED 2220s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[sum-True-int] PASSED 2220s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[sum-True-object] PASSED 2221s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[sum-False-int] PASSED 2221s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[sum-False-object] PASSED 2221s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[mean-True-int] PASSED 2221s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[mean-True-object] PASSED 2221s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[mean-False-int] PASSED 2221s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[mean-False-object] PASSED 2221s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[median-True-int] PASSED 2221s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[median-True-object] PASSED 2221s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[median-False-int] PASSED 2221s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[median-False-object] PASSED 2222s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[max-True-int] PASSED 2222s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[max-True-object] PASSED 2222s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[max-False-int] PASSED 2222s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[max-False-object] PASSED 2222s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[min-True-int] PASSED 2222s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[min-True-object] PASSED 2222s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[min-False-int] PASSED 2223s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[min-False-object] PASSED 2223s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[var-True-int] PASSED 2223s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[var-True-object] PASSED 2223s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[var-False-int] PASSED 2223s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[var-False-object] PASSED 2223s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[std-True-int] PASSED 2224s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[std-True-object] PASSED 2224s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[std-False-int] PASSED 2224s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[std-False-object] PASSED 2224s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[kurt-True-int] PASSED 2225s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[kurt-True-object] PASSED 2225s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[kurt-False-int] PASSED 2225s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[kurt-False-object] PASSED 2225s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[skew-True-int] PASSED 2226s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[skew-True-object] PASSED 2226s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[skew-False-int] PASSED 2227s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[skew-False-object] PASSED 2227s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[count-True-int] PASSED 2227s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[count-True-object] PASSED 2227s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[count-False-int] PASSED 2227s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[count-False-object] PASSED 2228s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[sem-True-int] PASSED 2228s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[sem-True-object] PASSED 2228s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[sem-False-int] PASSED 2228s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[sem-False-object] PASSED 2228s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_corr_cov_series[True-int-True-corr] PASSED 2228s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_corr_cov_series[True-int-True-cov] PASSED 2228s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_corr_cov_series[True-int-False-corr] PASSED 2229s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_corr_cov_series[True-int-False-cov] PASSED 2233s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_corr_cov_series[True-object-True-corr] PASSED 2235s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_corr_cov_series[True-object-True-cov] PASSED 2237s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_corr_cov_series[True-object-False-corr] PASSED 2238s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_corr_cov_series[True-object-False-cov] PASSED 2239s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_corr_cov_series[False-int-True-corr] PASSED 2239s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_corr_cov_series[False-int-True-cov] PASSED 2239s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_corr_cov_series[False-int-False-corr] PASSED 2239s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_corr_cov_series[False-int-False-cov] PASSED 2239s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_corr_cov_series[False-object-True-corr] PASSED 2239s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_corr_cov_series[False-object-True-cov] PASSED 2240s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_corr_cov_series[False-object-False-corr] PASSED 2240s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_corr_cov_series[False-object-False-cov] PASSED 2240s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_keyword_quantile_deprecated PASSED 2240s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_groupby_unsupported_argument PASSED 2240s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_getitem PASSED 2240s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_getitem_multiple PASSED 2240s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_rolling[sum] PASSED 2240s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_rolling[mean] PASSED 2240s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_rolling[min] PASSED 2240s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_rolling[max] PASSED 2240s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_rolling[count] PASSED 2240s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_rolling[kurt] PASSED 2240s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_rolling[skew] PASSED 2240s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_rolling_ddof[std] PASSED 2240s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_rolling_ddof[var] PASSED 2240s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_rolling_quantile[linear] PASSED 2241s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_rolling_quantile[lower] PASSED 2241s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_rolling_quantile[higher] PASSED 2241s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_rolling_quantile[midpoint] PASSED 2241s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_rolling_quantile[nearest] PASSED 2241s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_rolling_corr_cov_other_same_size_as_groups[corr-1] PASSED 2241s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_rolling_corr_cov_other_same_size_as_groups[cov-0.5] PASSED 2241s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_rolling_corr_cov_other_diff_size_as_groups[corr] PASSED 2241s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_rolling_corr_cov_other_diff_size_as_groups[cov] PASSED 2241s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_rolling_corr_cov_pairwise[corr] PASSED 2241s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_rolling_corr_cov_pairwise[cov] PASSED 2241s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_rolling_corr_cov_unordered[cov-expected_values0] PASSED 2241s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_rolling_corr_cov_unordered[corr-expected_values1] PASSED 2241s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_rolling_apply[True] PASSED 2241s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_rolling_apply[False] PASSED 2242s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_rolling_apply_mutability PASSED 2242s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_groupby_rolling[1.0-True] PASSED 2242s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_groupby_rolling[0.0-False] PASSED 2242s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_groupby_rolling_center_center PASSED 2242s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_groupby_rolling_center_on PASSED 2242s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_groupby_rolling_center_min_periods[5] PASSED 2242s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_groupby_rolling_center_min_periods[4] PASSED 2242s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_groupby_rolling_center_min_periods[3] PASSED 2242s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_groupby_subselect_rolling PASSED 2242s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_groupby_rolling_custom_indexer PASSED 2242s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_groupby_rolling_subset_with_closed PASSED 2242s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_groupby_subset_rolling_subset_with_closed PASSED 2242s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_groupby_rolling_index_changed[max] PASSED 2242s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_groupby_rolling_index_changed[min] PASSED 2242s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_groupby_rolling_empty_frame PASSED 2242s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_groupby_rolling_string_index PASSED 2242s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_groupby_rolling_no_sort PASSED 2242s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_groupby_rolling_count_closed_on PASSED 2242s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_groupby_rolling_sem[rolling-kwargs0] PASSED 2242s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_groupby_rolling_sem[expanding-kwargs1] PASSED 2242s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_groupby_rolling_nans_in_index[rollings0-a] PASSED 2242s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_groupby_rolling_nans_in_index[rollings1-index] PASSED 2242s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_groupby_rolling_group_keys[True] PASSED 2242s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_groupby_rolling_group_keys[False] PASSED 2242s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_groupby_rolling_index_level_and_column_label PASSED 2243s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_groupby_rolling_resulting_multiindex PASSED 2243s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_groupby_rolling_resulting_multiindex2 PASSED 2243s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_groupby_rolling_resulting_multiindex3 PASSED 2243s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_groupby_rolling_object_doesnt_affect_groupby_apply PASSED 2243s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_groupby_rolling_var[2-0-left-expected0] PASSED 2243s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_groupby_rolling_var[2-2-left-expected1] PASSED 2243s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_groupby_rolling_var[4-4-left-expected2] PASSED 2243s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_groupby_rolling_var[4-4-right-expected3] PASSED 2243s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_by_column_not_in_values[columns0] PASSED 2243s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_by_column_not_in_values[columns1] PASSED 2243s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_groupby_level PASSED 2243s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_as_index_false[by0-expected_data0] PASSED 2243s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_as_index_false[by1-expected_data1] PASSED 2244s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_nan_and_zero_endpoints[uint8] PASSED 2244s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_nan_and_zero_endpoints[uint16] PASSED 2244s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_nan_and_zero_endpoints[uint32] PASSED 2244s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_nan_and_zero_endpoints[uint64] PASSED 2244s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_nan_and_zero_endpoints[int] PASSED 2244s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_nan_and_zero_endpoints[int8] PASSED 2244s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_nan_and_zero_endpoints[int16] PASSED 2244s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_nan_and_zero_endpoints[int32] PASSED 2244s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_nan_and_zero_endpoints[int64] PASSED 2244s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_groupby_rolling_non_monotonic PASSED 2244s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_groupby_monotonic PASSED 2244s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_datelike_on_monotonic_within_each_group PASSED 2244s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_datelike_on_not_monotonic_within_each_group PASSED 2244s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestExpanding::test_expanding[sum] PASSED 2244s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestExpanding::test_expanding[mean] PASSED 2244s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestExpanding::test_expanding[min] PASSED 2244s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestExpanding::test_expanding[max] PASSED 2244s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestExpanding::test_expanding[count] PASSED 2244s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestExpanding::test_expanding[kurt] PASSED 2244s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestExpanding::test_expanding[skew] PASSED 2244s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestExpanding::test_expanding_ddof[std] PASSED 2245s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestExpanding::test_expanding_ddof[var] PASSED 2245s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestExpanding::test_expanding_quantile[linear] PASSED 2245s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestExpanding::test_expanding_quantile[lower] PASSED 2245s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestExpanding::test_expanding_quantile[higher] PASSED 2245s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestExpanding::test_expanding_quantile[midpoint] PASSED 2245s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestExpanding::test_expanding_quantile[nearest] PASSED 2245s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestExpanding::test_expanding_corr_cov[corr] PASSED 2245s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestExpanding::test_expanding_corr_cov[cov] PASSED 2245s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestExpanding::test_expanding_apply[True] PASSED 2245s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestExpanding::test_expanding_apply[False] PASSED 2245s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestEWM::test_methods[mean-expected_data0] PASSED 2245s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestEWM::test_methods[std-expected_data1] PASSED 2245s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestEWM::test_methods[var-expected_data2] PASSED 2246s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestEWM::test_pairwise_methods[corr-expected_data0] PASSED 2246s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestEWM::test_pairwise_methods[cov-expected_data1] PASSED 2246s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestEWM::test_times PASSED 2246s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestEWM::test_times_array PASSED 2246s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestEWM::test_dont_mutate_obj_after_slicing PASSED 2246s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::test_rolling_corr_with_single_integer_in_index PASSED 2246s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::test_rolling_corr_with_tuples_in_index PASSED 2246s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_apply[False-True-True-True-None-True] SKIPPED 2246s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_apply[False-True-True-True-None-False] SKIPPED 2246s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_apply[False-True-True-True-1-True] SKIPPED 2246s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_apply[False-True-True-True-1-False] SKIPPED 2246s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_apply[False-True-True-True-2-True] SKIPPED 2246s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_apply[False-True-True-True-2-False] SKIPPED 2246s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_apply[False-True-True-True-5-True] SKIPPED 2246s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_apply[False-True-True-True-5-False] SKIPPED 2246s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_apply[False-True-True-True-10-True] SKIPPED 2246s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_apply[False-True-True-True-10-False] SKIPPED 2246s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_apply[False-True-True-False-None-True] SKIPPED 2246s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_apply[False-True-True-False-None-False] SKIPPED 2246s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_apply[False-True-True-False-1-True] SKIPPED 2246s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_apply[False-True-True-False-1-False] SKIPPED 2246s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_apply[False-True-True-False-2-True] SKIPPED 2246s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_apply[False-True-True-False-2-False] SKIPPED 2246s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_apply[False-True-True-False-5-True] SKIPPED 2246s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_apply[False-True-True-False-5-False] SKIPPED 2246s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_apply[False-True-True-False-10-True] SKIPPED 2246s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_apply[False-True-True-False-10-False] SKIPPED 2247s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_apply[False-False-True-True-None-True] SKIPPED 2247s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_apply[False-False-True-True-None-False] SKIPPED 2247s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_apply[False-False-True-True-1-True] SKIPPED 2247s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_apply[False-False-True-True-1-False] SKIPPED 2247s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_apply[False-False-True-True-2-True] SKIPPED 2247s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_apply[False-False-True-True-2-False] SKIPPED 2247s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_apply[False-False-True-True-5-True] SKIPPED 2247s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_apply[False-False-True-True-5-False] SKIPPED 2247s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_apply[False-False-True-True-10-True] SKIPPED 2247s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_apply[False-False-True-True-10-False] SKIPPED 2247s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_apply[False-False-True-False-None-True] SKIPPED 2247s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_apply[False-False-True-False-None-False] SKIPPED 2247s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_apply[False-False-True-False-1-True] SKIPPED 2247s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_apply[False-False-True-False-1-False] SKIPPED 2247s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_apply[False-False-True-False-2-True] SKIPPED 2247s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_apply[False-False-True-False-2-False] SKIPPED 2247s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_apply[False-False-True-False-5-True] SKIPPED 2247s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_apply[False-False-True-False-5-False] SKIPPED 2247s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_apply[False-False-True-False-10-True] SKIPPED 2247s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_apply[False-False-True-False-10-False] SKIPPED 2247s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators0-None-data0] SKIPPED 2247s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators0-None-data1] SKIPPED 2247s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators0-None-data2] SKIPPED 2247s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators0-None-data3] SKIPPED 2247s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators0-None-data4] SKIPPED 2247s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators0-1-data0] SKIPPED 2247s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators0-1-data1] SKIPPED 2247s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators0-1-data2] SKIPPED 2247s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators0-1-data3] SKIPPED 2247s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators0-1-data4] SKIPPED 2248s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators0-2-data0] SKIPPED 2248s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators0-2-data1] SKIPPED 2248s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators0-2-data2] SKIPPED 2248s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators0-2-data3] SKIPPED 2248s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators0-2-data4] SKIPPED 2248s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators0-5-data0] SKIPPED 2248s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators0-5-data1] SKIPPED 2248s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators0-5-data2] SKIPPED 2248s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators0-5-data3] SKIPPED 2248s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators0-5-data4] SKIPPED 2248s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators0-10-data0] SKIPPED 2248s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators0-10-data1] SKIPPED 2248s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators0-10-data2] SKIPPED 2248s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators0-10-data3] SKIPPED 2248s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators0-10-data4] SKIPPED 2248s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators1-None-data0] SKIPPED 2248s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators1-None-data1] SKIPPED 2248s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators1-None-data2] SKIPPED 2248s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators1-None-data3] SKIPPED 2248s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators1-None-data4] SKIPPED 2248s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators1-1-data0] SKIPPED 2248s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators1-1-data1] SKIPPED 2248s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators1-1-data2] SKIPPED 2248s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators1-1-data3] SKIPPED 2248s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators1-1-data4] SKIPPED 2248s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators1-2-data0] SKIPPED 2248s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators1-2-data1] SKIPPED 2248s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators1-2-data2] SKIPPED 2248s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators1-2-data3] SKIPPED 2248s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators1-2-data4] SKIPPED 2248s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators1-5-data0] SKIPPED 2248s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators1-5-data1] SKIPPED 2248s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators1-5-data2] SKIPPED 2248s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators1-5-data3] SKIPPED 2248s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators1-5-data4] SKIPPED 2248s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators1-10-data0] SKIPPED 2248s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators1-10-data1] SKIPPED 2248s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators1-10-data2] SKIPPED 2248s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators1-10-data3] SKIPPED 2248s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators1-10-data4] SKIPPED 2249s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators2-None-data0] SKIPPED 2249s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators2-None-data1] SKIPPED 2249s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators2-None-data2] SKIPPED 2249s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators2-None-data3] SKIPPED 2249s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators2-None-data4] SKIPPED 2249s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators2-1-data0] SKIPPED 2249s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators2-1-data1] SKIPPED 2249s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators2-1-data2] SKIPPED 2249s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators2-1-data3] SKIPPED 2249s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators2-1-data4] SKIPPED 2249s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators2-2-data0] SKIPPED 2249s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators2-2-data1] SKIPPED 2249s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators2-2-data2] SKIPPED 2249s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators2-2-data3] SKIPPED 2249s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators2-2-data4] SKIPPED 2249s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators2-5-data0] SKIPPED 2249s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators2-5-data1] SKIPPED 2249s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators2-5-data2] SKIPPED 2249s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators2-5-data3] SKIPPED 2249s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators2-5-data4] SKIPPED 2249s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators2-10-data0] SKIPPED 2249s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators2-10-data1] SKIPPED 2249s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators2-10-data2] SKIPPED 2249s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators2-10-data3] SKIPPED 2249s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators2-10-data4] SKIPPED 2249s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators3-None-data0] SKIPPED 2249s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators3-None-data1] SKIPPED 2249s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators3-None-data2] SKIPPED 2249s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators3-None-data3] SKIPPED 2249s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators3-None-data4] SKIPPED 2249s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators3-1-data0] SKIPPED 2249s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators3-1-data1] SKIPPED 2249s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators3-1-data2] SKIPPED 2249s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators3-1-data3] SKIPPED 2249s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators3-1-data4] SKIPPED 2249s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators3-2-data0] SKIPPED 2249s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators3-2-data1] SKIPPED 2249s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators3-2-data2] SKIPPED 2249s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators3-2-data3] SKIPPED 2249s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators3-2-data4] SKIPPED 2249s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators3-5-data0] SKIPPED 2249s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators3-5-data1] SKIPPED 2249s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators3-5-data2] SKIPPED 2249s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators3-5-data3] SKIPPED 2249s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators3-5-data4] SKIPPED 2249s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators3-10-data0] SKIPPED 2249s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators3-10-data1] SKIPPED 2249s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators3-10-data2] SKIPPED 2249s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators3-10-data3] SKIPPED 2250s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators3-10-data4] SKIPPED 2250s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators4-None-data0] SKIPPED 2250s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators4-None-data1] SKIPPED 2250s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators4-None-data2] SKIPPED 2250s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators4-None-data3] SKIPPED 2250s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators4-None-data4] SKIPPED 2250s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators4-1-data0] SKIPPED 2250s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators4-1-data1] SKIPPED 2250s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators4-1-data2] SKIPPED 2250s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators4-1-data3] SKIPPED 2250s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators4-1-data4] SKIPPED 2250s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators4-2-data0] SKIPPED 2250s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators4-2-data1] SKIPPED 2250s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators4-2-data2] SKIPPED 2250s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators4-2-data3] SKIPPED 2250s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators4-2-data4] SKIPPED 2250s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators4-5-data0] SKIPPED 2250s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators4-5-data1] SKIPPED 2250s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators4-5-data2] SKIPPED 2250s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators4-5-data3] SKIPPED 2250s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators4-5-data4] SKIPPED 2250s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators4-10-data0] SKIPPED 2250s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators4-10-data1] SKIPPED 2250s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators4-10-data2] SKIPPED 2250s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators4-10-data3] SKIPPED 2250s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators4-10-data4] SKIPPED 2250s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators5-None-data0] SKIPPED 2250s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators5-None-data1] SKIPPED 2250s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators5-None-data2] SKIPPED 2250s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators5-None-data3] SKIPPED 2250s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators5-None-data4] SKIPPED 2250s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators5-1-data0] SKIPPED 2250s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators5-1-data1] SKIPPED 2250s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators5-1-data2] SKIPPED 2250s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators5-1-data3] SKIPPED 2250s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators5-1-data4] SKIPPED 2250s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators5-2-data0] SKIPPED 2250s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators5-2-data1] SKIPPED 2250s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators5-2-data2] SKIPPED 2250s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators5-2-data3] SKIPPED 2250s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators5-2-data4] SKIPPED 2250s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators5-5-data0] SKIPPED 2250s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators5-5-data1] SKIPPED 2250s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators5-5-data2] SKIPPED 2250s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators5-5-data3] SKIPPED 2250s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators5-5-data4] SKIPPED 2250s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators5-10-data0] SKIPPED 2251s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators5-10-data1] SKIPPED 2251s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators5-10-data2] SKIPPED 2251s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators5-10-data3] SKIPPED 2251s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators5-10-data4] SKIPPED 2251s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators6-None-data0] SKIPPED 2251s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators6-None-data1] SKIPPED 2251s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators6-None-data2] SKIPPED 2251s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators6-None-data3] SKIPPED 2251s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators6-None-data4] SKIPPED 2251s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators6-1-data0] SKIPPED 2251s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators6-1-data1] SKIPPED 2251s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators6-1-data2] SKIPPED 2251s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators6-1-data3] SKIPPED 2251s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators6-1-data4] SKIPPED 2251s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators6-2-data0] SKIPPED 2251s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators6-2-data1] SKIPPED 2251s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators6-2-data2] SKIPPED 2251s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators6-2-data3] SKIPPED 2251s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators6-2-data4] SKIPPED 2251s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators6-5-data0] SKIPPED 2251s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators6-5-data1] SKIPPED 2251s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators6-5-data2] SKIPPED 2251s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators6-5-data3] SKIPPED 2251s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators6-5-data4] SKIPPED 2251s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators6-10-data0] SKIPPED 2251s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators6-10-data1] SKIPPED 2251s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators6-10-data2] SKIPPED 2251s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators6-10-data3] SKIPPED 2251s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators6-10-data4] SKIPPED 2251s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators7-None-data0] SKIPPED 2251s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators7-None-data1] SKIPPED 2251s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators7-None-data2] SKIPPED 2251s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators7-None-data3] SKIPPED 2251s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators7-None-data4] SKIPPED 2251s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators7-1-data0] SKIPPED 2251s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators7-1-data1] SKIPPED 2251s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators7-1-data2] SKIPPED 2251s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators7-1-data3] SKIPPED 2252s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators7-1-data4] SKIPPED 2252s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators7-2-data0] SKIPPED 2252s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators7-2-data1] SKIPPED 2252s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators7-2-data2] SKIPPED 2252s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators7-2-data3] SKIPPED 2252s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators7-2-data4] SKIPPED 2252s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators7-5-data0] SKIPPED 2252s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators7-5-data1] SKIPPED 2252s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators7-5-data2] SKIPPED 2252s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators7-5-data3] SKIPPED 2252s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators7-5-data4] SKIPPED 2252s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators7-10-data0] SKIPPED 2252s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators7-10-data1] SKIPPED 2252s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators7-10-data2] SKIPPED 2252s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators7-10-data3] SKIPPED 2252s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators7-10-data4] SKIPPED 2252s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators8-None-data0] SKIPPED 2252s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators8-None-data1] SKIPPED 2252s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators8-None-data2] SKIPPED 2252s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators8-None-data3] SKIPPED 2252s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators8-None-data4] SKIPPED 2252s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators8-1-data0] SKIPPED 2252s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators8-1-data1] SKIPPED 2252s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators8-1-data2] SKIPPED 2252s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators8-1-data3] SKIPPED 2252s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators8-1-data4] SKIPPED 2252s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators8-2-data0] SKIPPED 2252s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators8-2-data1] SKIPPED 2252s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators8-2-data2] SKIPPED 2252s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators8-2-data3] SKIPPED 2252s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators8-2-data4] SKIPPED 2252s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators8-5-data0] SKIPPED 2252s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators8-5-data1] SKIPPED 2252s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators8-5-data2] SKIPPED 2252s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators8-5-data3] SKIPPED 2252s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators8-5-data4] SKIPPED 2252s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators8-10-data0] SKIPPED 2252s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators8-10-data1] SKIPPED 2252s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators8-10-data2] SKIPPED 2252s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators8-10-data3] SKIPPED 2252s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-True-True-arithmetic_numba_supported_operators8-10-data4] SKIPPED 2252s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators0-None-data0] SKIPPED 2252s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators0-None-data1] SKIPPED 2252s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators0-None-data2] SKIPPED 2252s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators0-None-data3] SKIPPED 2252s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators0-None-data4] SKIPPED 2252s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators0-1-data0] SKIPPED 2252s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators0-1-data1] SKIPPED 2253s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators0-1-data2] SKIPPED 2253s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators0-1-data3] SKIPPED 2253s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators0-1-data4] SKIPPED 2253s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators0-2-data0] SKIPPED 2253s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators0-2-data1] SKIPPED 2253s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators0-2-data2] SKIPPED 2253s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators0-2-data3] SKIPPED 2253s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators0-2-data4] SKIPPED 2253s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators0-5-data0] SKIPPED 2253s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators0-5-data1] SKIPPED 2253s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators0-5-data2] SKIPPED 2253s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators0-5-data3] SKIPPED 2253s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators0-5-data4] SKIPPED 2253s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators0-10-data0] SKIPPED 2253s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators0-10-data1] SKIPPED 2253s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators0-10-data2] SKIPPED 2253s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators0-10-data3] SKIPPED 2253s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators0-10-data4] SKIPPED 2253s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators1-None-data0] SKIPPED 2253s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators1-None-data1] SKIPPED 2253s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators1-None-data2] SKIPPED 2253s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators1-None-data3] SKIPPED 2253s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators1-None-data4] SKIPPED 2253s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators1-1-data0] SKIPPED 2253s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators1-1-data1] SKIPPED 2253s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators1-1-data2] SKIPPED 2253s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators1-1-data3] SKIPPED 2253s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators1-1-data4] SKIPPED 2253s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators1-2-data0] SKIPPED 2253s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators1-2-data1] SKIPPED 2253s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators1-2-data2] SKIPPED 2253s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators1-2-data3] SKIPPED 2253s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators1-2-data4] SKIPPED 2253s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators1-5-data0] SKIPPED 2253s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators1-5-data1] SKIPPED 2253s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators1-5-data2] SKIPPED 2253s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators1-5-data3] SKIPPED 2253s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators1-5-data4] SKIPPED 2253s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators1-10-data0] SKIPPED 2253s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators1-10-data1] SKIPPED 2253s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators1-10-data2] SKIPPED 2253s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators1-10-data3] SKIPPED 2254s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators1-10-data4] SKIPPED 2254s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators2-None-data0] SKIPPED 2254s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators2-None-data1] SKIPPED 2254s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators2-None-data2] SKIPPED 2254s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators2-None-data3] SKIPPED 2254s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators2-None-data4] SKIPPED 2254s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators2-1-data0] SKIPPED 2254s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators2-1-data1] SKIPPED 2254s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators2-1-data2] SKIPPED 2254s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators2-1-data3] SKIPPED 2254s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators2-1-data4] SKIPPED 2254s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators2-2-data0] SKIPPED 2254s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators2-2-data1] SKIPPED 2254s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators2-2-data2] SKIPPED 2254s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators2-2-data3] SKIPPED 2254s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators2-2-data4] SKIPPED 2254s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators2-5-data0] SKIPPED 2254s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators2-5-data1] SKIPPED 2254s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators2-5-data2] SKIPPED 2254s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators2-5-data3] SKIPPED 2254s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators2-5-data4] SKIPPED 2254s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators2-10-data0] SKIPPED 2254s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators2-10-data1] SKIPPED 2254s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators2-10-data2] SKIPPED 2254s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators2-10-data3] SKIPPED 2254s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators2-10-data4] SKIPPED 2254s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators3-None-data0] SKIPPED 2254s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators3-None-data1] SKIPPED 2254s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators3-None-data2] SKIPPED 2254s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators3-None-data3] SKIPPED 2254s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators3-None-data4] SKIPPED 2254s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators3-1-data0] SKIPPED 2254s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators3-1-data1] SKIPPED 2254s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators3-1-data2] SKIPPED 2254s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators3-1-data3] SKIPPED 2254s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators3-1-data4] SKIPPED 2254s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators3-2-data0] SKIPPED 2254s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators3-2-data1] SKIPPED 2254s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators3-2-data2] SKIPPED 2255s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators3-2-data3] SKIPPED 2255s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators3-2-data4] SKIPPED 2255s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators3-5-data0] SKIPPED 2255s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators3-5-data1] SKIPPED 2255s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators3-5-data2] SKIPPED 2255s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators3-5-data3] SKIPPED 2255s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators3-5-data4] SKIPPED 2255s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators3-10-data0] SKIPPED 2255s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators3-10-data1] SKIPPED 2255s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators3-10-data2] SKIPPED 2255s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators3-10-data3] SKIPPED 2255s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators3-10-data4] SKIPPED 2255s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators4-None-data0] SKIPPED 2255s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators4-None-data1] SKIPPED 2255s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators4-None-data2] SKIPPED 2255s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators4-None-data3] SKIPPED 2255s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators4-None-data4] SKIPPED 2255s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators4-1-data0] SKIPPED 2255s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators4-1-data1] SKIPPED 2255s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators4-1-data2] SKIPPED 2255s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators4-1-data3] SKIPPED 2255s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators4-1-data4] SKIPPED 2255s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators4-2-data0] SKIPPED 2255s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators4-2-data1] SKIPPED 2255s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators4-2-data2] SKIPPED 2255s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators4-2-data3] SKIPPED 2255s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators4-2-data4] SKIPPED 2255s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators4-5-data0] SKIPPED 2255s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators4-5-data1] SKIPPED 2255s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators4-5-data2] SKIPPED 2255s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators4-5-data3] SKIPPED 2255s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators4-5-data4] SKIPPED 2255s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators4-10-data0] SKIPPED 2255s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators4-10-data1] SKIPPED 2255s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators4-10-data2] SKIPPED 2255s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators4-10-data3] SKIPPED 2255s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators4-10-data4] SKIPPED 2255s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators5-None-data0] SKIPPED 2255s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators5-None-data1] SKIPPED 2255s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators5-None-data2] SKIPPED 2255s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators5-None-data3] SKIPPED 2255s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators5-None-data4] SKIPPED 2255s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators5-1-data0] SKIPPED 2255s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators5-1-data1] SKIPPED 2255s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators5-1-data2] SKIPPED 2255s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators5-1-data3] SKIPPED 2255s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators5-1-data4] SKIPPED 2255s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators5-2-data0] SKIPPED 2256s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators5-2-data1] SKIPPED 2256s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators5-2-data2] SKIPPED 2256s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators5-2-data3] SKIPPED 2256s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators5-2-data4] SKIPPED 2256s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators5-5-data0] SKIPPED 2256s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators5-5-data1] SKIPPED 2256s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators5-5-data2] SKIPPED 2256s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators5-5-data3] SKIPPED 2256s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators5-5-data4] SKIPPED 2256s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators5-10-data0] SKIPPED 2256s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators5-10-data1] SKIPPED 2256s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators5-10-data2] SKIPPED 2256s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators5-10-data3] SKIPPED 2256s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators5-10-data4] SKIPPED 2256s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators6-None-data0] SKIPPED 2256s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators6-None-data1] SKIPPED 2256s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators6-None-data2] SKIPPED 2256s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators6-None-data3] SKIPPED 2256s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators6-None-data4] SKIPPED 2256s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators6-1-data0] SKIPPED 2256s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators6-1-data1] SKIPPED 2256s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators6-1-data2] SKIPPED 2256s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators6-1-data3] SKIPPED 2256s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators6-1-data4] SKIPPED 2256s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators6-2-data0] SKIPPED 2256s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators6-2-data1] SKIPPED 2256s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators6-2-data2] SKIPPED 2256s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators6-2-data3] SKIPPED 2256s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators6-2-data4] SKIPPED 2256s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators6-5-data0] SKIPPED 2256s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators6-5-data1] SKIPPED 2256s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators6-5-data2] SKIPPED 2256s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators6-5-data3] SKIPPED 2256s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators6-5-data4] SKIPPED 2256s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators6-10-data0] SKIPPED 2256s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators6-10-data1] SKIPPED 2256s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators6-10-data2] SKIPPED 2256s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators6-10-data3] SKIPPED 2256s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators6-10-data4] SKIPPED 2256s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators7-None-data0] SKIPPED 2256s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators7-None-data1] SKIPPED 2256s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators7-None-data2] SKIPPED 2256s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators7-None-data3] SKIPPED 2256s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators7-None-data4] SKIPPED 2256s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators7-1-data0] SKIPPED 2256s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators7-1-data1] SKIPPED 2256s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators7-1-data2] SKIPPED 2256s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators7-1-data3] SKIPPED 2256s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators7-1-data4] SKIPPED 2257s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators7-2-data0] SKIPPED 2257s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators7-2-data1] SKIPPED 2257s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators7-2-data2] SKIPPED 2257s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators7-2-data3] SKIPPED 2257s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators7-2-data4] SKIPPED 2257s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators7-5-data0] SKIPPED 2257s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators7-5-data1] SKIPPED 2257s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators7-5-data2] SKIPPED 2257s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators7-5-data3] SKIPPED 2257s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators7-5-data4] SKIPPED 2257s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators7-10-data0] SKIPPED 2257s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators7-10-data1] SKIPPED 2257s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators7-10-data2] SKIPPED 2257s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators7-10-data3] SKIPPED 2257s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators7-10-data4] SKIPPED 2257s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators8-None-data0] SKIPPED 2257s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators8-None-data1] SKIPPED 2257s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators8-None-data2] SKIPPED 2257s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators8-None-data3] SKIPPED 2257s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators8-None-data4] SKIPPED 2257s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators8-1-data0] SKIPPED 2257s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators8-1-data1] SKIPPED 2257s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators8-1-data2] SKIPPED 2257s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators8-1-data3] SKIPPED 2257s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators8-1-data4] SKIPPED 2257s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators8-2-data0] SKIPPED 2257s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators8-2-data1] SKIPPED 2257s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators8-2-data2] SKIPPED 2257s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators8-2-data3] SKIPPED 2257s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators8-2-data4] SKIPPED 2257s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators8-5-data0] SKIPPED 2257s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators8-5-data1] SKIPPED 2257s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators8-5-data2] SKIPPED 2257s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators8-5-data3] SKIPPED 2257s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators8-5-data4] SKIPPED 2257s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators8-10-data0] SKIPPED 2257s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators8-10-data1] SKIPPED 2257s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators8-10-data2] SKIPPED 2257s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators8-10-data3] SKIPPED 2257s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_rolling_methods[False-False-True-arithmetic_numba_supported_operators8-10-data4] SKIPPED 2258s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_expanding_methods[False-True-True-arithmetic_numba_supported_operators0-data0] SKIPPED 2258s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_expanding_methods[False-True-True-arithmetic_numba_supported_operators0-data1] SKIPPED 2258s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_expanding_methods[False-True-True-arithmetic_numba_supported_operators1-data0] SKIPPED 2258s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_expanding_methods[False-True-True-arithmetic_numba_supported_operators1-data1] SKIPPED 2258s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_expanding_methods[False-True-True-arithmetic_numba_supported_operators2-data0] SKIPPED 2258s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_expanding_methods[False-True-True-arithmetic_numba_supported_operators2-data1] SKIPPED 2258s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_expanding_methods[False-True-True-arithmetic_numba_supported_operators3-data0] SKIPPED 2258s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_expanding_methods[False-True-True-arithmetic_numba_supported_operators3-data1] SKIPPED 2258s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_expanding_methods[False-True-True-arithmetic_numba_supported_operators4-data0] SKIPPED 2258s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_expanding_methods[False-True-True-arithmetic_numba_supported_operators4-data1] SKIPPED 2258s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_expanding_methods[False-True-True-arithmetic_numba_supported_operators5-data0] SKIPPED 2258s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_expanding_methods[False-True-True-arithmetic_numba_supported_operators5-data1] SKIPPED 2258s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_expanding_methods[False-True-True-arithmetic_numba_supported_operators6-data0] SKIPPED 2258s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_expanding_methods[False-True-True-arithmetic_numba_supported_operators6-data1] SKIPPED 2258s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_expanding_methods[False-True-True-arithmetic_numba_supported_operators7-data0] SKIPPED 2258s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_expanding_methods[False-True-True-arithmetic_numba_supported_operators7-data1] SKIPPED 2258s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_expanding_methods[False-True-True-arithmetic_numba_supported_operators8-data0] SKIPPED 2258s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_expanding_methods[False-True-True-arithmetic_numba_supported_operators8-data1] SKIPPED 2258s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_expanding_methods[False-False-True-arithmetic_numba_supported_operators0-data0] SKIPPED 2258s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_expanding_methods[False-False-True-arithmetic_numba_supported_operators0-data1] SKIPPED 2258s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_expanding_methods[False-False-True-arithmetic_numba_supported_operators1-data0] SKIPPED 2258s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_expanding_methods[False-False-True-arithmetic_numba_supported_operators1-data1] SKIPPED 2258s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_expanding_methods[False-False-True-arithmetic_numba_supported_operators2-data0] SKIPPED 2258s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_expanding_methods[False-False-True-arithmetic_numba_supported_operators2-data1] SKIPPED 2258s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_expanding_methods[False-False-True-arithmetic_numba_supported_operators3-data0] SKIPPED 2258s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_expanding_methods[False-False-True-arithmetic_numba_supported_operators3-data1] SKIPPED 2258s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_expanding_methods[False-False-True-arithmetic_numba_supported_operators4-data0] SKIPPED 2258s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_expanding_methods[False-False-True-arithmetic_numba_supported_operators4-data1] SKIPPED 2258s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_expanding_methods[False-False-True-arithmetic_numba_supported_operators5-data0] SKIPPED 2258s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_expanding_methods[False-False-True-arithmetic_numba_supported_operators5-data1] SKIPPED 2258s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_expanding_methods[False-False-True-arithmetic_numba_supported_operators6-data0] SKIPPED 2258s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_expanding_methods[False-False-True-arithmetic_numba_supported_operators6-data1] SKIPPED 2258s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_expanding_methods[False-False-True-arithmetic_numba_supported_operators7-data0] SKIPPED 2258s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_expanding_methods[False-False-True-arithmetic_numba_supported_operators7-data1] SKIPPED 2258s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_expanding_methods[False-False-True-arithmetic_numba_supported_operators8-data0] SKIPPED 2258s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_expanding_methods[False-False-True-arithmetic_numba_supported_operators8-data1] SKIPPED 2258s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_cache_apply[False-True-True-None-True] SKIPPED 2258s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_cache_apply[False-True-True-None-False] SKIPPED 2258s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_cache_apply[False-True-True-1-True] SKIPPED 2258s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_cache_apply[False-True-True-1-False] SKIPPED 2259s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_cache_apply[False-True-True-2-True] SKIPPED 2259s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_cache_apply[False-True-True-2-False] SKIPPED 2259s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_cache_apply[False-True-True-5-True] SKIPPED 2259s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_cache_apply[False-True-True-5-False] SKIPPED 2259s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_cache_apply[False-True-True-10-True] SKIPPED 2259s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_cache_apply[False-True-True-10-False] SKIPPED 2259s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_cache_apply[False-False-True-None-True] SKIPPED 2259s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_cache_apply[False-False-True-None-False] SKIPPED 2259s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_cache_apply[False-False-True-1-True] SKIPPED 2259s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_cache_apply[False-False-True-1-False] SKIPPED 2259s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_cache_apply[False-False-True-2-True] SKIPPED 2259s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_cache_apply[False-False-True-2-False] SKIPPED 2259s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_cache_apply[False-False-True-5-True] SKIPPED 2259s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_cache_apply[False-False-True-5-False] SKIPPED 2259s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_cache_apply[False-False-True-10-True] SKIPPED 2259s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_cache_apply[False-False-True-10-False] SKIPPED 2259s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_dont_cache_args[False-True-True-single-rolling-window_kwargs0] SKIPPED 2259s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_dont_cache_args[False-True-True-single-expanding-window_kwargs1] SKIPPED 2259s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_dont_cache_args[False-True-True-table-rolling-window_kwargs0] SKIPPED 2259s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_dont_cache_args[False-True-True-table-expanding-window_kwargs1] SKIPPED 2259s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_dont_cache_args[False-False-True-single-rolling-window_kwargs0] SKIPPED 2259s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_dont_cache_args[False-False-True-single-expanding-window_kwargs1] SKIPPED 2259s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_dont_cache_args[False-False-True-table-rolling-window_kwargs0] SKIPPED 2259s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_dont_cache_args[False-False-True-table-expanding-window_kwargs1] SKIPPED 2259s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_dont_cache_engine_kwargs SKIPPED 2259s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_invalid_engine[mean-None] SKIPPED 2259s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_invalid_engine[mean-groupby] SKIPPED 2259s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_invalid_engine[sum-None] SKIPPED 2259s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_invalid_engine[sum-groupby] SKIPPED 2259s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_invalid_engine_kwargs[mean-None] SKIPPED 2259s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_invalid_engine_kwargs[mean-groupby] SKIPPED 2259s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_invalid_engine_kwargs[sum-None] SKIPPED 2259s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_invalid_engine_kwargs[sum-groupby] SKIPPED 2259s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_cython_vs_numba[False-True-True-True-True-mean-None] SKIPPED 2259s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_cython_vs_numba[False-True-True-True-True-mean-groupby] SKIPPED 2259s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_cython_vs_numba[False-True-True-True-True-sum-None] SKIPPED 2259s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_cython_vs_numba[False-True-True-True-True-sum-groupby] SKIPPED 2259s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_cython_vs_numba[False-True-True-True-False-mean-None] SKIPPED 2259s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_cython_vs_numba[False-True-True-True-False-mean-groupby] SKIPPED 2259s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_cython_vs_numba[False-True-True-True-False-sum-None] SKIPPED 2259s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_cython_vs_numba[False-True-True-True-False-sum-groupby] SKIPPED 2259s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_cython_vs_numba[False-True-True-False-True-mean-None] SKIPPED 2259s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_cython_vs_numba[False-True-True-False-True-mean-groupby] SKIPPED 2260s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_cython_vs_numba[False-True-True-False-True-sum-None] SKIPPED 2260s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_cython_vs_numba[False-True-True-False-True-sum-groupby] SKIPPED 2260s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_cython_vs_numba[False-True-True-False-False-mean-None] SKIPPED 2260s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_cython_vs_numba[False-True-True-False-False-mean-groupby] SKIPPED 2260s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_cython_vs_numba[False-True-True-False-False-sum-None] SKIPPED 2260s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_cython_vs_numba[False-True-True-False-False-sum-groupby] SKIPPED 2260s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_cython_vs_numba[False-False-True-True-True-mean-None] SKIPPED 2260s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_cython_vs_numba[False-False-True-True-True-mean-groupby] SKIPPED 2260s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_cython_vs_numba[False-False-True-True-True-sum-None] SKIPPED 2260s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_cython_vs_numba[False-False-True-True-True-sum-groupby] SKIPPED 2260s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_cython_vs_numba[False-False-True-True-False-mean-None] SKIPPED 2260s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_cython_vs_numba[False-False-True-True-False-mean-groupby] SKIPPED 2260s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_cython_vs_numba[False-False-True-True-False-sum-None] SKIPPED 2260s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_cython_vs_numba[False-False-True-True-False-sum-groupby] SKIPPED 2260s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_cython_vs_numba[False-False-True-False-True-mean-None] SKIPPED 2260s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_cython_vs_numba[False-False-True-False-True-mean-groupby] SKIPPED 2260s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_cython_vs_numba[False-False-True-False-True-sum-None] SKIPPED 2260s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_cython_vs_numba[False-False-True-False-True-sum-groupby] SKIPPED 2260s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_cython_vs_numba[False-False-True-False-False-mean-None] SKIPPED 2260s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_cython_vs_numba[False-False-True-False-False-mean-groupby] SKIPPED 2260s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_cython_vs_numba[False-False-True-False-False-sum-None] SKIPPED 2260s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_cython_vs_numba[False-False-True-False-False-sum-groupby] SKIPPED 2260s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_cython_vs_numba_times[False-True-True-True-None] SKIPPED 2260s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_cython_vs_numba_times[False-True-True-True-groupby] SKIPPED 2260s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_cython_vs_numba_times[False-True-True-False-None] SKIPPED 2260s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_cython_vs_numba_times[False-True-True-False-groupby] SKIPPED 2260s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_cython_vs_numba_times[False-False-True-True-None] SKIPPED 2260s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_cython_vs_numba_times[False-False-True-True-groupby] SKIPPED 2260s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_cython_vs_numba_times[False-False-True-False-None] SKIPPED 2260s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_cython_vs_numba_times[False-False-True-False-groupby] SKIPPED 2260s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::test_use_global_config SKIPPED 2260s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::test_invalid_kwargs_nopython SKIPPED 2260s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::test_rolling_cov PASSED 2261s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::test_rolling_corr PASSED 2261s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::test_rolling_pairwise_cov_corr[cov] PASSED 2261s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::test_rolling_pairwise_cov_corr[corr] PASSED 2261s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::test_flex_binary_frame[corr] PASSED 2261s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::test_flex_binary_frame[cov] PASSED 2261s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::test_rolling_corr_with_zero_variance[0] PASSED 2261s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::test_rolling_corr_with_zero_variance[1] PASSED 2261s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::test_rolling_corr_with_zero_variance[2] PASSED 2261s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::test_rolling_corr_with_zero_variance[3] PASSED 2261s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::test_rolling_corr_with_zero_variance[4] PASSED 2261s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::test_rolling_corr_with_zero_variance[5] PASSED 2261s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::test_rolling_corr_with_zero_variance[6] PASSED 2261s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::test_corr_sanity PASSED 2261s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::test_rolling_cov_diff_length PASSED 2262s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::test_rolling_corr_diff_length PASSED 2262s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::test_rolling_functions_window_non_shrinkage_binary[0] PASSED 2262s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::test_rolling_functions_window_non_shrinkage_binary[1] PASSED 2262s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::test_moment_functions_zero_length_pairwise[0] PASSED 2262s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::test_moment_functions_zero_length_pairwise[1] PASSED 2262s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_flex[pairwise_frames0-0] PASSED 2262s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_flex[pairwise_frames0-1] PASSED 2262s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_flex[pairwise_frames1-0] PASSED 2262s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_flex[pairwise_frames1-1] PASSED 2262s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_flex[pairwise_frames2-0] PASSED 2262s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_flex[pairwise_frames2-1] PASSED 2262s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_flex[pairwise_frames3-0] PASSED 2262s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_flex[pairwise_frames3-1] PASSED 2262s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_flex[pairwise_frames4-0] PASSED 2262s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_flex[pairwise_frames4-1] PASSED 2262s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_flex[pairwise_frames5-0] PASSED 2262s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_flex[pairwise_frames5-1] PASSED 2262s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_flex[pairwise_frames6-0] PASSED 2262s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_flex[pairwise_frames6-1] PASSED 2262s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_flex[pairwise_frames7-0] PASSED 2262s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_flex[pairwise_frames7-1] PASSED 2262s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_flex[pairwise_frames8-0] PASSED 2262s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_flex[pairwise_frames8-1] PASSED 2263s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames0-0] PASSED 2263s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames0-1] PASSED 2263s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames0-2] PASSED 2263s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames0-3] PASSED 2263s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames0-4] PASSED 2263s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames0-5] PASSED 2263s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames1-0] PASSED 2263s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames1-1] PASSED 2263s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames1-2] PASSED 2263s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames1-3] PASSED 2263s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames1-4] PASSED 2263s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames1-5] PASSED 2263s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames2-0] PASSED 2263s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames2-1] PASSED 2263s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames2-2] PASSED 2263s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames2-3] PASSED 2263s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames2-4] PASSED 2263s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames2-5] PASSED 2263s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames3-0] PASSED 2263s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames3-1] PASSED 2263s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames3-2] PASSED 2264s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames3-3] PASSED 2264s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames3-4] PASSED 2264s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames3-5] PASSED 2264s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames4-0] PASSED 2264s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames4-1] PASSED 2264s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames4-2] PASSED 2264s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames4-3] PASSED 2264s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames4-4] PASSED 2264s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames4-5] PASSED 2264s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames5-0] PASSED 2264s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames5-1] PASSED 2265s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames5-2] PASSED 2265s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames5-3] PASSED 2265s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames5-4] PASSED 2265s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames5-5] PASSED 2265s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames6-0] PASSED 2265s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames6-1] PASSED 2265s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames6-2] PASSED 2265s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames6-3] PASSED 2265s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames6-4] PASSED 2265s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames6-5] PASSED 2265s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames7-0] PASSED 2265s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames7-1] PASSED 2265s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames7-2] PASSED 2265s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames7-3] PASSED 2265s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames7-4] PASSED 2265s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames7-5] PASSED 2265s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames8-0] PASSED 2265s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames8-1] PASSED 2265s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames8-2] PASSED 2266s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames8-3] PASSED 2266s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames8-4] PASSED 2266s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames8-5] PASSED 2266s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames0-0] PASSED 2266s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames0-1] PASSED 2266s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames0-2] PASSED 2266s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames0-3] PASSED 2266s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames0-4] PASSED 2266s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames0-5] PASSED 2266s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames1-0] PASSED 2266s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames1-1] PASSED 2266s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames1-2] PASSED 2266s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames1-3] PASSED 2266s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames1-4] PASSED 2266s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames1-5] PASSED 2267s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames2-0] PASSED 2267s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames2-1] PASSED 2267s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames2-2] PASSED 2267s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames2-3] PASSED 2267s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames2-4] PASSED 2267s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames2-5] PASSED 2267s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames3-0] PASSED 2267s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames3-1] PASSED 2267s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames3-2] PASSED 2267s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames3-3] PASSED 2268s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames3-4] PASSED 2268s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames3-5] PASSED 2268s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames4-0] PASSED 2268s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames4-1] PASSED 2268s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames4-2] PASSED 2268s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames4-3] PASSED 2268s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames4-4] PASSED 2268s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames4-5] PASSED 2268s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames5-0] PASSED 2268s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames5-1] PASSED 2268s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames5-2] PASSED 2268s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames5-3] PASSED 2268s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames5-4] PASSED 2268s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames5-5] PASSED 2268s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames6-0] PASSED 2268s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames6-1] PASSED 2268s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames6-2] PASSED 2268s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames6-3] PASSED 2268s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames6-4] PASSED 2268s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames6-5] PASSED 2269s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames7-0] PASSED 2269s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames7-1] PASSED 2269s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames7-2] PASSED 2269s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames7-3] PASSED 2269s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames7-4] PASSED 2269s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames7-5] PASSED 2269s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames8-0] PASSED 2269s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames8-1] PASSED 2269s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames8-2] PASSED 2269s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames8-3] PASSED 2269s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames8-4] PASSED 2269s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames8-5] PASSED 2269s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames0-0] PASSED 2269s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames0-1] PASSED 2269s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames0-2] PASSED 2269s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames0-3] XPASS 2269s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames0-4] PASSED 2270s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames0-5] PASSED 2270s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames1-0] PASSED 2270s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames1-1] PASSED 2270s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames1-2] PASSED 2270s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames1-3] XPASS 2270s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames1-4] PASSED 2270s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames1-5] PASSED 2270s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames2-0] PASSED 2270s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames2-1] PASSED 2270s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames2-2] PASSED 2270s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames2-3] XPASS 2270s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames2-4] PASSED 2270s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames2-5] PASSED 2270s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames3-0] PASSED 2270s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames3-1] PASSED 2270s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames3-2] PASSED 2270s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames3-3] XPASS 2270s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames3-4] PASSED 2270s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames3-5] PASSED 2271s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames4-0] PASSED 2271s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames4-1] PASSED 2271s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames4-2] PASSED 2271s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames4-3] XPASS 2271s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames4-4] PASSED 2271s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames4-5] PASSED 2271s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames5-0] PASSED 2271s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames5-1] PASSED 2271s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames5-2] PASSED 2271s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames5-3] XPASS 2272s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames5-4] PASSED 2272s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames5-5] PASSED 2272s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames6-0] PASSED 2272s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames6-1] PASSED 2272s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames6-2] PASSED 2272s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames6-3] XPASS 2272s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames6-4] PASSED 2272s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames6-5] PASSED 2272s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames7-0] PASSED 2273s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames7-1] PASSED 2273s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames7-2] PASSED 2273s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames7-3] XPASS 2273s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames7-4] PASSED 2273s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames7-5] PASSED 2273s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames8-0] PASSED 2273s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames8-1] PASSED 2273s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames8-2] PASSED 2273s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames8-3] XPASS 2273s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames8-4] PASSED 2273s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames8-5] PASSED 2273s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames0-0] PASSED 2274s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames0-1] PASSED 2274s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames0-2] PASSED 2274s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames0-3] PASSED 2274s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames0-4] PASSED 2274s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames0-5] PASSED 2274s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames1-0] PASSED 2274s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames1-1] PASSED 2274s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames1-2] PASSED 2274s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames1-3] PASSED 2274s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames1-4] PASSED 2274s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames1-5] PASSED 2274s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames2-0] PASSED 2274s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames2-1] PASSED 2274s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames2-2] PASSED 2274s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames2-3] PASSED 2274s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames2-4] PASSED 2274s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames2-5] PASSED 2274s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames3-0] PASSED 2274s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames3-1] PASSED 2274s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames3-2] PASSED 2274s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames3-3] PASSED 2274s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames3-4] PASSED 2275s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames3-5] PASSED 2275s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames4-0] PASSED 2275s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames4-1] PASSED 2275s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames4-2] PASSED 2275s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames4-3] PASSED 2275s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames4-4] PASSED 2275s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames4-5] PASSED 2275s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames5-0] PASSED 2275s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames5-1] PASSED 2275s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames5-2] PASSED 2275s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames5-3] PASSED 2275s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames5-4] PASSED 2275s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames5-5] PASSED 2275s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames6-0] PASSED 2275s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames6-1] PASSED 2275s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames6-2] PASSED 2275s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames6-3] PASSED 2275s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames6-4] PASSED 2275s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames6-5] PASSED 2275s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames7-0] PASSED 2275s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames7-1] PASSED 2275s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames7-2] PASSED 2275s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames7-3] PASSED 2275s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames7-4] PASSED 2276s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames7-5] PASSED 2276s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames8-0] PASSED 2276s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames8-1] PASSED 2276s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames8-2] PASSED 2276s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames8-3] PASSED 2276s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames8-4] PASSED 2276s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames8-5] PASSED 2276s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames0-0] PASSED 2276s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames0-1] PASSED 2276s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames0-2] PASSED 2276s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames0-3] PASSED 2276s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames0-4] PASSED 2276s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames0-5] PASSED 2276s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames1-0] PASSED 2276s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames1-1] PASSED 2276s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames1-2] PASSED 2276s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames1-3] PASSED 2276s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames1-4] PASSED 2276s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames1-5] PASSED 2276s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames2-0] PASSED 2276s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames2-1] PASSED 2276s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames2-2] PASSED 2276s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames2-3] PASSED 2276s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames2-4] PASSED 2276s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames2-5] PASSED 2276s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames3-0] PASSED 2276s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames3-1] PASSED 2276s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames3-2] PASSED 2277s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames3-3] PASSED 2277s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames3-4] PASSED 2277s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames3-5] PASSED 2277s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames4-0] PASSED 2277s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames4-1] PASSED 2277s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames4-2] PASSED 2277s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames4-3] PASSED 2277s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames4-4] PASSED 2277s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames4-5] PASSED 2277s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames5-0] PASSED 2277s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames5-1] PASSED 2277s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames5-2] PASSED 2277s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames5-3] PASSED 2277s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames5-4] PASSED 2277s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames5-5] PASSED 2277s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames6-0] PASSED 2277s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames6-1] PASSED 2277s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames6-2] PASSED 2277s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames6-3] PASSED 2277s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames6-4] PASSED 2277s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames6-5] PASSED 2277s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames7-0] PASSED 2277s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames7-1] PASSED 2278s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames7-2] PASSED 2278s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames7-3] PASSED 2278s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames7-4] PASSED 2278s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames7-5] PASSED 2278s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames8-0] PASSED 2278s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames8-1] PASSED 2278s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames8-2] PASSED 2278s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames8-3] PASSED 2279s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames8-4] PASSED 2279s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames8-5] PASSED 2279s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_corr_freq_memory_error PASSED 2279s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_cov_mulittindex PASSED 2279s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_multindex_columns_pairwise_func PASSED 2279s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_doc_string PASSED 2279s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_constructor[DataFrame] PASSED 2279s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_constructor[Series] PASSED 2280s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_invalid_constructor[DataFrame-2.0] PASSED 2280s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_invalid_constructor[DataFrame-foo] PASSED 2280s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_invalid_constructor[DataFrame-w2] PASSED 2280s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_invalid_constructor[Series-2.0] PASSED 2280s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_invalid_constructor[Series-foo] PASSED 2280s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_invalid_constructor[Series-w2] PASSED 2280s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_freq_window_not_implemented[window0] PASSED 2280s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_freq_window_not_implemented[window1] PASSED 2280s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_freq_window_not_implemented[3D] PASSED 2280s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_freq_window_not_implemented[window3] PASSED 2280s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_step_not_implemented_for_cov_corr[cov] PASSED 2281s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_step_not_implemented_for_cov_corr[corr] PASSED 2281s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_constructor_with_timedelta_window[window0] PASSED 2281s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_constructor_with_timedelta_window[window1] PASSED 2281s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_constructor_timedelta_window_and_minperiods[True-window0] PASSED 2281s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_constructor_timedelta_window_and_minperiods[True-window1] PASSED 2281s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_constructor_timedelta_window_and_minperiods[True-3D] PASSED 2281s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_constructor_timedelta_window_and_minperiods[False-window0] PASSED 2281s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_constructor_timedelta_window_and_minperiods[False-window1] PASSED 2281s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_constructor_timedelta_window_and_minperiods[False-3D] PASSED 2281s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[left-sum] PASSED 2281s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[left-mean] PASSED 2281s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[left-median] PASSED 2281s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[left-max] PASSED 2281s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[left-min] PASSED 2281s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[left-var] PASSED 2281s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[left-std] PASSED 2281s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[left-kurt] PASSED 2281s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[left-skew] PASSED 2282s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[left-count] PASSED 2282s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[left-sem] PASSED 2282s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[right-sum] PASSED 2282s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[right-mean] PASSED 2282s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[right-median] PASSED 2282s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[right-max] PASSED 2282s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[right-min] PASSED 2282s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[right-var] PASSED 2282s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[right-std] PASSED 2282s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[right-kurt] PASSED 2282s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[right-skew] PASSED 2282s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[right-count] PASSED 2282s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[right-sem] PASSED 2282s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[both-sum] PASSED 2282s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[both-mean] PASSED 2283s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[both-median] PASSED 2283s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[both-max] PASSED 2283s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[both-min] PASSED 2283s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[both-var] PASSED 2283s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[both-std] PASSED 2283s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[both-kurt] PASSED 2283s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[both-skew] PASSED 2283s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[both-count] PASSED 2283s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[both-sem] PASSED 2283s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[neither-sum] PASSED 2283s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[neither-mean] PASSED 2283s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[neither-median] PASSED 2283s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[neither-max] PASSED 2283s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[neither-min] PASSED 2283s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[neither-var] PASSED 2283s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[neither-std] PASSED 2283s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[neither-kurt] PASSED 2283s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[neither-skew] PASSED 2283s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[neither-count] PASSED 2284s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[neither-sem] PASSED 2284s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[sum-both-window_selections0] PASSED 2284s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[sum-left-window_selections1] PASSED 2284s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[sum-right-window_selections2] PASSED 2284s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[sum-neither-window_selections3] PASSED 2284s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[mean-both-window_selections0] PASSED 2284s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[mean-left-window_selections1] PASSED 2284s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[mean-right-window_selections2] PASSED 2284s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[mean-neither-window_selections3] PASSED 2284s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[median-both-window_selections0] PASSED 2284s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[median-left-window_selections1] PASSED 2284s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[median-right-window_selections2] PASSED 2284s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[median-neither-window_selections3] PASSED 2284s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[max-both-window_selections0] PASSED 2284s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[max-left-window_selections1] PASSED 2284s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[max-right-window_selections2] PASSED 2285s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[max-neither-window_selections3] PASSED 2285s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[min-both-window_selections0] PASSED 2285s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[min-left-window_selections1] PASSED 2285s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[min-right-window_selections2] PASSED 2285s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[min-neither-window_selections3] PASSED 2285s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[var-both-window_selections0] PASSED 2285s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[var-left-window_selections1] PASSED 2285s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[var-right-window_selections2] PASSED 2285s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[var-neither-window_selections3] PASSED 2285s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[std-both-window_selections0] PASSED 2285s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[std-left-window_selections1] PASSED 2285s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[std-right-window_selections2] PASSED 2285s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[std-neither-window_selections3] PASSED 2285s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[kurt-both-window_selections0] PASSED 2286s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[kurt-left-window_selections1] PASSED 2286s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[kurt-right-window_selections2] PASSED 2286s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[kurt-neither-window_selections3] PASSED 2286s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[skew-both-window_selections0] PASSED 2286s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[skew-left-window_selections1] PASSED 2286s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[skew-right-window_selections2] PASSED 2286s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[skew-neither-window_selections3] PASSED 2287s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[count-both-window_selections0] PASSED 2287s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[count-left-window_selections1] PASSED 2287s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[count-right-window_selections2] PASSED 2287s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[count-neither-window_selections3] PASSED 2287s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[sem-both-window_selections0] PASSED 2287s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[sem-left-window_selections1] PASSED 2287s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[sem-right-window_selections2] PASSED 2288s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[sem-neither-window_selections3] PASSED 2288s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_offset_covers_all[DataFrame-3s-right-expected0] PASSED 2288s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_offset_covers_all[DataFrame-3s-both-expected1] PASSED 2288s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_offset_covers_all[DataFrame-3s-left-expected2] PASSED 2288s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_offset_covers_all[DataFrame-3s-neither-expected3] PASSED 2288s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_offset_covers_all[DataFrame-2s-right-expected4] PASSED 2288s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_offset_covers_all[DataFrame-2s-both-expected5] PASSED 2288s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_offset_covers_all[DataFrame-2s-left-expected6] PASSED 2288s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_offset_covers_all[DataFrame-2s-neither-expected7] PASSED 2288s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_offset_covers_all[Series-3s-right-expected0] PASSED 2288s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_offset_covers_all[Series-3s-both-expected1] PASSED 2288s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_offset_covers_all[Series-3s-left-expected2] PASSED 2288s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_offset_covers_all[Series-3s-neither-expected3] PASSED 2288s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_offset_covers_all[Series-2s-right-expected4] PASSED 2288s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_offset_covers_all[Series-2s-both-expected5] PASSED 2288s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_offset_covers_all[Series-2s-left-expected6] PASSED 2288s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_offset_covers_all[Series-2s-neither-expected7] PASSED 2288s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_nonunique_index_centering[DataFrame-2D-right-expected0] PASSED 2288s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_nonunique_index_centering[DataFrame-2D-left-expected1] PASSED 2288s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_nonunique_index_centering[DataFrame-2D-both-expected2] PASSED 2288s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_nonunique_index_centering[DataFrame-2D-neither-expected3] PASSED 2288s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_nonunique_index_centering[Series-2D-right-expected0] PASSED 2288s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_nonunique_index_centering[Series-2D-left-expected1] PASSED 2288s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_nonunique_index_centering[Series-2D-both-expected2] PASSED 2288s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_nonunique_index_centering[Series-2D-neither-expected3] PASSED 2288s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_even_number_window_alignment PASSED 2289s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed_binary_col[True-None] PASSED 2289s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed_binary_col[True-1] PASSED 2289s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed_binary_col[True-2] PASSED 2289s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed_binary_col[True-5] PASSED 2289s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed_binary_col[True-10] PASSED 2289s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed_binary_col[False-None] PASSED 2289s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed_binary_col[False-1] PASSED 2289s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed_binary_col[False-2] PASSED 2289s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed_binary_col[False-5] PASSED 2289s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed_binary_col[False-10] PASSED 2289s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_empty[sum-neither] PASSED 2289s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_empty[sum-left] PASSED 2289s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_empty[mean-neither] PASSED 2289s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_empty[mean-left] PASSED 2289s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_empty[median-neither] PASSED 2289s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_empty[median-left] PASSED 2289s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_empty[max-neither] PASSED 2289s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_empty[max-left] PASSED 2289s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_empty[min-neither] PASSED 2289s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_empty[min-left] PASSED 2289s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_empty[var-neither] PASSED 2289s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_empty[var-left] PASSED 2289s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_empty[std-neither] PASSED 2289s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_empty[std-left] PASSED 2289s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_empty[kurt-neither] PASSED 2289s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_empty[kurt-left] PASSED 2289s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_empty[skew-neither] PASSED 2289s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_empty[skew-left] PASSED 2289s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_empty[count-neither] PASSED 2289s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_empty[count-left] PASSED 2289s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_empty[sem-neither] PASSED 2289s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_empty[sem-left] PASSED 2290s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_one_entry[min] PASSED 2290s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_one_entry[max] PASSED 2290s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_one_entry_groupby[min] PASSED 2290s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_one_entry_groupby[max] PASSED 2290s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_min_max_datetime[min-right-expected0-int] PASSED 2290s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_min_max_datetime[min-right-expected0-float] PASSED 2290s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_min_max_datetime[min-both-expected1-int] PASSED 2290s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_min_max_datetime[min-both-expected1-float] PASSED 2290s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_min_max_datetime[min-neither-expected2-int] PASSED 2290s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_min_max_datetime[min-neither-expected2-float] PASSED 2290s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_min_max_datetime[min-left-expected3-int] PASSED 2290s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_min_max_datetime[min-left-expected3-float] PASSED 2290s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_min_max_datetime[max-right-expected4-int] PASSED 2290s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_min_max_datetime[max-right-expected4-float] PASSED 2290s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_min_max_datetime[max-both-expected5-int] PASSED 2290s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_min_max_datetime[max-both-expected5-float] PASSED 2290s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_min_max_datetime[max-neither-expected6-int] PASSED 2290s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_min_max_datetime[max-neither-expected6-float] PASSED 2290s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_min_max_datetime[max-left-expected7-int] PASSED 2290s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_min_max_datetime[max-left-expected7-float] PASSED 2290s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_uneven PASSED 2290s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_min_max_minp[min-right-expected0] PASSED 2290s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_min_max_minp[min-both-expected1] PASSED 2290s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_min_max_minp[min-neither-expected2] PASSED 2290s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_min_max_minp[min-left-expected3] PASSED 2291s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_min_max_minp[max-right-expected4] PASSED 2291s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_min_max_minp[max-both-expected5] PASSED 2291s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_min_max_minp[max-neither-expected6] PASSED 2291s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_min_max_minp[max-left-expected7] PASSED 2291s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_median_quantile[right-expected0] PASSED 2291s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_median_quantile[both-expected1] PASSED 2291s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_median_quantile[neither-expected2] PASSED 2291s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_median_quantile[left-expected3] PASSED 2291s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::tests_empty_df_rolling[1s] PASSED 2291s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::tests_empty_df_rolling[1] PASSED 2291s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_empty_window_median_quantile PASSED 2291s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_missing_minp_zero PASSED 2291s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_missing_minp_zero_variable PASSED 2291s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_multi_index_names PASSED 2291s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_axis_sum[axis=0] PASSED 2291s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_axis_sum[axis=1] PASSED 2291s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_axis_sum[axis='index'] PASSED 2292s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_axis_sum[axis='columns'] PASSED 2292s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_axis_count[axis=0] PASSED 2292s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_axis_count[axis=1] PASSED 2292s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_axis_count[axis='index'] PASSED 2292s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_axis_count[axis='columns'] PASSED 2292s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_readonly_array PASSED 2293s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis=0-None] PASSED 2293s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis=0-'UTC'] PASSED 2293s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis=0-'US/Eastern'] PASSED 2293s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis=0-'Asia/Tokyo'] PASSED 2293s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis=0-'dateutil/US/Pacific'] PASSED 2293s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis=0-'dateutil/Asia/Singapore'] PASSED 2293s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis=0-'+01:15'] PASSED 2293s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis=0-'-02:15'] PASSED 2294s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis=0-'UTC+01:15'] PASSED 2294s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis=0-'UTC-02:15'] PASSED 2294s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis=0-tzutc()] PASSED 2294s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis=0-tzlocal()] PASSED 2294s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis=0-pytz.FixedOffset(300)] PASSED 2294s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis=0-] PASSED 2294s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis=0-pytz.FixedOffset(-300)] PASSED 2295s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis=0-datetime.timezone.utc] PASSED 2295s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis=0-datetime.timezone(datetime.timedelta(seconds=3600))] PASSED 2295s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis=0-datetime.timezone(datetime.timedelta(days=-1, seconds=82800), 'foo')] PASSED 2295s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis=0-zoneinfo.ZoneInfo(key='US/Pacific')] PASSED 2295s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis=0-zoneinfo.ZoneInfo(key='UTC')] PASSED 2296s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis=1-None] PASSED 2296s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis=1-'UTC'] PASSED 2296s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis=1-'US/Eastern'] PASSED 2296s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis=1-'Asia/Tokyo'] PASSED 2297s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis=1-'dateutil/US/Pacific'] PASSED 2297s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis=1-'dateutil/Asia/Singapore'] PASSED 2297s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis=1-'+01:15'] PASSED 2297s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis=1-'-02:15'] PASSED 2297s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis=1-'UTC+01:15'] PASSED 2297s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis=1-'UTC-02:15'] PASSED 2297s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis=1-tzutc()] PASSED 2297s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis=1-tzlocal()] PASSED 2297s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis=1-pytz.FixedOffset(300)] PASSED 2298s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis=1-] PASSED 2298s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis=1-pytz.FixedOffset(-300)] PASSED 2298s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis=1-datetime.timezone.utc] PASSED 2298s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis=1-datetime.timezone(datetime.timedelta(seconds=3600))] PASSED 2298s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis=1-datetime.timezone(datetime.timedelta(days=-1, seconds=82800), 'foo')] PASSED 2298s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis=1-zoneinfo.ZoneInfo(key='US/Pacific')] PASSED 2298s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis=1-zoneinfo.ZoneInfo(key='UTC')] PASSED 2298s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis='index'-None] PASSED 2298s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis='index'-'UTC'] PASSED 2299s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis='index'-'US/Eastern'] PASSED 2299s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis='index'-'Asia/Tokyo'] PASSED 2299s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis='index'-'dateutil/US/Pacific'] PASSED 2299s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis='index'-'dateutil/Asia/Singapore'] PASSED 2299s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis='index'-'+01:15'] PASSED 2299s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis='index'-'-02:15'] PASSED 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis='index'-'UTC+01:15'] PASSED 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis='index'-'UTC-02:15'] PASSED 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis='index'-tzutc()] PASSED 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis='index'-tzlocal()] PASSED 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis='index'-pytz.FixedOffset(300)] PASSED 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis='index'-] PASSED 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis='index'-pytz.FixedOffset(-300)] PASSED 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis='index'-datetime.timezone.utc] PASSED 2301s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis='index'-datetime.timezone(datetime.timedelta(seconds=3600))] PASSED 2301s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis='index'-datetime.timezone(datetime.timedelta(days=-1, seconds=82800), 'foo')] PASSED 2301s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis='index'-zoneinfo.ZoneInfo(key='US/Pacific')] PASSED 2301s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis='index'-zoneinfo.ZoneInfo(key='UTC')] PASSED 2301s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis='columns'-None] PASSED 2301s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis='columns'-'UTC'] PASSED 2301s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis='columns'-'US/Eastern'] PASSED 2301s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis='columns'-'Asia/Tokyo'] PASSED 2302s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis='columns'-'dateutil/US/Pacific'] PASSED 2302s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis='columns'-'dateutil/Asia/Singapore'] PASSED 2302s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis='columns'-'+01:15'] PASSED 2302s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis='columns'-'-02:15'] PASSED 2302s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis='columns'-'UTC+01:15'] PASSED 2302s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis='columns'-'UTC-02:15'] PASSED 2302s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis='columns'-tzutc()] PASSED 2303s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis='columns'-tzlocal()] PASSED 2303s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis='columns'-pytz.FixedOffset(300)] PASSED 2303s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis='columns'-] PASSED 2303s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis='columns'-pytz.FixedOffset(-300)] PASSED 2303s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis='columns'-datetime.timezone.utc] PASSED 2303s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis='columns'-datetime.timezone(datetime.timedelta(seconds=3600))] PASSED 2303s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis='columns'-datetime.timezone(datetime.timedelta(days=-1, seconds=82800), 'foo')] PASSED 2303s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis='columns'-zoneinfo.ZoneInfo(key='US/Pacific')] PASSED 2304s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis='columns'-zoneinfo.ZoneInfo(key='UTC')] PASSED 2304s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_window_as_string[True] PASSED 2304s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_window_as_string[False] PASSED 2304s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_min_periods1 PASSED 2304s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_count_with_min_periods[DataFrame] PASSED 2304s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_count_with_min_periods[Series] PASSED 2304s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_count_default_min_periods_with_null_values[DataFrame] PASSED 2304s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_count_default_min_periods_with_null_values[Series] PASSED 2304s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_iter_rolling_dataframe[df0-expected0-3-None] PASSED 2304s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_iter_rolling_dataframe[df1-expected1-2-1] PASSED 2304s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_iter_rolling_dataframe[df2-expected2-2-2] PASSED 2304s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_iter_rolling_dataframe[df3-expected3-1-1] PASSED 2304s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_iter_rolling_dataframe[df4-expected4-1-0] PASSED 2304s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_iter_rolling_dataframe[df5-expected5-2-None] PASSED 2304s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_iter_rolling_dataframe[df6-expected6-2-1] PASSED 2304s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_iter_rolling_dataframe[df7-expected7-2-None] PASSED 2304s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_iter_rolling_dataframe[df8-expected8-3-2] PASSED 2304s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_iter_rolling_on_dataframe[expected0-2D] PASSED 2304s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_iter_rolling_on_dataframe[expected1-3D] PASSED 2304s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_iter_rolling_on_dataframe[expected2-1D] PASSED 2304s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_iter_rolling_on_dataframe_unordered PASSED 2304s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_iter_rolling_series[ser0-expected0-3-None] PASSED 2304s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_iter_rolling_series[ser1-expected1-3-1] PASSED 2304s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_iter_rolling_series[ser2-expected2-2-1] PASSED 2304s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_iter_rolling_series[ser3-expected3-2-2] PASSED 2304s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_iter_rolling_series[ser4-expected4-1-0] PASSED 2304s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_iter_rolling_series[ser5-expected5-1-1] PASSED 2304s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_iter_rolling_series[ser6-expected6-2-0] PASSED 2304s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_iter_rolling_series[ser7-expected7-2-1] PASSED 2304s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_iter_rolling_datetime[expected0-expected_index0-1D] PASSED 2304s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_iter_rolling_datetime[expected1-expected_index1-2D] PASSED 2304s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_iter_rolling_datetime[expected2-expected_index2-3D] PASSED 2304s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_positional_argument[True-grouping0-_index0] PASSED 2304s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_positional_argument[True-grouping1-_index1] PASSED 2305s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_positional_argument[False-grouping0-_index0] PASSED 2305s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_positional_argument[False-grouping1-_index1] PASSED 2305s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_numerical_accuracy_kahan_mean[0.0] PASSED 2305s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_numerical_accuracy_kahan_mean[2.0] PASSED 2305s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_numerical_accuracy_kahan_sum PASSED 2305s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_numerical_accuracy_jump PASSED 2305s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_numerical_accuracy_small_values PASSED 2305s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_numerical_too_large_numbers PASSED 2305s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_mixed_dtypes_axis_1[sum-2.0] PASSED 2305s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_mixed_dtypes_axis_1[max-1.0] PASSED 2305s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_mixed_dtypes_axis_1[min-1.0] PASSED 2305s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_mixed_dtypes_axis_1[mean-1.0] PASSED 2305s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_mixed_dtypes_axis_1[median-1.0] PASSED 2305s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_axis_one_with_nan PASSED 2306s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_axis_1_non_numeric_dtypes[test] PASSED 2306s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_axis_1_non_numeric_dtypes[value1] PASSED 2306s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_axis_1_non_numeric_dtypes[value2] PASSED 2306s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_on_df_transposed PASSED 2306s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_period_index[min-values0-index0-2T] PASSED 2306s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_period_index[min-values0-index1-1h] PASSED 2306s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_period_index[max-values1-index0-2T] PASSED 2306s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_period_index[max-values1-index1-1h] PASSED 2306s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_period_index[sum-values2-index0-2T] PASSED 2306s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_period_index[sum-values2-index1-1h] PASSED 2306s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_sem[DataFrame] PASSED 2306s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_sem[Series] PASSED 2306s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_var_numerical_issues[var-1-values0] XPASS 2306s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_var_numerical_issues[std-1-values1] XPASS 2306s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_var_numerical_issues[var-2-values2] XPASS 2306s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_var_numerical_issues[std-2-values3] XPASS 2306s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_timeoffset_as_window_parameter_for_corr PASSED 2306s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_decreasing_indices[var] PASSED 2306s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_decreasing_indices[sum] PASSED 2306s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_decreasing_indices[mean] PASSED 2306s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_decreasing_indices[skew] PASSED 2306s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_decreasing_indices[kurt] PASSED 2306s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_decreasing_indices[min] PASSED 2306s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_decreasing_indices[max] PASSED 2306s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_decreasing_indices_centered[DataFrame-2s-right-expected0] PASSED 2306s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_decreasing_indices_centered[DataFrame-2s-left-expected1] PASSED 2307s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_decreasing_indices_centered[DataFrame-2s-both-expected2] PASSED 2307s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_decreasing_indices_centered[DataFrame-2s-neither-expected3] PASSED 2307s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_decreasing_indices_centered[DataFrame-3s-right-expected4] PASSED 2307s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_decreasing_indices_centered[DataFrame-3s-left-expected5] PASSED 2307s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_decreasing_indices_centered[DataFrame-3s-both-expected6] PASSED 2307s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_decreasing_indices_centered[DataFrame-3s-neither-expected7] PASSED 2307s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_decreasing_indices_centered[Series-2s-right-expected0] PASSED 2307s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_decreasing_indices_centered[Series-2s-left-expected1] PASSED 2307s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_decreasing_indices_centered[Series-2s-both-expected2] PASSED 2307s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_decreasing_indices_centered[Series-2s-neither-expected3] PASSED 2307s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_decreasing_indices_centered[Series-3s-right-expected4] PASSED 2307s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_decreasing_indices_centered[Series-3s-left-expected5] PASSED 2307s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_decreasing_indices_centered[Series-3s-both-expected6] PASSED 2307s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_decreasing_indices_centered[Series-3s-neither-expected7] PASSED 2307s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_center_nanosecond_resolution[left-DataFrame-1ns-expected0] PASSED 2307s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_center_nanosecond_resolution[left-DataFrame-3ns-expected1] PASSED 2307s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_center_nanosecond_resolution[left-Series-1ns-expected0] PASSED 2307s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_center_nanosecond_resolution[left-Series-3ns-expected1] PASSED 2307s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_center_nanosecond_resolution[right-DataFrame-1ns-expected0] PASSED 2307s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_center_nanosecond_resolution[right-DataFrame-3ns-expected1] PASSED 2307s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_center_nanosecond_resolution[right-Series-1ns-expected0] PASSED 2307s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_center_nanosecond_resolution[right-Series-3ns-expected1] PASSED 2307s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_center_nanosecond_resolution[both-DataFrame-1ns-expected0] PASSED 2307s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_center_nanosecond_resolution[both-DataFrame-3ns-expected1] PASSED 2307s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_center_nanosecond_resolution[both-Series-1ns-expected0] PASSED 2307s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_center_nanosecond_resolution[both-Series-3ns-expected1] PASSED 2308s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_center_nanosecond_resolution[neither-DataFrame-1ns-expected0] PASSED 2308s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_center_nanosecond_resolution[neither-DataFrame-3ns-expected1] PASSED 2308s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_center_nanosecond_resolution[neither-Series-1ns-expected0] PASSED 2308s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_center_nanosecond_resolution[neither-Series-3ns-expected1] PASSED 2308s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_non_monotonic[var-expected0] PASSED 2308s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_non_monotonic[mean-expected1] PASSED 2308s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_non_monotonic[sum-expected2] PASSED 2308s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_non_monotonic[skew-expected3] PASSED 2308s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_non_monotonic[kurt-expected4] PASSED 2308s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_corr_timedelta_index[index0-2] PASSED 2308s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_corr_timedelta_index[index1-2D] PASSED 2308s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_groupby_rolling_nan_included PASSED 2308s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_skew_kurt_numerical_stability[skew] PASSED 2308s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_skew_kurt_numerical_stability[kurt] PASSED 2308s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_skew_kurt_large_value_range[skew-values0] PASSED 2308s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_skew_kurt_large_value_range[kurt-values1] PASSED 2308s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_invalid_method PASSED 2308s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_descending_date_order_with_offset[DataFrame-1] PASSED 2308s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_descending_date_order_with_offset[DataFrame-1d] PASSED 2308s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_descending_date_order_with_offset[Series-1] PASSED 2308s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_descending_date_order_with_offset[Series-1d] PASSED 2308s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_var_floating_artifact_precision PASSED 2308s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_std_small_values PASSED 2308s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_mean_all_nan_window_floating_artifacts[1-exp_values0] PASSED 2308s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_mean_all_nan_window_floating_artifacts[2-exp_values1] PASSED 2308s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_sum_all_nan_window_floating_artifacts PASSED 2308s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_zero_window PASSED 2309s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_float_dtype[float] PASSED 2309s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_float_dtype[float32] PASSED 2309s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_float_dtype[float64] PASSED 2309s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_numeric_dtypes PASSED 2309s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-True-True-min-1] PASSED 2309s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-True-True-min-3] PASSED 2309s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-True-True-min-10] PASSED 2309s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-True-True-min-20] PASSED 2309s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-True-True-max-1] PASSED 2309s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-True-True-max-3] PASSED 2309s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-True-True-max-10] PASSED 2309s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-True-True-max-20] PASSED 2309s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-True-True-average-1] PASSED 2309s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-True-True-average-3] PASSED 2309s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-True-True-average-10] PASSED 2309s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-True-True-average-20] PASSED 2309s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-True-False-min-1] PASSED 2309s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-True-False-min-3] PASSED 2309s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-True-False-min-10] PASSED 2309s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-True-False-min-20] PASSED 2309s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-True-False-max-1] PASSED 2309s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-True-False-max-3] PASSED 2309s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-True-False-max-10] PASSED 2310s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-True-False-max-20] PASSED 2310s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-True-False-average-1] PASSED 2310s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-True-False-average-3] PASSED 2310s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-True-False-average-10] PASSED 2310s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-True-False-average-20] PASSED 2310s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-False-True-min-1] PASSED 2310s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-False-True-min-3] PASSED 2310s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-False-True-min-10] PASSED 2310s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-False-True-min-20] PASSED 2310s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-False-True-max-1] PASSED 2310s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-False-True-max-3] PASSED 2310s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-False-True-max-10] PASSED 2310s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-False-True-max-20] PASSED 2310s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-False-True-average-1] PASSED 2310s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-False-True-average-3] PASSED 2310s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-False-True-average-10] PASSED 2311s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-False-True-average-20] PASSED 2311s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-False-False-min-1] PASSED 2311s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-False-False-min-3] PASSED 2311s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-False-False-min-10] PASSED 2311s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-False-False-min-20] PASSED 2311s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-False-False-max-1] PASSED 2311s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-False-False-max-3] PASSED 2311s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-False-False-max-10] PASSED 2311s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-False-False-max-20] PASSED 2311s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-False-False-average-1] PASSED 2311s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-False-False-average-3] PASSED 2311s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-False-False-average-10] PASSED 2311s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-False-False-average-20] PASSED 2311s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-True-True-min-1] PASSED 2311s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-True-True-min-3] PASSED 2311s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-True-True-min-10] PASSED 2311s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-True-True-min-20] PASSED 2311s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-True-True-max-1] PASSED 2311s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-True-True-max-3] PASSED 2311s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-True-True-max-10] PASSED 2311s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-True-True-max-20] PASSED 2311s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-True-True-average-1] PASSED 2311s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-True-True-average-3] PASSED 2311s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-True-True-average-10] PASSED 2311s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-True-True-average-20] PASSED 2311s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-True-False-min-1] PASSED 2312s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-True-False-min-3] PASSED 2312s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-True-False-min-10] PASSED 2312s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-True-False-min-20] PASSED 2312s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-True-False-max-1] PASSED 2312s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-True-False-max-3] PASSED 2312s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-True-False-max-10] PASSED 2312s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-True-False-max-20] PASSED 2312s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-True-False-average-1] PASSED 2312s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-True-False-average-3] PASSED 2312s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-True-False-average-10] PASSED 2312s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-True-False-average-20] PASSED 2312s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-False-True-min-1] PASSED 2312s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-False-True-min-3] PASSED 2312s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-False-True-min-10] PASSED 2312s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-False-True-min-20] PASSED 2312s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-False-True-max-1] PASSED 2312s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-False-True-max-3] PASSED 2312s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-False-True-max-10] PASSED 2312s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-False-True-max-20] PASSED 2313s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-False-True-average-1] PASSED 2313s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-False-True-average-3] PASSED 2313s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-False-True-average-10] PASSED 2313s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-False-True-average-20] PASSED 2313s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-False-False-min-1] PASSED 2313s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-False-False-min-3] PASSED 2313s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-False-False-min-10] PASSED 2313s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-False-False-min-20] PASSED 2313s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-False-False-max-1] PASSED 2313s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-False-False-max-3] PASSED 2313s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-False-False-max-10] PASSED 2313s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-False-False-max-20] PASSED 2313s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-False-False-average-1] PASSED 2313s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-False-False-average-3] PASSED 2313s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-False-False-average-10] PASSED 2313s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-False-False-average-20] PASSED 2313s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-True-True-min-1] PASSED 2313s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-True-True-min-3] PASSED 2313s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-True-True-min-10] PASSED 2313s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-True-True-min-20] PASSED 2313s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-True-True-max-1] PASSED 2313s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-True-True-max-3] PASSED 2313s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-True-True-max-10] PASSED 2313s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-True-True-max-20] PASSED 2313s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-True-True-average-1] PASSED 2313s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-True-True-average-3] PASSED 2313s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-True-True-average-10] PASSED 2313s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-True-True-average-20] PASSED 2314s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-True-False-min-1] PASSED 2314s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-True-False-min-3] PASSED 2314s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-True-False-min-10] PASSED 2314s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-True-False-min-20] PASSED 2314s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-True-False-max-1] PASSED 2314s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-True-False-max-3] PASSED 2314s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-True-False-max-10] PASSED 2314s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-True-False-max-20] PASSED 2314s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-True-False-average-1] PASSED 2314s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-True-False-average-3] PASSED 2314s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-True-False-average-10] PASSED 2314s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-True-False-average-20] PASSED 2314s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-False-True-min-1] PASSED 2314s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-False-True-min-3] PASSED 2314s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-False-True-min-10] PASSED 2314s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-False-True-min-20] PASSED 2314s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-False-True-max-1] PASSED 2314s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-False-True-max-3] PASSED 2314s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-False-True-max-10] PASSED 2314s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-False-True-max-20] PASSED 2315s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-False-True-average-1] PASSED 2315s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-False-True-average-3] PASSED 2315s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-False-True-average-10] PASSED 2315s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-False-True-average-20] PASSED 2315s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-False-False-min-1] PASSED 2315s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-False-False-min-3] PASSED 2315s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-False-False-min-10] PASSED 2315s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-False-False-min-20] PASSED 2315s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-False-False-max-1] PASSED 2315s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-False-False-max-3] PASSED 2315s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-False-False-max-10] PASSED 2315s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-False-False-max-20] PASSED 2315s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-False-False-average-1] PASSED 2315s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-False-False-average-3] PASSED 2315s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-False-False-average-10] PASSED 2315s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-False-False-average-20] PASSED 2315s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_np_percentile PASSED 2315s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data0-linear-0.0] PASSED 2315s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data0-linear-0.1] PASSED 2315s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data0-linear-0.45] PASSED 2315s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data0-linear-0.5] PASSED 2315s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data0-linear-1] PASSED 2315s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data0-lower-0.0] PASSED 2315s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data0-lower-0.1] PASSED 2315s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data0-lower-0.45] PASSED 2315s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data0-lower-0.5] PASSED 2316s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data0-lower-1] PASSED 2316s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data0-higher-0.0] PASSED 2316s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data0-higher-0.1] PASSED 2316s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data0-higher-0.45] PASSED 2316s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data0-higher-0.5] PASSED 2316s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data0-higher-1] PASSED 2316s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data0-nearest-0.0] PASSED 2316s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data0-nearest-0.1] PASSED 2316s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data0-nearest-0.45] PASSED 2316s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data0-nearest-0.5] PASSED 2316s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data0-nearest-1] PASSED 2316s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data0-midpoint-0.0] PASSED 2316s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data0-midpoint-0.1] PASSED 2316s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data0-midpoint-0.45] PASSED 2316s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data0-midpoint-0.5] PASSED 2316s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data0-midpoint-1] PASSED 2316s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data1-linear-0.0] PASSED 2316s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data1-linear-0.1] PASSED 2316s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data1-linear-0.45] PASSED 2316s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data1-linear-0.5] PASSED 2317s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data1-linear-1] PASSED 2317s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data1-lower-0.0] PASSED 2317s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data1-lower-0.1] PASSED 2317s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data1-lower-0.45] PASSED 2317s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data1-lower-0.5] PASSED 2317s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data1-lower-1] PASSED 2317s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data1-higher-0.0] PASSED 2317s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data1-higher-0.1] PASSED 2317s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data1-higher-0.45] PASSED 2317s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data1-higher-0.5] PASSED 2317s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data1-higher-1] PASSED 2318s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data1-nearest-0.0] PASSED 2318s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data1-nearest-0.1] PASSED 2318s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data1-nearest-0.45] PASSED 2318s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data1-nearest-0.5] PASSED 2318s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data1-nearest-1] PASSED 2318s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data1-midpoint-0.0] PASSED 2318s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data1-midpoint-0.1] PASSED 2318s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data1-midpoint-0.45] PASSED 2318s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data1-midpoint-0.5] PASSED 2318s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data1-midpoint-1] PASSED 2318s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data2-linear-0.0] PASSED 2318s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data2-linear-0.1] PASSED 2318s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data2-linear-0.45] PASSED 2318s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data2-linear-0.5] PASSED 2318s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data2-linear-1] PASSED 2318s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data2-lower-0.0] PASSED 2319s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data2-lower-0.1] PASSED 2319s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data2-lower-0.45] PASSED 2319s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data2-lower-0.5] PASSED 2320s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data2-lower-1] PASSED 2320s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data2-higher-0.0] PASSED 2320s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data2-higher-0.1] PASSED 2320s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data2-higher-0.45] PASSED 2320s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data2-higher-0.5] PASSED 2320s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data2-higher-1] PASSED 2320s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data2-nearest-0.0] PASSED 2320s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data2-nearest-0.1] PASSED 2320s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data2-nearest-0.45] PASSED 2320s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data2-nearest-0.5] PASSED 2320s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data2-nearest-1] PASSED 2321s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data2-midpoint-0.0] PASSED 2321s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data2-midpoint-0.1] PASSED 2321s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data2-midpoint-0.45] PASSED 2322s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data2-midpoint-0.5] PASSED 2322s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data2-midpoint-1] PASSED 2322s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data3-linear-0.0] PASSED 2322s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data3-linear-0.1] PASSED 2322s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data3-linear-0.45] PASSED 2322s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data3-linear-0.5] PASSED 2322s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data3-linear-1] PASSED 2322s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data3-lower-0.0] PASSED 2322s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data3-lower-0.1] PASSED 2322s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data3-lower-0.45] PASSED 2322s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data3-lower-0.5] PASSED 2323s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data3-lower-1] PASSED 2323s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data3-higher-0.0] PASSED 2323s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data3-higher-0.1] PASSED 2323s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data3-higher-0.45] PASSED 2323s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data3-higher-0.5] PASSED 2323s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data3-higher-1] PASSED 2323s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data3-nearest-0.0] PASSED 2323s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data3-nearest-0.1] PASSED 2323s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data3-nearest-0.45] PASSED 2323s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data3-nearest-0.5] PASSED 2323s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data3-nearest-1] PASSED 2323s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data3-midpoint-0.0] PASSED 2323s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data3-midpoint-0.1] PASSED 2323s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data3-midpoint-0.45] PASSED 2323s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data3-midpoint-0.5] PASSED 2323s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data3-midpoint-1] PASSED 2323s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data4-linear-0.0] PASSED 2324s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data4-linear-0.1] PASSED 2324s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data4-linear-0.45] PASSED 2324s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data4-linear-0.5] PASSED 2324s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data4-linear-1] PASSED 2324s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data4-lower-0.0] PASSED 2324s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data4-lower-0.1] PASSED 2324s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data4-lower-0.45] PASSED 2324s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data4-lower-0.5] PASSED 2324s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data4-lower-1] PASSED 2324s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data4-higher-0.0] PASSED 2324s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data4-higher-0.1] PASSED 2324s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data4-higher-0.45] PASSED 2324s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data4-higher-0.5] PASSED 2324s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data4-higher-1] PASSED 2324s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data4-nearest-0.0] PASSED 2324s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data4-nearest-0.1] PASSED 2324s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data4-nearest-0.45] PASSED 2324s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data4-nearest-0.5] PASSED 2324s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data4-nearest-1] PASSED 2324s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data4-midpoint-0.0] PASSED 2324s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data4-midpoint-0.1] PASSED 2325s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data4-midpoint-0.45] PASSED 2325s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data4-midpoint-0.5] PASSED 2325s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data4-midpoint-1] PASSED 2325s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data5-linear-0.0] PASSED 2325s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data5-linear-0.1] PASSED 2325s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data5-linear-0.45] PASSED 2325s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data5-linear-0.5] PASSED 2325s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data5-linear-1] PASSED 2325s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data5-lower-0.0] PASSED 2326s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data5-lower-0.1] PASSED 2326s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data5-lower-0.45] PASSED 2326s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data5-lower-0.5] PASSED 2326s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data5-lower-1] PASSED 2326s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data5-higher-0.0] PASSED 2326s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data5-higher-0.1] PASSED 2326s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data5-higher-0.45] PASSED 2326s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data5-higher-0.5] PASSED 2326s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data5-higher-1] PASSED 2326s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data5-nearest-0.0] PASSED 2326s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data5-nearest-0.1] PASSED 2326s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data5-nearest-0.45] PASSED 2326s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data5-nearest-0.5] PASSED 2326s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data5-nearest-1] PASSED 2327s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data5-midpoint-0.0] PASSED 2327s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data5-midpoint-0.1] PASSED 2327s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data5-midpoint-0.45] PASSED 2327s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data5-midpoint-0.5] PASSED 2327s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data5-midpoint-1] PASSED 2327s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data6-linear-0.0] PASSED 2327s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data6-linear-0.1] PASSED 2327s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data6-linear-0.45] PASSED 2327s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data6-linear-0.5] PASSED 2327s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data6-linear-1] PASSED 2327s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data6-lower-0.0] PASSED 2327s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data6-lower-0.1] PASSED 2327s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data6-lower-0.45] PASSED 2327s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data6-lower-0.5] PASSED 2327s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data6-lower-1] PASSED 2327s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data6-higher-0.0] PASSED 2328s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data6-higher-0.1] PASSED 2328s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data6-higher-0.45] PASSED 2328s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data6-higher-0.5] PASSED 2328s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data6-higher-1] PASSED 2328s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data6-nearest-0.0] PASSED 2328s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data6-nearest-0.1] PASSED 2328s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data6-nearest-0.45] PASSED 2328s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data6-nearest-0.5] PASSED 2328s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data6-nearest-1] PASSED 2328s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data6-midpoint-0.0] PASSED 2328s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data6-midpoint-0.1] PASSED 2328s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data6-midpoint-0.45] PASSED 2328s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data6-midpoint-0.5] PASSED 2328s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data6-midpoint-1] PASSED 2328s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_invalid_quantile_value PASSED 2328s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_param PASSED 2328s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_std_1obs PASSED 2328s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_std_neg_sqrt PASSED 2328s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_step_not_integer_raises PASSED 2328s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_step_not_positive_raises PASSED 2328s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_var_same_value_count_logic[values0-3-1-expected0] PASSED 2328s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_var_same_value_count_logic[values1-3-1-expected1] PASSED 2328s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_var_same_value_count_logic[values2-3-3-expected2] PASSED 2329s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_var_same_value_count_logic[values3-3-3-expected3] PASSED 2329s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_var_same_value_count_logic[values4-3-3-expected4] PASSED 2329s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_var_same_value_count_logic[values5-3-3-expected5] PASSED 2329s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_var_same_value_count_logic[values6-3-2-expected6] PASSED 2329s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_mean_sum_floating_artifacts PASSED 2329s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_skew_kurt_floating_artifacts PASSED 2329s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_frame[sum-True] PASSED 2329s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_frame[sum-False] PASSED 2329s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_frame[mean-True] PASSED 2329s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_frame[mean-False] PASSED 2329s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_frame[median-True] PASSED 2329s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_frame[median-False] PASSED 2329s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_frame[max-True] PASSED 2329s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_frame[max-False] PASSED 2329s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_frame[min-True] PASSED 2329s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_frame[min-False] PASSED 2329s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_frame[var-True] PASSED 2329s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_frame[var-False] PASSED 2330s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_frame[std-True] PASSED 2330s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_frame[std-False] PASSED 2330s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_frame[kurt-True] PASSED 2330s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_frame[kurt-False] PASSED 2330s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_frame[skew-True] PASSED 2330s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_frame[skew-False] PASSED 2330s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_frame[count-True] PASSED 2330s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_frame[count-False] PASSED 2330s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_frame[sem-True] PASSED 2330s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_frame[sem-False] PASSED 2330s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_corr_cov_frame[True-True-corr] PASSED 2330s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_corr_cov_frame[True-True-cov] PASSED 2330s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_corr_cov_frame[True-False-corr] PASSED 2330s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_corr_cov_frame[True-False-cov] PASSED 2330s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_corr_cov_frame[False-True-corr] PASSED 2330s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_corr_cov_frame[False-True-cov] PASSED 2330s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_corr_cov_frame[False-False-corr] PASSED 2331s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_corr_cov_frame[False-False-cov] PASSED 2331s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[sum-True-int] PASSED 2331s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[sum-True-object] PASSED 2331s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[sum-False-int] PASSED 2331s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[sum-False-object] PASSED 2331s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[mean-True-int] PASSED 2331s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[mean-True-object] PASSED 2331s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[mean-False-int] PASSED 2331s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[mean-False-object] PASSED 2331s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[median-True-int] PASSED 2331s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[median-True-object] PASSED 2331s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[median-False-int] PASSED 2331s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[median-False-object] PASSED 2331s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[max-True-int] PASSED 2331s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[max-True-object] PASSED 2331s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[max-False-int] PASSED 2331s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[max-False-object] PASSED 2331s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[min-True-int] PASSED 2331s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[min-True-object] PASSED 2331s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[min-False-int] PASSED 2331s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[min-False-object] PASSED 2331s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[var-True-int] PASSED 2331s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[var-True-object] PASSED 2331s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[var-False-int] PASSED 2331s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[var-False-object] PASSED 2331s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[std-True-int] PASSED 2332s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[std-True-object] PASSED 2332s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[std-False-int] PASSED 2332s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[std-False-object] PASSED 2332s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[kurt-True-int] PASSED 2332s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[kurt-True-object] PASSED 2332s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[kurt-False-int] PASSED 2332s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[kurt-False-object] PASSED 2332s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[skew-True-int] PASSED 2332s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[skew-True-object] PASSED 2332s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[skew-False-int] PASSED 2332s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[skew-False-object] PASSED 2332s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[count-True-int] PASSED 2332s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[count-True-object] PASSED 2332s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[count-False-int] PASSED 2332s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[count-False-object] PASSED 2332s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[sem-True-int] PASSED 2332s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[sem-True-object] PASSED 2332s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[sem-False-int] PASSED 2332s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[sem-False-object] PASSED 2332s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_corr_cov_series[True-int-True-corr] PASSED 2332s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_corr_cov_series[True-int-True-cov] PASSED 2332s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_corr_cov_series[True-int-False-corr] PASSED 2332s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_corr_cov_series[True-int-False-cov] PASSED 2333s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_corr_cov_series[True-object-True-corr] PASSED 2333s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_corr_cov_series[True-object-True-cov] PASSED 2333s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_corr_cov_series[True-object-False-corr] PASSED 2333s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_corr_cov_series[True-object-False-cov] PASSED 2333s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_corr_cov_series[False-int-True-corr] PASSED 2333s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_corr_cov_series[False-int-True-cov] PASSED 2333s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_corr_cov_series[False-int-False-corr] PASSED 2333s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_corr_cov_series[False-int-False-cov] PASSED 2333s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_corr_cov_series[False-object-True-corr] PASSED 2333s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_corr_cov_series[False-object-True-cov] PASSED 2333s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_corr_cov_series[False-object-False-corr] PASSED 2333s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_corr_cov_series[False-object-False-cov] PASSED 2333s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_timedelta_window_non_nanoseconds[None-s] PASSED 2333s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_timedelta_window_non_nanoseconds[None-ms] PASSED 2333s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_timedelta_window_non_nanoseconds[None-us] PASSED 2333s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_timedelta_window_non_nanoseconds[None-ns] PASSED 2333s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_timedelta_window_non_nanoseconds[UTC-s] PASSED 2333s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_timedelta_window_non_nanoseconds[UTC-ms] PASSED 2333s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_timedelta_window_non_nanoseconds[UTC-us] PASSED 2333s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_timedelta_window_non_nanoseconds[UTC-ns] PASSED 2333s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_timedelta_window_non_nanoseconds[Europe/Prague-s] PASSED 2333s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_timedelta_window_non_nanoseconds[Europe/Prague-ms] PASSED 2333s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_timedelta_window_non_nanoseconds[Europe/Prague-us] PASSED 2333s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_timedelta_window_non_nanoseconds[Europe/Prague-ns] PASSED 2333s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[None-mean-mean-kwargs0] PASSED 2333s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[None-nansum-sum-kwargs1] PASSED 2333s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[None--count-kwargs2] PASSED 2333s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[None-median-median-kwargs3] PASSED 2334s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[None-min-min-kwargs4] PASSED 2334s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[None-max-max-kwargs5] PASSED 2334s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[None--std-kwargs6] PASSED 2334s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[None--std-kwargs7] PASSED 2334s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[None--var-kwargs8] PASSED 2334s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[None--var-kwargs9] PASSED 2334s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[1-mean-mean-kwargs0] PASSED 2334s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[1-nansum-sum-kwargs1] PASSED 2334s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[1--count-kwargs2] PASSED 2334s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[1-median-median-kwargs3] PASSED 2334s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[1-min-min-kwargs4] PASSED 2334s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[1-max-max-kwargs5] PASSED 2334s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[1--std-kwargs6] PASSED 2334s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[1--std-kwargs7] PASSED 2334s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[1--var-kwargs8] PASSED 2334s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[1--var-kwargs9] PASSED 2334s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[2-mean-mean-kwargs0] PASSED 2334s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[2-nansum-sum-kwargs1] PASSED 2334s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[2--count-kwargs2] PASSED 2334s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[2-median-median-kwargs3] PASSED 2334s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[2-min-min-kwargs4] PASSED 2334s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[2-max-max-kwargs5] PASSED 2334s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[2--std-kwargs6] PASSED 2334s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[2--std-kwargs7] PASSED 2334s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[2--var-kwargs8] PASSED 2334s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[2--var-kwargs9] PASSED 2334s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[5-mean-mean-kwargs0] PASSED 2334s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[5-nansum-sum-kwargs1] PASSED 2334s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[5--count-kwargs2] PASSED 2334s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[5-median-median-kwargs3] PASSED 2334s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[5-min-min-kwargs4] PASSED 2335s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[5-max-max-kwargs5] PASSED 2335s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[5--std-kwargs6] PASSED 2335s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[5--std-kwargs7] PASSED 2335s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[5--var-kwargs8] PASSED 2335s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[5--var-kwargs9] PASSED 2335s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[10-mean-mean-kwargs0] PASSED 2335s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[10-nansum-sum-kwargs1] PASSED 2335s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[10--count-kwargs2] PASSED 2335s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[10-median-median-kwargs3] PASSED 2335s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[10-min-min-kwargs4] PASSED 2335s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[10-max-max-kwargs5] PASSED 2335s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[10--std-kwargs6] PASSED 2335s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[10--std-kwargs7] PASSED 2335s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[10--var-kwargs8] PASSED 2335s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[10--var-kwargs9] PASSED 2335s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-None-mean-mean-kwargs0] PASSED 2335s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-None-nansum-sum-kwargs1] PASSED 2335s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-None--count-kwargs2] PASSED 2335s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-None-median-median-kwargs3] PASSED 2335s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-None-min-min-kwargs4] PASSED 2335s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-None-max-max-kwargs5] PASSED 2335s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-None--std-kwargs6] PASSED 2335s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-None--std-kwargs7] PASSED 2335s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-None--var-kwargs8] PASSED 2335s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-None--var-kwargs9] PASSED 2335s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-1-mean-mean-kwargs0] PASSED 2335s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-1-nansum-sum-kwargs1] PASSED 2336s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-1--count-kwargs2] PASSED 2336s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-1-median-median-kwargs3] PASSED 2336s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-1-min-min-kwargs4] PASSED 2336s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-1-max-max-kwargs5] PASSED 2336s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-1--std-kwargs6] PASSED 2336s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-1--std-kwargs7] PASSED 2336s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-1--var-kwargs8] PASSED 2336s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-1--var-kwargs9] PASSED 2336s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-2-mean-mean-kwargs0] PASSED 2336s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-2-nansum-sum-kwargs1] PASSED 2336s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-2--count-kwargs2] PASSED 2336s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-2-median-median-kwargs3] PASSED 2337s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-2-min-min-kwargs4] PASSED 2337s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-2-max-max-kwargs5] PASSED 2337s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-2--std-kwargs6] PASSED 2337s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-2--std-kwargs7] PASSED 2337s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-2--var-kwargs8] PASSED 2337s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-2--var-kwargs9] PASSED 2337s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-5-mean-mean-kwargs0] PASSED 2337s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-5-nansum-sum-kwargs1] PASSED 2337s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-5--count-kwargs2] PASSED 2337s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-5-median-median-kwargs3] PASSED 2337s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-5-min-min-kwargs4] PASSED 2337s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-5-max-max-kwargs5] PASSED 2337s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-5--std-kwargs6] PASSED 2337s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-5--std-kwargs7] PASSED 2337s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-5--var-kwargs8] PASSED 2338s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-5--var-kwargs9] PASSED 2338s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-10-mean-mean-kwargs0] PASSED 2338s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-10-nansum-sum-kwargs1] PASSED 2338s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-10--count-kwargs2] PASSED 2338s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-10-median-median-kwargs3] PASSED 2338s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-10-min-min-kwargs4] PASSED 2338s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-10-max-max-kwargs5] PASSED 2338s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-10--std-kwargs6] PASSED 2338s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-10--std-kwargs7] PASSED 2338s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-10--var-kwargs8] PASSED 2338s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-10--var-kwargs9] PASSED 2338s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-None-mean-mean-kwargs0] PASSED 2338s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-None-nansum-sum-kwargs1] PASSED 2338s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-None--count-kwargs2] PASSED 2338s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-None-median-median-kwargs3] PASSED 2338s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-None-min-min-kwargs4] PASSED 2338s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-None-max-max-kwargs5] PASSED 2338s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-None--std-kwargs6] PASSED 2338s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-None--std-kwargs7] PASSED 2338s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-None--var-kwargs8] PASSED 2338s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-None--var-kwargs9] PASSED 2338s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-1-mean-mean-kwargs0] PASSED 2338s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-1-nansum-sum-kwargs1] PASSED 2338s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-1--count-kwargs2] PASSED 2339s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-1-median-median-kwargs3] PASSED 2339s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-1-min-min-kwargs4] PASSED 2339s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-1-max-max-kwargs5] PASSED 2339s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-1--std-kwargs6] PASSED 2339s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-1--std-kwargs7] PASSED 2339s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-1--var-kwargs8] PASSED 2339s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-1--var-kwargs9] PASSED 2339s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-2-mean-mean-kwargs0] PASSED 2339s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-2-nansum-sum-kwargs1] PASSED 2339s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-2--count-kwargs2] PASSED 2339s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-2-median-median-kwargs3] PASSED 2339s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-2-min-min-kwargs4] PASSED 2339s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-2-max-max-kwargs5] PASSED 2339s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-2--std-kwargs6] PASSED 2339s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-2--std-kwargs7] PASSED 2339s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-2--var-kwargs8] PASSED 2339s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-2--var-kwargs9] PASSED 2339s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-5-mean-mean-kwargs0] PASSED 2339s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-5-nansum-sum-kwargs1] PASSED 2339s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-5--count-kwargs2] PASSED 2339s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-5-median-median-kwargs3] PASSED 2339s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-5-min-min-kwargs4] PASSED 2339s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-5-max-max-kwargs5] PASSED 2339s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-5--std-kwargs6] PASSED 2339s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-5--std-kwargs7] PASSED 2339s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-5--var-kwargs8] PASSED 2339s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-5--var-kwargs9] PASSED 2340s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-10-mean-mean-kwargs0] PASSED 2340s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-10-nansum-sum-kwargs1] PASSED 2340s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-10--count-kwargs2] PASSED 2340s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-10-median-median-kwargs3] PASSED 2340s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-10-min-min-kwargs4] PASSED 2340s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-10-max-max-kwargs5] PASSED 2340s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-10--std-kwargs6] PASSED 2340s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-10--std-kwargs7] PASSED 2340s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-10--var-kwargs8] PASSED 2340s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-10--var-kwargs9] PASSED 2340s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_time_rule_series[mean-mean-kwargs0-10] PASSED 2340s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_time_rule_series[nansum-sum-kwargs1-10] PASSED 2340s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_time_rule_series[-count-kwargs2-0] PASSED 2340s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_time_rule_series[median-median-kwargs3-10] PASSED 2340s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_time_rule_series[min-min-kwargs4-10] PASSED 2340s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_time_rule_series[max-max-kwargs5-10] PASSED 2340s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_time_rule_series[-std-kwargs6-10] PASSED 2340s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_time_rule_series[-std-kwargs7-10] PASSED 2340s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_time_rule_series[-var-kwargs8-10] PASSED 2340s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_time_rule_series[-var-kwargs9-10] PASSED 2341s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_time_rule_frame[True-mean-mean-kwargs0-10] PASSED 2341s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_time_rule_frame[True-nansum-sum-kwargs1-10] PASSED 2341s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_time_rule_frame[True--count-kwargs2-0] PASSED 2341s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_time_rule_frame[True-median-median-kwargs3-10] PASSED 2341s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_time_rule_frame[True-min-min-kwargs4-10] PASSED 2341s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_time_rule_frame[True-max-max-kwargs5-10] PASSED 2341s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_time_rule_frame[True--std-kwargs6-10] PASSED 2341s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_time_rule_frame[True--std-kwargs7-10] PASSED 2341s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_time_rule_frame[True--var-kwargs8-10] PASSED 2341s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_time_rule_frame[True--var-kwargs9-10] PASSED 2341s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_time_rule_frame[False-mean-mean-kwargs0-10] PASSED 2341s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_time_rule_frame[False-nansum-sum-kwargs1-10] PASSED 2341s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_time_rule_frame[False--count-kwargs2-0] PASSED 2341s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_time_rule_frame[False-median-median-kwargs3-10] PASSED 2341s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_time_rule_frame[False-min-min-kwargs4-10] PASSED 2341s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_time_rule_frame[False-max-max-kwargs5-10] PASSED 2341s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_time_rule_frame[False--std-kwargs6-10] PASSED 2341s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_time_rule_frame[False--std-kwargs7-10] PASSED 2341s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_time_rule_frame[False--var-kwargs8-10] PASSED 2342s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_time_rule_frame[False--var-kwargs9-10] PASSED 2342s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_nans[mean-mean-kwargs0] PASSED 2342s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_nans[nansum-sum-kwargs1] PASSED 2342s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_nans[median-median-kwargs2] PASSED 2342s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_nans[min-min-kwargs3] PASSED 2342s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_nans[max-max-kwargs4] PASSED 2342s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_nans[-std-kwargs5] PASSED 2342s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_nans[-std-kwargs6] PASSED 2342s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_nans[-var-kwargs7] PASSED 2342s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_nans[-var-kwargs8] PASSED 2342s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_nans_count PASSED 2342s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[None-0-mean-kwargs0] PASSED 2342s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[None-0-sum-kwargs1] PASSED 2342s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[None-0-median-kwargs2] PASSED 2342s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[None-0-min-kwargs3] PASSED 2342s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[None-0-max-kwargs4] PASSED 2342s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[None-0-std-kwargs5] PASSED 2342s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[None-0-std-kwargs6] PASSED 2342s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[None-0-var-kwargs7] PASSED 2342s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[None-0-var-kwargs8] PASSED 2342s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[None-99-mean-kwargs0] PASSED 2342s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[None-99-sum-kwargs1] PASSED 2342s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[None-99-median-kwargs2] PASSED 2342s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[None-99-min-kwargs3] PASSED 2342s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[None-99-max-kwargs4] PASSED 2342s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[None-99-std-kwargs5] PASSED 2342s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[None-99-std-kwargs6] PASSED 2342s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[None-99-var-kwargs7] PASSED 2342s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[None-99-var-kwargs8] PASSED 2342s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[None-100-mean-kwargs0] PASSED 2342s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[None-100-sum-kwargs1] PASSED 2342s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[None-100-median-kwargs2] PASSED 2343s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[None-100-min-kwargs3] PASSED 2343s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[None-100-max-kwargs4] PASSED 2343s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[None-100-std-kwargs5] PASSED 2343s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[None-100-std-kwargs6] PASSED 2343s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[None-100-var-kwargs7] PASSED 2343s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[None-100-var-kwargs8] PASSED 2343s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[1-0-mean-kwargs0] PASSED 2343s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[1-0-sum-kwargs1] PASSED 2343s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[1-0-median-kwargs2] PASSED 2343s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[1-0-min-kwargs3] PASSED 2343s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[1-0-max-kwargs4] PASSED 2343s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[1-0-std-kwargs5] PASSED 2343s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[1-0-std-kwargs6] PASSED 2343s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[1-0-var-kwargs7] PASSED 2343s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[1-0-var-kwargs8] PASSED 2343s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[1-99-mean-kwargs0] PASSED 2343s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[1-99-sum-kwargs1] PASSED 2343s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[1-99-median-kwargs2] PASSED 2343s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[1-99-min-kwargs3] PASSED 2343s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[1-99-max-kwargs4] PASSED 2343s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[1-99-std-kwargs5] PASSED 2343s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[1-99-std-kwargs6] PASSED 2343s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[1-99-var-kwargs7] PASSED 2343s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[1-99-var-kwargs8] PASSED 2343s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[1-100-mean-kwargs0] PASSED 2343s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[1-100-sum-kwargs1] PASSED 2343s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[1-100-median-kwargs2] PASSED 2343s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[1-100-min-kwargs3] PASSED 2344s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[1-100-max-kwargs4] PASSED 2344s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[1-100-std-kwargs5] PASSED 2344s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[1-100-std-kwargs6] PASSED 2344s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[1-100-var-kwargs7] PASSED 2344s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[1-100-var-kwargs8] PASSED 2344s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[2-0-mean-kwargs0] PASSED 2344s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[2-0-sum-kwargs1] PASSED 2344s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[2-0-median-kwargs2] PASSED 2344s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[2-0-min-kwargs3] PASSED 2344s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[2-0-max-kwargs4] PASSED 2344s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[2-0-std-kwargs5] PASSED 2344s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[2-0-std-kwargs6] PASSED 2344s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[2-0-var-kwargs7] PASSED 2344s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[2-0-var-kwargs8] PASSED 2344s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[2-99-mean-kwargs0] PASSED 2344s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[2-99-sum-kwargs1] PASSED 2344s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[2-99-median-kwargs2] PASSED 2344s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[2-99-min-kwargs3] PASSED 2344s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[2-99-max-kwargs4] PASSED 2344s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[2-99-std-kwargs5] PASSED 2344s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[2-99-std-kwargs6] PASSED 2344s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[2-99-var-kwargs7] PASSED 2344s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[2-99-var-kwargs8] PASSED 2344s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[2-100-mean-kwargs0] PASSED 2345s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[2-100-sum-kwargs1] PASSED 2345s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[2-100-median-kwargs2] PASSED 2345s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[2-100-min-kwargs3] PASSED 2345s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[2-100-max-kwargs4] PASSED 2345s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[2-100-std-kwargs5] PASSED 2345s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[2-100-std-kwargs6] PASSED 2345s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[2-100-var-kwargs7] PASSED 2345s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[2-100-var-kwargs8] PASSED 2345s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[5-0-mean-kwargs0] PASSED 2345s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[5-0-sum-kwargs1] PASSED 2345s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[5-0-median-kwargs2] PASSED 2345s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[5-0-min-kwargs3] PASSED 2345s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[5-0-max-kwargs4] PASSED 2345s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[5-0-std-kwargs5] PASSED 2345s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[5-0-std-kwargs6] PASSED 2345s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[5-0-var-kwargs7] PASSED 2345s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[5-0-var-kwargs8] PASSED 2345s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[5-99-mean-kwargs0] PASSED 2345s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[5-99-sum-kwargs1] PASSED 2345s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[5-99-median-kwargs2] PASSED 2345s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[5-99-min-kwargs3] PASSED 2345s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[5-99-max-kwargs4] PASSED 2345s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[5-99-std-kwargs5] PASSED 2345s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[5-99-std-kwargs6] PASSED 2346s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[5-99-var-kwargs7] PASSED 2346s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[5-99-var-kwargs8] PASSED 2346s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[5-100-mean-kwargs0] PASSED 2346s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[5-100-sum-kwargs1] PASSED 2346s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[5-100-median-kwargs2] PASSED 2346s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[5-100-min-kwargs3] PASSED 2346s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[5-100-max-kwargs4] PASSED 2346s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[5-100-std-kwargs5] PASSED 2346s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[5-100-std-kwargs6] PASSED 2346s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[5-100-var-kwargs7] PASSED 2346s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[5-100-var-kwargs8] PASSED 2346s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[10-0-mean-kwargs0] PASSED 2346s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[10-0-sum-kwargs1] PASSED 2346s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[10-0-median-kwargs2] PASSED 2346s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[10-0-min-kwargs3] PASSED 2346s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[10-0-max-kwargs4] PASSED 2346s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[10-0-std-kwargs5] PASSED 2346s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[10-0-std-kwargs6] PASSED 2346s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[10-0-var-kwargs7] PASSED 2346s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[10-0-var-kwargs8] PASSED 2346s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[10-99-mean-kwargs0] PASSED 2346s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[10-99-sum-kwargs1] PASSED 2346s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[10-99-median-kwargs2] PASSED 2346s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[10-99-min-kwargs3] PASSED 2347s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[10-99-max-kwargs4] PASSED 2347s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[10-99-std-kwargs5] PASSED 2347s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[10-99-std-kwargs6] PASSED 2347s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[10-99-var-kwargs7] PASSED 2347s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[10-99-var-kwargs8] PASSED 2347s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[10-100-mean-kwargs0] PASSED 2347s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[10-100-sum-kwargs1] PASSED 2347s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[10-100-median-kwargs2] PASSED 2347s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[10-100-min-kwargs3] PASSED 2347s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[10-100-max-kwargs4] PASSED 2347s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[10-100-std-kwargs5] PASSED 2347s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[10-100-std-kwargs6] PASSED 2347s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[10-100-var-kwargs7] PASSED 2347s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[10-100-var-kwargs8] PASSED 2347s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods_count[None] PASSED 2347s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods_count[1] PASSED 2347s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods_count[2] PASSED 2347s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods_count[5] PASSED 2348s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods_count[10] PASSED 2348s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_center[mean-kwargs0-15] PASSED 2348s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_center[sum-kwargs1-15] PASSED 2348s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_center[count-kwargs2-0] PASSED 2348s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_center[median-kwargs3-15] PASSED 2348s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_center[min-kwargs4-15] PASSED 2348s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_center[max-kwargs5-15] PASSED 2348s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_center[std-kwargs6-15] PASSED 2348s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_center[std-kwargs7-15] PASSED 2348s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_center[var-kwargs8-15] PASSED 2348s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_center[var-kwargs9-15] PASSED 2348s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_center_reindex_series[mean-kwargs0-10-None] PASSED 2348s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_center_reindex_series[sum-kwargs1-10-None] PASSED 2348s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_center_reindex_series[count-kwargs2-0-0] PASSED 2348s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_center_reindex_series[median-kwargs3-10-None] PASSED 2348s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_center_reindex_series[min-kwargs4-10-None] PASSED 2349s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_center_reindex_series[max-kwargs5-10-None] PASSED 2349s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_center_reindex_series[std-kwargs6-10-None] PASSED 2349s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_center_reindex_series[std-kwargs7-10-None] PASSED 2349s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_center_reindex_series[var-kwargs8-10-None] PASSED 2349s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_center_reindex_series[var-kwargs9-10-None] PASSED 2349s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_center_reindex_frame[mean-kwargs0-10-None] PASSED 2349s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_center_reindex_frame[sum-kwargs1-10-None] PASSED 2349s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_center_reindex_frame[count-kwargs2-0-0] PASSED 2349s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_center_reindex_frame[median-kwargs3-10-None] PASSED 2349s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_center_reindex_frame[min-kwargs4-10-None] PASSED 2349s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_center_reindex_frame[max-kwargs5-10-None] PASSED 2349s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_center_reindex_frame[std-kwargs6-10-None] PASSED 2350s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_center_reindex_frame[std-kwargs7-10-None] PASSED 2350s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_center_reindex_frame[var-kwargs8-10-None] PASSED 2350s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_center_reindex_frame[var-kwargs9-10-None] PASSED 2350s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_rolling_functions_window_non_shrinkage[0] PASSED 2350s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_rolling_functions_window_non_shrinkage[1] PASSED 2350s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_rolling_functions_window_non_shrinkage[2] PASSED 2350s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_rolling_functions_window_non_shrinkage[3] PASSED 2350s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_rolling_functions_window_non_shrinkage[4] PASSED 2350s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_rolling_functions_window_non_shrinkage[5] PASSED 2350s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_rolling_functions_window_non_shrinkage[6] PASSED 2350s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_rolling_functions_window_non_shrinkage[7] PASSED 2350s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_rolling_functions_window_non_shrinkage[8] PASSED 2350s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_rolling_functions_window_non_shrinkage[9] PASSED 2350s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_rolling_functions_window_non_shrinkage[10] PASSED 2350s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_rolling_functions_window_non_shrinkage[11] PASSED 2350s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_rolling_functions_window_non_shrinkage[12] PASSED 2350s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_rolling_functions_window_non_shrinkage[13] PASSED 2350s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_rolling_functions_window_non_shrinkage[14] PASSED 2350s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_rolling_max_gh6297[None] PASSED 2350s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_rolling_max_gh6297[1] PASSED 2350s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_rolling_max_gh6297[2] PASSED 2351s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_rolling_max_gh6297[5] PASSED 2351s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_rolling_max_gh6297[10] PASSED 2351s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_rolling_max_resample[None] PASSED 2351s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_rolling_max_resample[1] PASSED 2351s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_rolling_max_resample[2] PASSED 2351s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_rolling_max_resample[5] PASSED 2351s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_rolling_max_resample[10] PASSED 2351s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_rolling_min_resample[None] PASSED 2351s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_rolling_min_resample[1] PASSED 2351s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_rolling_min_resample[2] PASSED 2351s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_rolling_min_resample[5] PASSED 2351s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_rolling_min_resample[10] PASSED 2351s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_rolling_median_resample PASSED 2351s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_rolling_median_memory_error PASSED 2351s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_rolling_min_max_numeric_types[data_type0] PASSED 2352s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_rolling_min_max_numeric_types[data_type1] PASSED 2352s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_rolling_min_max_numeric_types[data_type2] PASSED 2352s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_rolling_min_max_numeric_types[data_type3] PASSED 2352s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_rolling_min_max_numeric_types[data_type4] PASSED 2352s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_rolling_min_max_numeric_types[data_type5] PASSED 2352s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_rolling_min_max_numeric_types[data_type6] PASSED 2352s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_rolling_min_max_numeric_types[data_type7] PASSED 2352s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_rolling_min_max_numeric_types[data_type8] PASSED 2352s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_rolling_min_max_numeric_types[data_type9] PASSED 2352s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_moment_functions_zero_length[0] PASSED 2352s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_moment_functions_zero_length[1] PASSED 2352s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_moment_functions_zero_length[2] PASSED 2352s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_moment_functions_zero_length[3] PASSED 2352s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_moment_functions_zero_length[4] PASSED 2352s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_moment_functions_zero_length[5] PASSED 2352s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_moment_functions_zero_length[6] PASSED 2352s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_moment_functions_zero_length[7] PASSED 2352s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_moment_functions_zero_length[8] PASSED 2353s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_moment_functions_zero_length[9] PASSED 2353s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_moment_functions_zero_length[10] PASSED 2353s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_moment_functions_zero_length[11] PASSED 2353s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_moment_functions_zero_length[12] PASSED 2353s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_moment_functions_zero_length[13] PASSED 2353s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_moment_functions_zero_length[14] PASSED 2353s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_moment_functions_zero_length[15] PASSED 2353s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_series[None-0.0] PASSED 2353s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_series[None-0.1] PASSED 2353s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_series[None-0.5] PASSED 2353s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_series[None-0.9] PASSED 2353s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_series[None-1.0] PASSED 2353s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_series[1-0.0] PASSED 2353s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_series[1-0.1] PASSED 2353s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_series[1-0.5] PASSED 2353s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_series[1-0.9] PASSED 2353s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_series[1-1.0] PASSED 2353s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_series[2-0.0] PASSED 2353s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_series[2-0.1] PASSED 2353s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_series[2-0.5] PASSED 2353s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_series[2-0.9] PASSED 2353s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_series[2-1.0] PASSED 2354s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_series[5-0.0] PASSED 2354s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_series[5-0.1] PASSED 2354s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_series[5-0.5] PASSED 2354s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_series[5-0.9] PASSED 2354s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_series[5-1.0] PASSED 2354s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_series[10-0.0] PASSED 2354s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_series[10-0.1] PASSED 2354s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_series[10-0.5] PASSED 2354s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_series[10-0.9] PASSED 2354s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_series[10-1.0] PASSED 2354s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[True-None-0.0] PASSED 2354s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[True-None-0.1] PASSED 2354s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[True-None-0.5] PASSED 2354s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[True-None-0.9] PASSED 2354s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[True-None-1.0] PASSED 2354s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[True-1-0.0] PASSED 2354s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[True-1-0.1] PASSED 2354s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[True-1-0.5] PASSED 2354s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[True-1-0.9] PASSED 2354s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[True-1-1.0] PASSED 2354s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[True-2-0.0] PASSED 2354s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[True-2-0.1] PASSED 2354s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[True-2-0.5] PASSED 2354s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[True-2-0.9] PASSED 2354s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[True-2-1.0] PASSED 2355s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[True-5-0.0] PASSED 2355s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[True-5-0.1] PASSED 2355s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[True-5-0.5] PASSED 2355s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[True-5-0.9] PASSED 2355s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[True-5-1.0] PASSED 2355s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[True-10-0.0] PASSED 2355s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[True-10-0.1] PASSED 2355s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[True-10-0.5] PASSED 2355s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[True-10-0.9] PASSED 2355s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[True-10-1.0] PASSED 2355s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[False-None-0.0] PASSED 2355s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[False-None-0.1] PASSED 2355s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[False-None-0.5] PASSED 2355s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[False-None-0.9] PASSED 2355s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[False-None-1.0] PASSED 2355s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[False-1-0.0] PASSED 2355s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[False-1-0.1] PASSED 2355s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[False-1-0.5] PASSED 2355s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[False-1-0.9] PASSED 2356s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[False-1-1.0] PASSED 2356s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[False-2-0.0] PASSED 2356s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[False-2-0.1] PASSED 2356s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[False-2-0.5] PASSED 2356s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[False-2-0.9] PASSED 2356s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[False-2-1.0] PASSED 2356s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[False-5-0.0] PASSED 2356s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[False-5-0.1] PASSED 2356s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[False-5-0.5] PASSED 2356s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[False-5-0.9] PASSED 2356s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[False-5-1.0] PASSED 2356s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[False-10-0.0] PASSED 2356s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[False-10-0.1] PASSED 2356s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[False-10-0.5] PASSED 2356s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[False-10-0.9] PASSED 2356s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[False-10-1.0] PASSED 2356s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_time_rule_series[0.0] PASSED 2356s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_time_rule_series[0.1] PASSED 2356s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_time_rule_series[0.5] PASSED 2356s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_time_rule_series[0.9] PASSED 2356s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_time_rule_series[1.0] PASSED 2357s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_time_rule_frame[True-0.0] PASSED 2357s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_time_rule_frame[True-0.1] PASSED 2357s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_time_rule_frame[True-0.5] PASSED 2357s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_time_rule_frame[True-0.9] PASSED 2357s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_time_rule_frame[True-1.0] PASSED 2357s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_time_rule_frame[False-0.0] PASSED 2357s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_time_rule_frame[False-0.1] PASSED 2357s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_time_rule_frame[False-0.5] PASSED 2357s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_time_rule_frame[False-0.9] PASSED 2357s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_time_rule_frame[False-1.0] PASSED 2357s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_nans[0.0] PASSED 2357s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_nans[0.1] PASSED 2357s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_nans[0.5] PASSED 2357s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_nans[0.9] PASSED 2357s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_nans[1.0] PASSED 2357s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[None-0.0-0] PASSED 2357s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[None-0.0-99] PASSED 2357s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[None-0.0-100] PASSED 2357s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[None-0.1-0] PASSED 2357s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[None-0.1-99] PASSED 2357s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[None-0.1-100] PASSED 2357s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[None-0.5-0] PASSED 2357s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[None-0.5-99] PASSED 2357s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[None-0.5-100] PASSED 2357s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[None-0.9-0] PASSED 2357s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[None-0.9-99] PASSED 2357s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[None-0.9-100] PASSED 2357s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[None-1.0-0] PASSED 2357s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[None-1.0-99] PASSED 2358s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[None-1.0-100] PASSED 2358s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[1-0.0-0] PASSED 2358s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[1-0.0-99] PASSED 2358s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[1-0.0-100] PASSED 2358s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[1-0.1-0] PASSED 2358s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[1-0.1-99] PASSED 2358s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[1-0.1-100] PASSED 2358s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[1-0.5-0] PASSED 2358s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[1-0.5-99] PASSED 2358s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[1-0.5-100] PASSED 2358s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[1-0.9-0] PASSED 2358s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[1-0.9-99] PASSED 2358s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[1-0.9-100] PASSED 2358s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[1-1.0-0] PASSED 2358s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[1-1.0-99] PASSED 2358s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[1-1.0-100] PASSED 2358s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[2-0.0-0] PASSED 2358s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[2-0.0-99] PASSED 2358s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[2-0.0-100] PASSED 2358s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[2-0.1-0] PASSED 2358s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[2-0.1-99] PASSED 2358s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[2-0.1-100] PASSED 2358s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[2-0.5-0] PASSED 2358s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[2-0.5-99] PASSED 2358s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[2-0.5-100] PASSED 2358s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[2-0.9-0] PASSED 2358s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[2-0.9-99] PASSED 2358s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[2-0.9-100] PASSED 2359s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[2-1.0-0] PASSED 2359s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[2-1.0-99] PASSED 2359s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[2-1.0-100] PASSED 2359s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[5-0.0-0] PASSED 2359s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[5-0.0-99] PASSED 2359s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[5-0.0-100] PASSED 2359s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[5-0.1-0] PASSED 2359s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[5-0.1-99] PASSED 2359s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[5-0.1-100] PASSED 2359s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[5-0.5-0] PASSED 2359s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[5-0.5-99] PASSED 2359s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[5-0.5-100] PASSED 2359s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[5-0.9-0] PASSED 2359s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[5-0.9-99] PASSED 2359s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[5-0.9-100] PASSED 2359s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[5-1.0-0] PASSED 2359s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[5-1.0-99] PASSED 2360s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[5-1.0-100] PASSED 2360s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[10-0.0-0] PASSED 2360s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[10-0.0-99] PASSED 2360s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[10-0.0-100] PASSED 2360s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[10-0.1-0] PASSED 2360s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[10-0.1-99] PASSED 2360s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[10-0.1-100] PASSED 2360s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[10-0.5-0] PASSED 2360s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[10-0.5-99] PASSED 2360s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[10-0.5-100] PASSED 2360s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[10-0.9-0] PASSED 2360s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[10-0.9-99] PASSED 2360s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[10-0.9-100] PASSED 2360s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[10-1.0-0] PASSED 2360s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[10-1.0-99] PASSED 2360s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[10-1.0-100] PASSED 2360s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_center[0.0] PASSED 2360s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_center[0.1] PASSED 2360s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_center[0.5] PASSED 2360s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_center[0.9] PASSED 2361s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_center[1.0] PASSED 2361s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_center_reindex_series[0.0] PASSED 2361s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_center_reindex_series[0.1] PASSED 2361s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_center_reindex_series[0.5] PASSED 2361s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_center_reindex_series[0.9] PASSED 2361s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_center_reindex_series[1.0] PASSED 2361s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_center_reindex_frame[0.0] PASSED 2361s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_center_reindex_frame[0.1] PASSED 2361s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_center_reindex_frame[0.5] PASSED 2361s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_center_reindex_frame[0.9] PASSED 2361s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_center_reindex_frame[1.0] PASSED 2361s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_keyword_quantile_deprecated PASSED 2361s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_series[kurtosis-kurt] PASSED 2361s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_series[skew-skew] PASSED 2361s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_frame[True-kurtosis-kurt] PASSED 2361s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_frame[True-skew-skew] PASSED 2361s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_frame[False-kurtosis-kurt] PASSED 2361s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_frame[False-skew-skew] PASSED 2361s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_time_rule_series[kurtosis-kurt] PASSED 2361s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_time_rule_series[skew-skew] PASSED 2362s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_time_rule_frame[True-kurtosis-kurt] PASSED 2362s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_time_rule_frame[True-skew-skew] PASSED 2362s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_time_rule_frame[False-kurtosis-kurt] PASSED 2362s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_time_rule_frame[False-skew-skew] PASSED 2362s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_nans[kurtosis-kurt] PASSED 2362s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_nans[skew-skew] PASSED 2362s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_min_periods[None-kurt-0] PASSED 2362s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_min_periods[None-kurt-99] PASSED 2362s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_min_periods[None-kurt-100] PASSED 2362s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_min_periods[None-skew-0] PASSED 2362s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_min_periods[None-skew-99] PASSED 2362s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_min_periods[None-skew-100] PASSED 2362s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_min_periods[1-kurt-0] PASSED 2362s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_min_periods[1-kurt-99] PASSED 2362s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_min_periods[1-kurt-100] PASSED 2362s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_min_periods[1-skew-0] PASSED 2362s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_min_periods[1-skew-99] PASSED 2362s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_min_periods[1-skew-100] PASSED 2362s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_min_periods[2-kurt-0] PASSED 2362s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_min_periods[2-kurt-99] PASSED 2362s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_min_periods[2-kurt-100] PASSED 2362s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_min_periods[2-skew-0] PASSED 2362s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_min_periods[2-skew-99] PASSED 2362s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_min_periods[2-skew-100] PASSED 2363s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_min_periods[5-kurt-0] PASSED 2363s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_min_periods[5-kurt-99] PASSED 2363s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_min_periods[5-kurt-100] PASSED 2363s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_min_periods[5-skew-0] PASSED 2363s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_min_periods[5-skew-99] PASSED 2363s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_min_periods[5-skew-100] PASSED 2363s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_min_periods[10-kurt-0] PASSED 2363s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_min_periods[10-kurt-99] PASSED 2363s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_min_periods[10-kurt-100] PASSED 2363s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_min_periods[10-skew-0] PASSED 2363s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_min_periods[10-skew-99] PASSED 2363s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_min_periods[10-skew-100] PASSED 2363s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_center[kurt] PASSED 2363s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_center[skew] PASSED 2363s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_center_reindex_series[kurt] PASSED 2363s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_center_reindex_series[skew] PASSED 2363s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_rolling_skew_edge_cases[None] PASSED 2363s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_rolling_skew_edge_cases[1] PASSED 2363s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_rolling_skew_edge_cases[2] PASSED 2363s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_rolling_skew_edge_cases[5] PASSED 2363s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_rolling_skew_edge_cases[10] PASSED 2363s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_rolling_kurt_edge_cases[None] PASSED 2364s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_rolling_kurt_edge_cases[1] PASSED 2364s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_rolling_kurt_edge_cases[2] PASSED 2364s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_rolling_kurt_edge_cases[5] PASSED 2364s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_rolling_kurt_edge_cases[10] PASSED 2364s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_rolling_skew_eq_value_fperr[None] PASSED 2364s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_rolling_skew_eq_value_fperr[1] PASSED 2364s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_rolling_skew_eq_value_fperr[2] PASSED 2364s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_rolling_skew_eq_value_fperr[5] PASSED 2364s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_rolling_skew_eq_value_fperr[10] PASSED 2364s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_rolling_kurt_eq_value_fperr[None] PASSED 2364s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_rolling_kurt_eq_value_fperr[1] PASSED 2364s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_rolling_kurt_eq_value_fperr[2] PASSED 2364s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_rolling_kurt_eq_value_fperr[5] PASSED 2364s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_rolling_kurt_eq_value_fperr[10] PASSED 2364s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_doc_string PASSED 2364s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_invalid_window_non_int PASSED 2364s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_invalid_window_nonfixed[2MS] PASSED 2364s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_invalid_window_nonfixed[freq1] PASSED 2364s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_valid_window[1D] PASSED 2364s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_valid_window[freq1] PASSED 2364s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_valid_window[2ms] PASSED 2364s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_invalid_minp[1.0] PASSED 2365s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_invalid_minp[foo] PASSED 2365s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_invalid_minp[minp2] PASSED 2365s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_on PASSED 2365s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_monotonic_on PASSED 2365s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_non_monotonic_on PASSED 2365s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_frame_on PASSED 2365s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_frame_on2 PASSED 2365s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_basic_regular PASSED 2365s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_min_periods PASSED 2365s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_closed PASSED 2365s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_ragged_sum PASSED 2365s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_ragged_mean PASSED 2365s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_ragged_median PASSED 2365s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_ragged_quantile PASSED 2365s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_ragged_std PASSED 2365s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_ragged_var PASSED 2365s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_ragged_skew PASSED 2365s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_ragged_kurt PASSED 2365s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_ragged_count PASSED 2365s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_regular_min PASSED 2365s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_ragged_min PASSED 2365s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_perf_min PASSED 2365s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_ragged_max PASSED 2365s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_freqs_ops[ms-min-result_data0] PASSED 2365s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_freqs_ops[ms-mean-result_data1] PASSED 2366s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_freqs_ops[ms-max-result_data2] PASSED 2366s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_freqs_ops[s-min-result_data3] PASSED 2366s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_freqs_ops[s-mean-result_data4] PASSED 2366s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_freqs_ops[s-max-result_data5] PASSED 2366s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_freqs_ops[min-min-result_data6] PASSED 2366s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_freqs_ops[min-mean-result_data7] PASSED 2366s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_freqs_ops[min-max-result_data8] PASSED 2366s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_freqs_ops[h-min-result_data9] PASSED 2366s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_freqs_ops[h-mean-result_data10] PASSED 2366s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_freqs_ops[h-max-result_data11] PASSED 2366s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_freqs_ops[D-min-result_data12] PASSED 2366s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_freqs_ops[D-mean-result_data13] PASSED 2366s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_freqs_ops[D-max-result_data14] PASSED 2366s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_all[sum] PASSED 2366s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_all[mean] PASSED 2366s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_all[count] PASSED 2366s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_all[median] PASSED 2366s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_all[std] PASSED 2366s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_all[var] PASSED 2366s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_all[kurt] PASSED 2366s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_all[skew] PASSED 2366s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_all[min] PASSED 2366s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_all[max] PASSED 2366s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_all2[sum] PASSED 2366s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_all2[mean] PASSED 2366s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_all2[median] PASSED 2366s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_all2[max] PASSED 2367s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_all2[min] PASSED 2367s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_all2[var] PASSED 2367s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_all2[std] PASSED 2367s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_all2[kurt] PASSED 2367s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_all2[skew] PASSED 2367s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_all2[count] PASSED 2367s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_all2[sem] PASSED 2367s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_rolling_cov_offset PASSED 2367s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_rolling_on_decreasing_index PASSED 2367s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_rolling_on_empty PASSED 2367s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_rolling_on_multi_index_level PASSED 2367s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::test_nat_axis_error[column-1] PASSED 2367s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::test_nat_axis_error[index-0] PASSED 2367s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_constructor[DataFrame] PASSED 2367s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_constructor[Series] PASSED 2367s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_invalid_constructor[DataFrame-2.0] PASSED 2367s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_invalid_constructor[DataFrame-foo] PASSED 2367s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_invalid_constructor[DataFrame-w2] PASSED 2367s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_invalid_constructor[Series-2.0] PASSED 2367s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_invalid_constructor[Series-foo] PASSED 2367s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_invalid_constructor[Series-w2] PASSED 2367s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_invalid_constructor_wintype[DataFrame-foobar] PASSED 2367s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_invalid_constructor_wintype[DataFrame-1] PASSED 2367s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_invalid_constructor_wintype[Series-foobar] PASSED 2367s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_invalid_constructor_wintype[Series-1] PASSED 2367s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_constructor_with_win_type[DataFrame-triang] PASSED 2367s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_constructor_with_win_type[DataFrame-blackman] PASSED 2367s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_constructor_with_win_type[DataFrame-hamming] PASSED 2368s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_constructor_with_win_type[DataFrame-bartlett] PASSED 2368s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_constructor_with_win_type[DataFrame-bohman] PASSED 2368s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_constructor_with_win_type[DataFrame-blackmanharris] PASSED 2368s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_constructor_with_win_type[DataFrame-nuttall] PASSED 2368s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_constructor_with_win_type[DataFrame-barthann] PASSED 2368s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_constructor_with_win_type[Series-triang] PASSED 2368s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_constructor_with_win_type[Series-blackman] PASSED 2368s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_constructor_with_win_type[Series-hamming] PASSED 2368s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_constructor_with_win_type[Series-bartlett] PASSED 2368s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_constructor_with_win_type[Series-bohman] PASSED 2368s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_constructor_with_win_type[Series-blackmanharris] PASSED 2368s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_constructor_with_win_type[Series-nuttall] PASSED 2368s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_constructor_with_win_type[Series-barthann] PASSED 2368s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_agg_function_support[median] PASSED 2368s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_agg_function_support[kurt] PASSED 2368s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_agg_function_support[skew] PASSED 2368s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_invalid_scipy_arg PASSED 2368s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_constructor_with_win_type_invalid[DataFrame] PASSED 2368s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_constructor_with_win_type_invalid[Series] PASSED 2368s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_window_with_args[None] PASSED 2368s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_window_with_args[1] PASSED 2368s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_window_with_args[2] PASSED 2368s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_window_with_args[5] PASSED 2368s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_window_with_args[10] PASSED 2368s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_win_type_with_method_invalid PASSED 2368s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_consistent_win_type_freq[2000000000] PASSED 2368s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_consistent_win_type_freq[2s] PASSED 2368s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_consistent_win_type_freq[arg2] PASSED 2368s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_win_type_freq_return_none PASSED 2368s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_win_type_not_implemented PASSED 2369s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_mean[None] PASSED 2369s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_mean[1] PASSED 2369s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_mean[2] PASSED 2369s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_mean[5] PASSED 2369s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_mean[10] PASSED 2369s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window[None] PASSED 2369s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window[1] PASSED 2369s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window[2] PASSED 2369s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window[5] PASSED 2369s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window[10] PASSED 2369s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_corner[None] PASSED 2369s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_corner[1] PASSED 2369s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_corner[2] PASSED 2369s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_corner[5] PASSED 2369s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_corner[10] PASSED 2369s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_frame[None-mean-xp0] PASSED 2369s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_frame[None-std-xp1] PASSED 2369s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_frame[None-var-xp2] PASSED 2369s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_frame[None-sum-xp3] PASSED 2369s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_frame[1-mean-xp0] PASSED 2369s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_frame[1-std-xp1] PASSED 2369s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_frame[1-var-xp2] PASSED 2369s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_frame[1-sum-xp3] PASSED 2369s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_frame[2-mean-xp0] PASSED 2369s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_frame[2-std-xp1] PASSED 2369s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_frame[2-var-xp2] PASSED 2370s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_frame[2-sum-xp3] PASSED 2370s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_frame[5-mean-xp0] PASSED 2370s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_frame[5-std-xp1] PASSED 2370s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_frame[5-var-xp2] PASSED 2370s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_frame[5-sum-xp3] PASSED 2370s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_frame[10-mean-xp0] PASSED 2370s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_frame[10-std-xp1] PASSED 2370s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_frame[10-var-xp2] PASSED 2370s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_frame[10-sum-xp3] PASSED 2370s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_na_min_periods[None-0] PASSED 2370s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_na_min_periods[None-1] PASSED 2370s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_na_min_periods[None-2] PASSED 2370s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_na_min_periods[None-3] PASSED 2370s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_na_min_periods[None-4] PASSED 2370s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_na_min_periods[None-5] PASSED 2370s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_na_min_periods[1-0] PASSED 2370s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_na_min_periods[1-1] PASSED 2370s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_na_min_periods[1-2] PASSED 2370s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_na_min_periods[1-3] PASSED 2370s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_na_min_periods[1-4] PASSED 2370s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_na_min_periods[1-5] PASSED 2370s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_na_min_periods[2-0] PASSED 2370s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_na_min_periods[2-1] PASSED 2370s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_na_min_periods[2-2] PASSED 2370s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_na_min_periods[2-3] PASSED 2370s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_na_min_periods[2-4] PASSED 2370s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_na_min_periods[2-5] PASSED 2370s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_na_min_periods[5-0] PASSED 2370s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_na_min_periods[5-1] PASSED 2370s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_na_min_periods[5-2] PASSED 2370s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_na_min_periods[5-3] PASSED 2370s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_na_min_periods[5-4] PASSED 2370s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_na_min_periods[5-5] PASSED 2371s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_na_min_periods[10-0] PASSED 2371s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_na_min_periods[10-1] PASSED 2371s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_na_min_periods[10-2] PASSED 2371s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_na_min_periods[10-3] PASSED 2371s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_na_min_periods[10-4] PASSED 2371s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_na_min_periods[10-5] PASSED 2371s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular[triang-None] PASSED 2371s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular[triang-1] PASSED 2371s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular[triang-2] PASSED 2371s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular[triang-5] PASSED 2371s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular[triang-10] PASSED 2371s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular[blackman-None] PASSED 2371s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular[blackman-1] PASSED 2371s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular[blackman-2] PASSED 2371s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular[blackman-5] PASSED 2371s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular[blackman-10] PASSED 2371s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular[hamming-None] PASSED 2371s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular[hamming-1] PASSED 2371s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular[hamming-2] PASSED 2371s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular[hamming-5] PASSED 2371s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular[hamming-10] PASSED 2371s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular[bartlett-None] PASSED 2371s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular[bartlett-1] PASSED 2371s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular[bartlett-2] PASSED 2371s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular[bartlett-5] PASSED 2371s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular[bartlett-10] PASSED 2372s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular[bohman-None] PASSED 2372s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular[bohman-1] PASSED 2372s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular[bohman-2] PASSED 2372s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular[bohman-5] PASSED 2372s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular[bohman-10] PASSED 2372s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular[blackmanharris-None] PASSED 2372s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular[blackmanharris-1] PASSED 2372s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular[blackmanharris-2] PASSED 2372s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular[blackmanharris-5] PASSED 2372s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular[blackmanharris-10] PASSED 2372s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular[nuttall-None] PASSED 2372s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular[nuttall-1] PASSED 2372s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular[nuttall-2] PASSED 2372s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular[nuttall-5] PASSED 2372s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular[nuttall-10] PASSED 2372s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular[barthann-None] PASSED 2372s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular[barthann-1] PASSED 2372s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular[barthann-2] PASSED 2372s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular[barthann-5] PASSED 2372s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular[barthann-10] PASSED 2372s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_linear_range[triang-None] PASSED 2372s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_linear_range[triang-1] PASSED 2372s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_linear_range[triang-2] PASSED 2372s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_linear_range[triang-5] PASSED 2372s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_linear_range[triang-10] PASSED 2372s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_linear_range[blackman-None] PASSED 2372s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_linear_range[blackman-1] PASSED 2372s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_linear_range[blackman-2] PASSED 2372s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_linear_range[blackman-5] PASSED 2373s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_linear_range[blackman-10] PASSED 2373s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_linear_range[hamming-None] PASSED 2373s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_linear_range[hamming-1] PASSED 2373s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_linear_range[hamming-2] PASSED 2373s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_linear_range[hamming-5] PASSED 2373s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_linear_range[hamming-10] PASSED 2373s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_linear_range[bartlett-None] PASSED 2373s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_linear_range[bartlett-1] PASSED 2373s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_linear_range[bartlett-2] PASSED 2373s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_linear_range[bartlett-5] PASSED 2373s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_linear_range[bartlett-10] PASSED 2373s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_linear_range[bohman-None] PASSED 2373s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_linear_range[bohman-1] PASSED 2373s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_linear_range[bohman-2] PASSED 2373s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_linear_range[bohman-5] PASSED 2373s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_linear_range[bohman-10] PASSED 2373s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_linear_range[blackmanharris-None] PASSED 2373s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_linear_range[blackmanharris-1] PASSED 2373s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_linear_range[blackmanharris-2] PASSED 2373s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_linear_range[blackmanharris-5] PASSED 2373s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_linear_range[blackmanharris-10] PASSED 2373s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_linear_range[nuttall-None] PASSED 2373s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_linear_range[nuttall-1] PASSED 2373s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_linear_range[nuttall-2] PASSED 2373s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_linear_range[nuttall-5] PASSED 2374s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_linear_range[nuttall-10] PASSED 2374s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_linear_range[barthann-None] PASSED 2374s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_linear_range[barthann-1] PASSED 2374s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_linear_range[barthann-2] PASSED 2374s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_linear_range[barthann-5] PASSED 2374s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_linear_range[barthann-10] PASSED 2374s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_missing_data[triang-None] PASSED 2374s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_missing_data[triang-1] PASSED 2374s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_missing_data[triang-2] PASSED 2374s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_missing_data[triang-5] PASSED 2374s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_missing_data[triang-10] PASSED 2374s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_missing_data[blackman-None] PASSED 2374s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_missing_data[blackman-1] PASSED 2374s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_missing_data[blackman-2] PASSED 2374s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_missing_data[blackman-5] PASSED 2374s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_missing_data[blackman-10] PASSED 2374s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_missing_data[hamming-None] PASSED 2374s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_missing_data[hamming-1] PASSED 2375s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_missing_data[hamming-2] PASSED 2375s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_missing_data[hamming-5] PASSED 2375s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_missing_data[hamming-10] PASSED 2375s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_missing_data[bartlett-None] PASSED 2375s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_missing_data[bartlett-1] PASSED 2375s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_missing_data[bartlett-2] PASSED 2375s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_missing_data[bartlett-5] PASSED 2375s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_missing_data[bartlett-10] PASSED 2375s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_missing_data[bohman-None] PASSED 2375s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_missing_data[bohman-1] PASSED 2375s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_missing_data[bohman-2] PASSED 2375s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_missing_data[bohman-5] PASSED 2375s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_missing_data[bohman-10] PASSED 2375s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_missing_data[blackmanharris-None] PASSED 2375s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_missing_data[blackmanharris-1] PASSED 2375s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_missing_data[blackmanharris-2] PASSED 2375s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_missing_data[blackmanharris-5] PASSED 2375s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_missing_data[blackmanharris-10] PASSED 2375s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_missing_data[nuttall-None] PASSED 2375s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_missing_data[nuttall-1] PASSED 2375s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_missing_data[nuttall-2] PASSED 2375s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_missing_data[nuttall-5] PASSED 2375s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_missing_data[nuttall-10] PASSED 2375s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_missing_data[barthann-None] PASSED 2375s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_missing_data[barthann-1] PASSED 2375s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_missing_data[barthann-2] PASSED 2375s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_missing_data[barthann-5] PASSED 2375s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_missing_data[barthann-10] PASSED 2375s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_special[kaiser-None] PASSED 2375s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_special[kaiser-1] PASSED 2375s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_special[kaiser-2] PASSED 2375s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_special[kaiser-5] PASSED 2375s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_special[kaiser-10] PASSED 2375s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_special[gaussian-None] PASSED 2375s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_special[gaussian-1] PASSED 2375s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_special[gaussian-2] PASSED 2376s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_special[gaussian-5] PASSED 2376s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_special[gaussian-10] PASSED 2376s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_special[general_gaussian-None] PASSED 2376s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_special[general_gaussian-1] PASSED 2376s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_special[general_gaussian-2] PASSED 2376s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_special[general_gaussian-5] PASSED 2376s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_special[general_gaussian-10] PASSED 2376s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_special[exponential-None] PASSED 2376s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_special[exponential-1] PASSED 2376s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_special[exponential-2] PASSED 2376s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_special[exponential-5] PASSED 2376s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_special[exponential-10] PASSED 2376s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_special_linear_range[kaiser-None] PASSED 2376s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_special_linear_range[kaiser-1] PASSED 2376s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_special_linear_range[kaiser-2] PASSED 2376s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_special_linear_range[kaiser-5] PASSED 2376s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_special_linear_range[kaiser-10] PASSED 2376s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_special_linear_range[gaussian-None] PASSED 2376s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_special_linear_range[gaussian-1] PASSED 2376s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_special_linear_range[gaussian-2] PASSED 2376s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_special_linear_range[gaussian-5] PASSED 2376s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_special_linear_range[gaussian-10] PASSED 2376s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_special_linear_range[general_gaussian-None] PASSED 2376s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_special_linear_range[general_gaussian-1] PASSED 2376s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_special_linear_range[general_gaussian-2] PASSED 2376s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_special_linear_range[general_gaussian-5] PASSED 2376s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_special_linear_range[general_gaussian-10] PASSED 2376s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_special_linear_range[exponential-None] PASSED 2376s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_special_linear_range[exponential-1] PASSED 2376s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_special_linear_range[exponential-2] PASSED 2376s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_special_linear_range[exponential-5] PASSED 2376s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_special_linear_range[exponential-10] PASSED 2376s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_weighted_var_big_window_no_segfault[triang-True] PASSED 2376s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_weighted_var_big_window_no_segfault[triang-False] PASSED 2376s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_weighted_var_big_window_no_segfault[blackman-True] PASSED 2376s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_weighted_var_big_window_no_segfault[blackman-False] PASSED 2376s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_weighted_var_big_window_no_segfault[hamming-True] PASSED 2376s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_weighted_var_big_window_no_segfault[hamming-False] PASSED 2377s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_weighted_var_big_window_no_segfault[bartlett-True] PASSED 2377s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_weighted_var_big_window_no_segfault[bartlett-False] PASSED 2377s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_weighted_var_big_window_no_segfault[bohman-True] PASSED 2377s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_weighted_var_big_window_no_segfault[bohman-False] PASSED 2377s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_weighted_var_big_window_no_segfault[blackmanharris-True] PASSED 2377s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_weighted_var_big_window_no_segfault[blackmanharris-False] PASSED 2377s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_weighted_var_big_window_no_segfault[nuttall-True] PASSED 2377s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_weighted_var_big_window_no_segfault[nuttall-False] PASSED 2377s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_weighted_var_big_window_no_segfault[barthann-True] PASSED 2377s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_weighted_var_big_window_no_segfault[barthann-False] PASSED 2377s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_rolling_center_axis_1 PASSED 2377s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data0-True-True-0] PASSED 2377s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data0-True-True-2] PASSED 2377s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data0-True-False-0] PASSED 2377s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data0-True-False-2] PASSED 2377s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data0-False-True-0] PASSED 2377s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data0-False-True-2] PASSED 2377s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data0-False-False-0] PASSED 2377s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data0-False-False-2] PASSED 2377s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data1-True-True-0] PASSED 2377s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data1-True-True-2] PASSED 2377s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data1-True-False-0] PASSED 2377s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data1-True-False-2] PASSED 2377s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data1-False-True-0] PASSED 2377s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data1-False-True-2] PASSED 2377s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data1-False-False-0] PASSED 2377s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data1-False-False-2] PASSED 2377s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data2-True-True-0] PASSED 2378s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data2-True-True-2] PASSED 2378s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data2-True-False-0] PASSED 2378s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data2-True-False-2] PASSED 2378s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data2-False-True-0] PASSED 2378s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data2-False-True-2] PASSED 2378s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data2-False-False-0] PASSED 2378s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data2-False-False-2] PASSED 2378s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data3-True-True-0] PASSED 2378s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data3-True-True-2] PASSED 2378s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data3-True-False-0] PASSED 2378s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data3-True-False-2] PASSED 2378s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data3-False-True-0] PASSED 2378s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data3-False-True-2] PASSED 2378s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data3-False-False-0] PASSED 2378s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data3-False-False-2] PASSED 2378s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data4-True-True-0] PASSED 2378s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data4-True-True-2] PASSED 2378s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data4-True-False-0] PASSED 2378s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data4-True-False-2] PASSED 2378s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data4-False-True-0] PASSED 2378s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data4-False-True-2] PASSED 2378s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data4-False-False-0] PASSED 2378s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data4-False-False-2] PASSED 2378s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data5-True-True-0] PASSED 2378s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data5-True-True-2] PASSED 2378s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data5-True-False-0] PASSED 2378s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data5-True-False-2] PASSED 2378s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data5-False-True-0] PASSED 2378s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data5-False-True-2] PASSED 2378s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data5-False-False-0] PASSED 2378s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data5-False-False-2] PASSED 2378s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data6-True-True-0] PASSED 2378s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data6-True-True-2] PASSED 2378s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data6-True-False-0] PASSED 2379s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data6-True-False-2] PASSED 2379s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data6-False-True-0] PASSED 2379s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data6-False-True-2] PASSED 2379s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data6-False-False-0] PASSED 2379s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data6-False-False-2] PASSED 2379s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data7-True-True-0] PASSED 2379s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data7-True-True-2] PASSED 2379s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data7-True-False-0] PASSED 2379s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data7-True-False-2] PASSED 2379s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data7-False-True-0] PASSED 2379s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data7-False-True-2] PASSED 2379s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data7-False-False-0] PASSED 2379s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data7-False-False-2] PASSED 2379s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data8-True-True-0] PASSED 2379s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data8-True-True-2] PASSED 2379s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data8-True-False-0] PASSED 2379s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data8-True-False-2] PASSED 2379s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data8-False-True-0] PASSED 2379s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data8-False-True-2] PASSED 2379s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data8-False-False-0] PASSED 2379s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data8-False-False-2] PASSED 2379s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data9-True-True-0] PASSED 2379s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data9-True-True-2] PASSED 2379s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data9-True-False-0] PASSED 2379s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data9-True-False-2] PASSED 2379s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data9-False-True-0] PASSED 2379s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data9-False-True-2] PASSED 2380s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data9-False-False-0] PASSED 2380s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data9-False-False-2] PASSED 2380s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data10-True-True-0] PASSED 2380s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data10-True-True-2] PASSED 2380s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data10-True-False-0] PASSED 2380s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data10-True-False-2] PASSED 2380s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data10-False-True-0] PASSED 2380s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data10-False-True-2] PASSED 2380s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data10-False-False-0] PASSED 2380s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data10-False-False-2] PASSED 2380s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data11-True-True-0] PASSED 2380s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data11-True-True-2] PASSED 2380s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data11-True-False-0] PASSED 2380s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data11-True-False-2] PASSED 2380s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data11-False-True-0] PASSED 2380s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data11-False-True-2] PASSED 2380s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data11-False-False-0] PASSED 2380s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data11-False-False-2] PASSED 2380s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data12-True-True-0] PASSED 2380s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data12-True-True-2] PASSED 2380s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data12-True-False-0] PASSED 2380s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data12-True-False-2] PASSED 2380s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data12-False-True-0] PASSED 2380s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data12-False-True-2] PASSED 2380s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data12-False-False-0] PASSED 2381s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data12-False-False-2] PASSED 2381s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data13-True-True-0] PASSED 2381s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data13-True-True-2] PASSED 2381s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data13-True-False-0] PASSED 2381s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data13-True-False-2] PASSED 2381s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data13-False-True-0] PASSED 2381s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data13-False-True-2] PASSED 2381s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data13-False-False-0] PASSED 2381s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data13-False-False-2] PASSED 2381s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data14-True-True-0] PASSED 2381s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data14-True-True-2] PASSED 2381s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data14-True-False-0] PASSED 2381s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data14-True-False-2] PASSED 2381s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data14-False-True-0] PASSED 2381s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data14-False-True-2] PASSED 2381s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data14-False-False-0] PASSED 2381s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data14-False-False-2] PASSED 2381s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data15-True-True-0] PASSED 2381s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data15-True-True-2] PASSED 2381s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data15-True-False-0] PASSED 2381s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data15-True-False-2] PASSED 2381s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data15-False-True-0] PASSED 2381s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data15-False-True-2] PASSED 2381s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data15-False-False-0] PASSED 2381s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data15-False-False-2] PASSED 2381s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data16-True-True-0] PASSED 2381s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data16-True-True-2] PASSED 2381s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data16-True-False-0] PASSED 2381s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data16-True-False-2] PASSED 2381s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data16-False-True-0] PASSED 2382s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data16-False-True-2] PASSED 2382s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data16-False-False-0] PASSED 2382s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data16-False-False-2] PASSED 2382s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data17-True-True-0] PASSED 2382s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data17-True-True-2] PASSED 2382s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data17-True-False-0] PASSED 2382s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data17-True-False-2] PASSED 2382s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data17-False-True-0] PASSED 2382s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data17-False-True-2] PASSED 2382s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data17-False-False-0] PASSED 2382s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data17-False-False-2] PASSED 2382s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_consistent[consistent_data0-True-True-0] PASSED 2382s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_consistent[consistent_data0-True-True-2] PASSED 2382s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_consistent[consistent_data0-True-False-0] PASSED 2382s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_consistent[consistent_data0-True-False-2] PASSED 2382s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_consistent[consistent_data0-False-True-0] PASSED 2382s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_consistent[consistent_data0-False-True-2] PASSED 2382s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_consistent[consistent_data0-False-False-0] PASSED 2382s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_consistent[consistent_data0-False-False-2] PASSED 2382s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_consistent[consistent_data1-True-True-0] PASSED 2382s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_consistent[consistent_data1-True-True-2] PASSED 2382s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_consistent[consistent_data1-True-False-0] PASSED 2382s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_consistent[consistent_data1-True-False-2] PASSED 2382s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_consistent[consistent_data1-False-True-0] PASSED 2382s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_consistent[consistent_data1-False-True-2] PASSED 2382s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_consistent[consistent_data1-False-False-0] PASSED 2382s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_consistent[consistent_data1-False-False-2] PASSED 2382s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_consistent[consistent_data2-True-True-0] PASSED 2382s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_consistent[consistent_data2-True-True-2] PASSED 2382s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_consistent[consistent_data2-True-False-0] PASSED 2383s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_consistent[consistent_data2-True-False-2] PASSED 2383s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_consistent[consistent_data2-False-True-0] PASSED 2383s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_consistent[consistent_data2-False-True-2] PASSED 2383s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_consistent[consistent_data2-False-False-0] PASSED 2383s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_consistent[consistent_data2-False-False-2] PASSED 2383s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_consistent[consistent_data3-True-True-0] PASSED 2383s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_consistent[consistent_data3-True-True-2] PASSED 2383s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_consistent[consistent_data3-True-False-0] PASSED 2383s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_consistent[consistent_data3-True-False-2] PASSED 2383s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_consistent[consistent_data3-False-True-0] PASSED 2383s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_consistent[consistent_data3-False-True-2] PASSED 2383s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_consistent[consistent_data3-False-False-0] PASSED 2383s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_consistent[consistent_data3-False-False-2] PASSED 2383s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data0-True-True-0] PASSED 2383s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data0-True-True-2] PASSED 2383s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data0-True-False-0] PASSED 2383s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data0-True-False-2] PASSED 2383s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data0-False-True-0] PASSED 2384s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data0-False-True-2] PASSED 2384s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data0-False-False-0] PASSED 2384s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data0-False-False-2] PASSED 2384s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data1-True-True-0] PASSED 2384s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data1-True-True-2] PASSED 2385s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data1-True-False-0] PASSED 2385s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data1-True-False-2] PASSED 2385s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data1-False-True-0] PASSED 2386s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data1-False-True-2] PASSED 2386s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data1-False-False-0] PASSED 2386s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data1-False-False-2] PASSED 2386s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data2-True-True-0] PASSED 2386s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data2-True-True-2] PASSED 2386s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data2-True-False-0] PASSED 2386s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data2-True-False-2] PASSED 2386s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data2-False-True-0] PASSED 2386s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data2-False-True-2] PASSED 2386s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data2-False-False-0] PASSED 2386s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data2-False-False-2] PASSED 2386s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data3-True-True-0] PASSED 2386s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data3-True-True-2] PASSED 2386s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data3-True-False-0] PASSED 2386s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data3-True-False-2] PASSED 2386s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data3-False-True-0] PASSED 2386s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data3-False-True-2] PASSED 2386s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data3-False-False-0] PASSED 2386s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data3-False-False-2] PASSED 2386s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data4-True-True-0] PASSED 2387s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data4-True-True-2] PASSED 2387s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data4-True-False-0] PASSED 2387s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data4-True-False-2] PASSED 2387s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data4-False-True-0] PASSED 2387s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data4-False-True-2] PASSED 2387s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data4-False-False-0] PASSED 2387s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data4-False-False-2] PASSED 2387s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data5-True-True-0] PASSED 2387s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data5-True-True-2] PASSED 2387s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data5-True-False-0] PASSED 2387s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data5-True-False-2] PASSED 2387s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data5-False-True-0] PASSED 2387s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data5-False-True-2] PASSED 2387s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data5-False-False-0] PASSED 2387s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data5-False-False-2] PASSED 2387s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data6-True-True-0] PASSED 2387s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data6-True-True-2] PASSED 2387s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data6-True-False-0] PASSED 2387s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data6-True-False-2] PASSED 2387s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data6-False-True-0] PASSED 2387s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data6-False-True-2] PASSED 2387s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data6-False-False-0] PASSED 2387s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data6-False-False-2] PASSED 2387s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data7-True-True-0] PASSED 2387s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data7-True-True-2] PASSED 2387s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data7-True-False-0] PASSED 2387s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data7-True-False-2] PASSED 2387s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data7-False-True-0] PASSED 2387s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data7-False-True-2] PASSED 2387s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data7-False-False-0] PASSED 2387s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data7-False-False-2] PASSED 2387s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data8-True-True-0] PASSED 2387s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data8-True-True-2] PASSED 2387s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data8-True-False-0] PASSED 2388s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data8-True-False-2] PASSED 2388s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data8-False-True-0] PASSED 2388s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data8-False-True-2] PASSED 2388s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data8-False-False-0] PASSED 2388s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data8-False-False-2] PASSED 2388s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data9-True-True-0] PASSED 2388s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data9-True-True-2] PASSED 2388s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data9-True-False-0] PASSED 2388s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data9-True-False-2] PASSED 2388s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data9-False-True-0] PASSED 2388s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data9-False-True-2] PASSED 2388s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data9-False-False-0] PASSED 2388s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data9-False-False-2] PASSED 2388s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data10-True-True-0] PASSED 2388s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data10-True-True-2] PASSED 2388s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data10-True-False-0] PASSED 2388s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data10-True-False-2] PASSED 2388s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data10-False-True-0] PASSED 2388s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data10-False-True-2] PASSED 2388s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data10-False-False-0] PASSED 2388s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data10-False-False-2] PASSED 2388s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data11-True-True-0] PASSED 2388s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data11-True-True-2] PASSED 2388s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data11-True-False-0] PASSED 2388s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data11-True-False-2] PASSED 2388s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data11-False-True-0] PASSED 2388s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data11-False-True-2] PASSED 2389s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data11-False-False-0] PASSED 2389s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data11-False-False-2] PASSED 2389s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data12-True-True-0] PASSED 2389s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data12-True-True-2] PASSED 2389s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data12-True-False-0] PASSED 2389s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data12-True-False-2] PASSED 2389s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data12-False-True-0] PASSED 2389s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data12-False-True-2] PASSED 2389s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data12-False-False-0] PASSED 2389s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data12-False-False-2] PASSED 2389s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data13-True-True-0] PASSED 2389s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data13-True-True-2] PASSED 2389s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data13-True-False-0] PASSED 2389s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data13-True-False-2] PASSED 2389s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data13-False-True-0] PASSED 2389s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data13-False-True-2] PASSED 2389s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data13-False-False-0] PASSED 2389s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data13-False-False-2] PASSED 2389s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data14-True-True-0] PASSED 2389s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data14-True-True-2] PASSED 2389s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data14-True-False-0] PASSED 2389s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data14-True-False-2] PASSED 2389s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data14-False-True-0] PASSED 2389s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data14-False-True-2] PASSED 2389s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data14-False-False-0] PASSED 2389s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data14-False-False-2] PASSED 2390s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data15-True-True-0] PASSED 2390s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data15-True-True-2] PASSED 2390s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data15-True-False-0] PASSED 2390s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data15-True-False-2] PASSED 2390s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data15-False-True-0] PASSED 2390s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data15-False-True-2] PASSED 2390s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data15-False-False-0] PASSED 2390s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data15-False-False-2] PASSED 2390s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data16-True-True-0] PASSED 2390s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data16-True-True-2] PASSED 2390s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data16-True-False-0] PASSED 2390s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data16-True-False-2] PASSED 2390s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data16-False-True-0] PASSED 2390s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data16-False-True-2] PASSED 2390s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data16-False-False-0] PASSED 2390s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data16-False-False-2] PASSED 2390s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data17-True-True-0] PASSED 2390s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data17-True-True-2] PASSED 2390s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data17-True-False-0] PASSED 2390s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data17-True-False-2] PASSED 2390s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data17-False-True-0] PASSED 2391s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data17-False-True-2] PASSED 2391s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data17-False-False-0] PASSED 2391s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_var_debiasing_factors[all_data17-False-False-2] PASSED 2391s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data0-True-True-0-True] PASSED 2391s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data0-True-True-0-False] PASSED 2391s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data0-True-True-2-True] PASSED 2391s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data0-True-True-2-False] PASSED 2391s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data0-True-False-0-True] PASSED 2391s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data0-True-False-0-False] PASSED 2391s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data0-True-False-2-True] PASSED 2391s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data0-True-False-2-False] PASSED 2391s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data0-False-True-0-True] PASSED 2391s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data0-False-True-0-False] PASSED 2391s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data0-False-True-2-True] PASSED 2391s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data0-False-True-2-False] PASSED 2391s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data0-False-False-0-True] PASSED 2391s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data0-False-False-0-False] PASSED 2391s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data0-False-False-2-True] PASSED 2391s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data0-False-False-2-False] PASSED 2391s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data1-True-True-0-True] PASSED 2391s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data1-True-True-0-False] PASSED 2391s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data1-True-True-2-True] PASSED 2391s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data1-True-True-2-False] PASSED 2391s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data1-True-False-0-True] PASSED 2391s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data1-True-False-0-False] PASSED 2391s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data1-True-False-2-True] PASSED 2391s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data1-True-False-2-False] PASSED 2391s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data1-False-True-0-True] PASSED 2391s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data1-False-True-0-False] PASSED 2391s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data1-False-True-2-True] PASSED 2391s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data1-False-True-2-False] PASSED 2391s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data1-False-False-0-True] PASSED 2391s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data1-False-False-0-False] PASSED 2391s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data1-False-False-2-True] PASSED 2392s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data1-False-False-2-False] PASSED 2392s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data2-True-True-0-True] PASSED 2392s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data2-True-True-0-False] PASSED 2392s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data2-True-True-2-True] PASSED 2392s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data2-True-True-2-False] PASSED 2392s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data2-True-False-0-True] PASSED 2392s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data2-True-False-0-False] PASSED 2392s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data2-True-False-2-True] PASSED 2392s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data2-True-False-2-False] PASSED 2392s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data2-False-True-0-True] PASSED 2392s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data2-False-True-0-False] PASSED 2392s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data2-False-True-2-True] PASSED 2392s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data2-False-True-2-False] PASSED 2392s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data2-False-False-0-True] PASSED 2392s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data2-False-False-0-False] PASSED 2392s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data2-False-False-2-True] PASSED 2392s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data2-False-False-2-False] PASSED 2392s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data3-True-True-0-True] PASSED 2392s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data3-True-True-0-False] PASSED 2392s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data3-True-True-2-True] PASSED 2392s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data3-True-True-2-False] PASSED 2393s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data3-True-False-0-True] PASSED 2393s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data3-True-False-0-False] PASSED 2393s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data3-True-False-2-True] PASSED 2393s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data3-True-False-2-False] PASSED 2393s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data3-False-True-0-True] PASSED 2393s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data3-False-True-0-False] PASSED 2393s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data3-False-True-2-True] PASSED 2393s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data3-False-True-2-False] PASSED 2393s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data3-False-False-0-True] PASSED 2393s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data3-False-False-0-False] PASSED 2393s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data3-False-False-2-True] PASSED 2393s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data3-False-False-2-False] PASSED 2393s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data4-True-True-0-True] PASSED 2393s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data4-True-True-0-False] PASSED 2393s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data4-True-True-2-True] PASSED 2393s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data4-True-True-2-False] PASSED 2393s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data4-True-False-0-True] PASSED 2393s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data4-True-False-0-False] PASSED 2393s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data4-True-False-2-True] PASSED 2393s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data4-True-False-2-False] PASSED 2393s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data4-False-True-0-True] PASSED 2393s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data4-False-True-0-False] PASSED 2393s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data4-False-True-2-True] PASSED 2393s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data4-False-True-2-False] PASSED 2393s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data4-False-False-0-True] PASSED 2394s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data4-False-False-0-False] PASSED 2394s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data4-False-False-2-True] PASSED 2394s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data4-False-False-2-False] PASSED 2394s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data5-True-True-0-True] PASSED 2394s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data5-True-True-0-False] PASSED 2394s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data5-True-True-2-True] PASSED 2394s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data5-True-True-2-False] PASSED 2394s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data5-True-False-0-True] PASSED 2394s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data5-True-False-0-False] PASSED 2394s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data5-True-False-2-True] PASSED 2394s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data5-True-False-2-False] PASSED 2394s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data5-False-True-0-True] PASSED 2394s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data5-False-True-0-False] PASSED 2394s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data5-False-True-2-True] PASSED 2394s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data5-False-True-2-False] PASSED 2394s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data5-False-False-0-True] PASSED 2394s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data5-False-False-0-False] PASSED 2394s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data5-False-False-2-True] PASSED 2394s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data5-False-False-2-False] PASSED 2394s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data6-True-True-0-True] PASSED 2394s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data6-True-True-0-False] PASSED 2394s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data6-True-True-2-True] PASSED 2395s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data6-True-True-2-False] PASSED 2395s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data6-True-False-0-True] PASSED 2395s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data6-True-False-0-False] PASSED 2395s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data6-True-False-2-True] PASSED 2395s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data6-True-False-2-False] PASSED 2395s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data6-False-True-0-True] PASSED 2395s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data6-False-True-0-False] PASSED 2395s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data6-False-True-2-True] PASSED 2395s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data6-False-True-2-False] PASSED 2395s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data6-False-False-0-True] PASSED 2395s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data6-False-False-0-False] PASSED 2395s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data6-False-False-2-True] PASSED 2395s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data6-False-False-2-False] PASSED 2395s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data7-True-True-0-True] PASSED 2395s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data7-True-True-0-False] PASSED 2395s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data7-True-True-2-True] PASSED 2395s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data7-True-True-2-False] PASSED 2395s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data7-True-False-0-True] PASSED 2395s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data7-True-False-0-False] PASSED 2395s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data7-True-False-2-True] PASSED 2395s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data7-True-False-2-False] PASSED 2395s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data7-False-True-0-True] PASSED 2396s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data7-False-True-0-False] PASSED 2396s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data7-False-True-2-True] PASSED 2396s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data7-False-True-2-False] PASSED 2396s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data7-False-False-0-True] PASSED 2396s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data7-False-False-0-False] PASSED 2396s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data7-False-False-2-True] PASSED 2396s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data7-False-False-2-False] PASSED 2396s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data8-True-True-0-True] PASSED 2396s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data8-True-True-0-False] PASSED 2396s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data8-True-True-2-True] PASSED 2396s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data8-True-True-2-False] PASSED 2396s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data8-True-False-0-True] PASSED 2396s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data8-True-False-0-False] PASSED 2396s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data8-True-False-2-True] PASSED 2396s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data8-True-False-2-False] PASSED 2396s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data8-False-True-0-True] PASSED 2396s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data8-False-True-0-False] PASSED 2396s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data8-False-True-2-True] PASSED 2396s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data8-False-True-2-False] PASSED 2396s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data8-False-False-0-True] PASSED 2396s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data8-False-False-0-False] PASSED 2396s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data8-False-False-2-True] PASSED 2396s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data8-False-False-2-False] PASSED 2396s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data9-True-True-0-True] PASSED 2396s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data9-True-True-0-False] PASSED 2397s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data9-True-True-2-True] PASSED 2397s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data9-True-True-2-False] PASSED 2397s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data9-True-False-0-True] PASSED 2397s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data9-True-False-0-False] PASSED 2397s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data9-True-False-2-True] PASSED 2397s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data9-True-False-2-False] PASSED 2397s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data9-False-True-0-True] PASSED 2397s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data9-False-True-0-False] PASSED 2397s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data9-False-True-2-True] PASSED 2397s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data9-False-True-2-False] PASSED 2397s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data9-False-False-0-True] PASSED 2397s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data9-False-False-0-False] PASSED 2397s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data9-False-False-2-True] PASSED 2397s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data9-False-False-2-False] PASSED 2397s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data10-True-True-0-True] PASSED 2397s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data10-True-True-0-False] PASSED 2398s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data10-True-True-2-True] PASSED 2398s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data10-True-True-2-False] PASSED 2398s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data10-True-False-0-True] PASSED 2398s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data10-True-False-0-False] PASSED 2398s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data10-True-False-2-True] PASSED 2398s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data10-True-False-2-False] PASSED 2398s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data10-False-True-0-True] PASSED 2398s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data10-False-True-0-False] PASSED 2398s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data10-False-True-2-True] PASSED 2398s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data10-False-True-2-False] PASSED 2398s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data10-False-False-0-True] PASSED 2398s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data10-False-False-0-False] PASSED 2398s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data10-False-False-2-True] PASSED 2398s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data10-False-False-2-False] PASSED 2398s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data11-True-True-0-True] PASSED 2398s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data11-True-True-0-False] PASSED 2398s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data11-True-True-2-True] PASSED 2398s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data11-True-True-2-False] PASSED 2398s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data11-True-False-0-True] PASSED 2398s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data11-True-False-0-False] PASSED 2398s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data11-True-False-2-True] PASSED 2398s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data11-True-False-2-False] PASSED 2398s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data11-False-True-0-True] PASSED 2398s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data11-False-True-0-False] PASSED 2398s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data11-False-True-2-True] PASSED 2399s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data11-False-True-2-False] PASSED 2399s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data11-False-False-0-True] PASSED 2399s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data11-False-False-0-False] PASSED 2399s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data11-False-False-2-True] PASSED 2399s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data11-False-False-2-False] PASSED 2399s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data12-True-True-0-True] PASSED 2399s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data12-True-True-0-False] PASSED 2399s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data12-True-True-2-True] PASSED 2399s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data12-True-True-2-False] PASSED 2399s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data12-True-False-0-True] PASSED 2399s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data12-True-False-0-False] PASSED 2399s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data12-True-False-2-True] PASSED 2399s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data12-True-False-2-False] PASSED 2399s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data12-False-True-0-True] PASSED 2399s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data12-False-True-0-False] PASSED 2399s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data12-False-True-2-True] PASSED 2399s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data12-False-True-2-False] PASSED 2399s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data12-False-False-0-True] PASSED 2399s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data12-False-False-0-False] PASSED 2399s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data12-False-False-2-True] PASSED 2399s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data12-False-False-2-False] PASSED 2400s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data13-True-True-0-True] PASSED 2400s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data13-True-True-0-False] PASSED 2400s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data13-True-True-2-True] PASSED 2400s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data13-True-True-2-False] PASSED 2400s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data13-True-False-0-True] PASSED 2400s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data13-True-False-0-False] PASSED 2400s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data13-True-False-2-True] PASSED 2400s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data13-True-False-2-False] PASSED 2400s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data13-False-True-0-True] PASSED 2400s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data13-False-True-0-False] PASSED 2400s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data13-False-True-2-True] PASSED 2400s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data13-False-True-2-False] PASSED 2400s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data13-False-False-0-True] PASSED 2400s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data13-False-False-0-False] PASSED 2400s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data13-False-False-2-True] PASSED 2400s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data13-False-False-2-False] PASSED 2400s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data14-True-True-0-True] PASSED 2400s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data14-True-True-0-False] PASSED 2400s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data14-True-True-2-True] PASSED 2401s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data14-True-True-2-False] PASSED 2401s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data14-True-False-0-True] PASSED 2401s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data14-True-False-0-False] PASSED 2401s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data14-True-False-2-True] PASSED 2401s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data14-True-False-2-False] PASSED 2401s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data14-False-True-0-True] PASSED 2401s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data14-False-True-0-False] PASSED 2401s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data14-False-True-2-True] PASSED 2401s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data14-False-True-2-False] PASSED 2401s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data14-False-False-0-True] PASSED 2401s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data14-False-False-0-False] PASSED 2401s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data14-False-False-2-True] PASSED 2401s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data14-False-False-2-False] PASSED 2401s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data15-True-True-0-True] PASSED 2401s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data15-True-True-0-False] PASSED 2401s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data15-True-True-2-True] PASSED 2401s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data15-True-True-2-False] PASSED 2401s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data15-True-False-0-True] PASSED 2401s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data15-True-False-0-False] PASSED 2401s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data15-True-False-2-True] PASSED 2401s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data15-True-False-2-False] PASSED 2401s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data15-False-True-0-True] PASSED 2401s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data15-False-True-0-False] PASSED 2401s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data15-False-True-2-True] PASSED 2401s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data15-False-True-2-False] PASSED 2402s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data15-False-False-0-True] PASSED 2402s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data15-False-False-0-False] PASSED 2402s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data15-False-False-2-True] PASSED 2402s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data15-False-False-2-False] PASSED 2402s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data16-True-True-0-True] PASSED 2402s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data16-True-True-0-False] PASSED 2402s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data16-True-True-2-True] PASSED 2402s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data16-True-True-2-False] PASSED 2402s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data16-True-False-0-True] PASSED 2402s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data16-True-False-0-False] PASSED 2402s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data16-True-False-2-True] PASSED 2402s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data16-True-False-2-False] PASSED 2402s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data16-False-True-0-True] PASSED 2402s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data16-False-True-0-False] PASSED 2402s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data16-False-True-2-True] PASSED 2402s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data16-False-True-2-False] PASSED 2402s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data16-False-False-0-True] PASSED 2402s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data16-False-False-0-False] PASSED 2402s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data16-False-False-2-True] PASSED 2402s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data16-False-False-2-False] PASSED 2402s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data17-True-True-0-True] PASSED 2402s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data17-True-True-0-False] PASSED 2403s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data17-True-True-2-True] PASSED 2403s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data17-True-True-2-False] PASSED 2403s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data17-True-False-0-True] PASSED 2403s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data17-True-False-0-False] PASSED 2403s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data17-True-False-2-True] PASSED 2403s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data17-True-False-2-False] PASSED 2403s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data17-False-True-0-True] PASSED 2403s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data17-False-True-0-False] PASSED 2403s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data17-False-True-2-True] PASSED 2403s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data17-False-True-2-False] PASSED 2403s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data17-False-False-0-True] PASSED 2403s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data17-False-False-0-False] PASSED 2403s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data17-False-False-2-True] PASSED 2403s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var[all_data17-False-False-2-False] PASSED 2403s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var_constant[consistent_data0-True-True-0-True] PASSED 2403s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var_constant[consistent_data0-True-True-0-False] PASSED 2403s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var_constant[consistent_data0-True-True-2-True] PASSED 2403s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var_constant[consistent_data0-True-True-2-False] PASSED 2403s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var_constant[consistent_data0-True-False-0-True] PASSED 2403s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var_constant[consistent_data0-True-False-0-False] PASSED 2403s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var_constant[consistent_data0-True-False-2-True] PASSED 2403s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var_constant[consistent_data0-True-False-2-False] PASSED 2403s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var_constant[consistent_data0-False-True-0-True] PASSED 2403s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var_constant[consistent_data0-False-True-0-False] PASSED 2404s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var_constant[consistent_data0-False-True-2-True] PASSED 2404s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var_constant[consistent_data0-False-True-2-False] PASSED 2404s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var_constant[consistent_data0-False-False-0-True] PASSED 2404s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var_constant[consistent_data0-False-False-0-False] PASSED 2404s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var_constant[consistent_data0-False-False-2-True] PASSED 2404s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var_constant[consistent_data0-False-False-2-False] PASSED 2404s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var_constant[consistent_data1-True-True-0-True] PASSED 2404s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var_constant[consistent_data1-True-True-0-False] PASSED 2404s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var_constant[consistent_data1-True-True-2-True] PASSED 2404s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var_constant[consistent_data1-True-True-2-False] PASSED 2404s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var_constant[consistent_data1-True-False-0-True] PASSED 2404s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var_constant[consistent_data1-True-False-0-False] PASSED 2404s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var_constant[consistent_data1-True-False-2-True] PASSED 2404s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var_constant[consistent_data1-True-False-2-False] PASSED 2404s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var_constant[consistent_data1-False-True-0-True] PASSED 2404s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var_constant[consistent_data1-False-True-0-False] PASSED 2404s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var_constant[consistent_data1-False-True-2-True] PASSED 2404s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var_constant[consistent_data1-False-True-2-False] PASSED 2404s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var_constant[consistent_data1-False-False-0-True] PASSED 2404s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var_constant[consistent_data1-False-False-0-False] PASSED 2404s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var_constant[consistent_data1-False-False-2-True] PASSED 2404s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var_constant[consistent_data1-False-False-2-False] PASSED 2405s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var_constant[consistent_data2-True-True-0-True] PASSED 2405s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var_constant[consistent_data2-True-True-0-False] PASSED 2405s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var_constant[consistent_data2-True-True-2-True] PASSED 2405s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var_constant[consistent_data2-True-True-2-False] PASSED 2405s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var_constant[consistent_data2-True-False-0-True] PASSED 2405s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var_constant[consistent_data2-True-False-0-False] PASSED 2405s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var_constant[consistent_data2-True-False-2-True] PASSED 2405s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var_constant[consistent_data2-True-False-2-False] PASSED 2405s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var_constant[consistent_data2-False-True-0-True] PASSED 2405s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var_constant[consistent_data2-False-True-0-False] PASSED 2405s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var_constant[consistent_data2-False-True-2-True] PASSED 2405s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var_constant[consistent_data2-False-True-2-False] PASSED 2405s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var_constant[consistent_data2-False-False-0-True] PASSED 2405s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var_constant[consistent_data2-False-False-0-False] PASSED 2405s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var_constant[consistent_data2-False-False-2-True] PASSED 2405s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var_constant[consistent_data2-False-False-2-False] PASSED 2405s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var_constant[consistent_data3-True-True-0-True] PASSED 2405s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var_constant[consistent_data3-True-True-0-False] PASSED 2405s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var_constant[consistent_data3-True-True-2-True] PASSED 2405s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var_constant[consistent_data3-True-True-2-False] PASSED 2406s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var_constant[consistent_data3-True-False-0-True] PASSED 2406s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var_constant[consistent_data3-True-False-0-False] PASSED 2406s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var_constant[consistent_data3-True-False-2-True] PASSED 2406s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var_constant[consistent_data3-True-False-2-False] PASSED 2406s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var_constant[consistent_data3-False-True-0-True] PASSED 2406s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var_constant[consistent_data3-False-True-0-False] PASSED 2406s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var_constant[consistent_data3-False-True-2-True] PASSED 2406s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var_constant[consistent_data3-False-True-2-False] PASSED 2406s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var_constant[consistent_data3-False-False-0-True] PASSED 2407s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var_constant[consistent_data3-False-False-0-False] PASSED 2407s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var_constant[consistent_data3-False-False-2-True] PASSED 2407s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_moments_consistency_var_constant[consistent_data3-False-False-2-False] PASSED 2407s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data0-True-True-0-True] PASSED 2407s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data0-True-True-0-False] PASSED 2407s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data0-True-True-2-True] PASSED 2407s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data0-True-True-2-False] PASSED 2407s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data0-True-False-0-True] PASSED 2408s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data0-True-False-0-False] PASSED 2408s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data0-True-False-2-True] PASSED 2408s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data0-True-False-2-False] PASSED 2408s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data0-False-True-0-True] PASSED 2408s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data0-False-True-0-False] PASSED 2408s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data0-False-True-2-True] PASSED 2408s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data0-False-True-2-False] PASSED 2408s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data0-False-False-0-True] PASSED 2408s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data0-False-False-0-False] PASSED 2408s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data0-False-False-2-True] PASSED 2408s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data0-False-False-2-False] PASSED 2408s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data1-True-True-0-True] PASSED 2408s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data1-True-True-0-False] PASSED 2408s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data1-True-True-2-True] PASSED 2409s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data1-True-True-2-False] PASSED 2409s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data1-True-False-0-True] PASSED 2409s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data1-True-False-0-False] PASSED 2409s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data1-True-False-2-True] PASSED 2409s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data1-True-False-2-False] PASSED 2409s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data1-False-True-0-True] PASSED 2409s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data1-False-True-0-False] PASSED 2409s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data1-False-True-2-True] PASSED 2409s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data1-False-True-2-False] PASSED 2409s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data1-False-False-0-True] PASSED 2409s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data1-False-False-0-False] PASSED 2409s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data1-False-False-2-True] PASSED 2409s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data1-False-False-2-False] PASSED 2409s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data2-True-True-0-True] PASSED 2409s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data2-True-True-0-False] PASSED 2409s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data2-True-True-2-True] PASSED 2409s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data2-True-True-2-False] PASSED 2409s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data2-True-False-0-True] PASSED 2409s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data2-True-False-0-False] PASSED 2409s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data2-True-False-2-True] PASSED 2409s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data2-True-False-2-False] PASSED 2409s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data2-False-True-0-True] PASSED 2409s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data2-False-True-0-False] PASSED 2409s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data2-False-True-2-True] PASSED 2409s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data2-False-True-2-False] PASSED 2409s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data2-False-False-0-True] PASSED 2409s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data2-False-False-0-False] PASSED 2409s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data2-False-False-2-True] PASSED 2409s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data2-False-False-2-False] PASSED 2409s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data3-True-True-0-True] PASSED 2409s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data3-True-True-0-False] PASSED 2409s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data3-True-True-2-True] PASSED 2409s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data3-True-True-2-False] PASSED 2410s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data3-True-False-0-True] PASSED 2410s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data3-True-False-0-False] PASSED 2410s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data3-True-False-2-True] PASSED 2410s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data3-True-False-2-False] PASSED 2410s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data3-False-True-0-True] PASSED 2410s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data3-False-True-0-False] PASSED 2410s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data3-False-True-2-True] PASSED 2410s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data3-False-True-2-False] PASSED 2410s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data3-False-False-0-True] PASSED 2410s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data3-False-False-0-False] PASSED 2410s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data3-False-False-2-True] PASSED 2410s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data3-False-False-2-False] PASSED 2410s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data4-True-True-0-True] PASSED 2410s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data4-True-True-0-False] PASSED 2410s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data4-True-True-2-True] PASSED 2410s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data4-True-True-2-False] PASSED 2410s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data4-True-False-0-True] PASSED 2410s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data4-True-False-0-False] PASSED 2410s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data4-True-False-2-True] PASSED 2410s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data4-True-False-2-False] PASSED 2410s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data4-False-True-0-True] PASSED 2410s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data4-False-True-0-False] PASSED 2410s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data4-False-True-2-True] PASSED 2410s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data4-False-True-2-False] PASSED 2410s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data4-False-False-0-True] PASSED 2410s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data4-False-False-0-False] PASSED 2410s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data4-False-False-2-True] PASSED 2410s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data4-False-False-2-False] PASSED 2410s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data5-True-True-0-True] PASSED 2410s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data5-True-True-0-False] PASSED 2411s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data5-True-True-2-True] PASSED 2411s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data5-True-True-2-False] PASSED 2411s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data5-True-False-0-True] PASSED 2411s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data5-True-False-0-False] PASSED 2411s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data5-True-False-2-True] PASSED 2411s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data5-True-False-2-False] PASSED 2411s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data5-False-True-0-True] PASSED 2411s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data5-False-True-0-False] PASSED 2411s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data5-False-True-2-True] PASSED 2411s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data5-False-True-2-False] PASSED 2411s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data5-False-False-0-True] PASSED 2411s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data5-False-False-0-False] PASSED 2411s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data5-False-False-2-True] PASSED 2411s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data5-False-False-2-False] PASSED 2411s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data6-True-True-0-True] PASSED 2411s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data6-True-True-0-False] PASSED 2411s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data6-True-True-2-True] PASSED 2411s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data6-True-True-2-False] PASSED 2411s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data6-True-False-0-True] PASSED 2411s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data6-True-False-0-False] PASSED 2411s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data6-True-False-2-True] PASSED 2411s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data6-True-False-2-False] PASSED 2411s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data6-False-True-0-True] PASSED 2411s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data6-False-True-0-False] PASSED 2412s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data6-False-True-2-True] PASSED 2412s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data6-False-True-2-False] PASSED 2412s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data6-False-False-0-True] PASSED 2412s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data6-False-False-0-False] PASSED 2412s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data6-False-False-2-True] PASSED 2412s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data6-False-False-2-False] PASSED 2412s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data7-True-True-0-True] PASSED 2412s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data7-True-True-0-False] PASSED 2412s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data7-True-True-2-True] PASSED 2412s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data7-True-True-2-False] PASSED 2412s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data7-True-False-0-True] PASSED 2412s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data7-True-False-0-False] PASSED 2412s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data7-True-False-2-True] PASSED 2412s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data7-True-False-2-False] PASSED 2412s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data7-False-True-0-True] PASSED 2413s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data7-False-True-0-False] PASSED 2413s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data7-False-True-2-True] PASSED 2413s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data7-False-True-2-False] PASSED 2413s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data7-False-False-0-True] PASSED 2413s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data7-False-False-0-False] PASSED 2413s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data7-False-False-2-True] PASSED 2413s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data7-False-False-2-False] PASSED 2413s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data8-True-True-0-True] PASSED 2413s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data8-True-True-0-False] PASSED 2413s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data8-True-True-2-True] PASSED 2413s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data8-True-True-2-False] PASSED 2413s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data8-True-False-0-True] PASSED 2413s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data8-True-False-0-False] PASSED 2413s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data8-True-False-2-True] PASSED 2413s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data8-True-False-2-False] PASSED 2413s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data8-False-True-0-True] PASSED 2413s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data8-False-True-0-False] PASSED 2413s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data8-False-True-2-True] PASSED 2414s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data8-False-True-2-False] PASSED 2414s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data8-False-False-0-True] PASSED 2414s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data8-False-False-0-False] PASSED 2414s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data8-False-False-2-True] PASSED 2414s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data8-False-False-2-False] PASSED 2414s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data9-True-True-0-True] PASSED 2414s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data9-True-True-0-False] PASSED 2414s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data9-True-True-2-True] PASSED 2414s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data9-True-True-2-False] PASSED 2414s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data9-True-False-0-True] PASSED 2414s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data9-True-False-0-False] PASSED 2414s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data9-True-False-2-True] PASSED 2414s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data9-True-False-2-False] PASSED 2414s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data9-False-True-0-True] PASSED 2414s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data9-False-True-0-False] PASSED 2415s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data9-False-True-2-True] PASSED 2415s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data9-False-True-2-False] PASSED 2415s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data9-False-False-0-True] PASSED 2415s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data9-False-False-0-False] PASSED 2415s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data9-False-False-2-True] PASSED 2415s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data9-False-False-2-False] PASSED 2415s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data10-True-True-0-True] PASSED 2415s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data10-True-True-0-False] PASSED 2415s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data10-True-True-2-True] PASSED 2415s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data10-True-True-2-False] PASSED 2415s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data10-True-False-0-True] PASSED 2415s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data10-True-False-0-False] PASSED 2415s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data10-True-False-2-True] PASSED 2416s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data10-True-False-2-False] PASSED 2416s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data10-False-True-0-True] PASSED 2416s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data10-False-True-0-False] PASSED 2416s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data10-False-True-2-True] PASSED 2416s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data10-False-True-2-False] PASSED 2416s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data10-False-False-0-True] PASSED 2416s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data10-False-False-0-False] PASSED 2416s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data10-False-False-2-True] PASSED 2416s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data10-False-False-2-False] PASSED 2416s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data11-True-True-0-True] PASSED 2416s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data11-True-True-0-False] PASSED 2416s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data11-True-True-2-True] PASSED 2416s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data11-True-True-2-False] PASSED 2416s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data11-True-False-0-True] PASSED 2416s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data11-True-False-0-False] PASSED 2416s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data11-True-False-2-True] PASSED 2416s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data11-True-False-2-False] PASSED 2417s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data11-False-True-0-True] PASSED 2417s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data11-False-True-0-False] PASSED 2417s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data11-False-True-2-True] PASSED 2417s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data11-False-True-2-False] PASSED 2417s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data11-False-False-0-True] PASSED 2417s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data11-False-False-0-False] PASSED 2418s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data11-False-False-2-True] PASSED 2418s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data11-False-False-2-False] PASSED 2418s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data12-True-True-0-True] PASSED 2418s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data12-True-True-0-False] PASSED 2418s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data12-True-True-2-True] PASSED 2418s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data12-True-True-2-False] PASSED 2418s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data12-True-False-0-True] PASSED 2418s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data12-True-False-0-False] PASSED 2418s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data12-True-False-2-True] PASSED 2418s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data12-True-False-2-False] PASSED 2418s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data12-False-True-0-True] PASSED 2418s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data12-False-True-0-False] PASSED 2418s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data12-False-True-2-True] PASSED 2419s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data12-False-True-2-False] PASSED 2419s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data12-False-False-0-True] PASSED 2419s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data12-False-False-0-False] PASSED 2419s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data12-False-False-2-True] PASSED 2419s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data12-False-False-2-False] PASSED 2419s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data13-True-True-0-True] PASSED 2419s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data13-True-True-0-False] PASSED 2419s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data13-True-True-2-True] PASSED 2419s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data13-True-True-2-False] PASSED 2419s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data13-True-False-0-True] PASSED 2419s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data13-True-False-0-False] PASSED 2419s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data13-True-False-2-True] PASSED 2419s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data13-True-False-2-False] PASSED 2419s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data13-False-True-0-True] PASSED 2419s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data13-False-True-0-False] PASSED 2419s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data13-False-True-2-True] PASSED 2419s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data13-False-True-2-False] PASSED 2419s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data13-False-False-0-True] PASSED 2419s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data13-False-False-0-False] PASSED 2420s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data13-False-False-2-True] PASSED 2420s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data13-False-False-2-False] PASSED 2420s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data14-True-True-0-True] PASSED 2420s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data14-True-True-0-False] PASSED 2420s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data14-True-True-2-True] PASSED 2420s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data14-True-True-2-False] PASSED 2420s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data14-True-False-0-True] PASSED 2420s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data14-True-False-0-False] PASSED 2420s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data14-True-False-2-True] PASSED 2420s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data14-True-False-2-False] PASSED 2420s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data14-False-True-0-True] PASSED 2420s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data14-False-True-0-False] PASSED 2420s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data14-False-True-2-True] PASSED 2421s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data14-False-True-2-False] PASSED 2421s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data14-False-False-0-True] PASSED 2421s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data14-False-False-0-False] PASSED 2421s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data14-False-False-2-True] PASSED 2421s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data14-False-False-2-False] PASSED 2421s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data15-True-True-0-True] PASSED 2421s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data15-True-True-0-False] PASSED 2421s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data15-True-True-2-True] PASSED 2421s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data15-True-True-2-False] PASSED 2421s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data15-True-False-0-True] PASSED 2421s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data15-True-False-0-False] PASSED 2421s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data15-True-False-2-True] PASSED 2421s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data15-True-False-2-False] PASSED 2421s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data15-False-True-0-True] PASSED 2421s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data15-False-True-0-False] PASSED 2421s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data15-False-True-2-True] PASSED 2421s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data15-False-True-2-False] PASSED 2421s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data15-False-False-0-True] PASSED 2421s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data15-False-False-0-False] PASSED 2421s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data15-False-False-2-True] PASSED 2421s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data15-False-False-2-False] PASSED 2422s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data16-True-True-0-True] PASSED 2422s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data16-True-True-0-False] PASSED 2422s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data16-True-True-2-True] PASSED 2422s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data16-True-True-2-False] PASSED 2422s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data16-True-False-0-True] PASSED 2422s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data16-True-False-0-False] PASSED 2422s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data16-True-False-2-True] PASSED 2422s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data16-True-False-2-False] PASSED 2422s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data16-False-True-0-True] PASSED 2422s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data16-False-True-0-False] PASSED 2422s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data16-False-True-2-True] PASSED 2422s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data16-False-True-2-False] PASSED 2422s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data16-False-False-0-True] PASSED 2422s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data16-False-False-0-False] PASSED 2422s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data16-False-False-2-True] PASSED 2422s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data16-False-False-2-False] PASSED 2422s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data17-True-True-0-True] PASSED 2422s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data17-True-True-0-False] PASSED 2423s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data17-True-True-2-True] PASSED 2423s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data17-True-True-2-False] PASSED 2423s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data17-True-False-0-True] PASSED 2423s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data17-True-False-0-False] PASSED 2423s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data17-True-False-2-True] PASSED 2423s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data17-True-False-2-False] PASSED 2423s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data17-False-True-0-True] PASSED 2423s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data17-False-True-0-False] PASSED 2423s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data17-False-True-2-True] PASSED 2423s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data17-False-True-2-False] PASSED 2423s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data17-False-False-0-True] PASSED 2423s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data17-False-False-0-False] PASSED 2423s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data17-False-False-2-True] PASSED 2423s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_std[all_data17-False-False-2-False] PASSED 2424s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data0-True-True-0-True] PASSED 2424s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data0-True-True-0-False] PASSED 2424s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data0-True-True-2-True] PASSED 2424s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data0-True-True-2-False] PASSED 2424s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data0-True-False-0-True] PASSED 2424s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data0-True-False-0-False] PASSED 2424s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data0-True-False-2-True] PASSED 2424s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data0-True-False-2-False] PASSED 2424s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data0-False-True-0-True] PASSED 2424s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data0-False-True-0-False] PASSED 2424s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data0-False-True-2-True] PASSED 2424s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data0-False-True-2-False] PASSED 2424s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data0-False-False-0-True] PASSED 2424s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data0-False-False-0-False] PASSED 2424s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data0-False-False-2-True] PASSED 2424s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data0-False-False-2-False] PASSED 2425s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data1-True-True-0-True] PASSED 2425s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data1-True-True-0-False] PASSED 2425s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data1-True-True-2-True] PASSED 2425s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data1-True-True-2-False] PASSED 2425s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data1-True-False-0-True] PASSED 2425s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data1-True-False-0-False] PASSED 2425s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data1-True-False-2-True] PASSED 2425s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data1-True-False-2-False] PASSED 2425s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data1-False-True-0-True] PASSED 2425s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data1-False-True-0-False] PASSED 2425s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data1-False-True-2-True] PASSED 2425s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data1-False-True-2-False] PASSED 2425s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data1-False-False-0-True] PASSED 2425s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data1-False-False-0-False] PASSED 2426s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data1-False-False-2-True] PASSED 2426s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data1-False-False-2-False] PASSED 2426s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data2-True-True-0-True] PASSED 2426s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data2-True-True-0-False] PASSED 2426s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data2-True-True-2-True] PASSED 2426s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data2-True-True-2-False] PASSED 2426s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data2-True-False-0-True] PASSED 2426s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data2-True-False-0-False] PASSED 2426s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data2-True-False-2-True] PASSED 2426s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data2-True-False-2-False] PASSED 2426s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data2-False-True-0-True] PASSED 2426s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data2-False-True-0-False] PASSED 2426s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data2-False-True-2-True] PASSED 2426s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data2-False-True-2-False] PASSED 2426s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data2-False-False-0-True] PASSED 2426s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data2-False-False-0-False] PASSED 2426s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data2-False-False-2-True] PASSED 2426s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data2-False-False-2-False] PASSED 2426s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data3-True-True-0-True] PASSED 2426s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data3-True-True-0-False] PASSED 2426s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data3-True-True-2-True] PASSED 2427s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data3-True-True-2-False] PASSED 2427s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data3-True-False-0-True] PASSED 2427s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data3-True-False-0-False] PASSED 2427s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data3-True-False-2-True] PASSED 2427s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data3-True-False-2-False] PASSED 2427s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data3-False-True-0-True] PASSED 2427s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data3-False-True-0-False] PASSED 2427s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data3-False-True-2-True] PASSED 2427s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data3-False-True-2-False] PASSED 2427s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data3-False-False-0-True] PASSED 2427s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data3-False-False-0-False] PASSED 2427s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data3-False-False-2-True] PASSED 2427s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data3-False-False-2-False] PASSED 2427s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data4-True-True-0-True] PASSED 2427s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data4-True-True-0-False] PASSED 2427s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data4-True-True-2-True] PASSED 2427s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data4-True-True-2-False] PASSED 2427s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data4-True-False-0-True] PASSED 2428s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data4-True-False-0-False] PASSED 2428s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data4-True-False-2-True] PASSED 2428s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data4-True-False-2-False] PASSED 2428s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data4-False-True-0-True] PASSED 2428s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data4-False-True-0-False] PASSED 2428s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data4-False-True-2-True] PASSED 2428s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data4-False-True-2-False] PASSED 2428s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data4-False-False-0-True] PASSED 2428s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data4-False-False-0-False] PASSED 2428s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data4-False-False-2-True] PASSED 2428s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data4-False-False-2-False] PASSED 2428s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data5-True-True-0-True] PASSED 2428s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data5-True-True-0-False] PASSED 2428s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data5-True-True-2-True] PASSED 2428s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data5-True-True-2-False] PASSED 2429s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data5-True-False-0-True] PASSED 2429s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data5-True-False-0-False] PASSED 2429s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data5-True-False-2-True] PASSED 2429s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data5-True-False-2-False] PASSED 2429s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data5-False-True-0-True] PASSED 2429s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data5-False-True-0-False] PASSED 2429s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data5-False-True-2-True] PASSED 2429s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data5-False-True-2-False] PASSED 2429s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data5-False-False-0-True] PASSED 2429s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data5-False-False-0-False] PASSED 2429s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data5-False-False-2-True] PASSED 2429s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data5-False-False-2-False] PASSED 2429s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data6-True-True-0-True] PASSED 2429s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data6-True-True-0-False] PASSED 2429s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data6-True-True-2-True] PASSED 2429s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data6-True-True-2-False] PASSED 2430s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data6-True-False-0-True] PASSED 2430s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data6-True-False-0-False] PASSED 2430s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data6-True-False-2-True] PASSED 2430s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data6-True-False-2-False] PASSED 2430s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data6-False-True-0-True] PASSED 2430s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data6-False-True-0-False] PASSED 2430s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data6-False-True-2-True] PASSED 2430s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data6-False-True-2-False] PASSED 2430s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data6-False-False-0-True] PASSED 2430s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data6-False-False-0-False] PASSED 2430s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data6-False-False-2-True] PASSED 2430s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data6-False-False-2-False] PASSED 2430s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data7-True-True-0-True] PASSED 2430s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data7-True-True-0-False] PASSED 2430s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data7-True-True-2-True] PASSED 2430s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data7-True-True-2-False] PASSED 2430s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data7-True-False-0-True] PASSED 2430s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data7-True-False-0-False] PASSED 2430s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data7-True-False-2-True] PASSED 2430s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data7-True-False-2-False] PASSED 2430s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data7-False-True-0-True] PASSED 2430s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data7-False-True-0-False] PASSED 2430s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data7-False-True-2-True] PASSED 2431s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data7-False-True-2-False] PASSED 2431s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data7-False-False-0-True] PASSED 2431s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data7-False-False-0-False] PASSED 2431s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data7-False-False-2-True] PASSED 2431s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_series_cov_corr[series_data7-False-False-2-False] PASSED 2431s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data0-0-] PASSED 2431s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data0-0-nansum] PASSED 2431s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data0-0-sum] PASSED 2431s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data0-2-] PASSED 2431s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data0-2-nansum] PASSED 2432s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data0-2-sum] PASSED 2432s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data1-0-] PASSED 2432s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data1-0-nansum] PASSED 2432s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data1-0-sum] XFAIL 2432s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data1-2-] PASSED 2432s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data1-2-nansum] PASSED 2432s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data1-2-sum] PASSED 2432s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data2-0-] PASSED 2433s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data2-0-nansum] PASSED 2433s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data2-0-sum] PASSED 2433s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data2-2-] PASSED 2433s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data2-2-nansum] PASSED 2433s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data2-2-sum] PASSED 2433s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data3-0-] PASSED 2433s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data3-0-nansum] PASSED 2433s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data3-0-sum] PASSED 2433s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data3-2-] PASSED 2433s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data3-2-nansum] PASSED 2433s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data3-2-sum] PASSED 2433s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data4-0-] PASSED 2433s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data4-0-nansum] PASSED 2433s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data4-0-sum] PASSED 2433s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data4-2-] PASSED 2433s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data4-2-nansum] PASSED 2433s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data4-2-sum] PASSED 2433s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data5-0-] PASSED 2433s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data5-0-nansum] PASSED 2433s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data5-0-sum] XFAIL 2433s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data5-2-] PASSED 2433s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data5-2-nansum] PASSED 2433s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data5-2-sum] XFAIL 2434s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data6-0-] PASSED 2434s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data6-0-nansum] PASSED 2434s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data6-0-sum] XFAIL 2434s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data6-2-] PASSED 2434s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data6-2-nansum] PASSED 2434s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data6-2-sum] XFAIL 2434s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data7-0-] PASSED 2434s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data7-0-nansum] PASSED 2434s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data7-0-sum] XFAIL 2434s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data7-2-] PASSED 2434s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data7-2-nansum] PASSED 2434s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data7-2-sum] XFAIL 2434s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data8-0-] PASSED 2434s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data8-0-nansum] PASSED 2434s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data8-0-sum] PASSED 2434s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data8-2-] PASSED 2434s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data8-2-nansum] PASSED 2434s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data8-2-sum] PASSED 2435s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data9-0-] PASSED 2435s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data9-0-nansum] PASSED 2435s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data9-0-sum] PASSED 2435s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data9-2-] PASSED 2435s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data9-2-nansum] PASSED 2435s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data9-2-sum] PASSED 2435s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data10-0-] PASSED 2435s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data10-0-nansum] PASSED 2435s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data10-0-sum] PASSED 2435s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data10-2-] PASSED 2435s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data10-2-nansum] PASSED 2435s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data10-2-sum] PASSED 2435s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data11-0-] PASSED 2435s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data11-0-nansum] PASSED 2436s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data11-0-sum] XFAIL 2436s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data11-2-] PASSED 2436s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data11-2-nansum] PASSED 2436s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data11-2-sum] PASSED 2436s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data12-0-] PASSED 2436s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data12-0-nansum] PASSED 2436s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data12-0-sum] PASSED 2436s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data12-2-] PASSED 2436s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data12-2-nansum] PASSED 2436s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data12-2-sum] PASSED 2436s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data13-0-] PASSED 2436s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data13-0-nansum] PASSED 2436s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data13-0-sum] PASSED 2436s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data13-2-] PASSED 2436s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data13-2-nansum] PASSED 2437s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data13-2-sum] PASSED 2437s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data14-0-] PASSED 2437s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data14-0-nansum] PASSED 2437s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data14-0-sum] PASSED 2437s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data14-2-] PASSED 2438s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data14-2-nansum] PASSED 2438s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data14-2-sum] PASSED 2438s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data15-0-] PASSED 2438s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data15-0-nansum] PASSED 2439s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data15-0-sum] XFAIL 2439s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data15-2-] PASSED 2439s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data15-2-nansum] PASSED 2439s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data15-2-sum] XFAIL 2439s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data16-0-] PASSED 2439s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data16-0-nansum] PASSED 2439s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data16-0-sum] XFAIL 2439s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data16-2-] PASSED 2439s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data16-2-nansum] PASSED 2439s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data16-2-sum] XFAIL 2439s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data17-0-] PASSED 2439s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data17-0-nansum] PASSED 2439s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data17-0-sum] XFAIL 2439s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data17-2-] PASSED 2440s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data17-2-nansum] PASSED 2440s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data17-2-sum] XFAIL 2440s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data0-0-0] PASSED 2440s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data0-0-1] PASSED 2440s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data0-2-0] PASSED 2440s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data0-2-1] PASSED 2440s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data1-0-0] PASSED 2440s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data1-0-1] PASSED 2440s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data1-2-0] PASSED 2440s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data1-2-1] PASSED 2440s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data2-0-0] PASSED 2440s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data2-0-1] PASSED 2440s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data2-2-0] PASSED 2440s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data2-2-1] PASSED 2440s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data3-0-0] PASSED 2440s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data3-0-1] PASSED 2440s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data3-2-0] PASSED 2440s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data3-2-1] PASSED 2440s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data4-0-0] PASSED 2440s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data4-0-1] PASSED 2440s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data4-2-0] PASSED 2440s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data4-2-1] PASSED 2440s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data5-0-0] PASSED 2440s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data5-0-1] PASSED 2440s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data5-2-0] PASSED 2440s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data5-2-1] PASSED 2440s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data6-0-0] PASSED 2441s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data6-0-1] PASSED 2441s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data6-2-0] PASSED 2441s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data6-2-1] PASSED 2441s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data7-0-0] PASSED 2441s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data7-0-1] PASSED 2441s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data7-2-0] PASSED 2441s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data7-2-1] PASSED 2441s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data8-0-0] PASSED 2441s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data8-0-1] PASSED 2441s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data8-2-0] PASSED 2441s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data8-2-1] PASSED 2441s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data9-0-0] PASSED 2441s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data9-0-1] PASSED 2441s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data9-2-0] PASSED 2441s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data9-2-1] PASSED 2441s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data10-0-0] PASSED 2441s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data10-0-1] PASSED 2441s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data10-2-0] PASSED 2441s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data10-2-1] PASSED 2441s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data11-0-0] PASSED 2441s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data11-0-1] PASSED 2442s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data11-2-0] PASSED 2442s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data11-2-1] PASSED 2442s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data12-0-0] PASSED 2442s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data12-0-1] PASSED 2442s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data12-2-0] PASSED 2442s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data12-2-1] PASSED 2442s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data13-0-0] PASSED 2442s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data13-0-1] PASSED 2442s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data13-2-0] PASSED 2442s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data13-2-1] PASSED 2442s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data14-0-0] PASSED 2442s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data14-0-1] PASSED 2442s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data14-2-0] PASSED 2443s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data14-2-1] PASSED 2443s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data15-0-0] PASSED 2443s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data15-0-1] PASSED 2443s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data15-2-0] PASSED 2443s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data15-2-1] PASSED 2443s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data16-0-0] PASSED 2443s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data16-0-1] PASSED 2443s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data16-2-0] PASSED 2443s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data16-2-1] PASSED 2443s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data17-0-0] PASSED 2443s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data17-0-1] PASSED 2443s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data17-2-0] PASSED 2443s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data17-2-1] PASSED 2443s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var_constant[consistent_data0-0-0] PASSED 2443s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var_constant[consistent_data0-0-1] PASSED 2443s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var_constant[consistent_data0-2-0] PASSED 2444s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var_constant[consistent_data0-2-1] PASSED 2444s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var_constant[consistent_data1-0-0] PASSED 2444s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var_constant[consistent_data1-0-1] PASSED 2444s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var_constant[consistent_data1-2-0] PASSED 2444s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var_constant[consistent_data1-2-1] PASSED 2444s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var_constant[consistent_data2-0-0] PASSED 2444s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var_constant[consistent_data2-0-1] PASSED 2445s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var_constant[consistent_data2-2-0] PASSED 2445s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var_constant[consistent_data2-2-1] PASSED 2445s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var_constant[consistent_data3-0-0] PASSED 2445s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var_constant[consistent_data3-0-1] PASSED 2445s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var_constant[consistent_data3-2-0] PASSED 2445s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var_constant[consistent_data3-2-1] PASSED 2445s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_std_cov[all_data0-0-0] PASSED 2445s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_std_cov[all_data0-0-1] PASSED 2445s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_std_cov[all_data0-2-0] PASSED 2445s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_std_cov[all_data0-2-1] PASSED 2445s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_std_cov[all_data1-0-0] PASSED 2445s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_std_cov[all_data1-0-1] PASSED 2445s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_std_cov[all_data1-2-0] PASSED 2445s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_std_cov[all_data1-2-1] PASSED 2445s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_std_cov[all_data2-0-0] PASSED 2445s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_std_cov[all_data2-0-1] PASSED 2445s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_std_cov[all_data2-2-0] PASSED 2445s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_std_cov[all_data2-2-1] PASSED 2445s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_std_cov[all_data3-0-0] PASSED 2445s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_std_cov[all_data3-0-1] PASSED 2446s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_std_cov[all_data3-2-0] PASSED 2446s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_std_cov[all_data3-2-1] PASSED 2446s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_std_cov[all_data4-0-0] PASSED 2446s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_std_cov[all_data4-0-1] PASSED 2446s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_std_cov[all_data4-2-0] PASSED 2446s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_std_cov[all_data4-2-1] PASSED 2446s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_std_cov[all_data5-0-0] PASSED 2446s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_std_cov[all_data5-0-1] PASSED 2446s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_std_cov[all_data5-2-0] PASSED 2446s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_std_cov[all_data5-2-1] PASSED 2446s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_std_cov[all_data6-0-0] PASSED 2446s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_std_cov[all_data6-0-1] PASSED 2447s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_std_cov[all_data6-2-0] PASSED 2447s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_std_cov[all_data6-2-1] PASSED 2447s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_std_cov[all_data7-0-0] PASSED 2447s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_std_cov[all_data7-0-1] PASSED 2447s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_std_cov[all_data7-2-0] PASSED 2447s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_std_cov[all_data7-2-1] PASSED 2447s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_std_cov[all_data8-0-0] PASSED 2447s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_std_cov[all_data8-0-1] PASSED 2447s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_std_cov[all_data8-2-0] PASSED 2447s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_std_cov[all_data8-2-1] PASSED 2447s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_std_cov[all_data9-0-0] PASSED 2447s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_std_cov[all_data9-0-1] PASSED 2447s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_std_cov[all_data9-2-0] PASSED 2447s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_std_cov[all_data9-2-1] PASSED 2447s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_std_cov[all_data10-0-0] PASSED 2447s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_std_cov[all_data10-0-1] PASSED 2448s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_std_cov[all_data10-2-0] PASSED 2448s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_std_cov[all_data10-2-1] PASSED 2448s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_std_cov[all_data11-0-0] PASSED 2448s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_std_cov[all_data11-0-1] PASSED 2448s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_std_cov[all_data11-2-0] PASSED 2448s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_std_cov[all_data11-2-1] PASSED 2448s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_std_cov[all_data12-0-0] PASSED 2448s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_std_cov[all_data12-0-1] PASSED 2448s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_std_cov[all_data12-2-0] PASSED 2448s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_std_cov[all_data12-2-1] PASSED 2448s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_std_cov[all_data13-0-0] PASSED 2448s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_std_cov[all_data13-0-1] PASSED 2448s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_std_cov[all_data13-2-0] PASSED 2449s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_std_cov[all_data13-2-1] PASSED 2449s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_std_cov[all_data14-0-0] PASSED 2449s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_std_cov[all_data14-0-1] PASSED 2449s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_std_cov[all_data14-2-0] PASSED 2449s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_std_cov[all_data14-2-1] PASSED 2449s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_std_cov[all_data15-0-0] PASSED 2449s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_std_cov[all_data15-0-1] PASSED 2449s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_std_cov[all_data15-2-0] PASSED 2449s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_std_cov[all_data15-2-1] PASSED 2449s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_std_cov[all_data16-0-0] PASSED 2450s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_std_cov[all_data16-0-1] PASSED 2450s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_std_cov[all_data16-2-0] PASSED 2450s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_std_cov[all_data16-2-1] PASSED 2450s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_std_cov[all_data17-0-0] PASSED 2450s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_std_cov[all_data17-0-1] PASSED 2450s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_std_cov[all_data17-2-0] PASSED 2450s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_std_cov[all_data17-2-1] PASSED 2450s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_series_cov_corr[series_data0-0-0] PASSED 2450s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_series_cov_corr[series_data0-0-1] PASSED 2450s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_series_cov_corr[series_data0-2-0] PASSED 2450s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_series_cov_corr[series_data0-2-1] PASSED 2450s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_series_cov_corr[series_data1-0-0] PASSED 2450s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_series_cov_corr[series_data1-0-1] PASSED 2450s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_series_cov_corr[series_data1-2-0] PASSED 2451s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_series_cov_corr[series_data1-2-1] PASSED 2451s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_series_cov_corr[series_data2-0-0] PASSED 2451s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_series_cov_corr[series_data2-0-1] PASSED 2451s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_series_cov_corr[series_data2-2-0] PASSED 2451s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_series_cov_corr[series_data2-2-1] PASSED 2451s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_series_cov_corr[series_data3-0-0] PASSED 2451s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_series_cov_corr[series_data3-0-1] PASSED 2451s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_series_cov_corr[series_data3-2-0] PASSED 2451s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_series_cov_corr[series_data3-2-1] PASSED 2451s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_series_cov_corr[series_data4-0-0] PASSED 2451s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_series_cov_corr[series_data4-0-1] PASSED 2451s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_series_cov_corr[series_data4-2-0] PASSED 2451s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_series_cov_corr[series_data4-2-1] PASSED 2451s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_series_cov_corr[series_data5-0-0] PASSED 2451s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_series_cov_corr[series_data5-0-1] PASSED 2451s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_series_cov_corr[series_data5-2-0] PASSED 2451s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_series_cov_corr[series_data5-2-1] PASSED 2451s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_series_cov_corr[series_data6-0-0] PASSED 2451s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_series_cov_corr[series_data6-0-1] PASSED 2451s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_series_cov_corr[series_data6-2-0] PASSED 2451s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_series_cov_corr[series_data6-2-1] PASSED 2451s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_series_cov_corr[series_data7-0-0] PASSED 2451s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_series_cov_corr[series_data7-0-1] PASSED 2451s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_series_cov_corr[series_data7-2-0] PASSED 2451s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_series_cov_corr[series_data7-2-1] PASSED 2451s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_mean[all_data0-0] PASSED 2452s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_mean[all_data0-2] PASSED 2452s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_mean[all_data1-0] PASSED 2452s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_mean[all_data1-2] PASSED 2452s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_mean[all_data2-0] PASSED 2452s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_mean[all_data2-2] PASSED 2452s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_mean[all_data3-0] PASSED 2452s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_mean[all_data3-2] PASSED 2452s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_mean[all_data4-0] PASSED 2452s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_mean[all_data4-2] PASSED 2452s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_mean[all_data5-0] PASSED 2452s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_mean[all_data5-2] PASSED 2452s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_mean[all_data6-0] PASSED 2452s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_mean[all_data6-2] PASSED 2452s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_mean[all_data7-0] PASSED 2452s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_mean[all_data7-2] PASSED 2452s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_mean[all_data8-0] PASSED 2453s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_mean[all_data8-2] PASSED 2453s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_mean[all_data9-0] PASSED 2453s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_mean[all_data9-2] PASSED 2453s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_mean[all_data10-0] PASSED 2453s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_mean[all_data10-2] PASSED 2453s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_mean[all_data11-0] PASSED 2453s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_mean[all_data11-2] PASSED 2453s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_mean[all_data12-0] PASSED 2453s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_mean[all_data12-2] PASSED 2453s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_mean[all_data13-0] PASSED 2453s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_mean[all_data13-2] PASSED 2453s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_mean[all_data14-0] PASSED 2454s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_mean[all_data14-2] PASSED 2454s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_mean[all_data15-0] PASSED 2454s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_mean[all_data15-2] PASSED 2454s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_mean[all_data16-0] PASSED 2454s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_mean[all_data16-2] PASSED 2454s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_mean[all_data17-0] PASSED 2454s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_mean[all_data17-2] PASSED 2454s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_constant[consistent_data0-0] PASSED 2454s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_constant[consistent_data0-2] PASSED 2454s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_constant[consistent_data1-0] PASSED 2454s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_constant[consistent_data1-2] PASSED 2454s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_constant[consistent_data2-0] PASSED 2454s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_constant[consistent_data2-2] PASSED 2454s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_constant[consistent_data3-0] PASSED 2454s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_constant[consistent_data3-2] PASSED 2454s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_debiasing_factors[all_data0-0] PASSED 2454s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_debiasing_factors[all_data0-2] PASSED 2454s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_debiasing_factors[all_data1-0] PASSED 2454s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_debiasing_factors[all_data1-2] PASSED 2454s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_debiasing_factors[all_data2-0] PASSED 2455s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_debiasing_factors[all_data2-2] PASSED 2455s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_debiasing_factors[all_data3-0] PASSED 2455s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_debiasing_factors[all_data3-2] PASSED 2455s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_debiasing_factors[all_data4-0] PASSED 2455s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_debiasing_factors[all_data4-2] PASSED 2455s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_debiasing_factors[all_data5-0] PASSED 2455s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_debiasing_factors[all_data5-2] PASSED 2455s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_debiasing_factors[all_data6-0] PASSED 2455s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_debiasing_factors[all_data6-2] PASSED 2455s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_debiasing_factors[all_data7-0] PASSED 2455s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_debiasing_factors[all_data7-2] PASSED 2455s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_debiasing_factors[all_data8-0] PASSED 2455s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_debiasing_factors[all_data8-2] PASSED 2455s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_debiasing_factors[all_data9-0] PASSED 2455s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_debiasing_factors[all_data9-2] PASSED 2455s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_debiasing_factors[all_data10-0] PASSED 2455s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_debiasing_factors[all_data10-2] PASSED 2455s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_debiasing_factors[all_data11-0] PASSED 2455s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_debiasing_factors[all_data11-2] PASSED 2455s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_debiasing_factors[all_data12-0] PASSED 2455s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_debiasing_factors[all_data12-2] PASSED 2455s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_debiasing_factors[all_data13-0] PASSED 2455s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_debiasing_factors[all_data13-2] PASSED 2455s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_debiasing_factors[all_data14-0] PASSED 2455s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_debiasing_factors[all_data14-2] PASSED 2455s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_debiasing_factors[all_data15-0] PASSED 2456s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_debiasing_factors[all_data15-2] PASSED 2456s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_debiasing_factors[all_data16-0] PASSED 2456s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_debiasing_factors[all_data16-2] PASSED 2456s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_debiasing_factors[all_data17-0] PASSED 2456s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_debiasing_factors[all_data17-2] PASSED 2456s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data0-rolling_consistency_cases0-True-] PASSED 2456s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data0-rolling_consistency_cases0-True-nansum] PASSED 2456s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data0-rolling_consistency_cases0-True-sum] PASSED 2457s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data0-rolling_consistency_cases0-False-] PASSED 2457s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data0-rolling_consistency_cases0-False-nansum] PASSED 2457s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data0-rolling_consistency_cases0-False-sum] PASSED 2457s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data0-rolling_consistency_cases1-True-] PASSED 2457s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data0-rolling_consistency_cases1-True-nansum] PASSED 2457s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data0-rolling_consistency_cases1-True-sum] PASSED 2457s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data0-rolling_consistency_cases1-False-] PASSED 2457s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data0-rolling_consistency_cases1-False-nansum] PASSED 2457s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data0-rolling_consistency_cases1-False-sum] PASSED 2457s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data1-rolling_consistency_cases0-True-] PASSED 2458s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data1-rolling_consistency_cases0-True-nansum] PASSED 2458s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data1-rolling_consistency_cases0-True-sum] XFAIL 2458s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data1-rolling_consistency_cases0-False-] PASSED 2458s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data1-rolling_consistency_cases0-False-nansum] PASSED 2458s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data1-rolling_consistency_cases0-False-sum] XFAIL 2458s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data1-rolling_consistency_cases1-True-] PASSED 2458s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data1-rolling_consistency_cases1-True-nansum] PASSED 2458s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data1-rolling_consistency_cases1-True-sum] PASSED 2458s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data1-rolling_consistency_cases1-False-] PASSED 2458s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data1-rolling_consistency_cases1-False-nansum] PASSED 2458s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data1-rolling_consistency_cases1-False-sum] PASSED 2458s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data2-rolling_consistency_cases0-True-] PASSED 2458s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data2-rolling_consistency_cases0-True-nansum] PASSED 2458s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data2-rolling_consistency_cases0-True-sum] PASSED 2458s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data2-rolling_consistency_cases0-False-] PASSED 2458s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data2-rolling_consistency_cases0-False-nansum] PASSED 2458s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data2-rolling_consistency_cases0-False-sum] PASSED 2458s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data2-rolling_consistency_cases1-True-] PASSED 2459s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data2-rolling_consistency_cases1-True-nansum] PASSED 2459s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data2-rolling_consistency_cases1-True-sum] PASSED 2459s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data2-rolling_consistency_cases1-False-] PASSED 2459s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data2-rolling_consistency_cases1-False-nansum] PASSED 2459s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data2-rolling_consistency_cases1-False-sum] PASSED 2459s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data3-rolling_consistency_cases0-True-] PASSED 2459s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data3-rolling_consistency_cases0-True-nansum] PASSED 2459s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data3-rolling_consistency_cases0-True-sum] PASSED 2459s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data3-rolling_consistency_cases0-False-] PASSED 2459s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data3-rolling_consistency_cases0-False-nansum] PASSED 2459s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data3-rolling_consistency_cases0-False-sum] PASSED 2459s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data3-rolling_consistency_cases1-True-] PASSED 2459s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data3-rolling_consistency_cases1-True-nansum] PASSED 2459s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data3-rolling_consistency_cases1-True-sum] PASSED 2459s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data3-rolling_consistency_cases1-False-] PASSED 2459s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data3-rolling_consistency_cases1-False-nansum] PASSED 2459s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data3-rolling_consistency_cases1-False-sum] PASSED 2459s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data4-rolling_consistency_cases0-True-] PASSED 2459s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data4-rolling_consistency_cases0-True-nansum] PASSED 2459s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data4-rolling_consistency_cases0-True-sum] PASSED 2459s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data4-rolling_consistency_cases0-False-] PASSED 2459s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data4-rolling_consistency_cases0-False-nansum] PASSED 2459s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data4-rolling_consistency_cases0-False-sum] PASSED 2459s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data4-rolling_consistency_cases1-True-] PASSED 2459s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data4-rolling_consistency_cases1-True-nansum] PASSED 2459s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data4-rolling_consistency_cases1-True-sum] PASSED 2459s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data4-rolling_consistency_cases1-False-] PASSED 2459s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data4-rolling_consistency_cases1-False-nansum] PASSED 2459s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data4-rolling_consistency_cases1-False-sum] PASSED 2459s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data5-rolling_consistency_cases0-True-] PASSED 2459s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data5-rolling_consistency_cases0-True-nansum] PASSED 2460s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data5-rolling_consistency_cases0-True-sum] XFAIL 2460s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data5-rolling_consistency_cases0-False-] PASSED 2460s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data5-rolling_consistency_cases0-False-nansum] PASSED 2460s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data5-rolling_consistency_cases0-False-sum] XFAIL 2460s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data5-rolling_consistency_cases1-True-] PASSED 2460s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data5-rolling_consistency_cases1-True-nansum] PASSED 2461s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data5-rolling_consistency_cases1-True-sum] XFAIL 2461s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data5-rolling_consistency_cases1-False-] PASSED 2461s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data5-rolling_consistency_cases1-False-nansum] PASSED 2461s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data5-rolling_consistency_cases1-False-sum] XFAIL 2461s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data6-rolling_consistency_cases0-True-] PASSED 2462s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data6-rolling_consistency_cases0-True-nansum] PASSED 2462s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data6-rolling_consistency_cases0-True-sum] XFAIL 2462s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data6-rolling_consistency_cases0-False-] PASSED 2462s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data6-rolling_consistency_cases0-False-nansum] PASSED 2462s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data6-rolling_consistency_cases0-False-sum] XFAIL 2462s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data6-rolling_consistency_cases1-True-] PASSED 2462s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data6-rolling_consistency_cases1-True-nansum] PASSED 2462s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data6-rolling_consistency_cases1-True-sum] XFAIL 2462s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data6-rolling_consistency_cases1-False-] PASSED 2462s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data6-rolling_consistency_cases1-False-nansum] PASSED 2462s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data6-rolling_consistency_cases1-False-sum] XFAIL 2463s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data7-rolling_consistency_cases0-True-] PASSED 2463s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data7-rolling_consistency_cases0-True-nansum] PASSED 2463s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data7-rolling_consistency_cases0-True-sum] XFAIL 2463s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data7-rolling_consistency_cases0-False-] PASSED 2463s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data7-rolling_consistency_cases0-False-nansum] PASSED 2463s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data7-rolling_consistency_cases0-False-sum] XFAIL 2463s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data7-rolling_consistency_cases1-True-] PASSED 2463s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data7-rolling_consistency_cases1-True-nansum] PASSED 2463s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data7-rolling_consistency_cases1-True-sum] XFAIL 2463s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data7-rolling_consistency_cases1-False-] PASSED 2463s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data7-rolling_consistency_cases1-False-nansum] PASSED 2463s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data7-rolling_consistency_cases1-False-sum] XFAIL 2463s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data8-rolling_consistency_cases0-True-] PASSED 2464s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data8-rolling_consistency_cases0-True-nansum] PASSED 2464s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data8-rolling_consistency_cases0-True-sum] PASSED 2464s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data8-rolling_consistency_cases0-False-] PASSED 2464s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data8-rolling_consistency_cases0-False-nansum] PASSED 2464s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data8-rolling_consistency_cases0-False-sum] PASSED 2464s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data8-rolling_consistency_cases1-True-] PASSED 2464s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data8-rolling_consistency_cases1-True-nansum] PASSED 2464s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data8-rolling_consistency_cases1-True-sum] PASSED 2464s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data8-rolling_consistency_cases1-False-] PASSED 2464s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data8-rolling_consistency_cases1-False-nansum] PASSED 2464s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data8-rolling_consistency_cases1-False-sum] PASSED 2464s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data9-rolling_consistency_cases0-True-] PASSED 2464s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data9-rolling_consistency_cases0-True-nansum] PASSED 2464s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data9-rolling_consistency_cases0-True-sum] PASSED 2464s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data9-rolling_consistency_cases0-False-] PASSED 2464s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data9-rolling_consistency_cases0-False-nansum] PASSED 2464s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data9-rolling_consistency_cases0-False-sum] PASSED 2464s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data9-rolling_consistency_cases1-True-] PASSED 2464s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data9-rolling_consistency_cases1-True-nansum] PASSED 2464s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data9-rolling_consistency_cases1-True-sum] PASSED 2464s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data9-rolling_consistency_cases1-False-] PASSED 2465s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data9-rolling_consistency_cases1-False-nansum] PASSED 2465s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data9-rolling_consistency_cases1-False-sum] PASSED 2465s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data10-rolling_consistency_cases0-True-] PASSED 2465s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data10-rolling_consistency_cases0-True-nansum] PASSED 2465s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data10-rolling_consistency_cases0-True-sum] PASSED 2465s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data10-rolling_consistency_cases0-False-] PASSED 2465s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data10-rolling_consistency_cases0-False-nansum] PASSED 2465s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data10-rolling_consistency_cases0-False-sum] PASSED 2465s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data10-rolling_consistency_cases1-True-] PASSED 2465s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data10-rolling_consistency_cases1-True-nansum] PASSED 2465s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data10-rolling_consistency_cases1-True-sum] PASSED 2465s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data10-rolling_consistency_cases1-False-] PASSED 2465s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data10-rolling_consistency_cases1-False-nansum] PASSED 2465s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data10-rolling_consistency_cases1-False-sum] PASSED 2465s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data11-rolling_consistency_cases0-True-] PASSED 2465s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data11-rolling_consistency_cases0-True-nansum] PASSED 2466s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data11-rolling_consistency_cases0-True-sum] XFAIL 2466s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data11-rolling_consistency_cases0-False-] PASSED 2466s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data11-rolling_consistency_cases0-False-nansum] PASSED 2466s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data11-rolling_consistency_cases0-False-sum] XFAIL 2466s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data11-rolling_consistency_cases1-True-] PASSED 2466s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data11-rolling_consistency_cases1-True-nansum] PASSED 2466s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data11-rolling_consistency_cases1-True-sum] PASSED 2466s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data11-rolling_consistency_cases1-False-] PASSED 2466s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data11-rolling_consistency_cases1-False-nansum] PASSED 2466s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data11-rolling_consistency_cases1-False-sum] PASSED 2466s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data12-rolling_consistency_cases0-True-] PASSED 2466s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data12-rolling_consistency_cases0-True-nansum] PASSED 2466s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data12-rolling_consistency_cases0-True-sum] PASSED 2466s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data12-rolling_consistency_cases0-False-] PASSED 2466s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data12-rolling_consistency_cases0-False-nansum] PASSED 2466s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data12-rolling_consistency_cases0-False-sum] PASSED 2466s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data12-rolling_consistency_cases1-True-] PASSED 2466s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data12-rolling_consistency_cases1-True-nansum] PASSED 2466s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data12-rolling_consistency_cases1-True-sum] PASSED 2466s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data12-rolling_consistency_cases1-False-] PASSED 2466s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data12-rolling_consistency_cases1-False-nansum] PASSED 2466s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data12-rolling_consistency_cases1-False-sum] PASSED 2466s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data13-rolling_consistency_cases0-True-] PASSED 2466s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data13-rolling_consistency_cases0-True-nansum] PASSED 2467s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data13-rolling_consistency_cases0-True-sum] PASSED 2467s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data13-rolling_consistency_cases0-False-] PASSED 2467s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data13-rolling_consistency_cases0-False-nansum] PASSED 2467s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data13-rolling_consistency_cases0-False-sum] PASSED 2467s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data13-rolling_consistency_cases1-True-] PASSED 2467s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data13-rolling_consistency_cases1-True-nansum] PASSED 2467s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data13-rolling_consistency_cases1-True-sum] PASSED 2467s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data13-rolling_consistency_cases1-False-] PASSED 2467s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data13-rolling_consistency_cases1-False-nansum] PASSED 2467s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data13-rolling_consistency_cases1-False-sum] PASSED 2467s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data14-rolling_consistency_cases0-True-] PASSED 2467s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data14-rolling_consistency_cases0-True-nansum] PASSED 2467s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data14-rolling_consistency_cases0-True-sum] PASSED 2467s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data14-rolling_consistency_cases0-False-] PASSED 2467s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data14-rolling_consistency_cases0-False-nansum] PASSED 2467s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data14-rolling_consistency_cases0-False-sum] PASSED 2468s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data14-rolling_consistency_cases1-True-] PASSED 2468s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data14-rolling_consistency_cases1-True-nansum] PASSED 2468s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data14-rolling_consistency_cases1-True-sum] PASSED 2468s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data14-rolling_consistency_cases1-False-] PASSED 2468s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data14-rolling_consistency_cases1-False-nansum] PASSED 2468s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data14-rolling_consistency_cases1-False-sum] PASSED 2468s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data15-rolling_consistency_cases0-True-] PASSED 2468s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data15-rolling_consistency_cases0-True-nansum] PASSED 2468s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data15-rolling_consistency_cases0-True-sum] XFAIL 2468s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data15-rolling_consistency_cases0-False-] PASSED 2469s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data15-rolling_consistency_cases0-False-nansum] PASSED 2470s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data15-rolling_consistency_cases0-False-sum] XFAIL 2470s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data15-rolling_consistency_cases1-True-] PASSED 2470s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data15-rolling_consistency_cases1-True-nansum] PASSED 2470s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data15-rolling_consistency_cases1-True-sum] XFAIL 2470s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data15-rolling_consistency_cases1-False-] PASSED 2471s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data15-rolling_consistency_cases1-False-nansum] PASSED 2471s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data15-rolling_consistency_cases1-False-sum] XFAIL 2471s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data16-rolling_consistency_cases0-True-] PASSED 2471s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data16-rolling_consistency_cases0-True-nansum] PASSED 2471s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data16-rolling_consistency_cases0-True-sum] XFAIL 2471s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data16-rolling_consistency_cases0-False-] PASSED 2471s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data16-rolling_consistency_cases0-False-nansum] PASSED 2471s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data16-rolling_consistency_cases0-False-sum] XFAIL 2471s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data16-rolling_consistency_cases1-True-] PASSED 2472s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data16-rolling_consistency_cases1-True-nansum] PASSED 2472s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data16-rolling_consistency_cases1-True-sum] XFAIL 2472s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data16-rolling_consistency_cases1-False-] PASSED 2472s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data16-rolling_consistency_cases1-False-nansum] PASSED 2472s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data16-rolling_consistency_cases1-False-sum] XFAIL 2472s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data17-rolling_consistency_cases0-True-] PASSED 2472s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data17-rolling_consistency_cases0-True-nansum] PASSED 2472s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data17-rolling_consistency_cases0-True-sum] XFAIL 2472s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data17-rolling_consistency_cases0-False-] PASSED 2472s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data17-rolling_consistency_cases0-False-nansum] PASSED 2473s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data17-rolling_consistency_cases0-False-sum] XFAIL 2473s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data17-rolling_consistency_cases1-True-] PASSED 2473s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data17-rolling_consistency_cases1-True-nansum] PASSED 2473s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data17-rolling_consistency_cases1-True-sum] XFAIL 2474s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data17-rolling_consistency_cases1-False-] PASSED 2474s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data17-rolling_consistency_cases1-False-nansum] PASSED 2474s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_apply_consistency_sum[all_data17-rolling_consistency_cases1-False-sum] XFAIL 2474s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data0-rolling_consistency_cases0-True-0] PASSED 2474s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data0-rolling_consistency_cases0-True-1] PASSED 2474s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data0-rolling_consistency_cases0-False-0] PASSED 2474s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data0-rolling_consistency_cases0-False-1] PASSED 2474s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data0-rolling_consistency_cases1-True-0] PASSED 2474s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data0-rolling_consistency_cases1-True-1] PASSED 2475s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data0-rolling_consistency_cases1-False-0] PASSED 2475s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data0-rolling_consistency_cases1-False-1] PASSED 2475s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data1-rolling_consistency_cases0-True-0] PASSED 2475s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data1-rolling_consistency_cases0-True-1] PASSED 2475s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data1-rolling_consistency_cases0-False-0] PASSED 2475s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data1-rolling_consistency_cases0-False-1] PASSED 2475s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data1-rolling_consistency_cases1-True-0] PASSED 2475s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data1-rolling_consistency_cases1-True-1] PASSED 2475s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data1-rolling_consistency_cases1-False-0] PASSED 2475s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data1-rolling_consistency_cases1-False-1] PASSED 2475s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data2-rolling_consistency_cases0-True-0] PASSED 2476s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data2-rolling_consistency_cases0-True-1] PASSED 2476s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data2-rolling_consistency_cases0-False-0] PASSED 2476s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data2-rolling_consistency_cases0-False-1] PASSED 2476s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data2-rolling_consistency_cases1-True-0] PASSED 2476s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data2-rolling_consistency_cases1-True-1] PASSED 2476s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data2-rolling_consistency_cases1-False-0] PASSED 2476s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data2-rolling_consistency_cases1-False-1] PASSED 2476s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data3-rolling_consistency_cases0-True-0] PASSED 2476s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data3-rolling_consistency_cases0-True-1] PASSED 2476s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data3-rolling_consistency_cases0-False-0] PASSED 2476s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data3-rolling_consistency_cases0-False-1] PASSED 2477s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data3-rolling_consistency_cases1-True-0] PASSED 2477s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data3-rolling_consistency_cases1-True-1] PASSED 2477s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data3-rolling_consistency_cases1-False-0] PASSED 2477s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data3-rolling_consistency_cases1-False-1] PASSED 2477s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data4-rolling_consistency_cases0-True-0] PASSED 2477s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data4-rolling_consistency_cases0-True-1] PASSED 2477s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data4-rolling_consistency_cases0-False-0] PASSED 2477s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data4-rolling_consistency_cases0-False-1] PASSED 2477s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data4-rolling_consistency_cases1-True-0] PASSED 2477s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data4-rolling_consistency_cases1-True-1] PASSED 2477s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data4-rolling_consistency_cases1-False-0] PASSED 2477s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data4-rolling_consistency_cases1-False-1] PASSED 2477s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data5-rolling_consistency_cases0-True-0] PASSED 2477s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data5-rolling_consistency_cases0-True-1] PASSED 2477s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data5-rolling_consistency_cases0-False-0] PASSED 2477s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data5-rolling_consistency_cases0-False-1] PASSED 2477s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data5-rolling_consistency_cases1-True-0] PASSED 2477s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data5-rolling_consistency_cases1-True-1] PASSED 2477s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data5-rolling_consistency_cases1-False-0] PASSED 2477s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data5-rolling_consistency_cases1-False-1] PASSED 2477s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data6-rolling_consistency_cases0-True-0] PASSED 2477s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data6-rolling_consistency_cases0-True-1] PASSED 2477s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data6-rolling_consistency_cases0-False-0] PASSED 2477s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data6-rolling_consistency_cases0-False-1] PASSED 2477s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data6-rolling_consistency_cases1-True-0] PASSED 2477s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data6-rolling_consistency_cases1-True-1] PASSED 2477s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data6-rolling_consistency_cases1-False-0] PASSED 2477s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data6-rolling_consistency_cases1-False-1] PASSED 2478s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data7-rolling_consistency_cases0-True-0] PASSED 2478s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data7-rolling_consistency_cases0-True-1] PASSED 2478s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data7-rolling_consistency_cases0-False-0] PASSED 2478s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data7-rolling_consistency_cases0-False-1] PASSED 2478s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data7-rolling_consistency_cases1-True-0] PASSED 2479s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data7-rolling_consistency_cases1-True-1] PASSED 2479s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data7-rolling_consistency_cases1-False-0] PASSED 2479s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data7-rolling_consistency_cases1-False-1] PASSED 2480s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data8-rolling_consistency_cases0-True-0] PASSED 2481s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data8-rolling_consistency_cases0-True-1] PASSED 2482s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data8-rolling_consistency_cases0-False-0] PASSED 2482s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data8-rolling_consistency_cases0-False-1] PASSED 2483s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data8-rolling_consistency_cases1-True-0] PASSED 2485s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data8-rolling_consistency_cases1-True-1] PASSED 2487s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data8-rolling_consistency_cases1-False-0] PASSED 2489s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data8-rolling_consistency_cases1-False-1] PASSED 2490s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data9-rolling_consistency_cases0-True-0] PASSED 2491s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data9-rolling_consistency_cases0-True-1] PASSED 2491s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data9-rolling_consistency_cases0-False-0] PASSED 2492s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data9-rolling_consistency_cases0-False-1] PASSED 2493s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data9-rolling_consistency_cases1-True-0] PASSED 2493s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data9-rolling_consistency_cases1-True-1] PASSED 2494s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data9-rolling_consistency_cases1-False-0] PASSED 2494s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data9-rolling_consistency_cases1-False-1] PASSED 2494s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data10-rolling_consistency_cases0-True-0] PASSED 2494s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data10-rolling_consistency_cases0-True-1] PASSED 2495s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data10-rolling_consistency_cases0-False-0] PASSED 2495s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data10-rolling_consistency_cases0-False-1] PASSED 2497s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data10-rolling_consistency_cases1-True-0] PASSED 2497s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data10-rolling_consistency_cases1-True-1] PASSED 2498s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data10-rolling_consistency_cases1-False-0] PASSED 2499s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data10-rolling_consistency_cases1-False-1] PASSED 2500s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data11-rolling_consistency_cases0-True-0] PASSED 2501s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data11-rolling_consistency_cases0-True-1] PASSED 2502s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data11-rolling_consistency_cases0-False-0] PASSED 2502s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data11-rolling_consistency_cases0-False-1] PASSED 2503s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data11-rolling_consistency_cases1-True-0] PASSED 2503s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data11-rolling_consistency_cases1-True-1] PASSED 2504s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data11-rolling_consistency_cases1-False-0] PASSED 2504s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data11-rolling_consistency_cases1-False-1] PASSED 2504s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data12-rolling_consistency_cases0-True-0] PASSED 2504s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data12-rolling_consistency_cases0-True-1] PASSED 2504s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data12-rolling_consistency_cases0-False-0] PASSED 2505s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data12-rolling_consistency_cases0-False-1] PASSED 2505s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data12-rolling_consistency_cases1-True-0] PASSED 2505s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data12-rolling_consistency_cases1-True-1] PASSED 2505s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data12-rolling_consistency_cases1-False-0] PASSED 2505s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data12-rolling_consistency_cases1-False-1] PASSED 2505s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data13-rolling_consistency_cases0-True-0] PASSED 2505s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data13-rolling_consistency_cases0-True-1] PASSED 2505s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data13-rolling_consistency_cases0-False-0] PASSED 2505s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data13-rolling_consistency_cases0-False-1] PASSED 2505s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data13-rolling_consistency_cases1-True-0] PASSED 2506s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data13-rolling_consistency_cases1-True-1] PASSED 2506s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data13-rolling_consistency_cases1-False-0] PASSED 2506s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data13-rolling_consistency_cases1-False-1] PASSED 2506s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data14-rolling_consistency_cases0-True-0] PASSED 2506s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data14-rolling_consistency_cases0-True-1] PASSED 2506s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data14-rolling_consistency_cases0-False-0] PASSED 2506s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data14-rolling_consistency_cases0-False-1] PASSED 2506s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data14-rolling_consistency_cases1-True-0] PASSED 2506s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data14-rolling_consistency_cases1-True-1] PASSED 2506s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data14-rolling_consistency_cases1-False-0] PASSED 2506s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data14-rolling_consistency_cases1-False-1] PASSED 2506s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data15-rolling_consistency_cases0-True-0] PASSED 2506s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data15-rolling_consistency_cases0-True-1] PASSED 2506s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data15-rolling_consistency_cases0-False-0] PASSED 2506s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data15-rolling_consistency_cases0-False-1] PASSED 2507s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data15-rolling_consistency_cases1-True-0] PASSED 2507s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data15-rolling_consistency_cases1-True-1] PASSED 2507s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data15-rolling_consistency_cases1-False-0] PASSED 2507s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data15-rolling_consistency_cases1-False-1] PASSED 2507s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data16-rolling_consistency_cases0-True-0] PASSED 2507s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data16-rolling_consistency_cases0-True-1] PASSED 2507s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data16-rolling_consistency_cases0-False-0] PASSED 2507s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data16-rolling_consistency_cases0-False-1] PASSED 2507s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data16-rolling_consistency_cases1-True-0] PASSED 2507s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data16-rolling_consistency_cases1-True-1] PASSED 2507s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data16-rolling_consistency_cases1-False-0] PASSED 2507s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data16-rolling_consistency_cases1-False-1] PASSED 2507s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data17-rolling_consistency_cases0-True-0] PASSED 2507s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data17-rolling_consistency_cases0-True-1] PASSED 2507s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data17-rolling_consistency_cases0-False-0] PASSED 2507s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data17-rolling_consistency_cases0-False-1] PASSED 2507s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data17-rolling_consistency_cases1-True-0] PASSED 2507s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data17-rolling_consistency_cases1-True-1] PASSED 2507s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data17-rolling_consistency_cases1-False-0] PASSED 2508s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var[all_data17-rolling_consistency_cases1-False-1] PASSED 2508s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var_constant[consistent_data0-rolling_consistency_cases0-True-0] PASSED 2508s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var_constant[consistent_data0-rolling_consistency_cases0-True-1] PASSED 2508s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var_constant[consistent_data0-rolling_consistency_cases0-False-0] PASSED 2508s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var_constant[consistent_data0-rolling_consistency_cases0-False-1] PASSED 2508s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var_constant[consistent_data0-rolling_consistency_cases1-True-0] PASSED 2508s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var_constant[consistent_data0-rolling_consistency_cases1-True-1] PASSED 2508s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var_constant[consistent_data0-rolling_consistency_cases1-False-0] PASSED 2508s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var_constant[consistent_data0-rolling_consistency_cases1-False-1] PASSED 2508s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var_constant[consistent_data1-rolling_consistency_cases0-True-0] PASSED 2508s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var_constant[consistent_data1-rolling_consistency_cases0-True-1] PASSED 2508s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var_constant[consistent_data1-rolling_consistency_cases0-False-0] PASSED 2508s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var_constant[consistent_data1-rolling_consistency_cases0-False-1] PASSED 2508s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var_constant[consistent_data1-rolling_consistency_cases1-True-0] PASSED 2508s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var_constant[consistent_data1-rolling_consistency_cases1-True-1] PASSED 2509s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var_constant[consistent_data1-rolling_consistency_cases1-False-0] PASSED 2509s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var_constant[consistent_data1-rolling_consistency_cases1-False-1] PASSED 2509s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var_constant[consistent_data2-rolling_consistency_cases0-True-0] PASSED 2509s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var_constant[consistent_data2-rolling_consistency_cases0-True-1] PASSED 2509s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var_constant[consistent_data2-rolling_consistency_cases0-False-0] PASSED 2509s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var_constant[consistent_data2-rolling_consistency_cases0-False-1] PASSED 2509s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var_constant[consistent_data2-rolling_consistency_cases1-True-0] PASSED 2509s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var_constant[consistent_data2-rolling_consistency_cases1-True-1] PASSED 2509s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var_constant[consistent_data2-rolling_consistency_cases1-False-0] PASSED 2509s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var_constant[consistent_data2-rolling_consistency_cases1-False-1] PASSED 2509s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var_constant[consistent_data3-rolling_consistency_cases0-True-0] PASSED 2509s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var_constant[consistent_data3-rolling_consistency_cases0-True-1] PASSED 2509s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var_constant[consistent_data3-rolling_consistency_cases0-False-0] PASSED 2509s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var_constant[consistent_data3-rolling_consistency_cases0-False-1] PASSED 2509s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var_constant[consistent_data3-rolling_consistency_cases1-True-0] PASSED 2510s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var_constant[consistent_data3-rolling_consistency_cases1-True-1] PASSED 2510s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var_constant[consistent_data3-rolling_consistency_cases1-False-0] PASSED 2510s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_moments_consistency_var_constant[consistent_data3-rolling_consistency_cases1-False-1] PASSED 2510s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data0-rolling_consistency_cases0-True-0] PASSED 2510s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data0-rolling_consistency_cases0-True-1] PASSED 2510s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data0-rolling_consistency_cases0-False-0] PASSED 2510s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data0-rolling_consistency_cases0-False-1] PASSED 2510s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data0-rolling_consistency_cases1-True-0] PASSED 2510s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data0-rolling_consistency_cases1-True-1] PASSED 2510s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data0-rolling_consistency_cases1-False-0] PASSED 2510s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data0-rolling_consistency_cases1-False-1] PASSED 2510s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data1-rolling_consistency_cases0-True-0] PASSED 2511s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data1-rolling_consistency_cases0-True-1] PASSED 2511s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data1-rolling_consistency_cases0-False-0] PASSED 2511s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data1-rolling_consistency_cases0-False-1] PASSED 2511s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data1-rolling_consistency_cases1-True-0] PASSED 2511s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data1-rolling_consistency_cases1-True-1] PASSED 2511s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data1-rolling_consistency_cases1-False-0] PASSED 2511s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data1-rolling_consistency_cases1-False-1] PASSED 2511s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data2-rolling_consistency_cases0-True-0] PASSED 2511s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data2-rolling_consistency_cases0-True-1] PASSED 2511s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data2-rolling_consistency_cases0-False-0] PASSED 2511s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data2-rolling_consistency_cases0-False-1] PASSED 2512s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data2-rolling_consistency_cases1-True-0] PASSED 2512s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data2-rolling_consistency_cases1-True-1] PASSED 2512s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data2-rolling_consistency_cases1-False-0] PASSED 2512s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data2-rolling_consistency_cases1-False-1] PASSED 2512s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data3-rolling_consistency_cases0-True-0] PASSED 2512s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data3-rolling_consistency_cases0-True-1] PASSED 2513s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data3-rolling_consistency_cases0-False-0] PASSED 2513s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data3-rolling_consistency_cases0-False-1] PASSED 2514s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data3-rolling_consistency_cases1-True-0] PASSED 2514s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data3-rolling_consistency_cases1-True-1] PASSED 2514s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data3-rolling_consistency_cases1-False-0] PASSED 2514s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data3-rolling_consistency_cases1-False-1] PASSED 2515s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data4-rolling_consistency_cases0-True-0] PASSED 2515s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data4-rolling_consistency_cases0-True-1] PASSED 2515s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data4-rolling_consistency_cases0-False-0] PASSED 2515s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data4-rolling_consistency_cases0-False-1] PASSED 2515s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data4-rolling_consistency_cases1-True-0] PASSED 2515s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data4-rolling_consistency_cases1-True-1] PASSED 2515s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data4-rolling_consistency_cases1-False-0] PASSED 2515s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data4-rolling_consistency_cases1-False-1] PASSED 2515s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data5-rolling_consistency_cases0-True-0] PASSED 2515s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data5-rolling_consistency_cases0-True-1] PASSED 2515s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data5-rolling_consistency_cases0-False-0] PASSED 2516s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data5-rolling_consistency_cases0-False-1] PASSED 2516s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data5-rolling_consistency_cases1-True-0] PASSED 2516s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data5-rolling_consistency_cases1-True-1] PASSED 2516s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data5-rolling_consistency_cases1-False-0] PASSED 2516s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data5-rolling_consistency_cases1-False-1] PASSED 2516s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data6-rolling_consistency_cases0-True-0] PASSED 2516s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data6-rolling_consistency_cases0-True-1] PASSED 2516s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data6-rolling_consistency_cases0-False-0] PASSED 2516s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data6-rolling_consistency_cases0-False-1] PASSED 2516s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data6-rolling_consistency_cases1-True-0] PASSED 2516s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data6-rolling_consistency_cases1-True-1] PASSED 2517s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data6-rolling_consistency_cases1-False-0] PASSED 2517s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data6-rolling_consistency_cases1-False-1] PASSED 2517s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data7-rolling_consistency_cases0-True-0] PASSED 2517s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data7-rolling_consistency_cases0-True-1] PASSED 2517s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data7-rolling_consistency_cases0-False-0] PASSED 2517s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data7-rolling_consistency_cases0-False-1] PASSED 2517s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data7-rolling_consistency_cases1-True-0] PASSED 2517s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data7-rolling_consistency_cases1-True-1] PASSED 2517s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data7-rolling_consistency_cases1-False-0] PASSED 2517s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data7-rolling_consistency_cases1-False-1] PASSED 2517s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data8-rolling_consistency_cases0-True-0] PASSED 2517s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data8-rolling_consistency_cases0-True-1] PASSED 2517s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data8-rolling_consistency_cases0-False-0] PASSED 2517s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data8-rolling_consistency_cases0-False-1] PASSED 2518s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data8-rolling_consistency_cases1-True-0] PASSED 2518s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data8-rolling_consistency_cases1-True-1] PASSED 2518s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data8-rolling_consistency_cases1-False-0] PASSED 2518s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data8-rolling_consistency_cases1-False-1] PASSED 2518s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data9-rolling_consistency_cases0-True-0] PASSED 2518s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data9-rolling_consistency_cases0-True-1] PASSED 2518s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data9-rolling_consistency_cases0-False-0] PASSED 2518s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data9-rolling_consistency_cases0-False-1] PASSED 2518s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data9-rolling_consistency_cases1-True-0] PASSED 2518s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data9-rolling_consistency_cases1-True-1] PASSED 2518s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data9-rolling_consistency_cases1-False-0] PASSED 2518s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data9-rolling_consistency_cases1-False-1] PASSED 2518s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data10-rolling_consistency_cases0-True-0] PASSED 2519s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data10-rolling_consistency_cases0-True-1] PASSED 2519s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data10-rolling_consistency_cases0-False-0] PASSED 2519s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data10-rolling_consistency_cases0-False-1] PASSED 2519s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data10-rolling_consistency_cases1-True-0] PASSED 2519s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data10-rolling_consistency_cases1-True-1] PASSED 2519s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data10-rolling_consistency_cases1-False-0] PASSED 2519s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data10-rolling_consistency_cases1-False-1] PASSED 2519s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data11-rolling_consistency_cases0-True-0] PASSED 2519s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data11-rolling_consistency_cases0-True-1] PASSED 2519s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data11-rolling_consistency_cases0-False-0] PASSED 2520s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data11-rolling_consistency_cases0-False-1] PASSED 2520s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data11-rolling_consistency_cases1-True-0] PASSED 2520s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data11-rolling_consistency_cases1-True-1] PASSED 2520s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data11-rolling_consistency_cases1-False-0] PASSED 2520s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data11-rolling_consistency_cases1-False-1] PASSED 2520s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data12-rolling_consistency_cases0-True-0] PASSED 2520s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data12-rolling_consistency_cases0-True-1] PASSED 2520s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data12-rolling_consistency_cases0-False-0] PASSED 2520s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data12-rolling_consistency_cases0-False-1] PASSED 2520s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data12-rolling_consistency_cases1-True-0] PASSED 2520s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data12-rolling_consistency_cases1-True-1] PASSED 2521s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data12-rolling_consistency_cases1-False-0] PASSED 2521s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data12-rolling_consistency_cases1-False-1] PASSED 2521s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data13-rolling_consistency_cases0-True-0] PASSED 2521s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data13-rolling_consistency_cases0-True-1] PASSED 2521s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data13-rolling_consistency_cases0-False-0] PASSED 2521s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data13-rolling_consistency_cases0-False-1] PASSED 2521s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data13-rolling_consistency_cases1-True-0] PASSED 2521s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data13-rolling_consistency_cases1-True-1] PASSED 2522s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data13-rolling_consistency_cases1-False-0] PASSED 2522s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data13-rolling_consistency_cases1-False-1] PASSED 2523s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data14-rolling_consistency_cases0-True-0] PASSED 2523s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data14-rolling_consistency_cases0-True-1] PASSED 2523s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data14-rolling_consistency_cases0-False-0] PASSED 2523s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data14-rolling_consistency_cases0-False-1] PASSED 2523s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data14-rolling_consistency_cases1-True-0] PASSED 2523s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data14-rolling_consistency_cases1-True-1] PASSED 2523s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data14-rolling_consistency_cases1-False-0] PASSED 2523s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data14-rolling_consistency_cases1-False-1] PASSED 2524s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data15-rolling_consistency_cases0-True-0] PASSED 2524s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data15-rolling_consistency_cases0-True-1] PASSED 2524s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data15-rolling_consistency_cases0-False-0] PASSED 2524s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data15-rolling_consistency_cases0-False-1] PASSED 2524s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data15-rolling_consistency_cases1-True-0] PASSED 2524s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data15-rolling_consistency_cases1-True-1] PASSED 2524s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data15-rolling_consistency_cases1-False-0] PASSED 2524s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data15-rolling_consistency_cases1-False-1] PASSED 2524s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data16-rolling_consistency_cases0-True-0] PASSED 2524s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data16-rolling_consistency_cases0-True-1] PASSED 2524s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data16-rolling_consistency_cases0-False-0] PASSED 2524s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data16-rolling_consistency_cases0-False-1] PASSED 2525s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data16-rolling_consistency_cases1-True-0] PASSED 2525s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data16-rolling_consistency_cases1-True-1] PASSED 2525s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data16-rolling_consistency_cases1-False-0] PASSED 2525s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data16-rolling_consistency_cases1-False-1] PASSED 2525s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data17-rolling_consistency_cases0-True-0] PASSED 2525s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data17-rolling_consistency_cases0-True-1] PASSED 2525s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data17-rolling_consistency_cases0-False-0] PASSED 2525s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data17-rolling_consistency_cases0-False-1] PASSED 2525s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data17-rolling_consistency_cases1-True-0] PASSED 2525s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data17-rolling_consistency_cases1-True-1] PASSED 2525s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data17-rolling_consistency_cases1-False-0] PASSED 2525s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_std_cov[all_data17-rolling_consistency_cases1-False-1] PASSED 2525s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_series_cov_corr[series_data0-rolling_consistency_cases0-True-0] PASSED 2525s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_series_cov_corr[series_data0-rolling_consistency_cases0-True-1] PASSED 2525s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_series_cov_corr[series_data0-rolling_consistency_cases0-False-0] PASSED 2525s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_series_cov_corr[series_data0-rolling_consistency_cases0-False-1] PASSED 2525s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_series_cov_corr[series_data0-rolling_consistency_cases1-True-0] PASSED 2525s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_series_cov_corr[series_data0-rolling_consistency_cases1-True-1] PASSED 2526s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_series_cov_corr[series_data0-rolling_consistency_cases1-False-0] PASSED 2526s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_series_cov_corr[series_data0-rolling_consistency_cases1-False-1] PASSED 2526s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_series_cov_corr[series_data1-rolling_consistency_cases0-True-0] PASSED 2526s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_series_cov_corr[series_data1-rolling_consistency_cases0-True-1] PASSED 2526s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_series_cov_corr[series_data1-rolling_consistency_cases0-False-0] PASSED 2526s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_series_cov_corr[series_data1-rolling_consistency_cases0-False-1] PASSED 2526s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_series_cov_corr[series_data1-rolling_consistency_cases1-True-0] PASSED 2526s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_series_cov_corr[series_data1-rolling_consistency_cases1-True-1] PASSED 2526s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_series_cov_corr[series_data1-rolling_consistency_cases1-False-0] PASSED 2526s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_series_cov_corr[series_data1-rolling_consistency_cases1-False-1] PASSED 2527s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_series_cov_corr[series_data2-rolling_consistency_cases0-True-0] PASSED 2527s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_series_cov_corr[series_data2-rolling_consistency_cases0-True-1] PASSED 2527s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_series_cov_corr[series_data2-rolling_consistency_cases0-False-0] PASSED 2527s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_series_cov_corr[series_data2-rolling_consistency_cases0-False-1] PASSED 2527s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_series_cov_corr[series_data2-rolling_consistency_cases1-True-0] PASSED 2528s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_series_cov_corr[series_data2-rolling_consistency_cases1-True-1] PASSED 2529s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_series_cov_corr[series_data2-rolling_consistency_cases1-False-0] PASSED 2529s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_series_cov_corr[series_data2-rolling_consistency_cases1-False-1] PASSED 2530s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_series_cov_corr[series_data3-rolling_consistency_cases0-True-0] PASSED 2530s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_series_cov_corr[series_data3-rolling_consistency_cases0-True-1] PASSED 2530s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_series_cov_corr[series_data3-rolling_consistency_cases0-False-0] PASSED 2531s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_series_cov_corr[series_data3-rolling_consistency_cases0-False-1] PASSED 2531s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_series_cov_corr[series_data3-rolling_consistency_cases1-True-0] PASSED 2531s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_series_cov_corr[series_data3-rolling_consistency_cases1-True-1] PASSED 2531s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_series_cov_corr[series_data3-rolling_consistency_cases1-False-0] PASSED 2531s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_series_cov_corr[series_data3-rolling_consistency_cases1-False-1] PASSED 2531s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_series_cov_corr[series_data4-rolling_consistency_cases0-True-0] PASSED 2531s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_series_cov_corr[series_data4-rolling_consistency_cases0-True-1] PASSED 2531s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_series_cov_corr[series_data4-rolling_consistency_cases0-False-0] PASSED 2531s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_series_cov_corr[series_data4-rolling_consistency_cases0-False-1] PASSED 2531s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_series_cov_corr[series_data4-rolling_consistency_cases1-True-0] PASSED 2531s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_series_cov_corr[series_data4-rolling_consistency_cases1-True-1] PASSED 2532s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_series_cov_corr[series_data4-rolling_consistency_cases1-False-0] PASSED 2532s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_series_cov_corr[series_data4-rolling_consistency_cases1-False-1] PASSED 2532s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_series_cov_corr[series_data5-rolling_consistency_cases0-True-0] PASSED 2532s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_series_cov_corr[series_data5-rolling_consistency_cases0-True-1] PASSED 2532s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_series_cov_corr[series_data5-rolling_consistency_cases0-False-0] PASSED 2532s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_series_cov_corr[series_data5-rolling_consistency_cases0-False-1] PASSED 2532s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_series_cov_corr[series_data5-rolling_consistency_cases1-True-0] PASSED 2533s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_series_cov_corr[series_data5-rolling_consistency_cases1-True-1] PASSED 2533s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_series_cov_corr[series_data5-rolling_consistency_cases1-False-0] PASSED 2533s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_series_cov_corr[series_data5-rolling_consistency_cases1-False-1] PASSED 2533s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_series_cov_corr[series_data6-rolling_consistency_cases0-True-0] PASSED 2534s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_series_cov_corr[series_data6-rolling_consistency_cases0-True-1] PASSED 2534s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_series_cov_corr[series_data6-rolling_consistency_cases0-False-0] PASSED 2534s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_series_cov_corr[series_data6-rolling_consistency_cases0-False-1] PASSED 2534s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_series_cov_corr[series_data6-rolling_consistency_cases1-True-0] PASSED 2534s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_series_cov_corr[series_data6-rolling_consistency_cases1-True-1] PASSED 2534s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_series_cov_corr[series_data6-rolling_consistency_cases1-False-0] PASSED 2534s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_series_cov_corr[series_data6-rolling_consistency_cases1-False-1] PASSED 2534s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_series_cov_corr[series_data7-rolling_consistency_cases0-True-0] PASSED 2534s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_series_cov_corr[series_data7-rolling_consistency_cases0-True-1] PASSED 2535s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_series_cov_corr[series_data7-rolling_consistency_cases0-False-0] PASSED 2535s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_series_cov_corr[series_data7-rolling_consistency_cases0-False-1] PASSED 2535s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_series_cov_corr[series_data7-rolling_consistency_cases1-True-0] PASSED 2535s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_series_cov_corr[series_data7-rolling_consistency_cases1-True-1] PASSED 2535s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_series_cov_corr[series_data7-rolling_consistency_cases1-False-0] PASSED 2536s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_series_cov_corr[series_data7-rolling_consistency_cases1-False-1] PASSED 2536s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_mean[all_data0-rolling_consistency_cases0-True] PASSED 2536s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_mean[all_data0-rolling_consistency_cases0-False] PASSED 2536s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_mean[all_data0-rolling_consistency_cases1-True] PASSED 2536s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_mean[all_data0-rolling_consistency_cases1-False] PASSED 2536s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_mean[all_data1-rolling_consistency_cases0-True] PASSED 2536s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_mean[all_data1-rolling_consistency_cases0-False] PASSED 2536s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_mean[all_data1-rolling_consistency_cases1-True] PASSED 2536s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_mean[all_data1-rolling_consistency_cases1-False] PASSED 2536s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_mean[all_data2-rolling_consistency_cases0-True] PASSED 2536s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_mean[all_data2-rolling_consistency_cases0-False] PASSED 2536s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_mean[all_data2-rolling_consistency_cases1-True] PASSED 2536s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_mean[all_data2-rolling_consistency_cases1-False] PASSED 2536s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_mean[all_data3-rolling_consistency_cases0-True] PASSED 2536s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_mean[all_data3-rolling_consistency_cases0-False] PASSED 2537s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_mean[all_data3-rolling_consistency_cases1-True] PASSED 2537s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_mean[all_data3-rolling_consistency_cases1-False] PASSED 2537s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_mean[all_data4-rolling_consistency_cases0-True] PASSED 2538s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_mean[all_data4-rolling_consistency_cases0-False] PASSED 2539s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_mean[all_data4-rolling_consistency_cases1-True] PASSED 2540s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_mean[all_data4-rolling_consistency_cases1-False] PASSED 2541s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_mean[all_data5-rolling_consistency_cases0-True] PASSED 2543s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_mean[all_data5-rolling_consistency_cases0-False] PASSED 2544s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_mean[all_data5-rolling_consistency_cases1-True] PASSED 2544s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_mean[all_data5-rolling_consistency_cases1-False] PASSED 2545s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_mean[all_data6-rolling_consistency_cases0-True] PASSED 2546s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_mean[all_data6-rolling_consistency_cases0-False] PASSED 2547s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_mean[all_data6-rolling_consistency_cases1-True] PASSED 2548s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_mean[all_data6-rolling_consistency_cases1-False] PASSED 2548s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_mean[all_data7-rolling_consistency_cases0-True] PASSED 2548s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_mean[all_data7-rolling_consistency_cases0-False] PASSED 2548s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_mean[all_data7-rolling_consistency_cases1-True] PASSED 2548s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_mean[all_data7-rolling_consistency_cases1-False] PASSED 2548s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_mean[all_data8-rolling_consistency_cases0-True] PASSED 2548s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_mean[all_data8-rolling_consistency_cases0-False] PASSED 2548s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_mean[all_data8-rolling_consistency_cases1-True] PASSED 2548s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_mean[all_data8-rolling_consistency_cases1-False] PASSED 2548s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_mean[all_data9-rolling_consistency_cases0-True] PASSED 2549s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_mean[all_data9-rolling_consistency_cases0-False] PASSED 2549s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_mean[all_data9-rolling_consistency_cases1-True] PASSED 2549s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_mean[all_data9-rolling_consistency_cases1-False] PASSED 2549s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_mean[all_data10-rolling_consistency_cases0-True] PASSED 2549s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_mean[all_data10-rolling_consistency_cases0-False] PASSED 2549s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_mean[all_data10-rolling_consistency_cases1-True] PASSED 2550s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_mean[all_data10-rolling_consistency_cases1-False] PASSED 2550s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_mean[all_data11-rolling_consistency_cases0-True] PASSED 2550s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_mean[all_data11-rolling_consistency_cases0-False] PASSED 2550s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_mean[all_data11-rolling_consistency_cases1-True] PASSED 2550s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_mean[all_data11-rolling_consistency_cases1-False] PASSED 2550s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_mean[all_data12-rolling_consistency_cases0-True] PASSED 2550s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_mean[all_data12-rolling_consistency_cases0-False] PASSED 2550s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_mean[all_data12-rolling_consistency_cases1-True] PASSED 2551s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_mean[all_data12-rolling_consistency_cases1-False] PASSED 2551s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_mean[all_data13-rolling_consistency_cases0-True] PASSED 2552s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_mean[all_data13-rolling_consistency_cases0-False] PASSED 2552s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_mean[all_data13-rolling_consistency_cases1-True] PASSED 2552s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_mean[all_data13-rolling_consistency_cases1-False] PASSED 2552s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_mean[all_data14-rolling_consistency_cases0-True] PASSED 2552s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_mean[all_data14-rolling_consistency_cases0-False] PASSED 2552s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_mean[all_data14-rolling_consistency_cases1-True] PASSED 2553s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_mean[all_data14-rolling_consistency_cases1-False] PASSED 2553s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_mean[all_data15-rolling_consistency_cases0-True] PASSED 2554s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_mean[all_data15-rolling_consistency_cases0-False] PASSED 2555s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_mean[all_data15-rolling_consistency_cases1-True] PASSED 2555s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_mean[all_data15-rolling_consistency_cases1-False] PASSED 2556s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_mean[all_data16-rolling_consistency_cases0-True] PASSED 2556s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_mean[all_data16-rolling_consistency_cases0-False] PASSED 2556s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_mean[all_data16-rolling_consistency_cases1-True] PASSED 2556s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_mean[all_data16-rolling_consistency_cases1-False] PASSED 2556s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_mean[all_data17-rolling_consistency_cases0-True] PASSED 2556s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_mean[all_data17-rolling_consistency_cases0-False] PASSED 2556s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_mean[all_data17-rolling_consistency_cases1-True] PASSED 2556s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_mean[all_data17-rolling_consistency_cases1-False] PASSED 2556s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_constant[consistent_data0-rolling_consistency_cases0-True] PASSED 2556s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_constant[consistent_data0-rolling_consistency_cases0-False] PASSED 2557s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_constant[consistent_data0-rolling_consistency_cases1-True] PASSED 2557s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_constant[consistent_data0-rolling_consistency_cases1-False] PASSED 2557s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_constant[consistent_data1-rolling_consistency_cases0-True] PASSED 2557s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_constant[consistent_data1-rolling_consistency_cases0-False] PASSED 2557s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_constant[consistent_data1-rolling_consistency_cases1-True] PASSED 2557s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_constant[consistent_data1-rolling_consistency_cases1-False] PASSED 2558s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_constant[consistent_data2-rolling_consistency_cases0-True] PASSED 2558s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_constant[consistent_data2-rolling_consistency_cases0-False] PASSED 2558s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_constant[consistent_data2-rolling_consistency_cases1-True] PASSED 2558s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_constant[consistent_data2-rolling_consistency_cases1-False] PASSED 2558s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_constant[consistent_data3-rolling_consistency_cases0-True] PASSED 2558s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_constant[consistent_data3-rolling_consistency_cases0-False] PASSED 2558s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_constant[consistent_data3-rolling_consistency_cases1-True] PASSED 2558s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_constant[consistent_data3-rolling_consistency_cases1-False] PASSED 2558s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_debiasing_factors[all_data0-rolling_consistency_cases0-True] PASSED 2558s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_debiasing_factors[all_data0-rolling_consistency_cases0-False] PASSED 2559s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_debiasing_factors[all_data0-rolling_consistency_cases1-True] PASSED 2559s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_debiasing_factors[all_data0-rolling_consistency_cases1-False] PASSED 2559s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_debiasing_factors[all_data1-rolling_consistency_cases0-True] PASSED 2559s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_debiasing_factors[all_data1-rolling_consistency_cases0-False] PASSED 2559s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_debiasing_factors[all_data1-rolling_consistency_cases1-True] PASSED 2559s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_debiasing_factors[all_data1-rolling_consistency_cases1-False] PASSED 2559s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_debiasing_factors[all_data2-rolling_consistency_cases0-True] PASSED 2559s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_debiasing_factors[all_data2-rolling_consistency_cases0-False] PASSED 2559s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_debiasing_factors[all_data2-rolling_consistency_cases1-True] PASSED 2559s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_debiasing_factors[all_data2-rolling_consistency_cases1-False] PASSED 2559s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_debiasing_factors[all_data3-rolling_consistency_cases0-True] PASSED 2559s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_debiasing_factors[all_data3-rolling_consistency_cases0-False] PASSED 2559s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_debiasing_factors[all_data3-rolling_consistency_cases1-True] PASSED 2559s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_debiasing_factors[all_data3-rolling_consistency_cases1-False] PASSED 2559s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_debiasing_factors[all_data4-rolling_consistency_cases0-True] PASSED 2559s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_debiasing_factors[all_data4-rolling_consistency_cases0-False] PASSED 2559s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_debiasing_factors[all_data4-rolling_consistency_cases1-True] PASSED 2559s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_debiasing_factors[all_data4-rolling_consistency_cases1-False] PASSED 2559s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_debiasing_factors[all_data5-rolling_consistency_cases0-True] PASSED 2559s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_debiasing_factors[all_data5-rolling_consistency_cases0-False] PASSED 2559s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_debiasing_factors[all_data5-rolling_consistency_cases1-True] PASSED 2559s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_debiasing_factors[all_data5-rolling_consistency_cases1-False] PASSED 2559s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_debiasing_factors[all_data6-rolling_consistency_cases0-True] PASSED 2559s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_debiasing_factors[all_data6-rolling_consistency_cases0-False] PASSED 2559s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_debiasing_factors[all_data6-rolling_consistency_cases1-True] PASSED 2559s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_debiasing_factors[all_data6-rolling_consistency_cases1-False] PASSED 2560s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_debiasing_factors[all_data7-rolling_consistency_cases0-True] PASSED 2560s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_debiasing_factors[all_data7-rolling_consistency_cases0-False] PASSED 2560s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_debiasing_factors[all_data7-rolling_consistency_cases1-True] PASSED 2560s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_debiasing_factors[all_data7-rolling_consistency_cases1-False] PASSED 2560s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_debiasing_factors[all_data8-rolling_consistency_cases0-True] PASSED 2560s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_debiasing_factors[all_data8-rolling_consistency_cases0-False] PASSED 2560s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_debiasing_factors[all_data8-rolling_consistency_cases1-True] PASSED 2560s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_debiasing_factors[all_data8-rolling_consistency_cases1-False] PASSED 2560s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_debiasing_factors[all_data9-rolling_consistency_cases0-True] PASSED 2560s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_debiasing_factors[all_data9-rolling_consistency_cases0-False] PASSED 2560s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_debiasing_factors[all_data9-rolling_consistency_cases1-True] PASSED 2560s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_debiasing_factors[all_data9-rolling_consistency_cases1-False] PASSED 2560s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_debiasing_factors[all_data10-rolling_consistency_cases0-True] PASSED 2560s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_debiasing_factors[all_data10-rolling_consistency_cases0-False] PASSED 2560s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_debiasing_factors[all_data10-rolling_consistency_cases1-True] PASSED 2560s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_debiasing_factors[all_data10-rolling_consistency_cases1-False] PASSED 2560s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_debiasing_factors[all_data11-rolling_consistency_cases0-True] PASSED 2560s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_debiasing_factors[all_data11-rolling_consistency_cases0-False] PASSED 2560s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_debiasing_factors[all_data11-rolling_consistency_cases1-True] PASSED 2560s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_debiasing_factors[all_data11-rolling_consistency_cases1-False] PASSED 2560s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_debiasing_factors[all_data12-rolling_consistency_cases0-True] PASSED 2560s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_debiasing_factors[all_data12-rolling_consistency_cases0-False] PASSED 2560s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_debiasing_factors[all_data12-rolling_consistency_cases1-True] PASSED 2560s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_debiasing_factors[all_data12-rolling_consistency_cases1-False] PASSED 2560s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_debiasing_factors[all_data13-rolling_consistency_cases0-True] PASSED 2561s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_debiasing_factors[all_data13-rolling_consistency_cases0-False] PASSED 2561s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_debiasing_factors[all_data13-rolling_consistency_cases1-True] PASSED 2561s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_debiasing_factors[all_data13-rolling_consistency_cases1-False] PASSED 2561s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_debiasing_factors[all_data14-rolling_consistency_cases0-True] PASSED 2561s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_debiasing_factors[all_data14-rolling_consistency_cases0-False] PASSED 2561s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_debiasing_factors[all_data14-rolling_consistency_cases1-True] PASSED 2561s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_debiasing_factors[all_data14-rolling_consistency_cases1-False] PASSED 2561s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_debiasing_factors[all_data15-rolling_consistency_cases0-True] PASSED 2561s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_debiasing_factors[all_data15-rolling_consistency_cases0-False] PASSED 2561s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_debiasing_factors[all_data15-rolling_consistency_cases1-True] PASSED 2561s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_debiasing_factors[all_data15-rolling_consistency_cases1-False] PASSED 2561s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_debiasing_factors[all_data16-rolling_consistency_cases0-True] PASSED 2561s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_debiasing_factors[all_data16-rolling_consistency_cases0-False] PASSED 2561s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_debiasing_factors[all_data16-rolling_consistency_cases1-True] PASSED 2561s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_debiasing_factors[all_data16-rolling_consistency_cases1-False] PASSED 2561s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_debiasing_factors[all_data17-rolling_consistency_cases0-True] PASSED 2561s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_debiasing_factors[all_data17-rolling_consistency_cases0-False] PASSED 2562s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_debiasing_factors[all_data17-rolling_consistency_cases1-True] PASSED 2562s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_rolling.py::test_rolling_consistency_var_debiasing_factors[all_data17-rolling_consistency_cases1-False] PASSED 2562s 2562s =============================== warnings summary =============================== 2562s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_numba.py:10 2562s /usr/lib/python3/dist-packages/pandas/tests/groupby/test_numba.py:10: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 2562s pytestmark = pytest.mark.single_cpu 2562s 2562s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_timegrouper.py:907 2562s /usr/lib/python3/dist-packages/pandas/tests/groupby/test_timegrouper.py:907: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 2562s @pytest.mark.single_cpu 2562s 2562s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py:13 2562s /usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py:13: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 2562s pytestmark = pytest.mark.single_cpu 2562s 2562s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py:21 2562s /usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py:21: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 2562s pytestmark = pytest.mark.single_cpu 2562s 2562s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py:229 2562s /usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py:229: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 2562s @pytest.mark.single_cpu 2562s 2562s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py:27 2562s /usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py:27: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 2562s pytest.mark.single_cpu, 2562s 2562s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py:339 2562s /usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py:339: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 2562s @pytest.mark.slow 2562s 2562s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_online.py:17 2562s /usr/lib/python3/dist-packages/pandas/tests/window/test_online.py:17: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 2562s pytest.mark.single_cpu, 2562s 2562s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py:154 2562s /usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py:154: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 2562s @pytest.mark.slow 2562s 2562s frame/test_ufunc.py: 32 warnings 2562s groupby/test_timegrouper.py: 30 warnings 2562s groupby/transform/test_numba.py: 53 warnings 2562s groupby/aggregate/test_numba.py: 35 warnings 2562s util/test_numba.py: 1 warning 2562s window/test_api.py: 937 warnings 2562s window/test_apply.py: 82 warnings 2562s window/test_base_indexer.py: 228 warnings 2562s window/test_cython_aggregations.py: 72 warnings 2562s window/test_dtypes.py: 2580 warnings 2562s window/test_ewm.py: 226 warnings 2562s window/test_expanding.py: 333 warnings 2562s window/test_groupby.py: 106 warnings 2562s window/test_numba.py: 50 warnings 2562s window/test_pairwise.py: 311 warnings 2562s window/test_rolling.py: 863 warnings 2562s window/test_rolling_functions.py: 418 warnings 2562s window/test_rolling_quantile.py: 186 warnings 2562s window/test_rolling_skew_kurt.py: 68 warnings 2562s window/test_timeseries_window.py: 73 warnings 2562s window/test_win_type.py: 287 warnings 2562s window/moments/test_moments_consistency_ewm.py: 1088 warnings 2562s window/moments/test_moments_consistency_expanding.py: 380 warnings 2562s window/moments/test_moments_consistency_rolling.py: 760 warnings 2562s /usr/lib/python3/dist-packages/py/_process/forkedfunc.py:45: DeprecationWarning: This process (pid=6591) is multi-threaded, use of fork() may lead to deadlocks in the child. 2562s pid = os.fork() 2562s 2562s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451 2562s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/.pytest_cache/v/cache/nodeids: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/.pytest_cache' 2562s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 2562s 2562s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:56 2562s /usr/lib/python3/dist-packages/_pytest/stepwise.py:56: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/.pytest_cache/v/cache/stepwise: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/.pytest_cache' 2562s session.config.cache.set(STEPWISE_CACHE_DIR, []) 2562s 2562s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 2562s = 8949 passed, 791 skipped, 536 deselected, 55 xfailed, 13 xpassed, 9210 warnings in 585.03s (0:09:45) = 2563s tests with a run=False xfail for hdf5 crashes - see xfail_tests_nonintel_io.patch 2565s ============================= test session starts ============================== 2565s platform linux -- Python 3.12.4, pytest-7.4.4, pluggy-1.5.0 -- /usr/bin/python3.12 2565s cachedir: .pytest_cache 2565s hypothesis profile 'ci' -> deadline=None, suppress_health_check=[HealthCheck.too_slow, HealthCheck.differing_executors], database=DirectoryBasedExampleDatabase(PosixPath('/tmp/autopkgtest.9HcbfU/autopkgtest_tmp/.hypothesis/examples')) 2565s rootdir: /usr/lib/python3/dist-packages/pandas/tests/io/pytables 2565s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 2565s asyncio: mode=Mode.STRICT 2565s collecting ... collected 257 items 2565s 2566s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_mode[r] PASSED 2566s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_mode[r+] PASSED 2566s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_mode[a] PASSED 2566s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_mode[w] PASSED 2566s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_default_mode PASSED 2566s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_reopen_handle PASSED 2566s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_open_args PASSED 2566s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_flush PASSED 2566s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs_default_settings PASSED 2566s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs_default_settings_override PASSED 2566s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[zlib-0] PASSED 2566s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[zlib-1] PASSED 2566s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[zlib-2] PASSED 2567s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[zlib-3] PASSED 2567s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[zlib-4] PASSED 2567s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[zlib-5] PASSED 2567s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[zlib-6] PASSED 2567s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[zlib-7] PASSED 2567s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[zlib-8] PASSED 2567s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[zlib-9] PASSED 2567s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[lzo-0] PASSED 2567s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[lzo-1] PASSED 2567s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[lzo-2] PASSED 2568s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[lzo-3] PASSED 2568s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[lzo-4] PASSED 2568s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[lzo-5] PASSED 2568s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[lzo-6] PASSED 2568s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[lzo-7] PASSED 2568s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[lzo-8] PASSED 2568s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[lzo-9] PASSED 2569s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[bzip2-0] PASSED 2569s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[bzip2-1] PASSED 2569s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[bzip2-2] PASSED 2569s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[bzip2-3] PASSED 2569s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[bzip2-4] PASSED 2569s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[bzip2-5] PASSED 2569s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[bzip2-6] PASSED 2569s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[bzip2-7] PASSED 2569s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[bzip2-8] PASSED 2570s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[bzip2-9] PASSED 2570s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc-0] PASSED 2570s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc-1] PASSED 2570s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc-2] PASSED 2570s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc-3] PASSED 2570s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc-4] PASSED 2570s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc-5] PASSED 2570s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc-6] PASSED 2570s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc-7] PASSED 2570s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc-8] PASSED 2570s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc-9] PASSED 2571s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2-0] PASSED 2571s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2-1] PASSED 2571s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2-2] PASSED 2571s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2-3] PASSED 2572s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2-4] PASSED 2572s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2-5] PASSED 2572s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2-6] PASSED 2572s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2-7] PASSED 2573s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2-8] PASSED 2573s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2-9] PASSED 2573s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:blosclz-0] PASSED 2573s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:blosclz-1] PASSED 2573s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:blosclz-2] PASSED 2573s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:blosclz-3] PASSED 2573s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:blosclz-4] PASSED 2573s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:blosclz-5] PASSED 2574s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:blosclz-6] PASSED 2574s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:blosclz-7] PASSED 2574s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:blosclz-8] PASSED 2575s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:blosclz-9] PASSED 2575s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:lz4-0] PASSED 2575s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:lz4-1] PASSED 2575s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:lz4-2] PASSED 2575s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:lz4-3] PASSED 2575s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:lz4-4] PASSED 2575s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:lz4-5] PASSED 2575s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:lz4-6] PASSED 2575s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:lz4-7] PASSED 2575s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:lz4-8] PASSED 2576s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:lz4-9] PASSED 2576s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:lz4hc-0] PASSED 2576s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:lz4hc-1] PASSED 2576s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:lz4hc-2] PASSED 2576s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:lz4hc-3] PASSED 2576s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:lz4hc-4] PASSED 2577s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:lz4hc-5] PASSED 2577s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:lz4hc-6] PASSED 2577s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:lz4hc-7] PASSED 2577s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:lz4hc-8] PASSED 2577s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:lz4hc-9] PASSED 2577s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:snappy-0] PASSED 2577s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:snappy-1] PASSED 2577s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:snappy-2] PASSED 2578s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:snappy-3] PASSED 2578s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:snappy-4] PASSED 2578s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:snappy-5] PASSED 2578s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:snappy-6] PASSED 2578s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:snappy-7] PASSED 2578s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:snappy-8] PASSED 2578s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:snappy-9] PASSED 2579s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:zlib-0] PASSED 2579s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:zlib-1] PASSED 2579s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:zlib-2] PASSED 2579s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:zlib-3] PASSED 2580s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:zlib-4] PASSED 2580s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:zlib-5] PASSED 2580s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:zlib-6] PASSED 2580s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:zlib-7] PASSED 2580s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:zlib-8] PASSED 2581s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:zlib-9] PASSED 2581s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:zstd-0] PASSED 2581s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:zstd-1] PASSED 2581s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:zstd-2] PASSED 2582s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:zstd-3] PASSED 2582s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:zstd-4] PASSED 2583s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:zstd-5] PASSED 2583s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:zstd-6] PASSED 2583s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:zstd-7] PASSED 2584s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:zstd-8] PASSED 2584s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:zstd-9] PASSED 2584s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:blosclz-0] PASSED 2585s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:blosclz-1] PASSED 2585s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:blosclz-2] PASSED 2585s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:blosclz-3] PASSED 2585s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:blosclz-4] PASSED 2585s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:blosclz-5] PASSED 2586s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:blosclz-6] PASSED 2586s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:blosclz-7] PASSED 2586s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:blosclz-8] PASSED 2586s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:blosclz-9] PASSED 2586s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:lz4-0] PASSED 2586s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:lz4-1] PASSED 2586s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:lz4-2] PASSED 2587s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:lz4-3] PASSED 2587s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:lz4-4] PASSED 2587s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:lz4-5] PASSED 2587s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:lz4-6] PASSED 2587s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:lz4-7] PASSED 2587s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:lz4-8] PASSED 2588s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:lz4-9] PASSED 2588s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:lz4hc-0] PASSED 2588s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:lz4hc-1] PASSED 2588s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:lz4hc-2] PASSED 2588s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:lz4hc-3] PASSED 2588s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:lz4hc-4] PASSED 2589s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:lz4hc-5] PASSED 2589s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:lz4hc-6] PASSED 2589s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:lz4hc-7] PASSED 2590s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:lz4hc-8] PASSED 2590s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:lz4hc-9] PASSED 2590s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:zlib-0] PASSED 2590s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:zlib-1] PASSED 2590s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:zlib-2] PASSED 2590s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:zlib-3] PASSED 2590s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:zlib-4] PASSED 2591s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:zlib-5] PASSED 2591s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:zlib-6] PASSED 2591s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:zlib-7] PASSED 2591s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:zlib-8] PASSED 2592s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:zlib-9] PASSED 2592s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:zstd-0] PASSED 2593s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:zstd-1] PASSED 2593s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:zstd-2] PASSED 2593s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:zstd-3] PASSED 2593s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:zstd-4] PASSED 2593s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:zstd-5] PASSED 2594s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:zstd-6] PASSED 2594s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:zstd-7] PASSED 2594s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:zstd-8] PASSED 2595s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:zstd-9] PASSED 2595s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_encoding PASSED 2595s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_latin_encoding[category-val0] PASSED 2595s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_latin_encoding[category-val1] PASSED 2597s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_latin_encoding[category-val2] PASSED 2602s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_latin_encoding[category-val3] PASSED 2606s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_latin_encoding[category-val4] PASSED 2609s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_latin_encoding[category-val5] PASSED 2610s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_latin_encoding[category-val6] PASSED 2611s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_latin_encoding[category-val7] PASSED 2611s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_latin_encoding[category-val8] PASSED 2612s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_latin_encoding[object-val0] PASSED 2612s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_latin_encoding[object-val1] PASSED 2613s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_latin_encoding[object-val2] PASSED 2613s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_latin_encoding[object-val3] PASSED 2613s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_latin_encoding[object-val4] PASSED 2613s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_latin_encoding[object-val5] PASSED 2613s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_latin_encoding[object-val6] PASSED 2613s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_latin_encoding[object-val7] PASSED 2613s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_latin_encoding[object-val8] PASSED 2614s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_multiple_open_close PASSED 2614s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_fspath PASSED 2614s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_append.py::test_append PASSED 2614s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_append.py::test_append_series PASSED 2615s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_append.py::test_append_some_nans PASSED 2615s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_append.py::test_append_all_nans PASSED 2616s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_append.py::test_append_frame_column_oriented FAILED 2617s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_append.py::test_append_with_different_block_ordering PASSED 2618s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_append.py::test_append_with_strings PASSED 2618s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_append.py::test_append_with_empty_string PASSED 2619s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_append.py::test_append_with_data_columns PASSED 2620s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_append.py::test_append_hierarchical PASSED 2621s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_append.py::test_append_misc PASSED 2625s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_append.py::test_append_misc_chunksize[10] PASSED 2630s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_append.py::test_append_misc_chunksize[200] PASSED 2637s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_append.py::test_append_misc_chunksize[1000] PASSED 2644s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_append.py::test_append_misc_empty_frame PASSED 2651s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_append.py::test_append_raise PASSED 2656s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_append.py::test_append_with_timedelta PASSED 2659s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_append.py::test_append_to_multiple PASSED 2661s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_append.py::test_append_to_multiple_dropna PASSED 2664s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_append.py::test_append_to_multiple_dropna_false PASSED 2666s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_append.py::test_append_to_multiple_min_itemsize PASSED 2667s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_context PASSED 2668s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_no_track_times PASSED 2668s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_iter_empty PASSED 2668s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_repr PASSED 2669s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_contains PASSED 2669s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_versioning PASSED 2669s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_walk[/-expected0] PASSED 2669s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_walk[/second_group-expected1] PASSED 2669s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_getattr PASSED 2670s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_store_dropna PASSED 2670s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_to_hdf_with_min_itemsize PASSED 2670s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_to_hdf_errors[fixed] PASSED 2670s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_to_hdf_errors[table] PASSED 2670s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_create_table_index PASSED 2670s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_create_table_index_data_columns_argument PASSED 2671s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_mi_data_columns PASSED 2671s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_table_mixed_dtypes PASSED 2671s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_calendar_roundtrip_issue PASSED 2671s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_remove PASSED 2671s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_same_name_scoping PASSED 2671s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_store_index_name PASSED 2672s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_store_index_name_numpy_str[table] PASSED 2672s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_store_index_name_numpy_str[fixed] PASSED 2672s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_store_series_name PASSED 2672s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_overwrite_node PASSED 2674s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_coordinates PASSED 2676s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_start_stop_table PASSED 2676s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_start_stop_multiple PASSED 2676s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_start_stop_fixed PASSED 2677s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_select_filter_corner FAILED 2678s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_path_pathlib PASSED 2678s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_contiguous_mixed_data_table[0-2] PASSED 2679s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_contiguous_mixed_data_table[1-2] PASSED 2679s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_contiguous_mixed_data_table[None-None] PASSED 2679s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_path_pathlib_hdfstore PASSED 2679s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_pickle_path_localpath PASSED 2679s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_path_localpath_hdfstore PASSED 2680s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_copy[True] PASSED 2681s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_copy[False] PASSED 2682s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_duplicate_column_name PASSED 2682s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_preserve_timedeltaindex_type PASSED 2683s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_columns_multiindex_modified PASSED 2687s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_to_hdf_with_object_column_names PASSED 2690s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_hdfstore_strides PASSED 2694s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_store_bool_index PASSED 2694s 2694s =================================== FAILURES =================================== 2694s ______________________ test_append_frame_column_oriented _______________________ 2694s self = 2694s node = , kwargs = {'side': 'right'} 2694s value = 2694s slobj = slice(0, 4, None) 2694s 2694s def visit_Subscript(self, node, **kwargs): 2694s # only allow simple subscripts 2694s 2694s value = self.visit(node.value) 2694s slobj = self.visit(node.slice) 2694s try: 2694s value = value.value 2694s except AttributeError: 2694s pass 2694s 2694s if isinstance(slobj, Term): 2694s # In py39 np.ndarray lookups with Term containing int raise 2694s slobj = slobj.value 2694s 2694s try: 2694s > return self.const_type(value[slobj], self.env) 2694s E TypeError: 'builtin_function_or_method' object is not subscriptable 2694s 2694s /usr/lib/python3/dist-packages/pandas/core/computation/pytables.py:458: TypeError 2694s 2694s The above exception was the direct cause of the following exception: 2694s 2694s setup_path = 'tmp.__4bd38b9c-3884-4a57-a33c-393acbc0f831__.h5' 2694s 2694s @pytest.mark.xfail(condition=PY312 or is_crashing_arch, reason="https://bugs.debian.org/1055801 and https://bugs.debian.org/790925",raises=ValueError,strict=False, run=not is_crashing_arch) 2694s def test_append_frame_column_oriented(setup_path): 2694s with ensure_clean_store(setup_path) as store: 2694s # column oriented 2694s df = tm.makeTimeDataFrame() 2694s df.index = df.index._with_freq(None) # freq doesn't round-trip 2694s 2694s _maybe_remove(store, "df1") 2694s store.append("df1", df.iloc[:, :2], axes=["columns"]) 2694s store.append("df1", df.iloc[:, 2:]) 2694s tm.assert_frame_equal(store["df1"], df) 2694s 2694s result = store.select("df1", "columns=A") 2694s expected = df.reindex(columns=["A"]) 2694s tm.assert_frame_equal(expected, result) 2694s 2694s # selection on the non-indexable 2694s > result = store.select("df1", ("columns=A", "index=df.index[0:4]")) 2694s 2694s /usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_append.py:300: 2694s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 2694s 2694s self = 2694s File path: /tmp/tmpcq1tjmau/tmp.__4bd38b9c-3884-4a57-a33c-393acbc0f831__.h5 2694s 2694s key = 'df1', where = [columns=A, index=df.index[0:4]], start = None, stop = None 2694s columns = None, iterator = False, chunksize = None, auto_close = False 2694s 2694s def select( 2694s self, 2694s key: str, 2694s where=None, 2694s start=None, 2694s stop=None, 2694s columns=None, 2694s iterator: bool = False, 2694s chunksize: int | None = None, 2694s auto_close: bool = False, 2694s ): 2694s """ 2694s Retrieve pandas object stored in file, optionally based on where criteria. 2694s 2694s .. warning:: 2694s 2694s Pandas uses PyTables for reading and writing HDF5 files, which allows 2694s serializing object-dtype data with pickle when using the "fixed" format. 2694s Loading pickled data received from untrusted sources can be unsafe. 2694s 2694s See: https://docs.python.org/3/library/pickle.html for more. 2694s 2694s Parameters 2694s ---------- 2694s key : str 2694s Object being retrieved from file. 2694s where : list or None 2694s List of Term (or convertible) objects, optional. 2694s start : int or None 2694s Row number to start selection. 2694s stop : int, default None 2694s Row number to stop selection. 2694s columns : list or None 2694s A list of columns that if not None, will limit the return columns. 2694s iterator : bool or False 2694s Returns an iterator. 2694s chunksize : int or None 2694s Number or rows to include in iteration, return an iterator. 2694s auto_close : bool or False 2694s Should automatically close the store when finished. 2694s 2694s Returns 2694s ------- 2694s object 2694s Retrieved object from file. 2694s 2694s Examples 2694s -------- 2694s >>> df = pd.DataFrame([[1, 2], [3, 4]], columns=['A', 'B']) 2694s >>> store = pd.HDFStore("store.h5", 'w') # doctest: +SKIP 2694s >>> store.put('data', df) # doctest: +SKIP 2694s >>> store.get('data') # doctest: +SKIP 2694s >>> print(store.keys()) # doctest: +SKIP 2694s ['/data1', '/data2'] 2694s >>> store.select('/data1') # doctest: +SKIP 2694s A B 2694s 0 1 2 2694s 1 3 4 2694s >>> store.select('/data1', where='columns == A') # doctest: +SKIP 2694s A 2694s 0 1 2694s 1 3 2694s >>> store.close() # doctest: +SKIP 2694s """ 2694s group = self.get_node(key) 2694s if group is None: 2694s raise KeyError(f"No object named {key} in the file") 2694s 2694s # create the storer and axes 2694s where = _ensure_term(where, scope_level=1) 2694s s = self._create_storer(group) 2694s s.infer_axes() 2694s 2694s # function to call on iteration 2694s def func(_start, _stop, _where): 2694s return s.read(start=_start, stop=_stop, where=_where, columns=columns) 2694s 2694s # create the iterator 2694s it = TableIterator( 2694s self, 2694s s, 2694s func, 2694s where=where, 2694s nrows=s.nrows, 2694s start=start, 2694s stop=stop, 2694s iterator=iterator, 2694s chunksize=chunksize, 2694s auto_close=auto_close, 2694s ) 2694s 2694s > return it.get_result() 2694s 2694s /usr/lib/python3/dist-packages/pandas/io/pytables.py:914: 2694s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 2694s 2694s self = 2694s coordinates = False 2694s 2694s def get_result(self, coordinates: bool = False): 2694s # return the actual iterator 2694s if self.chunksize is not None: 2694s if not isinstance(self.s, Table): 2694s raise TypeError("can only use an iterator or chunksize on a table") 2694s 2694s self.coordinates = self.s.read_coordinates(where=self.where) 2694s 2694s return self 2694s 2694s # if specified read via coordinates (necessary for multiple selections 2694s if coordinates: 2694s if not isinstance(self.s, Table): 2694s raise TypeError("can only read_coordinates on a table") 2694s where = self.s.read_coordinates( 2694s where=self.where, start=self.start, stop=self.stop 2694s ) 2694s else: 2694s where = self.where 2694s 2694s # directly return the result 2694s > results = self.func(self.start, self.stop, where) 2694s 2694s /usr/lib/python3/dist-packages/pandas/io/pytables.py:2037: 2694s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 2694s 2694s _start = 0, _stop = 4, _where = [columns=A, index=df.index[0:4]] 2694s 2694s def func(_start, _stop, _where): 2694s > return s.read(start=_start, stop=_stop, where=_where, columns=columns) 2694s 2694s /usr/lib/python3/dist-packages/pandas/io/pytables.py:898: 2694s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 2694s 2694s self = <[ClosedNodeError('the node object is closed') raised in repr()] AppendableFrameTable object at 0xecb16210> 2694s where = [columns=A, index=df.index[0:4]], columns = None, start = 0, stop = 4 2694s 2694s def read( 2694s self, 2694s where=None, 2694s columns=None, 2694s start: int | None = None, 2694s stop: int | None = None, 2694s ): 2694s # validate the version 2694s self.validate_version(where) 2694s 2694s # infer the data kind 2694s if not self.infer_axes(): 2694s return None 2694s 2694s > result = self._read_axes(where=where, start=start, stop=stop) 2694s 2694s /usr/lib/python3/dist-packages/pandas/io/pytables.py:4635: 2694s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 2694s 2694s self = <[ClosedNodeError('the node object is closed') raised in repr()] AppendableFrameTable object at 0xecb16210> 2694s where = [columns=A, index=df.index[0:4]], start = 0, stop = 4 2694s 2694s def _read_axes( 2694s self, where, start: int | None = None, stop: int | None = None 2694s ) -> list[tuple[np.ndarray, np.ndarray] | tuple[Index, Index]]: 2694s """ 2694s Create the axes sniffed from the table. 2694s 2694s Parameters 2694s ---------- 2694s where : ??? 2694s start : int or None, default None 2694s stop : int or None, default None 2694s 2694s Returns 2694s ------- 2694s List[Tuple[index_values, column_values]] 2694s """ 2694s # create the selection 2694s > selection = Selection(self, where=where, start=start, stop=stop) 2694s 2694s /usr/lib/python3/dist-packages/pandas/io/pytables.py:3821: 2694s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 2694s 2694s self = 2694s table = <[ClosedNodeError('the node object is closed') raised in repr()] AppendableFrameTable object at 0xecb16210> 2694s where = [columns=A, index=df.index[0:4]], start = 0, stop = 4 2694s 2694s def __init__( 2694s self, 2694s table: Table, 2694s where=None, 2694s start: int | None = None, 2694s stop: int | None = None, 2694s ) -> None: 2694s self.table = table 2694s self.where = where 2694s self.start = start 2694s self.stop = stop 2694s self.condition = None 2694s self.filter = None 2694s self.terms = None 2694s self.coordinates = None 2694s 2694s if is_list_like(where): 2694s # see if we have a passed coordinate like 2694s with suppress(ValueError): 2694s inferred = lib.infer_dtype(where, skipna=False) 2694s if inferred in ("integer", "boolean"): 2694s where = np.asarray(where) 2694s if where.dtype == np.bool_: 2694s start, stop = self.start, self.stop 2694s if start is None: 2694s start = 0 2694s if stop is None: 2694s stop = self.table.nrows 2694s self.coordinates = np.arange(start, stop)[where] 2694s elif issubclass(where.dtype.type, np.integer): 2694s if (self.start is not None and (where < self.start).any()) or ( 2694s self.stop is not None and (where >= self.stop).any() 2694s ): 2694s raise ValueError( 2694s "where must have index locations >= start and < stop" 2694s ) 2694s self.coordinates = where 2694s 2694s if self.coordinates is None: 2694s > self.terms = self.generate(where) 2694s 2694s /usr/lib/python3/dist-packages/pandas/io/pytables.py:5349: 2694s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 2694s 2694s self = 2694s where = [columns=A, index=df.index[0:4]] 2694s 2694s def generate(self, where): 2694s """where can be a : dict,list,tuple,string""" 2694s if where is None: 2694s return None 2694s 2694s q = self.table.queryables() 2694s try: 2694s > return PyTablesExpr(where, queryables=q, encoding=self.table.encoding) 2694s 2694s /usr/lib/python3/dist-packages/pandas/io/pytables.py:5362: 2694s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 2694s 2694s self = (columns=A) & (index=df.index[0:4]) 2694s where = [columns=A, index=df.index[0:4]] 2694s queryables = {'columns': name->columns,cname->columns,axis->1,pos->0,kind->string, 'index': None} 2694s encoding = 'UTF-8', scope_level = 0 2694s 2694s def __init__( 2694s self, 2694s where, 2694s queryables: dict[str, Any] | None = None, 2694s encoding=None, 2694s scope_level: int = 0, 2694s ) -> None: 2694s where = _validate_where(where) 2694s 2694s self.encoding = encoding 2694s self.condition = None 2694s self.filter = None 2694s self.terms = None 2694s self._visitor = None 2694s 2694s # capture the environment if needed 2694s local_dict: _scope.DeepChainMap[Any, Any] | None = None 2694s 2694s if isinstance(where, PyTablesExpr): 2694s local_dict = where.env.scope 2694s _where = where.expr 2694s 2694s elif is_list_like(where): 2694s where = list(where) 2694s for idx, w in enumerate(where): 2694s if isinstance(w, PyTablesExpr): 2694s local_dict = w.env.scope 2694s else: 2694s where[idx] = _validate_where(w) 2694s _where = " & ".join([f"({w})" for w in com.flatten(where)]) 2694s else: 2694s # _validate_where ensures we otherwise have a string 2694s _where = where 2694s 2694s self.expr = _where 2694s self.env = PyTablesScope(scope_level + 1, local_dict=local_dict) 2694s 2694s if queryables is not None and isinstance(self.expr, str): 2694s self.env.queryables.update(queryables) 2694s self._visitor = PyTablesExprVisitor( 2694s self.env, 2694s queryables=queryables, 2694s parser="pytables", 2694s engine="pytables", 2694s encoding=encoding, 2694s ) 2694s > self.terms = self.parse() 2694s 2694s /usr/lib/python3/dist-packages/pandas/core/computation/pytables.py:600: 2694s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 2694s 2694s self = (columns=A) & (index=df.index[0:4]) 2694s 2694s def parse(self): 2694s """ 2694s Parse an expression. 2694s """ 2694s > return self._visitor.visit(self.expr) 2694s 2694s /usr/lib/python3/dist-packages/pandas/core/computation/expr.py:827: 2694s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 2694s 2694s self = 2694s node = , kwargs = {} 2694s clean = '(columns ==A )and (index ==df .index [0 :4 ])', method = 'visit_Module' 2694s visitor = > 2694s 2694s def visit(self, node, **kwargs): 2694s if isinstance(node, str): 2694s clean = self.preparser(node) 2694s try: 2694s node = ast.fix_missing_locations(ast.parse(clean)) 2694s except SyntaxError as e: 2694s if any(iskeyword(x) for x in clean.split()): 2694s e.msg = "Python keyword not valid identifier in numexpr query" 2694s raise e 2694s 2694s method = f"visit_{type(node).__name__}" 2694s visitor = getattr(self, method) 2694s > return visitor(node, **kwargs) 2694s 2694s /usr/lib/python3/dist-packages/pandas/core/computation/expr.py:411: 2694s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 2694s 2694s self = 2694s node = , kwargs = {} 2694s expr = 2694s 2694s def visit_Module(self, node, **kwargs): 2694s if len(node.body) != 1: 2694s raise SyntaxError("only a single expression is allowed") 2694s expr = node.body[0] 2694s > return self.visit(expr, **kwargs) 2694s 2694s /usr/lib/python3/dist-packages/pandas/core/computation/expr.py:417: 2694s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 2694s 2694s self = 2694s node = , kwargs = {}, method = 'visit_Expr' 2694s visitor = > 2694s 2694s def visit(self, node, **kwargs): 2694s if isinstance(node, str): 2694s clean = self.preparser(node) 2694s try: 2694s node = ast.fix_missing_locations(ast.parse(clean)) 2694s except SyntaxError as e: 2694s if any(iskeyword(x) for x in clean.split()): 2694s e.msg = "Python keyword not valid identifier in numexpr query" 2694s raise e 2694s 2694s method = f"visit_{type(node).__name__}" 2694s visitor = getattr(self, method) 2694s > return visitor(node, **kwargs) 2694s 2694s /usr/lib/python3/dist-packages/pandas/core/computation/expr.py:411: 2694s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 2694s 2694s self = 2694s node = , kwargs = {} 2694s 2694s def visit_Expr(self, node, **kwargs): 2694s > return self.visit(node.value, **kwargs) 2694s 2694s /usr/lib/python3/dist-packages/pandas/core/computation/expr.py:420: 2694s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 2694s 2694s self = 2694s node = , kwargs = {}, method = 'visit_BoolOp' 2694s visitor = > 2694s 2694s def visit(self, node, **kwargs): 2694s if isinstance(node, str): 2694s clean = self.preparser(node) 2694s try: 2694s node = ast.fix_missing_locations(ast.parse(clean)) 2694s except SyntaxError as e: 2694s if any(iskeyword(x) for x in clean.split()): 2694s e.msg = "Python keyword not valid identifier in numexpr query" 2694s raise e 2694s 2694s method = f"visit_{type(node).__name__}" 2694s visitor = getattr(self, method) 2694s > return visitor(node, **kwargs) 2694s 2694s /usr/lib/python3/dist-packages/pandas/core/computation/expr.py:411: 2694s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 2694s 2694s self = 2694s node = , kwargs = {} 2694s visitor = .visitor at 0xecb14d98> 2694s operands = [, ] 2694s 2694s def visit_BoolOp(self, node, **kwargs): 2694s def visitor(x, y): 2694s lhs = self._try_visit_binop(x) 2694s rhs = self._try_visit_binop(y) 2694s 2694s op, op_class, lhs, rhs = self._maybe_transform_eq_ne(node, lhs, rhs) 2694s return self._maybe_evaluate_binop(op, node.op, lhs, rhs) 2694s 2694s operands = node.values 2694s > return reduce(visitor, operands) 2694s 2694s /usr/lib/python3/dist-packages/pandas/core/computation/expr.py:745: 2694s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 2694s 2694s x = , y = 2694s 2694s def visitor(x, y): 2694s lhs = self._try_visit_binop(x) 2694s > rhs = self._try_visit_binop(y) 2694s 2694s /usr/lib/python3/dist-packages/pandas/core/computation/expr.py:739: 2694s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 2694s 2694s self = 2694s bop = 2694s 2694s def _try_visit_binop(self, bop): 2694s if isinstance(bop, (Op, Term)): 2694s return bop 2694s > return self.visit(bop) 2694s 2694s /usr/lib/python3/dist-packages/pandas/core/computation/expr.py:734: 2694s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 2694s 2694s self = 2694s node = , kwargs = {}, method = 'visit_Compare' 2694s visitor = > 2694s 2694s def visit(self, node, **kwargs): 2694s if isinstance(node, str): 2694s clean = self.preparser(node) 2694s try: 2694s node = ast.fix_missing_locations(ast.parse(clean)) 2694s except SyntaxError as e: 2694s if any(iskeyword(x) for x in clean.split()): 2694s e.msg = "Python keyword not valid identifier in numexpr query" 2694s raise e 2694s 2694s method = f"visit_{type(node).__name__}" 2694s visitor = getattr(self, method) 2694s > return visitor(node, **kwargs) 2694s 2694s /usr/lib/python3/dist-packages/pandas/core/computation/expr.py:411: 2694s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 2694s 2694s self = 2694s node = , kwargs = {} 2694s ops = [] 2694s comps = [] 2694s op = , binop = 2694s 2694s def visit_Compare(self, node, **kwargs): 2694s ops = node.ops 2694s comps = node.comparators 2694s 2694s # base case: we have something like a CMP b 2694s if len(comps) == 1: 2694s op = self.translate_In(ops[0]) 2694s binop = ast.BinOp(op=op, left=node.left, right=comps[0]) 2694s > return self.visit(binop) 2694s 2694s /usr/lib/python3/dist-packages/pandas/core/computation/expr.py:718: 2694s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 2694s 2694s self = 2694s node = , kwargs = {}, method = 'visit_BinOp' 2694s visitor = > 2694s 2694s def visit(self, node, **kwargs): 2694s if isinstance(node, str): 2694s clean = self.preparser(node) 2694s try: 2694s node = ast.fix_missing_locations(ast.parse(clean)) 2694s except SyntaxError as e: 2694s if any(iskeyword(x) for x in clean.split()): 2694s e.msg = "Python keyword not valid identifier in numexpr query" 2694s raise e 2694s 2694s method = f"visit_{type(node).__name__}" 2694s visitor = getattr(self, method) 2694s > return visitor(node, **kwargs) 2694s 2694s /usr/lib/python3/dist-packages/pandas/core/computation/expr.py:411: 2694s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 2694s 2694s self = 2694s node = , kwargs = {} 2694s 2694s def visit_BinOp(self, node, **kwargs): 2694s > op, op_class, left, right = self._maybe_transform_eq_ne(node) 2694s 2694s /usr/lib/python3/dist-packages/pandas/core/computation/expr.py:531: 2694s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 2694s 2694s self = 2694s node = , left = index, right = None 2694s 2694s def _maybe_transform_eq_ne(self, node, left=None, right=None): 2694s if left is None: 2694s left = self.visit(node.left, side="left") 2694s if right is None: 2694s > right = self.visit(node.right, side="right") 2694s 2694s /usr/lib/python3/dist-packages/pandas/core/computation/expr.py:453: 2694s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 2694s 2694s self = 2694s node = , kwargs = {'side': 'right'} 2694s method = 'visit_Subscript' 2694s visitor = > 2694s 2694s def visit(self, node, **kwargs): 2694s if isinstance(node, str): 2694s clean = self.preparser(node) 2694s try: 2694s node = ast.fix_missing_locations(ast.parse(clean)) 2694s except SyntaxError as e: 2694s if any(iskeyword(x) for x in clean.split()): 2694s e.msg = "Python keyword not valid identifier in numexpr query" 2694s raise e 2694s 2694s method = f"visit_{type(node).__name__}" 2694s visitor = getattr(self, method) 2694s > return visitor(node, **kwargs) 2694s 2694s /usr/lib/python3/dist-packages/pandas/core/computation/expr.py:411: 2694s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 2694s 2694s self = 2694s node = , kwargs = {'side': 'right'} 2694s value = 2694s slobj = slice(0, 4, None) 2694s 2694s def visit_Subscript(self, node, **kwargs): 2694s # only allow simple subscripts 2694s 2694s value = self.visit(node.value) 2694s slobj = self.visit(node.slice) 2694s try: 2694s value = value.value 2694s except AttributeError: 2694s pass 2694s 2694s if isinstance(slobj, Term): 2694s # In py39 np.ndarray lookups with Term containing int raise 2694s slobj = slobj.value 2694s 2694s try: 2694s return self.const_type(value[slobj], self.env) 2694s except TypeError as err: 2694s > raise ValueError( 2694s f"cannot subscript {repr(value)} with {repr(slobj)}" 2694s ) from err 2694s E ValueError: cannot subscript with slice(0, 4, None) 2694s 2694s /usr/lib/python3/dist-packages/pandas/core/computation/pytables.py:460: ValueError 2694s __________________________ test_select_filter_corner ___________________________ 2694s setup_path = 'tmp.__a92eb053-6610-4e10-ae52-e297e9f0ec1f__.h5' 2694s 2694s @pytest.mark.xfail(condition=PY312 or is_crashing_arch, reason="https://bugs.debian.org/1055801 and https://bugs.debian.org/790925",raises=ValueError,strict=False, run=not is_crashing_arch) 2694s def test_select_filter_corner(setup_path): 2694s df = DataFrame(np.random.default_rng(2).standard_normal((50, 100))) 2694s df.index = [f"{c:3d}" for c in df.index] 2694s df.columns = [f"{c:3d}" for c in df.columns] 2694s 2694s with ensure_clean_store(setup_path) as store: 2694s store.put("frame", df, format="table") 2694s 2694s crit = "columns=df.columns[:75]" 2694s > result = store.select("frame", [crit]) 2694s 2694s /usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py:777: 2694s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 2694s 2694s self = 2694s File path: /tmp/tmp7mnlnwkq/tmp.__a92eb053-6610-4e10-ae52-e297e9f0ec1f__.h5 2694s 2694s key = 'frame', where = [columns=df.columns[:75]], start = None, stop = None 2694s columns = None, iterator = False, chunksize = None, auto_close = False 2694s 2694s def select( 2694s self, 2694s key: str, 2694s where=None, 2694s start=None, 2694s stop=None, 2694s columns=None, 2694s iterator: bool = False, 2694s chunksize: int | None = None, 2694s auto_close: bool = False, 2694s ): 2694s """ 2694s Retrieve pandas object stored in file, optionally based on where criteria. 2694s 2694s .. warning:: 2694s 2694s Pandas uses PyTables for reading and writing HDF5 files, which allows 2694s serializing object-dtype data with pickle when using the "fixed" format. 2694s Loading pickled data received from untrusted sources can be unsafe. 2694s 2694s See: https://docs.python.org/3/library/pickle.html for more. 2694s 2694s Parameters 2694s ---------- 2694s key : str 2694s Object being retrieved from file. 2694s where : list or None 2694s List of Term (or convertible) objects, optional. 2694s start : int or None 2694s Row number to start selection. 2694s stop : int, default None 2694s Row number to stop selection. 2694s columns : list or None 2694s A list of columns that if not None, will limit the return columns. 2694s iterator : bool or False 2694s Returns an iterator. 2694s chunksize : int or None 2694s Number or rows to include in iteration, return an iterator. 2694s auto_close : bool or False 2694s Should automatically close the store when finished. 2694s 2694s Returns 2694s ------- 2694s object 2694s Retrieved object from file. 2694s 2694s Examples 2694s -------- 2694s >>> df = pd.DataFrame([[1, 2], [3, 4]], columns=['A', 'B']) 2694s >>> store = pd.HDFStore("store.h5", 'w') # doctest: +SKIP 2694s >>> store.put('data', df) # doctest: +SKIP 2694s >>> store.get('data') # doctest: +SKIP 2694s >>> print(store.keys()) # doctest: +SKIP 2694s ['/data1', '/data2'] 2694s >>> store.select('/data1') # doctest: +SKIP 2694s A B 2694s 0 1 2 2694s 1 3 4 2694s >>> store.select('/data1', where='columns == A') # doctest: +SKIP 2694s A 2694s 0 1 2694s 1 3 2694s >>> store.close() # doctest: +SKIP 2694s """ 2694s group = self.get_node(key) 2694s if group is None: 2694s raise KeyError(f"No object named {key} in the file") 2694s 2694s # create the storer and axes 2694s where = _ensure_term(where, scope_level=1) 2694s s = self._create_storer(group) 2694s s.infer_axes() 2694s 2694s # function to call on iteration 2694s def func(_start, _stop, _where): 2694s return s.read(start=_start, stop=_stop, where=_where, columns=columns) 2694s 2694s # create the iterator 2694s it = TableIterator( 2694s self, 2694s s, 2694s func, 2694s where=where, 2694s nrows=s.nrows, 2694s start=start, 2694s stop=stop, 2694s iterator=iterator, 2694s chunksize=chunksize, 2694s auto_close=auto_close, 2694s ) 2694s 2694s > return it.get_result() 2694s 2694s /usr/lib/python3/dist-packages/pandas/io/pytables.py:914: 2694s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 2694s 2694s self = 2694s coordinates = False 2694s 2694s def get_result(self, coordinates: bool = False): 2694s # return the actual iterator 2694s if self.chunksize is not None: 2694s if not isinstance(self.s, Table): 2694s raise TypeError("can only use an iterator or chunksize on a table") 2694s 2694s self.coordinates = self.s.read_coordinates(where=self.where) 2694s 2694s return self 2694s 2694s # if specified read via coordinates (necessary for multiple selections 2694s if coordinates: 2694s if not isinstance(self.s, Table): 2694s raise TypeError("can only read_coordinates on a table") 2694s where = self.s.read_coordinates( 2694s where=self.where, start=self.start, stop=self.stop 2694s ) 2694s else: 2694s where = self.where 2694s 2694s # directly return the result 2694s > results = self.func(self.start, self.stop, where) 2694s 2694s /usr/lib/python3/dist-packages/pandas/io/pytables.py:2037: 2694s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 2694s 2694s _start = 0, _stop = 50, _where = [columns=df.columns[:75]] 2694s 2694s def func(_start, _stop, _where): 2694s > return s.read(start=_start, stop=_stop, where=_where, columns=columns) 2694s 2694s /usr/lib/python3/dist-packages/pandas/io/pytables.py:898: 2694s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 2694s 2694s self = <[ClosedNodeError('the node object is closed') raised in repr()] AppendableFrameTable object at 0xecaffe58> 2694s where = [columns=df.columns[:75]], columns = None, start = 0, stop = 50 2694s 2694s def read( 2694s self, 2694s where=None, 2694s columns=None, 2694s start: int | None = None, 2694s stop: int | None = None, 2694s ): 2694s # validate the version 2694s self.validate_version(where) 2694s 2694s # infer the data kind 2694s if not self.infer_axes(): 2694s return None 2694s 2694s > result = self._read_axes(where=where, start=start, stop=stop) 2694s 2694s /usr/lib/python3/dist-packages/pandas/io/pytables.py:4635: 2694s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 2694s 2694s self = <[ClosedNodeError('the node object is closed') raised in repr()] AppendableFrameTable object at 0xecaffe58> 2694s where = [columns=df.columns[:75]], start = 0, stop = 50 2694s 2694s def _read_axes( 2694s self, where, start: int | None = None, stop: int | None = None 2694s ) -> list[tuple[np.ndarray, np.ndarray] | tuple[Index, Index]]: 2694s """ 2694s Create the axes sniffed from the table. 2694s 2694s Parameters 2694s ---------- 2694s where : ??? 2694s start : int or None, default None 2694s stop : int or None, default None 2694s 2694s Returns 2694s ------- 2694s List[Tuple[index_values, column_values]] 2694s """ 2694s # create the selection 2694s > selection = Selection(self, where=where, start=start, stop=stop) 2694s 2694s /usr/lib/python3/dist-packages/pandas/io/pytables.py:3821: 2694s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 2694s 2694s self = 2694s table = <[ClosedNodeError('the node object is closed') raised in repr()] AppendableFrameTable object at 0xecaffe58> 2694s where = [columns=df.columns[:75]], start = 0, stop = 50 2694s 2694s def __init__( 2694s self, 2694s table: Table, 2694s where=None, 2694s start: int | None = None, 2694s stop: int | None = None, 2694s ) -> None: 2694s self.table = table 2694s self.where = where 2694s self.start = start 2694s self.stop = stop 2694s self.condition = None 2694s self.filter = None 2694s self.terms = None 2694s self.coordinates = None 2694s 2694s if is_list_like(where): 2694s # see if we have a passed coordinate like 2694s with suppress(ValueError): 2694s inferred = lib.infer_dtype(where, skipna=False) 2694s if inferred in ("integer", "boolean"): 2694s where = np.asarray(where) 2694s if where.dtype == np.bool_: 2694s start, stop = self.start, self.stop 2694s if start is None: 2694s start = 0 2694s if stop is None: 2694s stop = self.table.nrows 2694s self.coordinates = np.arange(start, stop)[where] 2694s elif issubclass(where.dtype.type, np.integer): 2694s if (self.start is not None and (where < self.start).any()) or ( 2694s self.stop is not None and (where >= self.stop).any() 2694s ): 2694s raise ValueError( 2694s "where must have index locations >= start and < stop" 2694s ) 2694s self.coordinates = where 2694s 2694s if self.coordinates is None: 2694s > self.terms = self.generate(where) 2694s 2694s /usr/lib/python3/dist-packages/pandas/io/pytables.py:5349: 2694s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 2694s 2694s self = 2694s where = [columns=df.columns[:75]] 2694s 2694s def generate(self, where): 2694s """where can be a : dict,list,tuple,string""" 2694s if where is None: 2694s return None 2694s 2694s q = self.table.queryables() 2694s try: 2694s > return PyTablesExpr(where, queryables=q, encoding=self.table.encoding) 2694s 2694s /usr/lib/python3/dist-packages/pandas/io/pytables.py:5362: 2694s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 2694s 2694s self = (columns=df.columns[:75]), where = [columns=df.columns[:75]] 2694s queryables = {'columns': None, 'index': name->index,cname->index,axis->0,pos->0,kind->string} 2694s encoding = 'UTF-8', scope_level = 0 2694s 2694s def __init__( 2694s self, 2694s where, 2694s queryables: dict[str, Any] | None = None, 2694s encoding=None, 2694s scope_level: int = 0, 2694s ) -> None: 2694s where = _validate_where(where) 2694s 2694s self.encoding = encoding 2694s self.condition = None 2694s self.filter = None 2694s self.terms = None 2694s self._visitor = None 2694s 2694s # capture the environment if needed 2694s local_dict: _scope.DeepChainMap[Any, Any] | None = None 2694s 2694s if isinstance(where, PyTablesExpr): 2694s local_dict = where.env.scope 2694s _where = where.expr 2694s 2694s elif is_list_like(where): 2694s where = list(where) 2694s for idx, w in enumerate(where): 2694s if isinstance(w, PyTablesExpr): 2694s local_dict = w.env.scope 2694s else: 2694s where[idx] = _validate_where(w) 2694s _where = " & ".join([f"({w})" for w in com.flatten(where)]) 2694s else: 2694s # _validate_where ensures we otherwise have a string 2694s _where = where 2694s 2694s self.expr = _where 2694s self.env = PyTablesScope(scope_level + 1, local_dict=local_dict) 2694s 2694s if queryables is not None and isinstance(self.expr, str): 2694s self.env.queryables.update(queryables) 2694s self._visitor = PyTablesExprVisitor( 2694s self.env, 2694s queryables=queryables, 2694s parser="pytables", 2694s engine="pytables", 2694s encoding=encoding, 2694s ) 2694s > self.terms = self.parse() 2694s 2694s /usr/lib/python3/dist-packages/pandas/core/computation/pytables.py:600: 2694s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 2694s 2694s self = (columns=df.columns[:75]) 2694s 2694s def parse(self): 2694s """ 2694s Parse an expression. 2694s """ 2694s > return self._visitor.visit(self.expr) 2694s 2694s /usr/lib/python3/dist-packages/pandas/core/computation/expr.py:827: 2694s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 2694s 2694s self = 2694s node = , kwargs = {} 2694s clean = '(columns ==df .columns [:75 ])', method = 'visit_Module' 2694s visitor = > 2694s 2694s def visit(self, node, **kwargs): 2694s if isinstance(node, str): 2694s clean = self.preparser(node) 2694s try: 2694s node = ast.fix_missing_locations(ast.parse(clean)) 2694s except SyntaxError as e: 2694s if any(iskeyword(x) for x in clean.split()): 2694s e.msg = "Python keyword not valid identifier in numexpr query" 2694s raise e 2694s 2694s method = f"visit_{type(node).__name__}" 2694s visitor = getattr(self, method) 2694s > return visitor(node, **kwargs) 2694s 2694s /usr/lib/python3/dist-packages/pandas/core/computation/expr.py:411: 2694s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 2694s 2694s self = 2694s node = , kwargs = {} 2694s expr = 2694s 2694s def visit_Module(self, node, **kwargs): 2694s if len(node.body) != 1: 2694s raise SyntaxError("only a single expression is allowed") 2694s expr = node.body[0] 2694s > return self.visit(expr, **kwargs) 2694s 2694s /usr/lib/python3/dist-packages/pandas/core/computation/expr.py:417: 2694s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 2694s 2694s self = 2694s node = , kwargs = {}, method = 'visit_Expr' 2694s visitor = > 2694s 2694s def visit(self, node, **kwargs): 2694s if isinstance(node, str): 2694s clean = self.preparser(node) 2694s try: 2694s node = ast.fix_missing_locations(ast.parse(clean)) 2694s except SyntaxError as e: 2694s if any(iskeyword(x) for x in clean.split()): 2694s e.msg = "Python keyword not valid identifier in numexpr query" 2694s raise e 2694s 2694s method = f"visit_{type(node).__name__}" 2694s visitor = getattr(self, method) 2694s > return visitor(node, **kwargs) 2694s 2694s /usr/lib/python3/dist-packages/pandas/core/computation/expr.py:411: 2694s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 2694s 2694s self = 2694s node = , kwargs = {} 2694s 2694s def visit_Expr(self, node, **kwargs): 2694s > return self.visit(node.value, **kwargs) 2694s 2694s /usr/lib/python3/dist-packages/pandas/core/computation/expr.py:420: 2694s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 2694s 2694s self = 2694s node = , kwargs = {}, method = 'visit_Compare' 2694s visitor = > 2694s 2694s def visit(self, node, **kwargs): 2694s if isinstance(node, str): 2694s clean = self.preparser(node) 2694s try: 2694s node = ast.fix_missing_locations(ast.parse(clean)) 2694s except SyntaxError as e: 2694s if any(iskeyword(x) for x in clean.split()): 2694s e.msg = "Python keyword not valid identifier in numexpr query" 2694s raise e 2694s 2694s method = f"visit_{type(node).__name__}" 2694s visitor = getattr(self, method) 2694s > return visitor(node, **kwargs) 2694s 2694s /usr/lib/python3/dist-packages/pandas/core/computation/expr.py:411: 2694s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 2694s 2694s self = 2694s node = , kwargs = {} 2694s ops = [] 2694s comps = [] 2694s op = , binop = 2694s 2694s def visit_Compare(self, node, **kwargs): 2694s ops = node.ops 2694s comps = node.comparators 2694s 2694s # base case: we have something like a CMP b 2694s if len(comps) == 1: 2694s op = self.translate_In(ops[0]) 2694s binop = ast.BinOp(op=op, left=node.left, right=comps[0]) 2694s > return self.visit(binop) 2694s 2694s /usr/lib/python3/dist-packages/pandas/core/computation/expr.py:718: 2694s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 2694s 2694s self = 2694s node = , kwargs = {}, method = 'visit_BinOp' 2694s visitor = > 2694s 2694s def visit(self, node, **kwargs): 2694s if isinstance(node, str): 2694s clean = self.preparser(node) 2694s try: 2694s node = ast.fix_missing_locations(ast.parse(clean)) 2694s except SyntaxError as e: 2694s if any(iskeyword(x) for x in clean.split()): 2694s e.msg = "Python keyword not valid identifier in numexpr query" 2694s raise e 2694s 2694s method = f"visit_{type(node).__name__}" 2694s visitor = getattr(self, method) 2694s > return visitor(node, **kwargs) 2694s 2694s /usr/lib/python3/dist-packages/pandas/core/computation/expr.py:411: 2694s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 2694s 2694s self = 2694s node = , kwargs = {} 2694s 2694s def visit_BinOp(self, node, **kwargs): 2694s > op, op_class, left, right = self._maybe_transform_eq_ne(node) 2694s 2694s /usr/lib/python3/dist-packages/pandas/core/computation/expr.py:531: 2694s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 2694s 2694s self = 2694s node = , left = columns, right = None 2694s 2694s def _maybe_transform_eq_ne(self, node, left=None, right=None): 2694s if left is None: 2694s left = self.visit(node.left, side="left") 2694s if right is None: 2694s > right = self.visit(node.right, side="right") 2694s 2694s /usr/lib/python3/dist-packages/pandas/core/computation/expr.py:453: 2694s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 2694s 2694s self = 2694s node = , kwargs = {'side': 'right'} 2694s method = 'visit_Subscript' 2694s visitor = > 2694s 2694s def visit(self, node, **kwargs): 2694s if isinstance(node, str): 2694s clean = self.preparser(node) 2694s try: 2694s node = ast.fix_missing_locations(ast.parse(clean)) 2694s except SyntaxError as e: 2694s if any(iskeyword(x) for x in clean.split()): 2694s e.msg = "Python keyword not valid identifier in numexpr query" 2694s raise e 2694s 2694s method = f"visit_{type(node).__name__}" 2694s visitor = getattr(self, method) 2694s > return visitor(node, **kwargs) 2694s 2694s /usr/lib/python3/dist-packages/pandas/core/computation/expr.py:411: 2694s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 2694s 2694s self = 2694s node = , kwargs = {'side': 'right'} 2694s 2694s def visit_Subscript(self, node, **kwargs): 2694s # only allow simple subscripts 2694s 2694s > value = self.visit(node.value) 2694s 2694s /usr/lib/python3/dist-packages/pandas/core/computation/pytables.py:446: 2694s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 2694s 2694s self = 2694s node = , kwargs = {} 2694s method = 'visit_Attribute' 2694s visitor = > 2694s 2694s def visit(self, node, **kwargs): 2694s if isinstance(node, str): 2694s clean = self.preparser(node) 2694s try: 2694s node = ast.fix_missing_locations(ast.parse(clean)) 2694s except SyntaxError as e: 2694s if any(iskeyword(x) for x in clean.split()): 2694s e.msg = "Python keyword not valid identifier in numexpr query" 2694s raise e 2694s 2694s method = f"visit_{type(node).__name__}" 2694s visitor = getattr(self, method) 2694s > return visitor(node, **kwargs) 2694s 2694s /usr/lib/python3/dist-packages/pandas/core/computation/expr.py:411: 2694s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 2694s 2694s self = 2694s node = , kwargs = {}, attr = 'columns' 2694s value = , ctx = 2694s resolved = 'df' 2694s 2694s def visit_Attribute(self, node, **kwargs): 2694s attr = node.attr 2694s value = node.value 2694s 2694s ctx = type(node.ctx) 2694s if ctx == ast.Load: 2694s # resolve the value 2694s resolved = self.visit(value) 2694s 2694s # try to get the value to see if we are another expression 2694s try: 2694s resolved = resolved.value 2694s except AttributeError: 2694s pass 2694s 2694s try: 2694s return self.term_type(getattr(resolved, attr), self.env) 2694s except AttributeError: 2694s # something like datetime.datetime where scope is overridden 2694s if isinstance(value, ast.Name) and value.id == attr: 2694s return resolved 2694s 2694s > raise ValueError(f"Invalid Attribute context {ctx.__name__}") 2694s E ValueError: Invalid Attribute context Load 2694s 2694s /usr/lib/python3/dist-packages/pandas/core/computation/pytables.py:486: ValueError 2694s =============================== warnings summary =============================== 2694s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py:37 2694s /usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py:37: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 2694s pytestmark = pytest.mark.single_cpu 2694s 2694s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_append.py:29 2694s /usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_append.py:29: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 2694s pytestmark = pytest.mark.single_cpu 2694s 2694s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py:37 2694s /usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py:37: PytestUnknownMarkWarning: Unknown pytest.mark.single_cpu - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 2694s pytestmark = pytest.mark.single_cpu 2694s 2694s test_file_handling.py: 191 warnings 2694s test_append.py: 21 warnings 2694s test_store.py: 45 warnings 2694s /usr/lib/python3/dist-packages/py/_process/forkedfunc.py:45: DeprecationWarning: This process (pid=16436) is multi-threaded, use of fork() may lead to deadlocks in the child. 2694s pid = os.fork() 2694s 2694s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451 2694s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/io/pytables/.pytest_cache/v/cache/nodeids: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/io/pytables/.pytest_cache' 2694s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 2694s 2694s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:405 2694s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:405: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/io/pytables/.pytest_cache/v/cache/lastfailed: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/io/pytables/.pytest_cache' 2694s config.cache.set("cache/lastfailed", self.lastfailed) 2694s 2694s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:56 2694s /usr/lib/python3/dist-packages/_pytest/stepwise.py:56: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/io/pytables/.pytest_cache/v/cache/stepwise: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/io/pytables/.pytest_cache' 2694s session.config.cache.set(STEPWISE_CACHE_DIR, []) 2694s 2694s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 2694s =========================== short test summary info ============================ 2694s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_append.py::test_append_frame_column_oriented 2694s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_select_filter_corner 2694s =========== 2 failed, 255 passed, 263 warnings in 129.09s (0:02:09) ============ 2705s pymysql/psycopg2 tests, which do not work in this test environment 2709s ============================= test session starts ============================== 2709s platform linux -- Python 3.12.4, pytest-7.4.4, pluggy-1.5.0 -- /usr/bin/python3.12 2709s cachedir: .pytest_cache 2709s hypothesis profile 'ci' -> deadline=None, suppress_health_check=[HealthCheck.too_slow, HealthCheck.differing_executors], database=DirectoryBasedExampleDatabase(PosixPath('/tmp/autopkgtest.9HcbfU/autopkgtest_tmp/.hypothesis/examples')) 2709s rootdir: /usr/lib/python3/dist-packages/pandas/tests 2709s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 2709s asyncio: mode=Mode.STRICT 2710s collecting ... collected 1479 items 2710s 2716s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql[mysql_pymysql_engine] FAILED 2722s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql[mysql_pymysql_conn] FAILED 2726s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql[postgresql_psycopg2_engine] FAILED 2740s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql[postgresql_psycopg2_conn] FAILED 2747s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql[sqlite_engine] PASSED 2749s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql[sqlite_conn] PASSED 2749s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql[sqlite_str] PASSED 2749s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql[sqlite_buildin] PASSED 2749s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes[mysql_pymysql_engine] SKIPPED 2749s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes[mysql_pymysql_conn] SKIPPED 2749s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes[postgresql_psycopg2_engine] SKIPPED 2749s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes[postgresql_psycopg2_conn] SKIPPED 2749s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes[sqlite_engine] SKIPPED 2750s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes[sqlite_conn] SKIPPED 2750s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes[sqlite_str] SKIPPED 2750s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes[sqlite_buildin] SKIPPED 2750s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[NoneType-mysql_pymysql_engine] SKIPPED 2750s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[NoneType-mysql_pymysql_conn] SKIPPED 2750s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[NoneType-postgresql_psycopg2_engine] SKIPPED 2750s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[NoneType-postgresql_psycopg2_conn] SKIPPED 2750s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[NoneType-sqlite_engine] SKIPPED 2750s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[NoneType-sqlite_conn] SKIPPED 2750s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[NoneType-sqlite_str] SKIPPED 2750s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[NoneType-sqlite_buildin] SKIPPED 2750s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[float0-mysql_pymysql_engine] SKIPPED 2751s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[float0-mysql_pymysql_conn] SKIPPED 2752s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[float0-postgresql_psycopg2_engine] SKIPPED 2754s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[float0-postgresql_psycopg2_conn] SKIPPED 2754s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[float0-sqlite_engine] SKIPPED 2755s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[float0-sqlite_conn] SKIPPED 2755s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[float0-sqlite_str] SKIPPED 2756s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[float0-sqlite_buildin] SKIPPED 2756s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[NaTType-mysql_pymysql_engine] SKIPPED 2757s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[NaTType-mysql_pymysql_conn] SKIPPED 2757s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[NaTType-postgresql_psycopg2_engine] SKIPPED 2757s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[NaTType-postgresql_psycopg2_conn] SKIPPED 2757s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[NaTType-sqlite_engine] SKIPPED 2757s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[NaTType-sqlite_conn] SKIPPED 2757s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[NaTType-sqlite_str] SKIPPED 2757s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[NaTType-sqlite_buildin] SKIPPED 2757s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[float1-mysql_pymysql_engine] SKIPPED 2757s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[float1-mysql_pymysql_conn] SKIPPED 2757s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[float1-postgresql_psycopg2_engine] SKIPPED 2757s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[float1-postgresql_psycopg2_conn] SKIPPED 2757s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[float1-sqlite_engine] SKIPPED 2757s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[float1-sqlite_conn] SKIPPED 2757s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[float1-sqlite_str] SKIPPED 2757s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[float1-sqlite_buildin] SKIPPED 2758s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[NAType-mysql_pymysql_engine] SKIPPED 2758s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[NAType-mysql_pymysql_conn] SKIPPED 2758s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[NAType-postgresql_psycopg2_engine] SKIPPED 2758s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[NAType-postgresql_psycopg2_conn] SKIPPED 2758s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[NAType-sqlite_engine] SKIPPED 2758s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[NAType-sqlite_conn] SKIPPED 2758s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[NAType-sqlite_str] SKIPPED 2760s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[NAType-sqlite_buildin] SKIPPED 2761s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[Decimal-mysql_pymysql_engine] SKIPPED 2762s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[Decimal-mysql_pymysql_conn] SKIPPED 2763s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[Decimal-postgresql_psycopg2_engine] SKIPPED 2764s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[Decimal-postgresql_psycopg2_conn] SKIPPED 2766s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[Decimal-sqlite_engine] SKIPPED 2767s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[Decimal-sqlite_conn] SKIPPED 2768s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[Decimal-sqlite_str] SKIPPED 2770s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[Decimal-sqlite_buildin] SKIPPED 2776s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql[None-mysql_pymysql_engine] FAILED 2779s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql[None-mysql_pymysql_conn] FAILED 2780s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql[None-postgresql_psycopg2_engine] FAILED 2782s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql[None-postgresql_psycopg2_conn] FAILED 2783s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql[None-sqlite_engine] PASSED 2785s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql[None-sqlite_conn] PASSED 2788s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql[None-sqlite_str] PASSED 2789s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql[None-sqlite_buildin] PASSED 2790s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql[multi-mysql_pymysql_engine] FAILED 2791s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql[multi-mysql_pymysql_conn] FAILED 2791s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql[multi-postgresql_psycopg2_engine] FAILED 2793s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql[multi-postgresql_psycopg2_conn] FAILED 2793s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql[multi-sqlite_engine] PASSED 2793s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql[multi-sqlite_conn] PASSED 2793s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql[multi-sqlite_str] PASSED 2793s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql[multi-sqlite_buildin] PASSED 2794s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_exist[replace-1-mysql_pymysql_engine] FAILED 2795s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_exist[replace-1-mysql_pymysql_conn] FAILED 2796s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_exist[replace-1-postgresql_psycopg2_engine] FAILED 2798s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_exist[replace-1-postgresql_psycopg2_conn] FAILED 2799s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_exist[replace-1-sqlite_engine] PASSED 2799s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_exist[replace-1-sqlite_conn] PASSED 2799s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_exist[replace-1-sqlite_str] PASSED 2800s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_exist[replace-1-sqlite_buildin] PASSED 2801s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_exist[append-2-mysql_pymysql_engine] FAILED 2802s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_exist[append-2-mysql_pymysql_conn] FAILED 2805s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_exist[append-2-postgresql_psycopg2_engine] FAILED 2808s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_exist[append-2-postgresql_psycopg2_conn] FAILED 2809s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_exist[append-2-sqlite_engine] PASSED 2809s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_exist[append-2-sqlite_conn] PASSED 2809s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_exist[append-2-sqlite_str] PASSED 2810s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_exist[append-2-sqlite_buildin] PASSED 2812s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_exist_fail[mysql_pymysql_engine] FAILED 2818s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_exist_fail[mysql_pymysql_conn] FAILED 2821s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_exist_fail[postgresql_psycopg2_engine] FAILED 2822s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_exist_fail[postgresql_psycopg2_conn] FAILED 2824s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_exist_fail[sqlite_engine] PASSED 2825s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_exist_fail[sqlite_conn] PASSED 2825s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_exist_fail[sqlite_str] PASSED 2825s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_exist_fail[sqlite_buildin] PASSED 2826s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query[mysql_pymysql_engine] FAILED 2827s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query[mysql_pymysql_conn] FAILED 2828s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query[postgresql_psycopg2_engine] FAILED 2830s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query[postgresql_psycopg2_conn] FAILED 2830s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query[sqlite_iris_engine] PASSED 2831s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query[sqlite_iris_conn] PASSED 2831s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query[sqlite_iris_str] PASSED 2831s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query[sqlite_buildin_iris] PASSED 2832s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query_chunksize[mysql_pymysql_engine] FAILED 2837s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query_chunksize[mysql_pymysql_conn] FAILED 2842s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query_chunksize[postgresql_psycopg2_engine] FAILED 2845s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query_chunksize[postgresql_psycopg2_conn] FAILED 2845s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query_chunksize[sqlite_iris_engine] PASSED 2845s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query_chunksize[sqlite_iris_conn] PASSED 2846s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query_chunksize[sqlite_iris_str] PASSED 2846s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query_chunksize[sqlite_buildin_iris] PASSED 2854s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query_expression_with_parameter[mysql_pymysql_engine] FAILED 2858s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query_expression_with_parameter[mysql_pymysql_conn] FAILED 2859s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query_expression_with_parameter[postgresql_psycopg2_engine] FAILED 2859s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query_expression_with_parameter[postgresql_psycopg2_conn] FAILED 2860s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query_expression_with_parameter[sqlite_iris_engine] PASSED 2860s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query_expression_with_parameter[sqlite_iris_conn] PASSED 2860s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query_expression_with_parameter[sqlite_iris_str] PASSED 2861s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query_string_with_parameter[mysql_pymysql_engine] FAILED 2864s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query_string_with_parameter[mysql_pymysql_conn] FAILED 2873s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query_string_with_parameter[postgresql_psycopg2_engine] FAILED 2878s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query_string_with_parameter[postgresql_psycopg2_conn] FAILED 2882s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query_string_with_parameter[sqlite_iris_engine] PASSED 2885s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query_string_with_parameter[sqlite_iris_conn] PASSED 2888s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query_string_with_parameter[sqlite_iris_str] PASSED 2889s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query_string_with_parameter[sqlite_buildin_iris] PASSED 2896s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_table[mysql_pymysql_engine] FAILED 2902s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_table[mysql_pymysql_conn] FAILED 2908s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_table[postgresql_psycopg2_engine] FAILED 2916s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_table[postgresql_psycopg2_conn] FAILED 2922s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_table[sqlite_iris_engine] PASSED 2925s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_table[sqlite_iris_conn] PASSED 2927s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_table[sqlite_iris_str] PASSED 2929s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_table_chunksize[mysql_pymysql_engine] FAILED 2932s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_table_chunksize[mysql_pymysql_conn] FAILED 2938s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_table_chunksize[postgresql_psycopg2_engine] FAILED 2946s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_table_chunksize[postgresql_psycopg2_conn] FAILED 2951s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_table_chunksize[sqlite_iris_engine] PASSED 2955s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_table_chunksize[sqlite_iris_conn] PASSED 2959s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_table_chunksize[sqlite_iris_str] PASSED 2965s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_callable[mysql_pymysql_engine] FAILED 2972s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_callable[mysql_pymysql_conn] FAILED 2976s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_callable[postgresql_psycopg2_engine] FAILED 2979s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_callable[postgresql_psycopg2_conn] FAILED 2980s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_callable[sqlite_engine] PASSED 2982s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_callable[sqlite_conn] PASSED 2982s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_callable[sqlite_str] PASSED 2984s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_default_type_conversion[mysql_pymysql_engine] FAILED 2988s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_default_type_conversion[mysql_pymysql_conn] FAILED 2996s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_procedure[mysql_pymysql_engine] FAILED 3005s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_procedure[mysql_pymysql_conn] FAILED 3020s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_copy_from_callable_insertion_method[2-postgresql_psycopg2_engine] FAILED 3040s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_copy_from_callable_insertion_method[2-postgresql_psycopg2_conn] FAILED 3053s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_copy_from_callable_insertion_method[Success!-postgresql_psycopg2_engine] FAILED 3061s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_copy_from_callable_insertion_method[Success!-postgresql_psycopg2_conn] FAILED 3066s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_insertion_method_on_conflict_do_nothing[postgresql_psycopg2_engine] FAILED 3068s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_insertion_method_on_conflict_do_nothing[postgresql_psycopg2_conn] FAILED 3072s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_insertion_method_on_conflict_update[mysql_pymysql_engine] FAILED 3075s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_insertion_method_on_conflict_update[mysql_pymysql_conn] FAILED 3076s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_view_postgres[postgresql_psycopg2_engine] FAILED 3079s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_view_postgres[postgresql_psycopg2_conn] FAILED 3081s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_view_sqlite PASSED 3087s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_execute_typeerror PASSED 3092s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_execute_deprecated PASSED 3096s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_read_sql_view PASSED 3101s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_read_sql_with_chunksize_no_result PASSED 3107s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_to_sql PASSED 3109s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_to_sql_fail PASSED 3114s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_to_sql_replace PASSED 3118s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_to_sql_append PASSED 3123s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_to_sql_type_mapping PASSED 3129s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_to_sql_series PASSED 3134s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_roundtrip PASSED 3139s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_roundtrip_chunksize PASSED 3142s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_execute_sql PASSED 3149s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_date_parsing PASSED 3157s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_custom_dateparsing_error[read_sql-SELECT * FROM types-mode0-ignore] PASSED 3168s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_custom_dateparsing_error[read_sql-SELECT * FROM types-mode0-raise] PASSED 3178s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_custom_dateparsing_error[read_sql-SELECT * FROM types-mode0-coerce] PASSED 3185s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_custom_dateparsing_error[read_sql-types-sqlalchemy-ignore] PASSED 3194s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_custom_dateparsing_error[read_sql-types-sqlalchemy-raise] PASSED 3200s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_custom_dateparsing_error[read_sql-types-sqlalchemy-coerce] PASSED 3207s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_custom_dateparsing_error[read_sql_query-SELECT * FROM types-mode2-ignore] PASSED 3211s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_custom_dateparsing_error[read_sql_query-SELECT * FROM types-mode2-raise] PASSED 3216s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_custom_dateparsing_error[read_sql_query-SELECT * FROM types-mode2-coerce] PASSED 3221s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_custom_dateparsing_error[read_sql_table-types-sqlalchemy-ignore] PASSED 3224s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_custom_dateparsing_error[read_sql_table-types-sqlalchemy-raise] PASSED 3226s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_custom_dateparsing_error[read_sql_table-types-sqlalchemy-coerce] PASSED 3228s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_date_and_index PASSED 3233s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_timedelta PASSED 3236s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_complex_raises PASSED 3240s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_to_sql_index_label[None-None-index] PASSED 3242s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_to_sql_index_label[None-other_label-other_label] PASSED 3245s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_to_sql_index_label[index_name-None-index_name] PASSED 3249s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_to_sql_index_label[index_name-other_label-other_label] PASSED 3255s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_to_sql_index_label[0-None-0] PASSED 3259s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_to_sql_index_label[None-0-0] PASSED 3262s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_to_sql_index_label_multiindex PASSED 3262s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_multiindex_roundtrip PASSED 3263s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_dtype_argument[None] PASSED 3263s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_dtype_argument[int] PASSED 3264s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_dtype_argument[float] PASSED 3266s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_dtype_argument[dtype3] PASSED 3270s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_integer_col_names PASSED 3272s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_get_schema PASSED 3272s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_get_schema_with_schema PASSED 3273s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_get_schema_dtypes PASSED 3273s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_get_schema_keys PASSED 3273s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_chunksize_read PASSED 3275s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_categorical PASSED 3276s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_unicode_column_name PASSED 3276s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_escaped_table_name PASSED 3277s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_read_sql_duplicate_columns PASSED 3277s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_read_table_columns PASSED 3277s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_read_table_index_col PASSED 3278s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_read_sql_delegate PASSED 3279s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_not_reflect_all_tables PASSED 3279s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_warning_case_insensitive_table_name PASSED 3279s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_sqlalchemy_type_mapping PASSED 3279s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_sqlalchemy_integer_mapping[int8-SMALLINT] PASSED 3279s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_sqlalchemy_integer_mapping[Int8-SMALLINT] PASSED 3280s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_sqlalchemy_integer_mapping[uint8-SMALLINT] PASSED 3280s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_sqlalchemy_integer_mapping[UInt8-SMALLINT] PASSED 3280s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_sqlalchemy_integer_mapping[int16-SMALLINT] PASSED 3280s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_sqlalchemy_integer_mapping[Int16-SMALLINT] PASSED 3281s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_sqlalchemy_integer_mapping[uint16-INTEGER] PASSED 3281s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_sqlalchemy_integer_mapping[UInt16-INTEGER] PASSED 3281s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_sqlalchemy_integer_mapping[int32-INTEGER] PASSED 3282s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_sqlalchemy_integer_mapping[Int32-INTEGER] PASSED 3282s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_sqlalchemy_integer_mapping[uint32-BIGINT] PASSED 3283s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_sqlalchemy_integer_mapping[UInt32-BIGINT] PASSED 3283s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_sqlalchemy_integer_mapping[int64-BIGINT] PASSED 3283s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_sqlalchemy_integer_mapping[Int64-BIGINT] PASSED 3283s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_sqlalchemy_integer_mapping[int-INTEGER] PASSED 3283s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_sqlalchemy_integer_overload_mapping[uint64] PASSED 3284s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_sqlalchemy_integer_overload_mapping[UInt64] PASSED 3284s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_database_uri_string PASSED 3284s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_pg8000_sqlalchemy_passthrough_error PASSED 3284s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_query_by_text_obj PASSED 3285s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_query_by_select_obj PASSED 3285s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_column_with_percentage PASSED 3285s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_read_sql_view PASSED 3285s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_read_sql_with_chunksize_no_result PASSED 3285s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_to_sql PASSED 3286s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_to_sql_fail PASSED 3286s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_to_sql_replace PASSED 3286s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_to_sql_append PASSED 3287s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_to_sql_type_mapping PASSED 3287s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_to_sql_series PASSED 3287s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_roundtrip PASSED 3287s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_roundtrip_chunksize PASSED 3287s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_execute_sql PASSED 3288s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_date_parsing PASSED 3288s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_custom_dateparsing_error[read_sql-SELECT * FROM types-mode0-ignore] PASSED 3288s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_custom_dateparsing_error[read_sql-SELECT * FROM types-mode0-raise] PASSED 3289s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_custom_dateparsing_error[read_sql-SELECT * FROM types-mode0-coerce] PASSED 3289s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_custom_dateparsing_error[read_sql-types-sqlalchemy-ignore] PASSED 3289s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_custom_dateparsing_error[read_sql-types-sqlalchemy-raise] PASSED 3289s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_custom_dateparsing_error[read_sql-types-sqlalchemy-coerce] PASSED 3289s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_custom_dateparsing_error[read_sql_query-SELECT * FROM types-mode2-ignore] PASSED 3289s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_custom_dateparsing_error[read_sql_query-SELECT * FROM types-mode2-raise] PASSED 3289s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_custom_dateparsing_error[read_sql_query-SELECT * FROM types-mode2-coerce] PASSED 3289s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_custom_dateparsing_error[read_sql_table-types-sqlalchemy-ignore] PASSED 3290s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_custom_dateparsing_error[read_sql_table-types-sqlalchemy-raise] PASSED 3290s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_custom_dateparsing_error[read_sql_table-types-sqlalchemy-coerce] PASSED 3290s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_date_and_index PASSED 3290s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_timedelta PASSED 3290s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_complex_raises PASSED 3291s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_to_sql_index_label[None-None-index] PASSED 3291s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_to_sql_index_label[None-other_label-other_label] PASSED 3291s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_to_sql_index_label[index_name-None-index_name] PASSED 3291s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_to_sql_index_label[index_name-other_label-other_label] PASSED 3291s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_to_sql_index_label[0-None-0] PASSED 3291s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_to_sql_index_label[None-0-0] PASSED 3292s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_to_sql_index_label_multiindex PASSED 3292s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_multiindex_roundtrip PASSED 3292s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_dtype_argument[None] PASSED 3293s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_dtype_argument[int] PASSED 3293s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_dtype_argument[float] PASSED 3293s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_dtype_argument[dtype3] PASSED 3293s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_integer_col_names PASSED 3293s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_get_schema PASSED 3293s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_get_schema_with_schema PASSED 3293s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_get_schema_dtypes PASSED 3293s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_get_schema_keys PASSED 3294s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_chunksize_read PASSED 3294s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_categorical PASSED 3294s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_unicode_column_name PASSED 3294s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_escaped_table_name PASSED 3294s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_read_sql_duplicate_columns PASSED 3294s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_sql_open_close PASSED 3295s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_con_string_import_error SKIPPED 3295s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_con_unknown_dbapi2_class_does_not_error_without_sql_alchemy_installed SKIPPED 3295s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_read_sql_delegate PASSED 3295s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_get_schema2 PASSED 3295s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_sqlite_type_mapping PASSED 3295s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_read_sql_parameter PASSED 3295s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_read_sql_named_parameter PASSED 3295s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_to_sql_empty PASSED 3295s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_create_table PASSED 3296s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_drop_table PASSED 3296s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_roundtrip PASSED 3296s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_execute_sql PASSED 3296s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_read_table PASSED 3296s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_read_table_columns PASSED 3296s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_read_table_absent_raises PASSED 3296s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_bigint PASSED 3297s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_datetime_with_timezone XFAIL 3297s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_datetime_with_timezone_roundtrip PASSED 3297s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_out_of_bounds_datetime PASSED 3297s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_naive_datetimeindex_roundtrip PASSED 3297s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_date_parsing PASSED 3298s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_datetime PASSED 3298s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_datetime_NaT PASSED 3298s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_datetime_date PASSED 3298s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_datetime_time PASSED 3299s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_mixed_dtype_insert PASSED 3299s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_nan_numeric PASSED 3299s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_nan_fullcolumn PASSED 3299s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_nan_string PASSED 3299s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_to_sql_save_index PASSED 3299s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_transactions PASSED 3299s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_get_schema_create_table PASSED 3300s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_dtype PASSED 3300s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_notna_dtype PASSED 3300s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_double_precision PASSED 3300s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_connectable_issue_example PASSED 3300s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_to_sql_with_negative_npinf[input0] PASSED 3300s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_to_sql_with_negative_npinf[input1] PASSED 3300s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_to_sql_with_negative_npinf[input2] PASSED 3300s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_temporary_table PASSED 3301s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_invalid_engine PASSED 3301s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_options_sqlalchemy PASSED 3302s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_options_auto PASSED 3302s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_options_get_engine PASSED 3302s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_get_engine_auto_error_message PASSED 3302s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_read_sql_dtype_backend[python-numpy_nullable-read_sql] PASSED 3302s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_read_sql_dtype_backend[python-numpy_nullable-read_sql_query] PASSED 3302s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_read_sql_dtype_backend[python-pyarrow-read_sql] SKIPPED 3302s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_read_sql_dtype_backend[python-pyarrow-read_sql_query] SKIPPED 3302s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_read_sql_dtype_backend[pyarrow-numpy_nullable-read_sql] SKIPPED 3302s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_read_sql_dtype_backend[pyarrow-numpy_nullable-read_sql_query] SKIPPED 3302s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_read_sql_dtype_backend[pyarrow-pyarrow-read_sql] SKIPPED 3302s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_read_sql_dtype_backend[pyarrow-pyarrow-read_sql_query] SKIPPED 3302s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_read_sql_invalid_dtype_backend_table[read_sql] PASSED 3302s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_read_sql_invalid_dtype_backend_table[read_sql_table] PASSED 3302s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_read_sql_invalid_dtype_backend_table[read_sql_query] PASSED 3303s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_chunksize_empty_dtypes PASSED 3303s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_read_sql_dtype[read_sql-_NoDefault.no_default] PASSED 3303s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_read_sql_dtype[read_sql-numpy_nullable] PASSED 3303s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_read_sql_dtype[read_sql_query-_NoDefault.no_default] PASSED 3303s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_read_sql_dtype[read_sql_query-numpy_nullable] PASSED 3303s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_keyword_deprecation PASSED 3303s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_default_type_conversion PASSED 3303s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_default_date_load PASSED 3303s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_bigint_warning PASSED 3304s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_valueerror_exception PASSED 3304s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_row_object_is_named_tuple PASSED 3304s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_read_sql_dtype_backend_table[python-read_sql] PASSED 3304s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_read_sql_dtype_backend_table[python-read_sql_table] PASSED 3304s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_read_sql_dtype_backend_table[pyarrow-read_sql] SKIPPED 3304s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_read_sql_dtype_backend_table[pyarrow-read_sql_table] SKIPPED 3304s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_read_sql_string_inference SKIPPED 3304s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_roundtripping_datetimes PASSED 3304s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_roundtripping_datetimes_detect_types PASSED 3305s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_read_sql_parameter SKIPPED 3305s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_read_sql_named_parameter SKIPPED 3305s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_to_sql_empty SKIPPED 3305s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_create_table SKIPPED 3305s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_drop_table SKIPPED 3305s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_roundtrip SKIPPED 3306s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_execute_sql SKIPPED 3306s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_read_table SKIPPED 3306s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_read_table_columns SKIPPED 3306s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_read_table_absent_raises SKIPPED 3306s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_bigint SKIPPED 3306s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_default_date_load SKIPPED 3307s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_datetime_with_timezone SKIPPED 3307s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_datetime_with_timezone_roundtrip SKIPPED 3307s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_out_of_bounds_datetime SKIPPED 3307s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_naive_datetimeindex_roundtrip SKIPPED 3307s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_date_parsing SKIPPED 3307s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_datetime SKIPPED 3307s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_datetime_NaT SKIPPED 3307s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_datetime_date SKIPPED 3308s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_datetime_time SKIPPED 3308s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_mixed_dtype_insert SKIPPED 3308s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_nan_numeric SKIPPED 3308s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_nan_fullcolumn SKIPPED 3308s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_nan_string SKIPPED 3308s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_to_sql_save_index SKIPPED 3308s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_transactions SKIPPED 3308s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_get_schema_create_table SKIPPED 3309s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_dtype SKIPPED 3309s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_notna_dtype SKIPPED 3309s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_double_precision SKIPPED 3310s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_connectable_issue_example SKIPPED 3310s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_to_sql_with_negative_npinf[input0] SKIPPED 3310s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_to_sql_with_negative_npinf[input1] SKIPPED 3310s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_to_sql_with_negative_npinf[input2] SKIPPED 3310s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_temporary_table SKIPPED 3310s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_invalid_engine SKIPPED 3311s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_options_sqlalchemy SKIPPED 3311s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_options_auto SKIPPED 3311s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_options_get_engine SKIPPED 3311s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_get_engine_auto_error_message SKIPPED 3311s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_read_sql_dtype_backend[python-numpy_nullable-read_sql] SKIPPED 3312s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_read_sql_dtype_backend[python-numpy_nullable-read_sql_query] SKIPPED 3312s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_read_sql_dtype_backend[python-pyarrow-read_sql] SKIPPED 3312s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_read_sql_dtype_backend[python-pyarrow-read_sql_query] SKIPPED 3312s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_read_sql_dtype_backend[pyarrow-numpy_nullable-read_sql] SKIPPED 3312s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_read_sql_dtype_backend[pyarrow-numpy_nullable-read_sql_query] SKIPPED 3312s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_read_sql_dtype_backend[pyarrow-pyarrow-read_sql] SKIPPED 3312s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_read_sql_dtype_backend[pyarrow-pyarrow-read_sql_query] SKIPPED 3312s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_read_sql_dtype_backend_table[python-numpy_nullable-read_sql] SKIPPED 3312s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_read_sql_dtype_backend_table[python-numpy_nullable-read_sql_table] SKIPPED 3312s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_read_sql_dtype_backend_table[python-pyarrow-read_sql] SKIPPED 3312s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_read_sql_dtype_backend_table[python-pyarrow-read_sql_table] SKIPPED 3312s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_read_sql_dtype_backend_table[pyarrow-numpy_nullable-read_sql] SKIPPED 3312s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_read_sql_dtype_backend_table[pyarrow-numpy_nullable-read_sql_table] SKIPPED 3312s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_read_sql_dtype_backend_table[pyarrow-pyarrow-read_sql] SKIPPED 3312s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_read_sql_dtype_backend_table[pyarrow-pyarrow-read_sql_table] SKIPPED 3313s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_read_sql_invalid_dtype_backend_table[read_sql] SKIPPED 3313s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_read_sql_invalid_dtype_backend_table[read_sql_table] SKIPPED 3313s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_read_sql_invalid_dtype_backend_table[read_sql_query] SKIPPED 3313s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_chunksize_empty_dtypes SKIPPED 3313s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_read_sql_dtype[read_sql-_NoDefault.no_default] SKIPPED 3313s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_read_sql_dtype[read_sql-numpy_nullable] SKIPPED 3313s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_read_sql_dtype[read_sql_query-_NoDefault.no_default] SKIPPED 3313s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_read_sql_dtype[read_sql_query-numpy_nullable] SKIPPED 3313s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_default_type_conversion SKIPPED 3314s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_read_sql_parameter SKIPPED 3314s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_read_sql_named_parameter SKIPPED 3314s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_to_sql_empty SKIPPED 3314s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_create_table SKIPPED 3314s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_drop_table SKIPPED 3314s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_roundtrip SKIPPED 3314s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_execute_sql SKIPPED 3314s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_read_table SKIPPED 3314s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_read_table_columns SKIPPED 3314s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_read_table_absent_raises SKIPPED 3315s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_default_type_conversion SKIPPED 3315s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_bigint SKIPPED 3315s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_default_date_load SKIPPED 3315s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_datetime_with_timezone SKIPPED 3315s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_datetime_with_timezone_roundtrip SKIPPED 3315s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_out_of_bounds_datetime SKIPPED 3315s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_naive_datetimeindex_roundtrip SKIPPED 3315s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_date_parsing SKIPPED 3315s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_datetime SKIPPED 3316s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_datetime_NaT SKIPPED 3316s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_datetime_date SKIPPED 3316s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_datetime_time SKIPPED 3316s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_mixed_dtype_insert SKIPPED 3316s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_nan_numeric SKIPPED 3316s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_nan_fullcolumn SKIPPED 3316s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_nan_string SKIPPED 3316s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_to_sql_save_index SKIPPED 3316s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_transactions SKIPPED 3317s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_get_schema_create_table SKIPPED 3317s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_dtype SKIPPED 3317s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_notna_dtype SKIPPED 3317s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_double_precision SKIPPED 3317s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_connectable_issue_example SKIPPED 3317s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_to_sql_with_negative_npinf[input0] SKIPPED 3317s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_to_sql_with_negative_npinf[input1] SKIPPED 3317s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_to_sql_with_negative_npinf[input2] SKIPPED 3317s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_temporary_table SKIPPED 3317s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_invalid_engine SKIPPED 3317s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_options_sqlalchemy SKIPPED 3318s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_options_auto SKIPPED 3318s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_options_get_engine SKIPPED 3318s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_get_engine_auto_error_message SKIPPED 3318s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_read_sql_dtype_backend[python-numpy_nullable-read_sql] SKIPPED 3318s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_read_sql_dtype_backend[python-numpy_nullable-read_sql_query] SKIPPED 3318s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_read_sql_dtype_backend[python-pyarrow-read_sql] SKIPPED 3318s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_read_sql_dtype_backend[python-pyarrow-read_sql_query] SKIPPED 3318s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_read_sql_dtype_backend[pyarrow-numpy_nullable-read_sql] SKIPPED 3318s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_read_sql_dtype_backend[pyarrow-numpy_nullable-read_sql_query] SKIPPED 3318s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_read_sql_dtype_backend[pyarrow-pyarrow-read_sql] SKIPPED 3318s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_read_sql_dtype_backend[pyarrow-pyarrow-read_sql_query] SKIPPED 3318s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_read_sql_dtype_backend_table[python-numpy_nullable-read_sql] SKIPPED 3319s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_read_sql_dtype_backend_table[python-numpy_nullable-read_sql_table] SKIPPED 3319s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_read_sql_dtype_backend_table[python-pyarrow-read_sql] SKIPPED 3319s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_read_sql_dtype_backend_table[python-pyarrow-read_sql_table] SKIPPED 3319s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_read_sql_dtype_backend_table[pyarrow-numpy_nullable-read_sql] SKIPPED 3319s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_read_sql_dtype_backend_table[pyarrow-numpy_nullable-read_sql_table] SKIPPED 3319s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_read_sql_dtype_backend_table[pyarrow-pyarrow-read_sql] SKIPPED 3319s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_read_sql_dtype_backend_table[pyarrow-pyarrow-read_sql_table] SKIPPED 3319s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_read_sql_invalid_dtype_backend_table[read_sql] SKIPPED 3319s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_read_sql_invalid_dtype_backend_table[read_sql_table] SKIPPED 3319s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_read_sql_invalid_dtype_backend_table[read_sql_query] SKIPPED 3320s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_chunksize_empty_dtypes SKIPPED 3320s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_read_sql_dtype[read_sql-_NoDefault.no_default] SKIPPED 3320s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_read_sql_dtype[read_sql-numpy_nullable] SKIPPED 3320s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_read_sql_dtype[read_sql_query-_NoDefault.no_default] SKIPPED 3321s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_read_sql_dtype[read_sql_query-numpy_nullable] SKIPPED 3321s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_schema_support SKIPPED 3321s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_self_join_date_columns SKIPPED 3321s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallback::test_read_sql_parameter PASSED 3321s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallback::test_read_sql_named_parameter PASSED 3321s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallback::test_to_sql_empty PASSED 3322s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallback::test_create_and_drop_table PASSED 3322s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallback::test_roundtrip PASSED 3322s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallback::test_execute_sql PASSED 3322s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallback::test_datetime_date PASSED 3322s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallback::test_datetime_time[False] PASSED 3322s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallback::test_datetime_time[True] PASSED 3322s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallback::test_to_sql_save_index PASSED 3322s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallback::test_transactions PASSED 3322s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallback::test_dtype PASSED 3322s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallback::test_notna_dtype PASSED 3322s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallback::test_illegal_names PASSED 3322s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestXSQLite::test_basic PASSED 3322s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestXSQLite::test_write_row_by_row PASSED 3323s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestXSQLite::test_execute PASSED 3323s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestXSQLite::test_schema PASSED 3323s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestXSQLite::test_execute_fail PASSED 3323s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestXSQLite::test_execute_closed_connection PASSED 3323s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestXSQLite::test_keyword_as_column_names PASSED 3323s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestXSQLite::test_onecolumn_of_integer PASSED 3323s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestXSQLite::test_if_exists PASSED 3323s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_readonly[True] PASSED 3323s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_readonly[False] PASSED 3323s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format[True-index-%d/%m/%Y-expected0] PASSED 3323s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format[True-index-%m/%d/%Y-expected1] PASSED 3323s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format[True-series-%d/%m/%Y-expected0] PASSED 3323s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format[True-series-%m/%d/%Y-expected1] PASSED 3323s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format[False-index-%d/%m/%Y-expected0] PASSED 3323s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format[False-index-%m/%d/%Y-expected1] PASSED 3323s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format[False-series-%d/%m/%Y-expected0] PASSED 3323s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format[False-series-%m/%d/%Y-expected1] PASSED 3323s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format_scalar[True-1/1/2000-20000101-%d/%m/%Y] PASSED 3323s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format_scalar[True-1/1/2000-20000101-%m/%d/%Y] PASSED 3323s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format_scalar[True-1/2/2000-20000201-%d/%m/%Y] PASSED 3323s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format_scalar[True-1/2/2000-20000102-%m/%d/%Y] PASSED 3323s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format_scalar[True-1/3/2000-20000301-%d/%m/%Y] PASSED 3323s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format_scalar[True-1/3/2000-20000103-%m/%d/%Y] PASSED 3323s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format_scalar[False-1/1/2000-20000101-%d/%m/%Y] PASSED 3323s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format_scalar[False-1/1/2000-20000101-%m/%d/%Y] PASSED 3323s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format_scalar[False-1/2/2000-20000201-%d/%m/%Y] PASSED 3323s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format_scalar[False-1/2/2000-20000102-%m/%d/%Y] PASSED 3323s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format_scalar[False-1/3/2000-20000301-%d/%m/%Y] PASSED 3323s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format_scalar[False-1/3/2000-20000103-%m/%d/%Y] PASSED 3323s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format_YYYYMMDD[True] PASSED 3323s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format_YYYYMMDD[False] PASSED 3323s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format_YYYYMMDD_with_nat[True] PASSED 3324s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format_YYYYMMDD_with_nat[False] PASSED 3324s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format_YYYYMM_with_nat[True] PASSED 3324s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format_YYYYMM_with_nat[False] PASSED 3324s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format_YYYYMMDD_ignore[True] PASSED 3324s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format_YYYYMMDD_ignore[False] PASSED 3324s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format_YYYYMMDD_ignore_with_outofbounds[True] PASSED 3324s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format_YYYYMMDD_ignore_with_outofbounds[False] PASSED 3324s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format_YYYYMMDD_coercion[True] PASSED 3324s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format_YYYYMMDD_coercion[False] PASSED 3324s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format_YYYYMMDD_with_none[input_s0] PASSED 3324s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format_YYYYMMDD_with_none[input_s1] PASSED 3324s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format_YYYYMMDD_with_none[input_s2] PASSED 3324s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format_YYYYMMDD_with_none[input_s3] PASSED 3324s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format_YYYYMMDD_with_none[input_s4] PASSED 3324s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format_YYYYMMDD_with_none[input_s5] PASSED 3324s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format_YYYYMMDD_with_none[input_s6] PASSED 3324s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format_YYYYMMDD_with_none[input_s7] PASSED 3324s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format_YYYYMMDD_overflow[input_s0-expected0] PASSED 3324s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format_YYYYMMDD_overflow[input_s1-expected1] PASSED 3324s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format_YYYYMMDD_overflow[input_s2-expected2] PASSED 3324s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format_YYYYMMDD_overflow[input_s3-expected3] PASSED 3324s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_with_NA[data0-%Y%m%d%H%M%S-expected0] PASSED 3325s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_with_NA[data1-None-expected1] PASSED 3325s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_with_NA[data2-%Y%m%d%H%M%S-expected2] PASSED 3325s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_with_NA[data3-%y%m%d-expected3] PASSED 3325s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_with_NA[data4-%d%m%y-expected4] PASSED 3325s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_with_NA[data5-None-expected5] PASSED 3325s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_with_NA[data6-%Y%m%d-expected6] PASSED 3325s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_with_NA_with_warning PASSED 3325s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format_integer[True] PASSED 3325s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format_integer[False] PASSED 3325s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_int_to_datetime_format_YYYYMMDD_typeerror[20121030-expected0] PASSED 3325s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_int_to_datetime_format_YYYYMMDD_typeerror[199934-expected1] PASSED 3325s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_int_to_datetime_format_YYYYMMDD_typeerror[2012010101-2012010101] PASSED 3325s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_int_to_datetime_format_YYYYMMDD_typeerror[20129930-20129930] PASSED 3325s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_int_to_datetime_format_YYYYMMDD_typeerror[2012993-2012993] PASSED 3325s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_int_to_datetime_format_YYYYMMDD_typeerror[2121-2121] PASSED 3325s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format_microsecond[True] PASSED 3325s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format_microsecond[False] PASSED 3325s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format_time[True-01/10/2010 15:20-%m/%d/%Y %H:%M-dt0] PASSED 3325s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format_time[True-01/10/2010 05:43-%m/%d/%Y %I:%M-dt1] PASSED 3325s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format_time[True-01/10/2010 13:56:01-%m/%d/%Y %H:%M:%S-dt2] PASSED 3325s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format_time[True-01/10/2010 08:14 PM-%m/%d/%Y %I:%M %p-dt3] PASSED 3325s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format_time[True-01/10/2010 07:40 AM-%m/%d/%Y %I:%M %p-dt4] PASSED 3325s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format_time[True-01/10/2010 09:12:56 AM-%m/%d/%Y %I:%M:%S %p-dt5] PASSED 3325s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format_time[False-01/10/2010 15:20-%m/%d/%Y %H:%M-dt0] PASSED 3325s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format_time[False-01/10/2010 05:43-%m/%d/%Y %I:%M-dt1] PASSED 3326s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format_time[False-01/10/2010 13:56:01-%m/%d/%Y %H:%M:%S-dt2] PASSED 3326s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format_time[False-01/10/2010 08:14 PM-%m/%d/%Y %I:%M %p-dt3] PASSED 3326s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format_time[False-01/10/2010 07:40 AM-%m/%d/%Y %I:%M %p-dt4] PASSED 3326s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format_time[False-01/10/2010 09:12:56 AM-%m/%d/%Y %I:%M:%S %p-dt5] PASSED 3326s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_with_non_exact[True] SKIPPED 3326s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_with_non_exact[False] SKIPPED 3326s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_non_exact_doesnt_parse_whole_string[True-%Y-%m-%d-expected0] PASSED 3326s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_non_exact_doesnt_parse_whole_string[True-%Y-%d-%m-expected1] PASSED 3326s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_non_exact_doesnt_parse_whole_string[True-%Y-%m-%d %H-expected2] PASSED 3326s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_non_exact_doesnt_parse_whole_string[True-%Y-%d-%m %H-expected3] PASSED 3326s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_non_exact_doesnt_parse_whole_string[True-%Y-%m-%d %H:%M-expected4] PASSED 3326s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_non_exact_doesnt_parse_whole_string[True-%Y-%d-%m %H:%M-expected5] PASSED 3326s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_non_exact_doesnt_parse_whole_string[True-%Y-%m-%d %H:%M:%S-expected6] PASSED 3326s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_non_exact_doesnt_parse_whole_string[True-%Y-%d-%m %H:%M:%S-expected7] PASSED 3326s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_non_exact_doesnt_parse_whole_string[True-%Y-%m-%d %H:%M:%S.%f-expected8] PASSED 3326s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_non_exact_doesnt_parse_whole_string[True-%Y-%d-%m %H:%M:%S.%f-expected9] PASSED 3326s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_non_exact_doesnt_parse_whole_string[True-%Y-%m-%d %H:%M:%S.%f%z-expected10] PASSED 3326s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_non_exact_doesnt_parse_whole_string[True-%Y-%d-%m %H:%M:%S.%f%z-expected11] PASSED 3326s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_non_exact_doesnt_parse_whole_string[False-%Y-%m-%d-expected0] PASSED 3326s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_non_exact_doesnt_parse_whole_string[False-%Y-%d-%m-expected1] PASSED 3326s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_non_exact_doesnt_parse_whole_string[False-%Y-%m-%d %H-expected2] PASSED 3326s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_non_exact_doesnt_parse_whole_string[False-%Y-%d-%m %H-expected3] PASSED 3326s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_non_exact_doesnt_parse_whole_string[False-%Y-%m-%d %H:%M-expected4] PASSED 3326s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_non_exact_doesnt_parse_whole_string[False-%Y-%d-%m %H:%M-expected5] PASSED 3326s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_non_exact_doesnt_parse_whole_string[False-%Y-%m-%d %H:%M:%S-expected6] PASSED 3326s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_non_exact_doesnt_parse_whole_string[False-%Y-%d-%m %H:%M:%S-expected7] PASSED 3326s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_non_exact_doesnt_parse_whole_string[False-%Y-%m-%d %H:%M:%S.%f-expected8] PASSED 3326s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_non_exact_doesnt_parse_whole_string[False-%Y-%d-%m %H:%M:%S.%f-expected9] PASSED 3326s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_non_exact_doesnt_parse_whole_string[False-%Y-%m-%d %H:%M:%S.%f%z-expected10] PASSED 3326s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_non_exact_doesnt_parse_whole_string[False-%Y-%d-%m %H:%M:%S.%f%z-expected11] PASSED 3326s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_parse_nanoseconds_with_formula[True-2012-01-01 09:00:00.000000001] PASSED 3326s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_parse_nanoseconds_with_formula[True-2012-01-01 09:00:00.000001] PASSED 3326s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_parse_nanoseconds_with_formula[True-2012-01-01 09:00:00.001] PASSED 3326s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_parse_nanoseconds_with_formula[True-2012-01-01 09:00:00.001000] PASSED 3326s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_parse_nanoseconds_with_formula[True-2012-01-01 09:00:00.001000000] PASSED 3326s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_parse_nanoseconds_with_formula[False-2012-01-01 09:00:00.000000001] PASSED 3326s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_parse_nanoseconds_with_formula[False-2012-01-01 09:00:00.000001] PASSED 3327s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_parse_nanoseconds_with_formula[False-2012-01-01 09:00:00.001] PASSED 3327s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_parse_nanoseconds_with_formula[False-2012-01-01 09:00:00.001000] PASSED 3327s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_parse_nanoseconds_with_formula[False-2012-01-01 09:00:00.001000000] PASSED 3327s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format_weeks[True-2009324-%Y%W%w-expected0] PASSED 3327s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format_weeks[True-2013020-%Y%U%w-expected1] PASSED 3327s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format_weeks[False-2009324-%Y%W%w-expected0] PASSED 3327s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format_weeks[False-2013020-%Y%U%w-expected1] PASSED 3327s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_parse_tzname_or_tzoffset[%Y-%m-%d %H:%M:%S %Z-dates0-expected_dates0] PASSED 3327s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_parse_tzname_or_tzoffset[%Y-%m-%d %H:%M:%S%z-dates1-expected_dates1] PASSED 3327s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_parse_tzname_or_tzoffset[%Y-%m-%d %H:%M:%S %z-dates2-expected_dates2] PASSED 3327s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_parse_tzname_or_tzoffset[%Y-%m-%d %H:%M:%S %z-dates3-expected_dates3] PASSED 3327s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_parse_tzname_or_tzoffset_utc_false_deprecated[%Y-%m-%d %H:%M:%S %Z-dates0-expected_dates0] PASSED 3328s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_parse_tzname_or_tzoffset_utc_false_deprecated[%Y-%m-%d %H:%M:%S %z-dates1-expected_dates1] PASSED 3328s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_parse_tzname_or_tzoffset_different_tz_to_utc PASSED 3328s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_parse_timezone_malformed[+0] PASSED 3328s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_parse_timezone_malformed[-1foo] PASSED 3328s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_parse_timezone_malformed[UTCbar] PASSED 3328s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_parse_timezone_malformed[:10] PASSED 3328s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_parse_timezone_malformed[+01:000:01] PASSED 3328s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_parse_timezone_malformed[] PASSED 3328s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_parse_timezone_keeps_name PASSED 3328s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_overflow PASSED 3328s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_mixed_datetime_and_string PASSED 3328s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_mixed_date_and_string[ISO8601] PASSED 3328s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_mixed_date_and_string[non-ISO8601] PASSED 3328s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_mixed_datetime_and_string_with_format[Timestamp-all tz-aware, with utc-non-ISO8601 format] PASSED 3328s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_mixed_datetime_and_string_with_format[Timestamp-all tz-aware, with utc-ISO8601 format] PASSED 3328s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_mixed_datetime_and_string_with_format[Timestamp-all tz-aware, without utc-non-ISO8601 format] PASSED 3328s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_mixed_datetime_and_string_with_format[Timestamp-all tz-aware, without utc-ISO8601 format] PASSED 3328s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_mixed_datetime_and_string_with_format[Timestamp-all tz-aware, mixed offsets, with utc-non-ISO8601 format] PASSED 3328s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_mixed_datetime_and_string_with_format[Timestamp-all tz-aware, mixed offsets, with utc-ISO8601 format] PASSED 3328s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_mixed_datetime_and_string_with_format[Timestamp-tz-aware string, naive pydatetime, with utc-non-ISO8601 format] PASSED 3328s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_mixed_datetime_and_string_with_format[Timestamp-tz-aware string, naive pydatetime, with utc-ISO8601 format] PASSED 3328s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_mixed_datetime_and_string_with_format[-all tz-aware, with utc-non-ISO8601 format] PASSED 3328s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_mixed_datetime_and_string_with_format[-all tz-aware, with utc-ISO8601 format] PASSED 3328s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_mixed_datetime_and_string_with_format[-all tz-aware, without utc-non-ISO8601 format] PASSED 3328s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_mixed_datetime_and_string_with_format[-all tz-aware, without utc-ISO8601 format] PASSED 3329s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_mixed_datetime_and_string_with_format[-all tz-aware, mixed offsets, with utc-non-ISO8601 format] PASSED 3329s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_mixed_datetime_and_string_with_format[-all tz-aware, mixed offsets, with utc-ISO8601 format] PASSED 3329s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_mixed_datetime_and_string_with_format[-tz-aware string, naive pydatetime, with utc-non-ISO8601 format] PASSED 3329s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_mixed_datetime_and_string_with_format[-tz-aware string, naive pydatetime, with utc-ISO8601 format] PASSED 3329s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_mixed_datetime_and_string_with_format_mixed_offsets_utc_false[Timestamp-non-ISO8601 format] PASSED 3329s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_mixed_datetime_and_string_with_format_mixed_offsets_utc_false[Timestamp-ISO8601 format] PASSED 3329s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_mixed_datetime_and_string_with_format_mixed_offsets_utc_false[-non-ISO8601 format] PASSED 3329s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_mixed_datetime_and_string_with_format_mixed_offsets_utc_false[-ISO8601 format] PASSED 3329s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_mixed_offsets_with_none_tz[ISO8601, non-UTC] PASSED 3330s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_mixed_offsets_with_none_tz[non-ISO8601, non-UTC] PASSED 3330s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_mixed_offsets_with_none[ISO8601, UTC] PASSED 3330s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_mixed_offsets_with_none[non-ISO8601, UTC] PASSED 3330s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_mixed_datetime_and_string_with_format_raises[Timestamp-all tz-aware, mixed timezones, without utc-non-ISO8601 format] PASSED 3330s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_mixed_datetime_and_string_with_format_raises[Timestamp-all tz-aware, mixed timezones, without utc-ISO8601 format] PASSED 3330s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_mixed_datetime_and_string_with_format_raises[-all tz-aware, mixed timezones, without utc-non-ISO8601 format] PASSED 3330s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_mixed_datetime_and_string_with_format_raises[-all tz-aware, mixed timezones, without utc-ISO8601 format] PASSED 3330s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_np_str PASSED 3330s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_iso_week_year_format[2015-1-1-%G-%V-%u-dt0] PASSED 3330s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_iso_week_year_format[2015-1-4-%G-%V-%u-dt1] PASSED 3330s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_iso_week_year_format[2015-1-7-%G-%V-%u-dt2] PASSED 3330s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_error_iso_week_year[raise-ISO week directive '%V' is incompatible with the year directive '%Y'. Use the ISO year '%G' instead.-1999 50-%Y %V] PASSED 3330s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_error_iso_week_year[raise-ISO year directive '%G' must be used with the ISO week directive '%V' and a weekday directive '%A', '%a', '%w', or '%u'.-1999 51-%G %V] PASSED 3330s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_error_iso_week_year[raise-ISO year directive '%G' must be used with the ISO week directive '%V' and a weekday directive '%A', '%a', '%w', or '%u'.-1999 Monday-%G %A] PASSED 3330s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_error_iso_week_year[raise-ISO year directive '%G' must be used with the ISO week directive '%V' and a weekday directive '%A', '%a', '%w', or '%u'.-1999 Mon-%G %a] PASSED 3330s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_error_iso_week_year[raise-ISO year directive '%G' must be used with the ISO week directive '%V' and a weekday directive '%A', '%a', '%w', or '%u'.-1999 6-%G %w] PASSED 3330s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_error_iso_week_year[raise-ISO year directive '%G' must be used with the ISO week directive '%V' and a weekday directive '%A', '%a', '%w', or '%u'.-1999 6-%G %u] PASSED 3330s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_error_iso_week_year[raise-ISO year directive '%G' must be used with the ISO week directive '%V' and a weekday directive '%A', '%a', '%w', or '%u'.-2051-%G] PASSED 3330s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_error_iso_week_year[raise-Day of the year directive '%j' is not compatible with ISO year directive '%G'. Use '%Y' instead.-1999 51 6 256-%G %V %u %j] PASSED 3330s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_error_iso_week_year[raise-ISO week directive '%V' is incompatible with the year directive '%Y'. Use the ISO year '%G' instead.-1999 51 Sunday-%Y %V %A] PASSED 3330s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_error_iso_week_year[raise-ISO week directive '%V' is incompatible with the year directive '%Y'. Use the ISO year '%G' instead.-1999 51 Sun-%Y %V %a] PASSED 3330s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_error_iso_week_year[raise-ISO week directive '%V' is incompatible with the year directive '%Y'. Use the ISO year '%G' instead.-1999 51 1-%Y %V %w] PASSED 3330s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_error_iso_week_year[raise-ISO week directive '%V' is incompatible with the year directive '%Y'. Use the ISO year '%G' instead.-1999 51 1-%Y %V %u] PASSED 3330s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_error_iso_week_year[raise-ISO week directive '%V' must be used with the ISO year directive '%G' and a weekday directive '%A', '%a', '%w', or '%u'.-20-%V] PASSED 3330s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_error_iso_week_year[raise-ISO week directive '%V' must be used with the ISO year directive '%G' and a weekday directive '%A', '%a', '%w', or '%u'.-1999 51 Sunday-%V %A] PASSED 3330s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_error_iso_week_year[raise-ISO week directive '%V' must be used with the ISO year directive '%G' and a weekday directive '%A', '%a', '%w', or '%u'.-1999 51 Sun-%V %a] PASSED 3330s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_error_iso_week_year[raise-ISO week directive '%V' must be used with the ISO year directive '%G' and a weekday directive '%A', '%a', '%w', or '%u'.-1999 51 1-%V %w] PASSED 3330s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_error_iso_week_year[raise-ISO week directive '%V' must be used with the ISO year directive '%G' and a weekday directive '%A', '%a', '%w', or '%u'.-1999 51 1-%V %u] PASSED 3330s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_error_iso_week_year[raise-Day of the year directive '%j' is not compatible with ISO year directive '%G'. Use '%Y' instead.-1999 50-%G %j] PASSED 3330s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_error_iso_week_year[raise-ISO week directive '%V' must be used with the ISO year directive '%G' and a weekday directive '%A', '%a', '%w', or '%u'.-20 Monday-%V %A] PASSED 3331s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_error_iso_week_year[coerce-ISO week directive '%V' is incompatible with the year directive '%Y'. Use the ISO year '%G' instead.-1999 50-%Y %V] PASSED 3331s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_error_iso_week_year[coerce-ISO year directive '%G' must be used with the ISO week directive '%V' and a weekday directive '%A', '%a', '%w', or '%u'.-1999 51-%G %V] PASSED 3331s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_error_iso_week_year[coerce-ISO year directive '%G' must be used with the ISO week directive '%V' and a weekday directive '%A', '%a', '%w', or '%u'.-1999 Monday-%G %A] PASSED 3331s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_error_iso_week_year[coerce-ISO year directive '%G' must be used with the ISO week directive '%V' and a weekday directive '%A', '%a', '%w', or '%u'.-1999 Mon-%G %a] PASSED 3331s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_error_iso_week_year[coerce-ISO year directive '%G' must be used with the ISO week directive '%V' and a weekday directive '%A', '%a', '%w', or '%u'.-1999 6-%G %w] PASSED 3331s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_error_iso_week_year[coerce-ISO year directive '%G' must be used with the ISO week directive '%V' and a weekday directive '%A', '%a', '%w', or '%u'.-1999 6-%G %u] PASSED 3331s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_error_iso_week_year[coerce-ISO year directive '%G' must be used with the ISO week directive '%V' and a weekday directive '%A', '%a', '%w', or '%u'.-2051-%G] PASSED 3331s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_error_iso_week_year[coerce-Day of the year directive '%j' is not compatible with ISO year directive '%G'. Use '%Y' instead.-1999 51 6 256-%G %V %u %j] PASSED 3331s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_error_iso_week_year[coerce-ISO week directive '%V' is incompatible with the year directive '%Y'. Use the ISO year '%G' instead.-1999 51 Sunday-%Y %V %A] PASSED 3331s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_error_iso_week_year[coerce-ISO week directive '%V' is incompatible with the year directive '%Y'. Use the ISO year '%G' instead.-1999 51 Sun-%Y %V %a] PASSED 3331s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_error_iso_week_year[coerce-ISO week directive '%V' is incompatible with the year directive '%Y'. Use the ISO year '%G' instead.-1999 51 1-%Y %V %w] PASSED 3331s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_error_iso_week_year[coerce-ISO week directive '%V' is incompatible with the year directive '%Y'. Use the ISO year '%G' instead.-1999 51 1-%Y %V %u] PASSED 3331s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_error_iso_week_year[coerce-ISO week directive '%V' must be used with the ISO year directive '%G' and a weekday directive '%A', '%a', '%w', or '%u'.-20-%V] PASSED 3331s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_error_iso_week_year[coerce-ISO week directive '%V' must be used with the ISO year directive '%G' and a weekday directive '%A', '%a', '%w', or '%u'.-1999 51 Sunday-%V %A] PASSED 3331s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_error_iso_week_year[coerce-ISO week directive '%V' must be used with the ISO year directive '%G' and a weekday directive '%A', '%a', '%w', or '%u'.-1999 51 Sun-%V %a] PASSED 3331s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_error_iso_week_year[coerce-ISO week directive '%V' must be used with the ISO year directive '%G' and a weekday directive '%A', '%a', '%w', or '%u'.-1999 51 1-%V %w] PASSED 3331s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_error_iso_week_year[coerce-ISO week directive '%V' must be used with the ISO year directive '%G' and a weekday directive '%A', '%a', '%w', or '%u'.-1999 51 1-%V %u] PASSED 3331s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_error_iso_week_year[coerce-Day of the year directive '%j' is not compatible with ISO year directive '%G'. Use '%Y' instead.-1999 50-%G %j] PASSED 3331s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_error_iso_week_year[coerce-ISO week directive '%V' must be used with the ISO year directive '%G' and a weekday directive '%A', '%a', '%w', or '%u'.-20 Monday-%V %A] PASSED 3331s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_error_iso_week_year[ignore-ISO week directive '%V' is incompatible with the year directive '%Y'. Use the ISO year '%G' instead.-1999 50-%Y %V] PASSED 3331s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_error_iso_week_year[ignore-ISO year directive '%G' must be used with the ISO week directive '%V' and a weekday directive '%A', '%a', '%w', or '%u'.-1999 51-%G %V] PASSED 3332s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_error_iso_week_year[ignore-ISO year directive '%G' must be used with the ISO week directive '%V' and a weekday directive '%A', '%a', '%w', or '%u'.-1999 Monday-%G %A] PASSED 3332s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_error_iso_week_year[ignore-ISO year directive '%G' must be used with the ISO week directive '%V' and a weekday directive '%A', '%a', '%w', or '%u'.-1999 Mon-%G %a] PASSED 3332s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_error_iso_week_year[ignore-ISO year directive '%G' must be used with the ISO week directive '%V' and a weekday directive '%A', '%a', '%w', or '%u'.-1999 6-%G %w] PASSED 3332s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_error_iso_week_year[ignore-ISO year directive '%G' must be used with the ISO week directive '%V' and a weekday directive '%A', '%a', '%w', or '%u'.-1999 6-%G %u] PASSED 3332s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_error_iso_week_year[ignore-ISO year directive '%G' must be used with the ISO week directive '%V' and a weekday directive '%A', '%a', '%w', or '%u'.-2051-%G] PASSED 3332s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_error_iso_week_year[ignore-Day of the year directive '%j' is not compatible with ISO year directive '%G'. Use '%Y' instead.-1999 51 6 256-%G %V %u %j] PASSED 3332s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_error_iso_week_year[ignore-ISO week directive '%V' is incompatible with the year directive '%Y'. Use the ISO year '%G' instead.-1999 51 Sunday-%Y %V %A] PASSED 3332s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_error_iso_week_year[ignore-ISO week directive '%V' is incompatible with the year directive '%Y'. Use the ISO year '%G' instead.-1999 51 Sun-%Y %V %a] PASSED 3332s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_error_iso_week_year[ignore-ISO week directive '%V' is incompatible with the year directive '%Y'. Use the ISO year '%G' instead.-1999 51 1-%Y %V %w] PASSED 3332s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_error_iso_week_year[ignore-ISO week directive '%V' is incompatible with the year directive '%Y'. Use the ISO year '%G' instead.-1999 51 1-%Y %V %u] PASSED 3332s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_error_iso_week_year[ignore-ISO week directive '%V' must be used with the ISO year directive '%G' and a weekday directive '%A', '%a', '%w', or '%u'.-20-%V] PASSED 3332s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_error_iso_week_year[ignore-ISO week directive '%V' must be used with the ISO year directive '%G' and a weekday directive '%A', '%a', '%w', or '%u'.-1999 51 Sunday-%V %A] PASSED 3332s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_error_iso_week_year[ignore-ISO week directive '%V' must be used with the ISO year directive '%G' and a weekday directive '%A', '%a', '%w', or '%u'.-1999 51 Sun-%V %a] PASSED 3332s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_error_iso_week_year[ignore-ISO week directive '%V' must be used with the ISO year directive '%G' and a weekday directive '%A', '%a', '%w', or '%u'.-1999 51 1-%V %w] PASSED 3332s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_error_iso_week_year[ignore-ISO week directive '%V' must be used with the ISO year directive '%G' and a weekday directive '%A', '%a', '%w', or '%u'.-1999 51 1-%V %u] PASSED 3332s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_error_iso_week_year[ignore-Day of the year directive '%j' is not compatible with ISO year directive '%G'. Use '%Y' instead.-1999 50-%G %j] PASSED 3332s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_error_iso_week_year[ignore-ISO week directive '%V' must be used with the ISO year directive '%G' and a weekday directive '%A', '%a', '%w', or '%u'.-20 Monday-%V %A] PASSED 3332s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_dtarr[None] PASSED 3332s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_dtarr[US/Central] PASSED 3332s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_arrow[None-True-Series] SKIPPED 3332s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_arrow[None-True-Index] SKIPPED 3332s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_arrow[None-False-Series] SKIPPED 3332s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_arrow[None-False-Index] SKIPPED 3332s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_arrow[US/Central-True-Series] SKIPPED 3332s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_arrow[US/Central-True-Index] SKIPPED 3332s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_arrow[US/Central-False-Series] SKIPPED 3332s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_arrow[US/Central-False-Index] SKIPPED 3332s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_pydatetime PASSED 3332s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_YYYYMMDD PASSED 3332s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_unparsable_ignore PASSED 3333s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_now PASSED 3333s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_today[Pacific/Auckland] PASSED 3333s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_today[US/Samoa] PASSED 3333s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_today_now_unicode_bytes[now] PASSED 3333s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_today_now_unicode_bytes[today] PASSED 3333s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_now_with_format[now-utcnow-%Y-%m-%d %H:%M:%S%z-2020-01-03] PASSED 3333s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_now_with_format[now-utcnow-%Y-%d-%m %H:%M:%S%z-2020-03-01] PASSED 3333s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_now_with_format[now-utcnow-None-2020-01-03] PASSED 3334s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_now_with_format[today-today-%Y-%m-%d %H:%M:%S%z-2020-01-03] PASSED 3334s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_now_with_format[today-today-%Y-%d-%m %H:%M:%S%z-2020-03-01] PASSED 3334s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_now_with_format[today-today-None-2020-01-03] PASSED 3334s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_dt64s[True-dt0] PASSED 3334s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_dt64s[True-dt1] PASSED 3334s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_dt64s[False-dt0] PASSED 3334s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_dt64s[False-dt1] PASSED 3334s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_dt64s_and_str[2001-01-01-%Y-%m-%d] PASSED 3334s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_dt64s_and_str[01-01-2001-%d-%m-%Y] PASSED 3334s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_dt64s_out_of_ns_bounds[True-raise-dt0] PASSED 3334s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_dt64s_out_of_ns_bounds[True-raise-dt1] PASSED 3334s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_dt64s_out_of_ns_bounds[True-ignore-dt0] PASSED 3334s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_dt64s_out_of_ns_bounds[True-ignore-dt1] PASSED 3334s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_dt64s_out_of_ns_bounds[True-coerce-dt0] PASSED 3334s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_dt64s_out_of_ns_bounds[True-coerce-dt1] PASSED 3334s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_dt64s_out_of_ns_bounds[False-raise-dt0] PASSED 3334s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_dt64s_out_of_ns_bounds[False-raise-dt1] PASSED 3334s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_dt64s_out_of_ns_bounds[False-ignore-dt0] PASSED 3334s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_dt64s_out_of_ns_bounds[False-ignore-dt1] PASSED 3334s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_dt64s_out_of_ns_bounds[False-coerce-dt0] PASSED 3334s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_dt64s_out_of_ns_bounds[False-coerce-dt1] PASSED 3334s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_dt64d_out_of_bounds[True] PASSED 3334s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_dt64d_out_of_bounds[False] PASSED 3334s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_array_of_dt64s[True-s] PASSED 3334s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_array_of_dt64s[True-D] PASSED 3334s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_array_of_dt64s[False-s] PASSED 3335s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_array_of_dt64s[False-D] PASSED 3335s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_out_of_bounds_errors_ignore PASSED 3335s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_tz[True] PASSED 3335s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_tz[False] PASSED 3335s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_tz_mixed[True] PASSED 3335s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_tz_mixed[False] PASSED 3335s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_different_offsets[True] PASSED 3335s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_different_offsets[False] PASSED 3335s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_tz_pytz[True] PASSED 3335s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_tz_pytz[False] PASSED 3335s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_utc_true[True-Index-DatetimeIndex] PASSED 3335s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_utc_true[True-list-DatetimeIndex] PASSED 3335s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_utc_true[True-array-DatetimeIndex] PASSED 3335s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_utc_true[True-Series-Series] PASSED 3335s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_utc_true[False-Index-DatetimeIndex] PASSED 3335s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_utc_true[False-list-DatetimeIndex] PASSED 3336s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_utc_true[False-array-DatetimeIndex] PASSED 3336s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_utc_true[False-Series-Series] PASSED 3336s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_utc_true_scalar[True-20100102 121314-expected0] PASSED 3336s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_utc_true_scalar[True-20100102 121315-expected1] PASSED 3336s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_utc_true_scalar[False-20100102 121314-expected0] PASSED 3336s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_utc_true_scalar[False-20100102 121315-expected1] PASSED 3336s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_utc_true_with_series_single_value[True] PASSED 3336s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_utc_true_with_series_single_value[False] PASSED 3336s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_utc_true_with_series_tzaware_string[True] PASSED 3336s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_utc_true_with_series_tzaware_string[False] PASSED 3336s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_utc_true_with_series_datetime_ns[True-2013-01-01 01:00:00-datetime64[ns]] PASSED 3336s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_utc_true_with_series_datetime_ns[True-2013-01-01 01:00:00-datetime64[ns, UTC]] PASSED 3336s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_utc_true_with_series_datetime_ns[False-2013-01-01 01:00:00-datetime64[ns]] PASSED 3336s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_utc_true_with_series_datetime_ns[False-2013-01-01 01:00:00-datetime64[ns, UTC]] PASSED 3337s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_tz_psycopg2[True] PASSED 3337s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_tz_psycopg2[False] PASSED 3337s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_datetime_bool[True-True] PASSED 3337s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_datetime_bool[True-False] PASSED 3337s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_datetime_bool[False-True] PASSED 3337s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_datetime_bool[False-False] PASSED 3337s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_datetime_bool_arrays_mixed[True] PASSED 3337s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_datetime_bool_arrays_mixed[False] PASSED 3337s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_datetime_invalid_datatype[bool] PASSED 3337s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_datetime_invalid_datatype[to_datetime] PASSED 3337s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_invalid_format_raises[coerce] PASSED 3337s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_invalid_format_raises[raise] PASSED 3337s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_invalid_format_raises[ignore] PASSED 3337s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_datetime_invalid_scalar[None-a] PASSED 3337s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_datetime_invalid_scalar[None-00:01:99] PASSED 3337s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_datetime_invalid_scalar[%H:%M:%S-a] PASSED 3337s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_datetime_invalid_scalar[%H:%M:%S-00:01:99] PASSED 3337s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_datetime_outofbounds_scalar[None-3000/12/11 00:00:00] PASSED 3337s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_datetime_outofbounds_scalar[%H:%M:%S-3000/12/11 00:00:00] PASSED 3337s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_datetime_invalid_index[None-values0] PASSED 3338s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_datetime_invalid_index[None-values1] PASSED 3338s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_datetime_invalid_index[None-values2] PASSED 3338s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_datetime_invalid_index[%H:%M:%S-values0] PASSED 3338s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_datetime_invalid_index[%H:%M:%S-values1] PASSED 3338s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_datetime_invalid_index[%H:%M:%S-values2] PASSED 3338s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_cache[list-%Y%m%d %H:%M:%S-True] PASSED 3338s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_cache[list-%Y%m%d %H:%M:%S-None] PASSED 3338s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_cache[list-None-True] PASSED 3338s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_cache[list-None-None] PASSED 3338s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_cache[tuple-%Y%m%d %H:%M:%S-True] PASSED 3339s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_cache[tuple-%Y%m%d %H:%M:%S-None] PASSED 3339s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_cache[tuple-None-True] PASSED 3339s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_cache[tuple-None-None] PASSED 3339s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_cache[array-%Y%m%d %H:%M:%S-True] PASSED 3339s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_cache[array-%Y%m%d %H:%M:%S-None] PASSED 3339s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_cache[array-None-True] PASSED 3339s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_cache[array-None-None] PASSED 3339s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_cache[Index-%Y%m%d %H:%M:%S-True] PASSED 3340s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_cache[Index-%Y%m%d %H:%M:%S-None] PASSED 3340s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_cache[Index-None-True] PASSED 3340s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_cache[Index-None-None] PASSED 3340s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_cache[deque-%Y%m%d %H:%M:%S-True] PASSED 3340s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_cache[deque-%Y%m%d %H:%M:%S-None] PASSED 3340s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_cache[deque-None-True] PASSED 3340s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_cache[deque-None-None] PASSED 3340s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_from_deque PASSED 3341s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_cache_series[%Y%m%d %H:%M:%S-True] PASSED 3341s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_cache_series[%Y%m%d %H:%M:%S-None] PASSED 3341s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_cache_series[None-True] PASSED 3341s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_cache_series[None-None] PASSED 3341s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_cache_scalar PASSED 3341s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_convert_object_to_datetime_with_cache[datetimelikes0-expected_values0] PASSED 3341s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_convert_object_to_datetime_with_cache[datetimelikes1-expected_values1] PASSED 3341s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_convert_object_to_datetime_with_cache[datetimelikes2-expected_values2] PASSED 3341s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_converts_null_like_to_nat[input0-expected0-True] PASSED 3341s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_converts_null_like_to_nat[input0-expected0-False] PASSED 3341s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_converts_null_like_to_nat[input1-expected1-True] PASSED 3341s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_converts_null_like_to_nat[input1-expected1-False] PASSED 3341s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_converts_null_like_to_nat[input2-expected2-True] PASSED 3341s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_converts_null_like_to_nat[input2-expected2-False] PASSED 3342s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_converts_null_like_to_nat[input3-expected3-True] PASSED 3342s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_converts_null_like_to_nat[input3-expected3-False] PASSED 3342s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_converts_null_like_to_nat[input4-expected4-True] PASSED 3342s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_converts_null_like_to_nat[input4-expected4-False] PASSED 3342s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_converts_null_like_to_nat[input5-expected5-True] PASSED 3342s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_converts_null_like_to_nat[input5-expected5-False] PASSED 3342s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_converts_null_like_to_nat[input6-expected6-True] PASSED 3342s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_converts_null_like_to_nat[input6-expected6-False] PASSED 3342s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_converts_null_like_to_nat[input7-expected7-True] PASSED 3342s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_converts_null_like_to_nat[input7-expected7-False] PASSED 3342s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_converts_null_like_to_nat[input8-expected8-True] PASSED 3342s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_converts_null_like_to_nat[input8-expected8-False] PASSED 3342s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_converts_null_like_to_nat[input9-expected9-True] PASSED 3342s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_converts_null_like_to_nat[input9-expected9-False] PASSED 3342s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_week_without_day_and_calendar_year[2017-20-%Y-%W] PASSED 3342s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_week_without_day_and_calendar_year[20 Sunday-%W %A] PASSED 3342s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_week_without_day_and_calendar_year[20 Sun-%W %a] PASSED 3342s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_week_without_day_and_calendar_year[2017-21-%Y-%U] PASSED 3342s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_week_without_day_and_calendar_year[20 Sunday-%U %A] PASSED 3342s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_week_without_day_and_calendar_year[20 Sun-%U %a] PASSED 3343s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_coerce PASSED 3343s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_coerce_oob[outofbounds0-March 1, 2018-%B %d, %Y] PASSED 3343s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_coerce_oob[outofbounds0-2018-03-01-%Y-%m-%d] PASSED 3343s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_coerce_oob[outofbounds1-March 1, 2018-%B %d, %Y] PASSED 3343s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_coerce_oob[outofbounds1-2018-03-01-%Y-%m-%d] PASSED 3343s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_coerce_oob[outofbounds2-March 1, 2018-%B %d, %Y] PASSED 3343s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_coerce_oob[outofbounds2-2018-03-01-%Y-%m-%d] PASSED 3343s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_coerce_oob[January 1, 9999-March 1, 2018-%B %d, %Y] PASSED 3343s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_coerce_oob[January 1, 9999-2018-03-01-%Y-%m-%d] PASSED 3343s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_coerce_oob[9999-01-01-March 1, 2018-%B %d, %Y] PASSED 3343s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_coerce_oob[9999-01-01-2018-03-01-%Y-%m-%d] PASSED 3343s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_malformed_no_raise[coerce-expected0] PASSED 3343s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_malformed_no_raise[ignore-expected1] PASSED 3343s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_malformed_raise PASSED 3343s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_iso_8601_strings_with_same_offset PASSED 3343s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_iso_8601_strings_with_different_offsets PASSED 3343s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_iso_8601_strings_with_different_offsets_utc PASSED 3344s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_mixed_offsets_with_native_datetime_raises PASSED 3344s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_non_iso_strings_with_tz_offset PASSED 3344s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_timestamp_utc_true[ts0-expected0] PASSED 3344s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_timestamp_utc_true[ts1-expected1] PASSED 3344s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_with_format_out_of_bounds[00010101] PASSED 3344s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_with_format_out_of_bounds[13000101] PASSED 3344s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_with_format_out_of_bounds[30000101] PASSED 3344s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_with_format_out_of_bounds[99990101] PASSED 3344s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_utc PASSED 3344s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_fixed_offset PASSED 3344s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_mixed_offsets_with_utc_false_deprecated[date0] PASSED 3344s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_mixed_offsets_with_utc_false_deprecated[date1] PASSED 3344s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_mixed_offsets_with_utc_false_deprecated[date2] PASSED 3344s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_to_datetime_month_or_year_unit_int[True-150-Y] PASSED 3345s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_to_datetime_month_or_year_unit_int[True-150-M] PASSED 3345s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_to_datetime_month_or_year_unit_int[True-150.0-Y] XFAIL 3345s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_to_datetime_month_or_year_unit_int[True-150.0-M] XFAIL 3345s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_to_datetime_month_or_year_unit_int[False-150-Y] PASSED 3345s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_to_datetime_month_or_year_unit_int[False-150-M] PASSED 3345s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_to_datetime_month_or_year_unit_int[False-150.0-Y] XFAIL 3345s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_to_datetime_month_or_year_unit_int[False-150.0-M] XFAIL 3345s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_to_datetime_month_or_year_unit_non_round_float[True-Y] PASSED 3346s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_to_datetime_month_or_year_unit_non_round_float[True-M] PASSED 3346s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_to_datetime_month_or_year_unit_non_round_float[False-Y] PASSED 3346s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_to_datetime_month_or_year_unit_non_round_float[False-M] PASSED 3346s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_unit[True] PASSED 3346s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_unit[False] PASSED 3346s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_unit_array_mixed_nans[True] PASSED 3346s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_unit_array_mixed_nans[False] PASSED 3346s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_unit_array_mixed_nans_large_int[True] PASSED 3346s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_unit_array_mixed_nans_large_int[False] PASSED 3346s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_to_datetime_invalid_str_not_out_of_bounds_valuerror[True] PASSED 3346s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_to_datetime_invalid_str_not_out_of_bounds_valuerror[False] PASSED 3346s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_unit_consistency[True-raise] PASSED 3346s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_unit_consistency[True-coerce] PASSED 3346s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_unit_consistency[True-ignore] PASSED 3346s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_unit_consistency[False-raise] PASSED 3346s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_unit_consistency[False-coerce] PASSED 3346s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_unit_consistency[False-ignore] PASSED 3346s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_unit_with_numeric[True-float64-ignore] PASSED 3346s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_unit_with_numeric[True-float64-raise] PASSED 3346s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_unit_with_numeric[True-float64-coerce] PASSED 3346s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_unit_with_numeric[True-int64-ignore] PASSED 3346s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_unit_with_numeric[True-int64-raise] PASSED 3346s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_unit_with_numeric[True-int64-coerce] PASSED 3346s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_unit_with_numeric[False-float64-ignore] PASSED 3346s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_unit_with_numeric[False-float64-raise] PASSED 3347s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_unit_with_numeric[False-float64-coerce] PASSED 3347s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_unit_with_numeric[False-int64-ignore] PASSED 3347s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_unit_with_numeric[False-int64-raise] PASSED 3347s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_unit_with_numeric[False-int64-coerce] PASSED 3347s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_unit_with_numeric_coerce[True-exp0-arr0-UserWarning] PASSED 3347s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_unit_with_numeric_coerce[True-exp1-arr1-None] PASSED 3347s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_unit_with_numeric_coerce[False-exp0-arr0-UserWarning] PASSED 3347s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_unit_with_numeric_coerce[False-exp1-arr1-None] PASSED 3347s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_unit_mixed[True-arr0] PASSED 3347s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_unit_mixed[True-arr1] PASSED 3347s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_unit_mixed[False-arr0] PASSED 3347s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_unit_mixed[False-arr1] PASSED 3347s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_unit_rounding[True] PASSED 3347s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_unit_rounding[False] PASSED 3347s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_unit_ignore_keeps_name[True] PASSED 3347s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_unit_ignore_keeps_name[False] PASSED 3348s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_to_datetime_errors_ignore_utc_true PASSED 3348s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_to_datetime_unit[int] PASSED 3348s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_to_datetime_unit[float] PASSED 3348s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_to_datetime_unit_with_nulls[-9223372036854775808] PASSED 3348s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_to_datetime_unit_with_nulls[nan] PASSED 3348s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_to_datetime_unit_fractional_seconds PASSED 3348s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_to_datetime_unit_na_values PASSED 3348s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_to_datetime_unit_invalid[foo] PASSED 3348s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_to_datetime_unit_invalid[111111111] PASSED 3348s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_to_timestamp_unit_coerce[foo] PASSED 3348s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_to_timestamp_unit_coerce[111111111] PASSED 3348s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_float_to_datetime_raise_near_bounds PASSED 3348s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeDataFrame::test_dataframe[True] PASSED 3348s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeDataFrame::test_dataframe[False] PASSED 3348s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeDataFrame::test_dataframe_dict_with_constructable[True] PASSED 3348s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeDataFrame::test_dataframe_dict_with_constructable[False] PASSED 3348s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeDataFrame::test_dataframe_field_aliases_column_subset[True-unit0] PASSED 3349s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeDataFrame::test_dataframe_field_aliases_column_subset[True-unit1] PASSED 3349s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeDataFrame::test_dataframe_field_aliases_column_subset[False-unit0] PASSED 3349s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeDataFrame::test_dataframe_field_aliases_column_subset[False-unit1] PASSED 3349s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeDataFrame::test_dataframe_field_aliases[True] PASSED 3349s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeDataFrame::test_dataframe_field_aliases[False] PASSED 3349s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeDataFrame::test_dataframe_str_dtype[True] PASSED 3349s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeDataFrame::test_dataframe_str_dtype[False] PASSED 3349s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeDataFrame::test_dataframe_coerce[True] PASSED 3349s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeDataFrame::test_dataframe_coerce[False] PASSED 3349s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeDataFrame::test_dataframe_extra_keys_raisesm[True] PASSED 3349s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeDataFrame::test_dataframe_extra_keys_raisesm[False] PASSED 3349s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeDataFrame::test_dataframe_missing_keys_raises[True-cols0] PASSED 3349s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeDataFrame::test_dataframe_missing_keys_raises[True-cols1] PASSED 3349s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeDataFrame::test_dataframe_missing_keys_raises[True-cols2] PASSED 3349s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeDataFrame::test_dataframe_missing_keys_raises[True-cols3] PASSED 3350s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeDataFrame::test_dataframe_missing_keys_raises[True-cols4] PASSED 3350s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeDataFrame::test_dataframe_missing_keys_raises[False-cols0] PASSED 3350s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeDataFrame::test_dataframe_missing_keys_raises[False-cols1] PASSED 3350s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeDataFrame::test_dataframe_missing_keys_raises[False-cols2] PASSED 3350s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeDataFrame::test_dataframe_missing_keys_raises[False-cols3] PASSED 3350s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeDataFrame::test_dataframe_missing_keys_raises[False-cols4] PASSED 3350s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeDataFrame::test_dataframe_duplicate_columns_raises[True] PASSED 3350s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeDataFrame::test_dataframe_duplicate_columns_raises[False] PASSED 3350s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeDataFrame::test_dataframe_int16[True] PASSED 3350s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeDataFrame::test_dataframe_int16[False] PASSED 3351s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeDataFrame::test_dataframe_mixed[True] PASSED 3351s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeDataFrame::test_dataframe_mixed[False] PASSED 3351s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeDataFrame::test_dataframe_float[True] PASSED 3351s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeDataFrame::test_dataframe_float[False] PASSED 3351s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeDataFrame::test_dataframe_utc_true PASSED 3351s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_barely_out_of_bounds PASSED 3351s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_iso8601[True-2012-01-01 00:00:00-2012-01-01 00:00:00] PASSED 3351s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_iso8601[True-20121001-2012-10-01] PASSED 3351s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_iso8601[False-2012-01-01 00:00:00-2012-01-01 00:00:00] PASSED 3351s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_iso8601[False-20121001-2012-10-01] PASSED 3351s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_iso8601_fails[True-2012-%Y-%m] PASSED 3351s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_iso8601_fails[True-2012-01-%Y-%m-%d] PASSED 3351s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_iso8601_fails[True-2012-01-01-%Y-%m-%d %H] PASSED 3351s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_iso8601_fails[True-2012-01-01 10-%Y-%m-%d %H:%M] PASSED 3351s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_iso8601_fails[True-2012-01-01 10:00-%Y-%m-%d %H:%M:%S] PASSED 3351s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_iso8601_fails[True-2012-01-01 10:00:00-%Y-%m-%d %H:%M:%S.%f] PASSED 3351s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_iso8601_fails[True-2012-01-01 10:00:00.123-%Y-%m-%d %H:%M:%S.%f%z] PASSED 3351s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_iso8601_fails[True-0-%Y-%m-%d] PASSED 3351s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_iso8601_fails[False-2012-%Y-%m] PASSED 3351s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_iso8601_fails[False-2012-01-%Y-%m-%d] PASSED 3352s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_iso8601_fails[False-2012-01-01-%Y-%m-%d %H] PASSED 3352s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_iso8601_fails[False-2012-01-01 10-%Y-%m-%d %H:%M] PASSED 3352s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_iso8601_fails[False-2012-01-01 10:00-%Y-%m-%d %H:%M:%S] PASSED 3352s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_iso8601_fails[False-2012-01-01 10:00:00-%Y-%m-%d %H:%M:%S.%f] PASSED 3352s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_iso8601_fails[False-2012-01-01 10:00:00.123-%Y-%m-%d %H:%M:%S.%f%z] PASSED 3352s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_iso8601_fails[False-0-%Y-%m-%d] PASSED 3352s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_iso8601_exact_fails[2012-01-01-%Y-%m] PASSED 3352s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_iso8601_exact_fails[2012-01-01 10-%Y-%m-%d] PASSED 3352s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_iso8601_exact_fails[2012-01-01 10:00-%Y-%m-%d %H] PASSED 3352s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_iso8601_exact_fails[2012-01-01 10:00:00-%Y-%m-%d %H:%M] PASSED 3352s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_iso8601_exact_fails[0-%Y-%m-%d] PASSED 3352s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_iso8601_non_exact[2012-01-01-%Y-%m] PASSED 3352s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_iso8601_non_exact[2012-01-01 00-%Y-%m-%d] PASSED 3352s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_iso8601_non_exact[2012-01-01 00:00-%Y-%m-%d %H] PASSED 3352s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_iso8601_non_exact[2012-01-01 00:00:00-%Y-%m-%d %H:%M] PASSED 3352s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_iso8601_separator[2020-01-%Y/%m] PASSED 3352s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_iso8601_separator[2020-01-01-%Y/%m/%d] PASSED 3352s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_iso8601_separator[2020-01-01 00-%Y/%m/%dT%H] PASSED 3352s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_iso8601_separator[2020-01-01T00-%Y/%m/%d %H] PASSED 3352s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_iso8601_separator[2020-01-01 00:00-%Y/%m/%dT%H:%M] PASSED 3352s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_iso8601_separator[2020-01-01T00:00-%Y/%m/%d %H:%M] PASSED 3352s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_iso8601_separator[2020-01-01 00:00:00-%Y/%m/%dT%H:%M:%S] PASSED 3352s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_iso8601_separator[2020-01-01T00:00:00-%Y/%m/%d %H:%M:%S] PASSED 3352s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_iso8601_valid[2020-01-%Y-%m] PASSED 3352s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_iso8601_valid[2020-01-01-%Y-%m-%d] PASSED 3352s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_iso8601_valid[2020-01-01 00-%Y-%m-%d %H] PASSED 3352s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_iso8601_valid[2020-01-01T00-%Y-%m-%dT%H] PASSED 3352s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_iso8601_valid[2020-01-01 00:00-%Y-%m-%d %H:%M] PASSED 3352s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_iso8601_valid[2020-01-01T00:00-%Y-%m-%dT%H:%M] PASSED 3352s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_iso8601_valid[2020-01-01 00:00:00-%Y-%m-%d %H:%M:%S] PASSED 3353s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_iso8601_valid[2020-01-01T00:00:00-%Y-%m-%dT%H:%M:%S] PASSED 3353s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_iso8601_valid[2020-01-01T00:00:00.000-%Y-%m-%dT%H:%M:%S.%f] PASSED 3353s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_iso8601_valid[2020-01-01T00:00:00.000000-%Y-%m-%dT%H:%M:%S.%f] PASSED 3353s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_iso8601_valid[2020-01-01T00:00:00.000000000-%Y-%m-%dT%H:%M:%S.%f] PASSED 3353s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_iso8601_non_padded[2020-1-%Y-%m] PASSED 3353s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_iso8601_non_padded[2020-1-1-%Y-%m-%d] PASSED 3353s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_iso8601_non_padded[2020-1-1 0-%Y-%m-%d %H] PASSED 3353s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_iso8601_non_padded[2020-1-1T0-%Y-%m-%dT%H] PASSED 3353s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_iso8601_non_padded[2020-1-1 0:0-%Y-%m-%d %H:%M] PASSED 3353s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_iso8601_non_padded[2020-1-1T0:0-%Y-%m-%dT%H:%M] PASSED 3353s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_iso8601_non_padded[2020-1-1 0:0:0-%Y-%m-%d %H:%M:%S] PASSED 3353s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_iso8601_non_padded[2020-1-1T0:0:0-%Y-%m-%dT%H:%M:%S] PASSED 3353s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_iso8601_non_padded[2020-1-1T0:0:0.000-%Y-%m-%dT%H:%M:%S.%f] PASSED 3353s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_iso8601_non_padded[2020-1-1T0:0:0.000000-%Y-%m-%dT%H:%M:%S.%f] PASSED 3353s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_iso8601_non_padded[2020-1-1T0:0:0.000000000-%Y-%m-%dT%H:%M:%S.%f] PASSED 3353s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_iso8601_with_timezone_valid[2020-01-01T00:00:00.000000000+00:00-%Y-%m-%dT%H:%M:%S.%f%z] PASSED 3353s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_iso8601_with_timezone_valid[2020-01-01T00:00:00+00:00-%Y-%m-%dT%H:%M:%S%z] PASSED 3353s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_iso8601_with_timezone_valid[2020-01-01T00:00:00Z-%Y-%m-%dT%H:%M:%S%z] PASSED 3353s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_default[True] PASSED 3353s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_default[False] PASSED 3353s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_respects_dayfirst[True] XFAIL 3354s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_respects_dayfirst[False] XFAIL 3354s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_on_datetime64_series[True] PASSED 3354s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_on_datetime64_series[False] PASSED 3354s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_with_space_in_series[True] PASSED 3354s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_with_space_in_series[False] PASSED 3354s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_with_apply[True] SKIPPED 3354s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_with_apply[False] SKIPPED 3354s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_timezone_name PASSED 3354s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_with_apply_with_empty_str[True-raise] SKIPPED 3354s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_with_apply_with_empty_str[True-coerce] SKIPPED 3354s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_with_apply_with_empty_str[True-ignore] SKIPPED 3354s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_with_apply_with_empty_str[False-raise] SKIPPED 3354s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_with_apply_with_empty_str[False-coerce] SKIPPED 3354s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_with_apply_with_empty_str[False-ignore] SKIPPED 3354s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_empty_stt[True] PASSED 3354s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_empty_stt[False] PASSED 3354s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_empty_str_list[True] PASSED 3354s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_empty_str_list[False] PASSED 3354s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_zero[True] PASSED 3355s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_zero[False] PASSED 3355s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_strings[True] PASSED 3355s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_strings[False] PASSED 3355s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_strings_variation[True] PASSED 3355s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_strings_variation[False] PASSED 3355s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_strings_vs_constructor[result0] PASSED 3355s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_strings_vs_constructor[result1] PASSED 3355s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_unprocessable_input[True] PASSED 3355s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_unprocessable_input[False] PASSED 3355s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_unhashable_input[True] PASSED 3355s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_unhashable_input[False] PASSED 3355s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_other_datetime64_units PASSED 3355s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_list_of_integers PASSED 3355s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_overflow PASSED 3355s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_string_invalid_operation[True] PASSED 3355s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_string_invalid_operation[False] PASSED 3355s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_string_na_nat_conversion[True] PASSED 3355s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_string_na_nat_conversion[False] PASSED 3355s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_string_na_nat_conversion_malformed[True] PASSED 3355s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_string_na_nat_conversion_malformed[False] PASSED 3355s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_string_na_nat_conversion_with_name[True] PASSED 3355s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_string_na_nat_conversion_with_name[False] PASSED 3355s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_dti_constructor_numpy_timeunits[True-h] PASSED 3355s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_dti_constructor_numpy_timeunits[True-m] PASSED 3355s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_dti_constructor_numpy_timeunits[True-s] PASSED 3355s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_dti_constructor_numpy_timeunits[True-ms] PASSED 3356s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_dti_constructor_numpy_timeunits[True-us] PASSED 3356s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_dti_constructor_numpy_timeunits[True-ns] PASSED 3356s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_dti_constructor_numpy_timeunits[False-h] PASSED 3356s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_dti_constructor_numpy_timeunits[False-m] PASSED 3356s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_dti_constructor_numpy_timeunits[False-s] PASSED 3356s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_dti_constructor_numpy_timeunits[False-ms] PASSED 3356s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_dti_constructor_numpy_timeunits[False-us] PASSED 3356s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_dti_constructor_numpy_timeunits[False-ns] PASSED 3356s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_dayfirst[True] PASSED 3356s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_dayfirst[False] PASSED 3356s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_dayfirst_warnings_valid_input PASSED 3356s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_dayfirst_warnings_invalid_input PASSED 3356s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_dta_tz[DatetimeIndex] PASSED 3356s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_dta_tz[DatetimeArray] PASSED 3356s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestGuessDatetimeFormat::test_guess_datetime_format_for_array[test_list0] PASSED 3356s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestGuessDatetimeFormat::test_guess_datetime_format_for_array[test_list1] PASSED 3356s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestGuessDatetimeFormat::test_guess_datetime_format_for_array[test_list2] PASSED 3357s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestGuessDatetimeFormat::test_guess_datetime_format_for_array[test_list3] PASSED 3357s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestGuessDatetimeFormat::test_guess_datetime_format_for_array[test_list4] PASSED 3357s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestGuessDatetimeFormat::test_guess_datetime_format_for_array[test_list5] PASSED 3357s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestGuessDatetimeFormat::test_guess_datetime_format_for_array[test_list6] PASSED 3357s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestGuessDatetimeFormat::test_guess_datetime_format_for_array_all_nans SKIPPED 3357s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeInferFormat::test_to_datetime_infer_datetime_format_consistent_format[True-%m-%d-%Y] PASSED 3357s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeInferFormat::test_to_datetime_infer_datetime_format_consistent_format[True-%m/%d/%Y %H:%M:%S.%f] PASSED 3357s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeInferFormat::test_to_datetime_infer_datetime_format_consistent_format[True-%Y-%m-%dT%H:%M:%S.%f] PASSED 3357s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeInferFormat::test_to_datetime_infer_datetime_format_consistent_format[False-%m-%d-%Y] PASSED 3357s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeInferFormat::test_to_datetime_infer_datetime_format_consistent_format[False-%m/%d/%Y %H:%M:%S.%f] PASSED 3357s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeInferFormat::test_to_datetime_infer_datetime_format_consistent_format[False-%Y-%m-%dT%H:%M:%S.%f] PASSED 3357s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeInferFormat::test_to_datetime_inconsistent_format[True] PASSED 3357s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeInferFormat::test_to_datetime_inconsistent_format[False] PASSED 3357s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeInferFormat::test_to_datetime_consistent_format[True] PASSED 3358s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeInferFormat::test_to_datetime_consistent_format[False] PASSED 3358s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeInferFormat::test_to_datetime_series_with_nans[True] PASSED 3359s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeInferFormat::test_to_datetime_series_with_nans[False] PASSED 3359s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeInferFormat::test_to_datetime_series_start_with_nans[True] PASSED 3359s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeInferFormat::test_to_datetime_series_start_with_nans[False] PASSED 3360s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeInferFormat::test_infer_datetime_format_tz_name[UTC-0] PASSED 3360s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeInferFormat::test_infer_datetime_format_tz_name[UTC-3-180] PASSED 3360s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeInferFormat::test_infer_datetime_format_tz_name[UTC+3--180] PASSED 3360s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeInferFormat::test_infer_datetime_format_zero_tz[2019-02-02 08:07:13-Z] PASSED 3360s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeInferFormat::test_infer_datetime_format_zero_tz[2019-02-02 08:07:13-] PASSED 3360s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeInferFormat::test_infer_datetime_format_zero_tz[2019-02-02 08:07:13.012345-Z] PASSED 3360s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeInferFormat::test_infer_datetime_format_zero_tz[2019-02-02 08:07:13.012345-] PASSED 3360s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeInferFormat::test_to_datetime_iso8601_noleading_0s[True-None] PASSED 3360s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeInferFormat::test_to_datetime_iso8601_noleading_0s[True-%Y-%m-%d] PASSED 3360s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeInferFormat::test_to_datetime_iso8601_noleading_0s[False-None] PASSED 3360s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeInferFormat::test_to_datetime_iso8601_noleading_0s[False-%Y-%m-%d] PASSED 3360s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeInferFormat::test_parse_dates_infer_datetime_format_warning PASSED 3360s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDaysInMonth::test_day_not_in_month_coerce[True-2015-02-29-None] PASSED 3360s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDaysInMonth::test_day_not_in_month_coerce[True-2015-02-29-%Y-%m-%d] PASSED 3361s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDaysInMonth::test_day_not_in_month_coerce[True-2015-02-32-%Y-%m-%d] PASSED 3361s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDaysInMonth::test_day_not_in_month_coerce[True-2015-04-31-%Y-%m-%d] PASSED 3361s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDaysInMonth::test_day_not_in_month_coerce[False-2015-02-29-None] PASSED 3361s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDaysInMonth::test_day_not_in_month_coerce[False-2015-02-29-%Y-%m-%d] PASSED 3361s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDaysInMonth::test_day_not_in_month_coerce[False-2015-02-32-%Y-%m-%d] PASSED 3361s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDaysInMonth::test_day_not_in_month_coerce[False-2015-04-31-%Y-%m-%d] PASSED 3361s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDaysInMonth::test_day_not_in_month_raise[True] PASSED 3362s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDaysInMonth::test_day_not_in_month_raise[False] PASSED 3362s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDaysInMonth::test_day_not_in_month_raise_value[True-2015-02-29-%Y-%m-%d-^day is out of range for month, at position 0. You might want to try:\\n - passing `format` if your strings have a consistent format;\\n - passing `format=\\'ISO8601\\'` if your strings are all ISO8601 but not necessarily in exactly the same format;\\n - passing `format=\\'mixed\\'`, and the format will be inferred for each element individually. You might want to use `dayfirst` alongside this.$] PASSED 3362s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDaysInMonth::test_day_not_in_month_raise_value[True-2015-29-02-%Y-%d-%m-^day is out of range for month, at position 0. You might want to try:\\n - passing `format` if your strings have a consistent format;\\n - passing `format=\\'ISO8601\\'` if your strings are all ISO8601 but not necessarily in exactly the same format;\\n - passing `format=\\'mixed\\'`, and the format will be inferred for each element individually. You might want to use `dayfirst` alongside this.$] PASSED 3362s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDaysInMonth::test_day_not_in_month_raise_value[True-2015-02-32-%Y-%m-%d-^unconverted data remains when parsing with format "%Y-%m-%d": "2", at position 0. You might want to try:\\n - passing `format` if your strings have a consistent format;\\n - passing `format=\\'ISO8601\\'` if your strings are all ISO8601 but not necessarily in exactly the same format;\\n - passing `format=\\'mixed\\'`, and the format will be inferred for each element individually. You might want to use `dayfirst` alongside this.$] PASSED 3362s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDaysInMonth::test_day_not_in_month_raise_value[True-2015-32-02-%Y-%d-%m-^time data "2015-32-02" doesn't match format "%Y-%d-%m", at position 0. You might want to try:\\n - passing `format` if your strings have a consistent format;\\n - passing `format=\\'ISO8601\\'` if your strings are all ISO8601 but not necessarily in exactly the same format;\\n - passing `format=\\'mixed\\'`, and the format will be inferred for each element individually. You might want to use `dayfirst` alongside this.$] PASSED 3362s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDaysInMonth::test_day_not_in_month_raise_value[True-2015-04-31-%Y-%m-%d-^day is out of range for month, at position 0. You might want to try:\\n - passing `format` if your strings have a consistent format;\\n - passing `format=\\'ISO8601\\'` if your strings are all ISO8601 but not necessarily in exactly the same format;\\n - passing `format=\\'mixed\\'`, and the format will be inferred for each element individually. You might want to use `dayfirst` alongside this.$] PASSED 3362s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDaysInMonth::test_day_not_in_month_raise_value[True-2015-31-04-%Y-%d-%m-^day is out of range for month, at position 0. You might want to try:\\n - passing `format` if your strings have a consistent format;\\n - passing `format=\\'ISO8601\\'` if your strings are all ISO8601 but not necessarily in exactly the same format;\\n - passing `format=\\'mixed\\'`, and the format will be inferred for each element individually. You might want to use `dayfirst` alongside this.$] PASSED 3362s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDaysInMonth::test_day_not_in_month_raise_value[False-2015-02-29-%Y-%m-%d-^day is out of range for month, at position 0. You might want to try:\\n - passing `format` if your strings have a consistent format;\\n - passing `format=\\'ISO8601\\'` if your strings are all ISO8601 but not necessarily in exactly the same format;\\n - passing `format=\\'mixed\\'`, and the format will be inferred for each element individually. You might want to use `dayfirst` alongside this.$] PASSED 3362s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDaysInMonth::test_day_not_in_month_raise_value[False-2015-29-02-%Y-%d-%m-^day is out of range for month, at position 0. You might want to try:\\n - passing `format` if your strings have a consistent format;\\n - passing `format=\\'ISO8601\\'` if your strings are all ISO8601 but not necessarily in exactly the same format;\\n - passing `format=\\'mixed\\'`, and the format will be inferred for each element individually. You might want to use `dayfirst` alongside this.$] PASSED 3362s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDaysInMonth::test_day_not_in_month_raise_value[False-2015-02-32-%Y-%m-%d-^unconverted data remains when parsing with format "%Y-%m-%d": "2", at position 0. You might want to try:\\n - passing `format` if your strings have a consistent format;\\n - passing `format=\\'ISO8601\\'` if your strings are all ISO8601 but not necessarily in exactly the same format;\\n - passing `format=\\'mixed\\'`, and the format will be inferred for each element individually. You might want to use `dayfirst` alongside this.$] PASSED 3362s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDaysInMonth::test_day_not_in_month_raise_value[False-2015-32-02-%Y-%d-%m-^time data "2015-32-02" doesn't match format "%Y-%d-%m", at position 0. You might want to try:\\n - passing `format` if your strings have a consistent format;\\n - passing `format=\\'ISO8601\\'` if your strings are all ISO8601 but not necessarily in exactly the same format;\\n - passing `format=\\'mixed\\'`, and the format will be inferred for each element individually. You might want to use `dayfirst` alongside this.$] PASSED 3362s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDaysInMonth::test_day_not_in_month_raise_value[False-2015-04-31-%Y-%m-%d-^day is out of range for month, at position 0. You might want to try:\\n - passing `format` if your strings have a consistent format;\\n - passing `format=\\'ISO8601\\'` if your strings are all ISO8601 but not necessarily in exactly the same format;\\n - passing `format=\\'mixed\\'`, and the format will be inferred for each element individually. You might want to use `dayfirst` alongside this.$] PASSED 3362s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDaysInMonth::test_day_not_in_month_raise_value[False-2015-31-04-%Y-%d-%m-^day is out of range for month, at position 0. You might want to try:\\n - passing `format` if your strings have a consistent format;\\n - passing `format=\\'ISO8601\\'` if your strings are all ISO8601 but not necessarily in exactly the same format;\\n - passing `format=\\'mixed\\'`, and the format will be inferred for each element individually. You might want to use `dayfirst` alongside this.$] PASSED 3362s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDaysInMonth::test_day_not_in_month_ignore[True-2015-02-29-None] PASSED 3362s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDaysInMonth::test_day_not_in_month_ignore[True-2015-02-29-%Y-%m-%d0] PASSED 3362s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDaysInMonth::test_day_not_in_month_ignore[True-2015-02-29-%Y-%m-%d1] PASSED 3363s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDaysInMonth::test_day_not_in_month_ignore[True-2015-04-31-%Y-%m-%d] PASSED 3363s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDaysInMonth::test_day_not_in_month_ignore[False-2015-02-29-None] PASSED 3363s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDaysInMonth::test_day_not_in_month_ignore[False-2015-02-29-%Y-%m-%d0] PASSED 3363s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDaysInMonth::test_day_not_in_month_ignore[False-2015-02-29-%Y-%m-%d1] PASSED 3363s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDaysInMonth::test_day_not_in_month_ignore[False-2015-04-31-%Y-%m-%d] PASSED 3363s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-2011-01-01-expected0] PASSED 3364s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-2Q2005-expected1] PASSED 3364s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-2Q05-expected2] PASSED 3364s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-2005Q1-expected3] PASSED 3364s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-05Q1-expected4] PASSED 3364s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-2011Q3-expected5] PASSED 3364s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-11Q3-expected6] PASSED 3364s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-3Q2011-expected7] PASSED 3364s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-3Q11-expected8] PASSED 3364s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-2000Q4-expected9] PASSED 3365s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-00Q4-expected10] PASSED 3365s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-4Q2000-expected11] PASSED 3366s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-4Q00-expected12] PASSED 3367s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-2000q4-expected13] PASSED 3368s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-2000-Q4-expected14] PASSED 3368s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-00-Q4-expected15] PASSED 3369s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-4Q-2000-expected16] PASSED 3370s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-4Q-00-expected17] PASSED 3370s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-00q4-expected18] PASSED 3370s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-2005-expected19] PASSED 3370s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-2005-11-expected20] PASSED 3370s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-2005 11-expected21] PASSED 3370s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-11-2005-expected22] PASSED 3371s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-11 2005-expected23] PASSED 3371s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-200511-expected24] PASSED 3371s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-20051109-expected25] PASSED 3372s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-20051109 10:15-expected26] PASSED 3373s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-20051109 08H-expected27] PASSED 3374s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-2005-11-09 10:15-expected28] PASSED 3374s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-2005-11-09 08H-expected29] PASSED 3375s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-2005/11/09 10:15-expected30] PASSED 3375s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-2005/11/09 10:15:32-expected31] PASSED 3375s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-2005/11/09 10:15:32 AM-expected32] PASSED 3375s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-2005/11/09 10:15:32 PM-expected33] PASSED 3376s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-2005/11/09 08H-expected34] PASSED 3376s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-Thu Sep 25 10:36:28 2003-expected35] PASSED 3376s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-Thu Sep 25 2003-expected36] PASSED 3376s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-Sep 25 2003-expected37] PASSED 3376s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-January 1 2014-expected38] PASSED 3376s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-2014-06-expected39] PASSED 3376s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-06-2014-expected40] PASSED 3376s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-2014-6-expected41] PASSED 3376s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-6-2014-expected42] PASSED 3376s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-20010101 12-expected43] PASSED 3376s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-20010101 1234-expected44] PASSED 3377s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-20010101 123456-expected45] PASSED 3377s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-2011-01-01-expected0] PASSED 3377s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-2Q2005-expected1] PASSED 3378s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-2Q05-expected2] PASSED 3378s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-2005Q1-expected3] PASSED 3378s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-05Q1-expected4] PASSED 3378s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-2011Q3-expected5] PASSED 3379s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-11Q3-expected6] PASSED 3379s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-3Q2011-expected7] PASSED 3379s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-3Q11-expected8] PASSED 3379s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-2000Q4-expected9] PASSED 3379s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-00Q4-expected10] PASSED 3379s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-4Q2000-expected11] PASSED 3379s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-4Q00-expected12] PASSED 3379s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-2000q4-expected13] PASSED 3379s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-2000-Q4-expected14] PASSED 3379s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-00-Q4-expected15] PASSED 3379s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-4Q-2000-expected16] PASSED 3379s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-4Q-00-expected17] PASSED 3379s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-00q4-expected18] PASSED 3379s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-2005-expected19] PASSED 3379s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-2005-11-expected20] PASSED 3380s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-2005 11-expected21] PASSED 3380s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-11-2005-expected22] PASSED 3380s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-11 2005-expected23] PASSED 3380s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-200511-expected24] PASSED 3380s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-20051109-expected25] PASSED 3380s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-20051109 10:15-expected26] PASSED 3380s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-20051109 08H-expected27] PASSED 3380s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-2005-11-09 10:15-expected28] PASSED 3380s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-2005-11-09 08H-expected29] PASSED 3380s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-2005/11/09 10:15-expected30] PASSED 3380s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-2005/11/09 10:15:32-expected31] PASSED 3380s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-2005/11/09 10:15:32 AM-expected32] PASSED 3380s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-2005/11/09 10:15:32 PM-expected33] PASSED 3381s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-2005/11/09 08H-expected34] PASSED 3381s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-Thu Sep 25 10:36:28 2003-expected35] PASSED 3381s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-Thu Sep 25 2003-expected36] PASSED 3381s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-Sep 25 2003-expected37] PASSED 3381s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-January 1 2014-expected38] PASSED 3381s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-2014-06-expected39] PASSED 3381s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-06-2014-expected40] PASSED 3381s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-2014-6-expected41] PASSED 3381s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-6-2014-expected42] PASSED 3382s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-20010101 12-expected43] PASSED 3382s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-20010101 1234-expected44] PASSED 3382s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-20010101 123456-expected45] PASSED 3382s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_na_values_with_cache[True-None-None] PASSED 3382s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_na_values_with_cache[True-None-nan] PASSED 3382s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_na_values_with_cache[True-None-unique_nulls_fixture22] PASSED 3382s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_na_values_with_cache[True-nan-None] PASSED 3382s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_na_values_with_cache[True-nan-nan] PASSED 3382s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_na_values_with_cache[True-nan-unique_nulls_fixture22] PASSED 3382s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_na_values_with_cache[True-unique_nulls_fixture2-None] PASSED 3382s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_na_values_with_cache[True-unique_nulls_fixture2-nan] PASSED 3382s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_na_values_with_cache[True-unique_nulls_fixture2-unique_nulls_fixture22] PASSED 3382s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_na_values_with_cache[False-None-None] PASSED 3382s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_na_values_with_cache[False-None-nan] PASSED 3382s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_na_values_with_cache[False-None-unique_nulls_fixture22] PASSED 3382s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_na_values_with_cache[False-nan-None] PASSED 3382s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_na_values_with_cache[False-nan-nan] PASSED 3382s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_na_values_with_cache[False-nan-unique_nulls_fixture22] PASSED 3382s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_na_values_with_cache[False-unique_nulls_fixture2-None] PASSED 3382s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_na_values_with_cache[False-unique_nulls_fixture2-nan] PASSED 3383s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_na_values_with_cache[False-unique_nulls_fixture2-unique_nulls_fixture22] PASSED 3383s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers_nat PASSED 3383s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers_dayfirst_yearfirst[True-10-11-12-False-False-expected0] PASSED 3383s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers_dayfirst_yearfirst[True-10-11-12-True-False-expected1] PASSED 3383s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers_dayfirst_yearfirst[True-10-11-12-False-True-expected2] PASSED 3383s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers_dayfirst_yearfirst[True-10-11-12-True-True-expected3] PASSED 3383s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers_dayfirst_yearfirst[True-20/12/21-False-False-expected4] PASSED 3383s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers_dayfirst_yearfirst[True-20/12/21-True-False-expected5] PASSED 3383s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers_dayfirst_yearfirst[True-20/12/21-False-True-expected6] PASSED 3384s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers_dayfirst_yearfirst[True-20/12/21-True-True-expected7] PASSED 3384s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers_dayfirst_yearfirst[False-10-11-12-False-False-expected0] PASSED 3384s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers_dayfirst_yearfirst[False-10-11-12-True-False-expected1] PASSED 3384s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers_dayfirst_yearfirst[False-10-11-12-False-True-expected2] PASSED 3384s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers_dayfirst_yearfirst[False-10-11-12-True-True-expected3] PASSED 3384s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers_dayfirst_yearfirst[False-20/12/21-False-False-expected4] PASSED 3384s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers_dayfirst_yearfirst[False-20/12/21-True-False-expected5] PASSED 3384s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers_dayfirst_yearfirst[False-20/12/21-False-True-expected6] PASSED 3384s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers_dayfirst_yearfirst[False-20/12/21-True-True-expected7] PASSED 3385s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers_timestring[10:15-exp_def0] PASSED 3385s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers_timestring[9:05-exp_def1] PASSED 3385s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers_timezone_minute_offsets_roundtrip[True-2013-01-01 05:45+0545-tz0-Timestamp('2013-01-01 05:45:00+0545', tz='UTC+05:45')] PASSED 3385s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers_timezone_minute_offsets_roundtrip[True-2013-01-01 05:30+0530-tz1-Timestamp('2013-01-01 05:30:00+0530', tz='UTC+05:30')] PASSED 3385s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers_timezone_minute_offsets_roundtrip[False-2013-01-01 05:45+0545-tz0-Timestamp('2013-01-01 05:45:00+0545', tz='UTC+05:45')] PASSED 3385s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers_timezone_minute_offsets_roundtrip[False-2013-01-01 05:30+0530-tz1-Timestamp('2013-01-01 05:30:00+0530', tz='UTC+05:30')] PASSED 3385s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_origin_and_unit PASSED 3385s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_julian PASSED 3385s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_unix PASSED 3385s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_julian_round_trip PASSED 3385s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_invalid_unit[D] PASSED 3385s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_invalid_unit[s] PASSED 3385s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_invalid_unit[ms] PASSED 3385s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_invalid_unit[us] PASSED 3385s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_invalid_unit[ns] PASSED 3385s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_invalid_origin[ns] PASSED 3385s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_invalid_origin[D] PASSED 3386s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_epoch[D-timestamp] PASSED 3386s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_epoch[D-pydatetime] PASSED 3386s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_epoch[D-datetime64] PASSED 3386s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_epoch[D-str_1960] PASSED 3387s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_epoch[s-timestamp] PASSED 3388s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_epoch[s-pydatetime] PASSED 3390s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_epoch[s-datetime64] PASSED 3394s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_epoch[s-str_1960] PASSED 3399s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_epoch[ms-timestamp] PASSED 3404s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_epoch[ms-pydatetime] PASSED 3411s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_epoch[ms-datetime64] PASSED 3418s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_epoch[ms-str_1960] PASSED 3427s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_epoch[us-timestamp] PASSED 3435s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_epoch[us-pydatetime] PASSED 3442s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_epoch[us-datetime64] PASSED 3448s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_epoch[us-str_1960] PASSED 3453s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_epoch[ns-timestamp] PASSED 3458s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_epoch[ns-pydatetime] PASSED 3464s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_epoch[ns-datetime64] PASSED 3468s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_epoch[ns-str_1960] PASSED 3471s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_invalid_origins[D-random_string-ValueError] PASSED 3474s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_invalid_origins[D-epoch-ValueError] PASSED 3476s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_invalid_origins[D-13-24-1990-ValueError] PASSED 3477s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_invalid_origins[D-origin3-OutOfBoundsDatetime] PASSED 3478s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_invalid_origins[s-random_string-ValueError] PASSED 3478s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_invalid_origins[s-epoch-ValueError] PASSED 3478s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_invalid_origins[s-13-24-1990-ValueError] PASSED 3478s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_invalid_origins[s-origin3-OutOfBoundsDatetime] PASSED 3478s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_invalid_origins[ms-random_string-ValueError] PASSED 3478s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_invalid_origins[ms-epoch-ValueError] PASSED 3478s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_invalid_origins[ms-13-24-1990-ValueError] PASSED 3479s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_invalid_origins[ms-origin3-OutOfBoundsDatetime] PASSED 3480s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_invalid_origins[us-random_string-ValueError] PASSED 3480s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_invalid_origins[us-epoch-ValueError] PASSED 3480s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_invalid_origins[us-13-24-1990-ValueError] PASSED 3480s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_invalid_origins[us-origin3-OutOfBoundsDatetime] PASSED 3480s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_invalid_origins[ns-random_string-ValueError] PASSED 3480s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_invalid_origins[ns-epoch-ValueError] PASSED 3481s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_invalid_origins[ns-13-24-1990-ValueError] PASSED 3481s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_invalid_origins[ns-origin3-OutOfBoundsDatetime] PASSED 3481s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_invalid_origins_tzinfo PASSED 3481s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_incorrect_value_exception PASSED 3481s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_to_datetime_out_of_bounds_with_format_arg[None-UserWarning] PASSED 3481s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_to_datetime_out_of_bounds_with_format_arg[%Y-%m-%d %H:%M:%S-None] PASSED 3481s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_to_datetime_out_of_bounds_with_format_arg[%Y-%d-%m %H:%M:%S-None] PASSED 3481s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_processing_order[73000-unix-2169-11-13 00:00:00] PASSED 3481s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_processing_order[73000-1870-01-01-2069-11-13 00:00:00] PASSED 3481s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_processing_order[109500-1870-01-01-2169-10-20 00:00:00] PASSED 3481s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_arg_tz_ns_unit[Z-True-2019-01-01T00:00:00.000Z] PASSED 3481s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_arg_tz_ns_unit[Z-None-2019-01-01T00:00:00.000Z] PASSED 3481s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_arg_tz_ns_unit[-01:00-True-2019-01-01T01:00:00.000Z] PASSED 3481s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_arg_tz_ns_unit[-01:00-None-2019-01-01T00:00:00.000-01:00] PASSED 3481s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestShouldCache::test_should_cache[listlike0-False] PASSED 3481s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestShouldCache::test_should_cache[listlike1-True] PASSED 3481s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestShouldCache::test_should_cache_errors[0.5-11-check_count must be in next bounds: \\[0; len\\(arg\\)\\]] PASSED 3481s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestShouldCache::test_should_cache_errors[10-2-unique_share must be in next bounds: \\(0; 1\\)] PASSED 3481s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestShouldCache::test_no_slicing_errors_in_should_cache[listlike0] PASSED 3482s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestShouldCache::test_no_slicing_errors_in_should_cache[listlike1] PASSED 3482s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestShouldCache::test_no_slicing_errors_in_should_cache[listlike2] PASSED 3482s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_nullable_integer_to_datetime PASSED 3482s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_na_to_datetime[NoneType-array] PASSED 3482s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_na_to_datetime[NoneType-list] PASSED 3482s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_na_to_datetime[float0-array] PASSED 3482s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_na_to_datetime[float0-list] PASSED 3482s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_na_to_datetime[NaTType-array] PASSED 3482s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_na_to_datetime[NaTType-list] PASSED 3482s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_na_to_datetime[float1-array] PASSED 3482s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_na_to_datetime[float1-list] PASSED 3482s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_na_to_datetime[NAType-array] PASSED 3482s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_na_to_datetime[NAType-list] PASSED 3482s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_na_to_datetime[Decimal-array] PASSED 3482s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_na_to_datetime[Decimal-list] PASSED 3482s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_empty_string_datetime[non-ISO8601-raise] PASSED 3482s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_empty_string_datetime[non-ISO8601-coerce] PASSED 3482s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_empty_string_datetime[non-ISO8601-ignore] PASSED 3483s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_empty_string_datetime[ISO8601-raise] PASSED 3483s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_empty_string_datetime[ISO8601-coerce] PASSED 3483s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_empty_string_datetime[ISO8601-ignore] PASSED 3483s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_empty_string_datetime_coerce__unit PASSED 3483s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_to_datetime_monotonic_increasing_index[True] PASSED 3483s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_to_datetime_monotonic_increasing_index[False] PASSED 3483s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_to_datetime_cache_coerce_50_lines_outofbounds[40] PASSED 3483s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_to_datetime_cache_coerce_50_lines_outofbounds[50] PASSED 3483s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_to_datetime_cache_coerce_50_lines_outofbounds[51] PASSED 3483s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_to_datetime_cache_coerce_50_lines_outofbounds[55] PASSED 3483s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_to_datetime_format_f_parse_nanos PASSED 3483s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_to_datetime_mixed_iso8601 PASSED 3483s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_to_datetime_mixed_other PASSED 3483s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_to_datetime_mixed_or_iso_exact[ISO8601-True] PASSED 3484s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_to_datetime_mixed_or_iso_exact[ISO8601-False] PASSED 3485s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_to_datetime_mixed_or_iso_exact[mixed-True] PASSED 3486s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_to_datetime_mixed_or_iso_exact[mixed-False] PASSED 3487s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_to_datetime_mixed_not_necessarily_iso8601_raise PASSED 3488s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_to_datetime_mixed_not_necessarily_iso8601_coerce[coerce-expected0] PASSED 3488s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_to_datetime_mixed_not_necessarily_iso8601_coerce[ignore-expected1] PASSED 3489s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_ignoring_unknown_tz_deprecated PASSED 3490s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_from_numeric_arrow_dtype[UInt8] SKIPPED 3490s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_from_numeric_arrow_dtype[UInt16] SKIPPED 3490s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_from_numeric_arrow_dtype[UInt32] SKIPPED 3490s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_from_numeric_arrow_dtype[UInt64] SKIPPED 3490s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_from_numeric_arrow_dtype[Int8] SKIPPED 3491s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_from_numeric_arrow_dtype[Int16] SKIPPED 3491s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_from_numeric_arrow_dtype[Int32] SKIPPED 3491s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_from_numeric_arrow_dtype[Int64] SKIPPED 3492s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_from_numeric_arrow_dtype[Float32] SKIPPED 3492s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_from_numeric_arrow_dtype[Float64] SKIPPED 3494s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_to_datetime_with_empty_str_utc_false_format_mixed PASSED 3499s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_to_datetime_with_empty_str_utc_false_offsets_and_format_mixed PASSED 3499s 3499s =================================== FAILURES =================================== 3499s _________________ test_dataframe_to_sql[mysql_pymysql_engine] __________________ 3499s self = , sock = None 3499s 3499s def connect(self, sock=None): 3499s self._closed = False 3499s try: 3499s if sock is None: 3499s if self.unix_socket: 3499s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3499s sock.settimeout(self.connect_timeout) 3499s sock.connect(self.unix_socket) 3499s self.host_info = "Localhost via UNIX socket" 3499s self._secure = True 3499s if DEBUG: 3499s print("connected using unix_socket") 3499s else: 3499s kwargs = {} 3499s if self.bind_address is not None: 3499s kwargs["source_address"] = (self.bind_address, 0) 3499s while True: 3499s try: 3499s > sock = socket.create_connection( 3499s (self.host, self.port), self.connect_timeout, **kwargs 3499s ) 3499s 3499s /usr/lib/python3/dist-packages/pymysql/connections.py:649: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s address = ('localhost', 3306), timeout = 10, source_address = None 3499s 3499s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 3499s source_address=None, *, all_errors=False): 3499s """Connect to *address* and return the socket object. 3499s 3499s Convenience function. Connect to *address* (a 2-tuple ``(host, 3499s port)``) and return the socket object. Passing the optional 3499s *timeout* parameter will set the timeout on the socket instance 3499s before attempting to connect. If no *timeout* is supplied, the 3499s global default timeout setting returned by :func:`getdefaulttimeout` 3499s is used. If *source_address* is set it must be a tuple of (host, port) 3499s for the socket to bind as a source address before making the connection. 3499s A host of '' or port 0 tells the OS to use the default. When a connection 3499s cannot be created, raises the last error if *all_errors* is False, 3499s and an ExceptionGroup of all errors if *all_errors* is True. 3499s """ 3499s 3499s host, port = address 3499s exceptions = [] 3499s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 3499s af, socktype, proto, canonname, sa = res 3499s sock = None 3499s try: 3499s sock = socket(af, socktype, proto) 3499s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 3499s sock.settimeout(timeout) 3499s if source_address: 3499s sock.bind(source_address) 3499s sock.connect(sa) 3499s # Break explicitly a reference cycle 3499s exceptions.clear() 3499s return sock 3499s 3499s except error as exc: 3499s if not all_errors: 3499s exceptions.clear() # raise only the last error 3499s exceptions.append(exc) 3499s if sock is not None: 3499s sock.close() 3499s 3499s if len(exceptions): 3499s try: 3499s if not all_errors: 3499s > raise exceptions[0] 3499s 3499s /usr/lib/python3.12/socket.py:853: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s address = ('localhost', 3306), timeout = 10, source_address = None 3499s 3499s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 3499s source_address=None, *, all_errors=False): 3499s """Connect to *address* and return the socket object. 3499s 3499s Convenience function. Connect to *address* (a 2-tuple ``(host, 3499s port)``) and return the socket object. Passing the optional 3499s *timeout* parameter will set the timeout on the socket instance 3499s before attempting to connect. If no *timeout* is supplied, the 3499s global default timeout setting returned by :func:`getdefaulttimeout` 3499s is used. If *source_address* is set it must be a tuple of (host, port) 3499s for the socket to bind as a source address before making the connection. 3499s A host of '' or port 0 tells the OS to use the default. When a connection 3499s cannot be created, raises the last error if *all_errors* is False, 3499s and an ExceptionGroup of all errors if *all_errors* is True. 3499s """ 3499s 3499s host, port = address 3499s exceptions = [] 3499s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 3499s af, socktype, proto, canonname, sa = res 3499s sock = None 3499s try: 3499s sock = socket(af, socktype, proto) 3499s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 3499s sock.settimeout(timeout) 3499s if source_address: 3499s sock.bind(source_address) 3499s > sock.connect(sa) 3499s E ConnectionRefusedError: [Errno 111] Connection refused 3499s 3499s /usr/lib/python3.12/socket.py:838: ConnectionRefusedError 3499s 3499s During handling of the above exception, another exception occurred: 3499s 3499s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3499s fn = > 3499s connection = None 3499s 3499s def _wrap_pool_connect(self, fn, connection): 3499s dialect = self.dialect 3499s try: 3499s > return fn() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def connect(self): 3499s """Return a DBAPI connection from the pool. 3499s 3499s The connection is instrumented such that when its 3499s ``close()`` method is called, the connection will be returned to 3499s the pool. 3499s 3499s """ 3499s > return _ConnectionFairy._checkout(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s pool = , threadconns = None 3499s fairy = None 3499s 3499s @classmethod 3499s def _checkout(cls, pool, threadconns=None, fairy=None): 3499s if not fairy: 3499s > fairy = _ConnectionRecord.checkout(pool) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s pool = 3499s 3499s @classmethod 3499s def checkout(cls, pool): 3499s > rec = pool._do_get() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def _do_get(self): 3499s > return self._create_connection() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def _create_connection(self): 3499s """Called by subclasses to create a new ConnectionRecord.""" 3499s 3499s > return _ConnectionRecord(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s pool = , connect = True 3499s 3499s def __init__(self, pool, connect=True): 3499s self.__pool = pool 3499s if connect: 3499s > self.__connect() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def __connect(self): 3499s pool = self.__pool 3499s 3499s # ensure any existing connection is removed, so that if 3499s # creator fails, this attribute stays None 3499s self.dbapi_connection = None 3499s try: 3499s self.starttime = time.time() 3499s self.dbapi_connection = connection = pool._invoke_creator(self) 3499s pool.logger.debug("Created new connection %r", connection) 3499s self.fresh = True 3499s except BaseException as e: 3499s > with util.safe_reraise(): 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s type_ = None, value = None, traceback = None 3499s 3499s def __exit__(self, type_, value, traceback): 3499s # see #2703 for notes 3499s if type_ is None: 3499s exc_type, exc_value, exc_tb = self._exc_info 3499s self._exc_info = None # remove potential circular references 3499s if not self.warn_only: 3499s > compat.raise_( 3499s exc_value, 3499s with_traceback=exc_tb, 3499s ) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s def raise_( 3499s exception, with_traceback=None, replace_context=None, from_=False 3499s ): 3499s r"""implement "raise" with cause support. 3499s 3499s :param exception: exception to raise 3499s :param with_traceback: will call exception.with_traceback() 3499s :param replace_context: an as-yet-unsupported feature. This is 3499s an exception object which we are "replacing", e.g., it's our 3499s "cause" but we don't want it printed. Basically just what 3499s ``__suppress_context__`` does but we don't want to suppress 3499s the enclosing context, if any. So for now we make it the 3499s cause. 3499s :param from\_: the cause. this actually sets the cause and doesn't 3499s hope to hide it someday. 3499s 3499s """ 3499s if with_traceback is not None: 3499s exception = exception.with_traceback(with_traceback) 3499s 3499s if from_ is not False: 3499s exception.__cause__ = from_ 3499s elif replace_context is not None: 3499s # no good solution here, we would like to have the exception 3499s # have only the context of replace_context.__context__ so that the 3499s # intermediary exception does not change, but we can't figure 3499s # that out. 3499s exception.__cause__ = replace_context 3499s 3499s try: 3499s > raise exception 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def __connect(self): 3499s pool = self.__pool 3499s 3499s # ensure any existing connection is removed, so that if 3499s # creator fails, this attribute stays None 3499s self.dbapi_connection = None 3499s try: 3499s self.starttime = time.time() 3499s > self.dbapi_connection = connection = pool._invoke_creator(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s connection_record = 3499s 3499s def connect(connection_record=None): 3499s if dialect._has_events: 3499s for fn in dialect.dispatch.do_connect: 3499s connection = fn(dialect, connection_record, cargs, cparams) 3499s if connection is not None: 3499s return connection 3499s > return dialect.connect(*cargs, **cparams) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s cargs = () 3499s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 3499s 3499s def connect(self, *cargs, **cparams): 3499s # inherits the docstring from interfaces.Dialect.connect 3499s > return self.dbapi.connect(*cargs, **cparams) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def __init__( 3499s self, 3499s *, 3499s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 3499s password="", 3499s host=None, 3499s database=None, 3499s unix_socket=None, 3499s port=0, 3499s charset="", 3499s collation=None, 3499s sql_mode=None, 3499s read_default_file=None, 3499s conv=None, 3499s use_unicode=True, 3499s client_flag=0, 3499s cursorclass=Cursor, 3499s init_command=None, 3499s connect_timeout=10, 3499s read_default_group=None, 3499s autocommit=False, 3499s local_infile=False, 3499s max_allowed_packet=16 * 1024 * 1024, 3499s defer_connect=False, 3499s auth_plugin_map=None, 3499s read_timeout=None, 3499s write_timeout=None, 3499s bind_address=None, 3499s binary_prefix=False, 3499s program_name=None, 3499s server_public_key=None, 3499s ssl=None, 3499s ssl_ca=None, 3499s ssl_cert=None, 3499s ssl_disabled=None, 3499s ssl_key=None, 3499s ssl_key_password=None, 3499s ssl_verify_cert=None, 3499s ssl_verify_identity=None, 3499s compress=None, # not supported 3499s named_pipe=None, # not supported 3499s passwd=None, # deprecated 3499s db=None, # deprecated 3499s ): 3499s if db is not None and database is None: 3499s # We will raise warning in 2022 or later. 3499s # See https://github.com/PyMySQL/PyMySQL/issues/939 3499s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 3499s database = db 3499s if passwd is not None and not password: 3499s # We will raise warning in 2022 or later. 3499s # See https://github.com/PyMySQL/PyMySQL/issues/939 3499s # warnings.warn( 3499s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 3499s # ) 3499s password = passwd 3499s 3499s if compress or named_pipe: 3499s raise NotImplementedError( 3499s "compress and named_pipe arguments are not supported" 3499s ) 3499s 3499s self._local_infile = bool(local_infile) 3499s if self._local_infile: 3499s client_flag |= CLIENT.LOCAL_FILES 3499s 3499s if read_default_group and not read_default_file: 3499s if sys.platform.startswith("win"): 3499s read_default_file = "c:\\my.ini" 3499s else: 3499s read_default_file = "/etc/my.cnf" 3499s 3499s if read_default_file: 3499s if not read_default_group: 3499s read_default_group = "client" 3499s 3499s cfg = Parser() 3499s cfg.read(os.path.expanduser(read_default_file)) 3499s 3499s def _config(key, arg): 3499s if arg: 3499s return arg 3499s try: 3499s return cfg.get(read_default_group, key) 3499s except Exception: 3499s return arg 3499s 3499s user = _config("user", user) 3499s password = _config("password", password) 3499s host = _config("host", host) 3499s database = _config("database", database) 3499s unix_socket = _config("socket", unix_socket) 3499s port = int(_config("port", port)) 3499s bind_address = _config("bind-address", bind_address) 3499s charset = _config("default-character-set", charset) 3499s if not ssl: 3499s ssl = {} 3499s if isinstance(ssl, dict): 3499s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 3499s value = _config("ssl-" + key, ssl.get(key)) 3499s if value: 3499s ssl[key] = value 3499s 3499s self.ssl = False 3499s if not ssl_disabled: 3499s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 3499s ssl = { 3499s "ca": ssl_ca, 3499s "check_hostname": bool(ssl_verify_identity), 3499s "verify_mode": ssl_verify_cert 3499s if ssl_verify_cert is not None 3499s else False, 3499s } 3499s if ssl_cert is not None: 3499s ssl["cert"] = ssl_cert 3499s if ssl_key is not None: 3499s ssl["key"] = ssl_key 3499s if ssl_key_password is not None: 3499s ssl["password"] = ssl_key_password 3499s if ssl: 3499s if not SSL_ENABLED: 3499s raise NotImplementedError("ssl module not found") 3499s self.ssl = True 3499s client_flag |= CLIENT.SSL 3499s self.ctx = self._create_ssl_ctx(ssl) 3499s 3499s self.host = host or "localhost" 3499s self.port = port or 3306 3499s if type(self.port) is not int: 3499s raise ValueError("port should be of type int") 3499s self.user = user or DEFAULT_USER 3499s self.password = password or b"" 3499s if isinstance(self.password, str): 3499s self.password = self.password.encode("latin1") 3499s self.db = database 3499s self.unix_socket = unix_socket 3499s self.bind_address = bind_address 3499s if not (0 < connect_timeout <= 31536000): 3499s raise ValueError("connect_timeout should be >0 and <=31536000") 3499s self.connect_timeout = connect_timeout or None 3499s if read_timeout is not None and read_timeout <= 0: 3499s raise ValueError("read_timeout should be > 0") 3499s self._read_timeout = read_timeout 3499s if write_timeout is not None and write_timeout <= 0: 3499s raise ValueError("write_timeout should be > 0") 3499s self._write_timeout = write_timeout 3499s 3499s self.charset = charset or DEFAULT_CHARSET 3499s self.collation = collation 3499s self.use_unicode = use_unicode 3499s 3499s self.encoding = charset_by_name(self.charset).encoding 3499s 3499s client_flag |= CLIENT.CAPABILITIES 3499s if self.db: 3499s client_flag |= CLIENT.CONNECT_WITH_DB 3499s 3499s self.client_flag = client_flag 3499s 3499s self.cursorclass = cursorclass 3499s 3499s self._result = None 3499s self._affected_rows = 0 3499s self.host_info = "Not connected" 3499s 3499s # specified autocommit mode. None means use server default. 3499s self.autocommit_mode = autocommit 3499s 3499s if conv is None: 3499s conv = converters.conversions 3499s 3499s # Need for MySQLdb compatibility. 3499s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 3499s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 3499s self.sql_mode = sql_mode 3499s self.init_command = init_command 3499s self.max_allowed_packet = max_allowed_packet 3499s self._auth_plugin_map = auth_plugin_map or {} 3499s self._binary_prefix = binary_prefix 3499s self.server_public_key = server_public_key 3499s 3499s self._connect_attrs = { 3499s "_client_name": "pymysql", 3499s "_client_version": VERSION_STRING, 3499s "_pid": str(os.getpid()), 3499s } 3499s 3499s if program_name: 3499s self._connect_attrs["program_name"] = program_name 3499s 3499s if defer_connect: 3499s self._sock = None 3499s else: 3499s > self.connect() 3499s 3499s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = , sock = None 3499s 3499s def connect(self, sock=None): 3499s self._closed = False 3499s try: 3499s if sock is None: 3499s if self.unix_socket: 3499s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3499s sock.settimeout(self.connect_timeout) 3499s sock.connect(self.unix_socket) 3499s self.host_info = "Localhost via UNIX socket" 3499s self._secure = True 3499s if DEBUG: 3499s print("connected using unix_socket") 3499s else: 3499s kwargs = {} 3499s if self.bind_address is not None: 3499s kwargs["source_address"] = (self.bind_address, 0) 3499s while True: 3499s try: 3499s sock = socket.create_connection( 3499s (self.host, self.port), self.connect_timeout, **kwargs 3499s ) 3499s break 3499s except OSError as e: 3499s if e.errno == errno.EINTR: 3499s continue 3499s raise 3499s self.host_info = "socket %s:%d" % (self.host, self.port) 3499s if DEBUG: 3499s print("connected using socket") 3499s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 3499s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 3499s sock.settimeout(None) 3499s 3499s self._sock = sock 3499s self._rfile = sock.makefile("rb") 3499s self._next_seq_id = 0 3499s 3499s self._get_server_information() 3499s self._request_authentication() 3499s 3499s # Send "SET NAMES" query on init for: 3499s # - Ensure charaset (and collation) is set to the server. 3499s # - collation_id in handshake packet may be ignored. 3499s # - If collation is not specified, we don't know what is server's 3499s # default collation for the charset. For example, default collation 3499s # of utf8mb4 is: 3499s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 3499s # - MySQL 8.0: utf8mb4_0900_ai_ci 3499s # 3499s # Reference: 3499s # - https://github.com/PyMySQL/PyMySQL/issues/1092 3499s # - https://github.com/wagtail/wagtail/issues/9477 3499s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 3499s self.set_character_set(self.charset, self.collation) 3499s 3499s if self.sql_mode is not None: 3499s c = self.cursor() 3499s c.execute("SET sql_mode=%s", (self.sql_mode,)) 3499s c.close() 3499s 3499s if self.init_command is not None: 3499s c = self.cursor() 3499s c.execute(self.init_command) 3499s c.close() 3499s 3499s if self.autocommit_mode is not None: 3499s self.autocommit(self.autocommit_mode) 3499s except BaseException as e: 3499s self._rfile = None 3499s if sock is not None: 3499s try: 3499s sock.close() 3499s except: # noqa 3499s pass 3499s 3499s if isinstance(e, (OSError, IOError)): 3499s exc = err.OperationalError( 3499s CR.CR_CONN_HOST_ERROR, 3499s f"Can't connect to MySQL server on {self.host!r} ({e})", 3499s ) 3499s # Keep original exception and traceback to investigate error. 3499s exc.original_exception = e 3499s exc.traceback = traceback.format_exc() 3499s if DEBUG: 3499s print(exc.traceback) 3499s > raise exc 3499s E pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3499s 3499s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 3499s 3499s The above exception was the direct cause of the following exception: 3499s 3499s conn = 'mysql_pymysql_engine' 3499s test_frame1 = index A B C D 3499s 0 2000-01-03 00:00:00 0.980269 3.685731 -0.364217 -1...0-01-05 00:00:00 0.498581 0.731168 -0.537677 1.346270 3499s 3 2000-01-06 00:00:00 1.120202 1.567621 0.003641 0.675253 3499s request = > 3499s 3499s @pytest.mark.db 3499s @pytest.mark.parametrize("conn", all_connectable) 3499s def test_dataframe_to_sql(conn, test_frame1, request): 3499s # GH 51086 if conn is sqlite_engine 3499s > conn = request.getfixturevalue(conn) 3499s 3499s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:550: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = > 3499s argname = 'mysql_pymysql_engine' 3499s 3499s def getfixturevalue(self, argname: str) -> Any: 3499s """Dynamically run a named fixture function. 3499s 3499s Declaring fixtures via function argument is recommended where possible. 3499s But if you can only decide whether to use another fixture at test 3499s setup time, you may use this function to retrieve it inside a fixture 3499s or test function body. 3499s 3499s This method can be used during the test setup phase or the test run 3499s phase, but during the test teardown phase a fixture's value may not 3499s be available. 3499s 3499s :param argname: 3499s The fixture name. 3499s :raises pytest.FixtureLookupError: 3499s If the given fixture could not be found. 3499s """ 3499s > fixturedef = self._get_active_fixturedef(argname) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:585: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = > 3499s argname = 'mysql_pymysql_engine' 3499s 3499s def _get_active_fixturedef( 3499s self, argname: str 3499s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3499s try: 3499s return self._fixture_defs[argname] 3499s except KeyError: 3499s try: 3499s fixturedef = self._getnextfixturedef(argname) 3499s except FixtureLookupError: 3499s if argname == "request": 3499s cached_result = (self, [0], None) 3499s return PseudoFixtureDef(cached_result, Scope.Function) 3499s raise 3499s # Remove indent to prevent the python3 exception 3499s # from leaking into the call. 3499s > self._compute_fixture_value(fixturedef) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = > 3499s fixturedef = 3499s 3499s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3499s """Create a SubRequest based on "self" and call the execute method 3499s of the given FixtureDef object. 3499s 3499s This will force the FixtureDef object to throw away any previous 3499s results and compute a new fixture value, which will be stored into 3499s the FixtureDef object itself. 3499s """ 3499s # prepare a subrequest object before calling fixture function 3499s # (latter managed by fixturedef) 3499s argname = fixturedef.argname 3499s funcitem = self._pyfuncitem 3499s scope = fixturedef._scope 3499s try: 3499s callspec = funcitem.callspec 3499s except AttributeError: 3499s callspec = None 3499s if callspec is not None and argname in callspec.params: 3499s param = callspec.params[argname] 3499s param_index = callspec.indices[argname] 3499s # If a parametrize invocation set a scope it will override 3499s # the static scope defined with the fixture function. 3499s with suppress(KeyError): 3499s scope = callspec._arg2scope[argname] 3499s else: 3499s param = NOTSET 3499s param_index = 0 3499s has_params = fixturedef.params is not None 3499s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3499s if has_params and fixtures_not_supported: 3499s msg = ( 3499s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3499s "Node id: {nodeid}\n" 3499s "Function type: {typename}" 3499s ).format( 3499s name=funcitem.name, 3499s nodeid=funcitem.nodeid, 3499s typename=type(funcitem).__name__, 3499s ) 3499s fail(msg, pytrace=False) 3499s if has_params: 3499s frame = inspect.stack()[3] 3499s frameinfo = inspect.getframeinfo(frame[0]) 3499s source_path = absolutepath(frameinfo.filename) 3499s source_lineno = frameinfo.lineno 3499s try: 3499s source_path_str = str( 3499s source_path.relative_to(funcitem.config.rootpath) 3499s ) 3499s except ValueError: 3499s source_path_str = str(source_path) 3499s msg = ( 3499s "The requested fixture has no parameter defined for test:\n" 3499s " {}\n\n" 3499s "Requested fixture '{}' defined in:\n{}" 3499s "\n\nRequested here:\n{}:{}".format( 3499s funcitem.nodeid, 3499s fixturedef.argname, 3499s getlocation(fixturedef.func, funcitem.config.rootpath), 3499s source_path_str, 3499s source_lineno, 3499s ) 3499s ) 3499s fail(msg, pytrace=False) 3499s 3499s subrequest = SubRequest( 3499s self, scope, param, param_index, fixturedef, _ispytest=True 3499s ) 3499s 3499s # Check if a higher-level scoped fixture accesses a lower level one. 3499s subrequest._check_scope(argname, self._scope, scope) 3499s try: 3499s # Call the fixture function. 3499s > fixturedef.execute(request=subrequest) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s request = > 3499s 3499s def execute(self, request: SubRequest) -> FixtureValue: 3499s # Get required arguments and register our own finish() 3499s # with their finalization. 3499s for argname in self.argnames: 3499s fixturedef = request._get_active_fixturedef(argname) 3499s if argname != "request": 3499s # PseudoFixtureDef is only for "request". 3499s assert isinstance(fixturedef, FixtureDef) 3499s fixturedef.addfinalizer(functools.partial(self.finish, request=request)) 3499s 3499s my_cache_key = self.cache_key(request) 3499s if self.cached_result is not None: 3499s # note: comparison with `==` can fail (or be expensive) for e.g. 3499s # numpy arrays (#6497). 3499s cache_key = self.cached_result[1] 3499s if my_cache_key is cache_key: 3499s if self.cached_result[2] is not None: 3499s _, val, tb = self.cached_result[2] 3499s raise val.with_traceback(tb) 3499s else: 3499s result = self.cached_result[0] 3499s return result 3499s # We have a previous but differently parametrized fixture instance 3499s # so we need to tear it down before creating a new one. 3499s self.finish(request) 3499s assert self.cached_result is None 3499s 3499s ihook = request.node.ihook 3499s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1069: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s kwargs = {'fixturedef': , 'request': >} 3499s firstresult = True 3499s 3499s def __call__(self, **kwargs: object) -> Any: 3499s """Call the hook. 3499s 3499s Only accepts keyword arguments, which should match the hook 3499s specification. 3499s 3499s Returns the result(s) of calling all registered plugins, see 3499s :ref:`calling`. 3499s """ 3499s assert ( 3499s not self.is_historic() 3499s ), "Cannot directly call a historic hook - use call_historic instead." 3499s self._verify_all_args_are_provided(kwargs) 3499s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 3499s # Copy because plugins may register other plugins during iteration (#438). 3499s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 3499s 3499s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = <_pytest.config.PytestPluginManager object at 0xe9079168> 3499s hook_name = 'pytest_fixture_setup' 3499s methods = [>] 3499s kwargs = {'fixturedef': , 'request': >} 3499s firstresult = True 3499s 3499s def _hookexec( 3499s self, 3499s hook_name: str, 3499s methods: Sequence[HookImpl], 3499s kwargs: Mapping[str, object], 3499s firstresult: bool, 3499s ) -> object | list[object]: 3499s # called from all hookcaller instances. 3499s # enable_tracing will set its own wrapping function at self._inner_hookexec 3499s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 3499s 3499s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s fixturedef = 3499s request = > 3499s 3499s def pytest_fixture_setup( 3499s fixturedef: FixtureDef[FixtureValue], request: SubRequest 3499s ) -> FixtureValue: 3499s """Execution of fixture setup.""" 3499s kwargs = {} 3499s for argname in fixturedef.argnames: 3499s fixdef = request._get_active_fixturedef(argname) 3499s assert fixdef.cached_result is not None 3499s result, arg_cache_key, exc = fixdef.cached_result 3499s request._check_scope(argname, request._scope, fixdef._scope) 3499s kwargs[argname] = result 3499s 3499s fixturefunc = resolve_fixture_function(fixturedef, request) 3499s my_cache_key = fixturedef.cache_key(request) 3499s try: 3499s > result = call_fixture_func(fixturefunc, request, kwargs) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1123: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s fixturefunc = 3499s request = > 3499s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv'), 'types_data': [{'B... False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}]} 3499s 3499s def call_fixture_func( 3499s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 3499s ) -> FixtureValue: 3499s if is_generator(fixturefunc): 3499s fixturefunc = cast( 3499s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 3499s ) 3499s generator = fixturefunc(**kwargs) 3499s try: 3499s > fixture_result = next(generator) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:895: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s iris_path = PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv') 3499s types_data = [{'BoolCol': False, 'BoolColWithNull': False, 'DateCol': '2000-01-03 00:00:00', 'DateColWithTz': '2000-01-01 00:00:00-...: False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}] 3499s 3499s @pytest.fixture 3499s def mysql_pymysql_engine(iris_path, types_data): 3499s sqlalchemy = pytest.importorskip("sqlalchemy") 3499s pymysql = pytest.importorskip("pymysql") 3499s engine = sqlalchemy.create_engine( 3499s "mysql+pymysql://root@localhost:3306/pandas", 3499s connect_args={"client_flag": pymysql.constants.CLIENT.MULTI_STATEMENTS}, 3499s poolclass=sqlalchemy.pool.NullPool, 3499s ) 3499s > insp = sqlalchemy.inspect(engine) 3499s 3499s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:409: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s subject = Engine(mysql+pymysql://root@localhost:3306/pandas), raiseerr = True 3499s 3499s def inspect(subject, raiseerr=True): 3499s """Produce an inspection object for the given target. 3499s 3499s The returned value in some cases may be the 3499s same object as the one given, such as if a 3499s :class:`_orm.Mapper` object is passed. In other 3499s cases, it will be an instance of the registered 3499s inspection type for the given object, such as 3499s if an :class:`_engine.Engine` is passed, an 3499s :class:`_reflection.Inspector` object is returned. 3499s 3499s :param subject: the subject to be inspected. 3499s :param raiseerr: When ``True``, if the given subject 3499s does not 3499s correspond to a known SQLAlchemy inspected type, 3499s :class:`sqlalchemy.exc.NoInspectionAvailable` 3499s is raised. If ``False``, ``None`` is returned. 3499s 3499s """ 3499s type_ = type(subject) 3499s for cls in type_.__mro__: 3499s if cls in _registrars: 3499s reg = _registrars[cls] 3499s if reg is True: 3499s return subject 3499s > ret = reg(subject) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:64: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 3499s 3499s @inspection._inspects(Engine) 3499s def _engine_insp(bind): 3499s > return Inspector._construct(Inspector._init_engine, bind) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:182: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s init = 3499s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 3499s 3499s @classmethod 3499s def _construct(cls, init, bind): 3499s 3499s if hasattr(bind.dialect, "inspector"): 3499s cls = bind.dialect.inspector 3499s 3499s self = cls.__new__(cls) 3499s > init(self, bind) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:117: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 3499s 3499s def _init_engine(self, engine): 3499s self.bind = self.engine = engine 3499s > engine.connect().close() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:128: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3499s close_with_result = False 3499s 3499s def connect(self, close_with_result=False): 3499s """Return a new :class:`_engine.Connection` object. 3499s 3499s The :class:`_engine.Connection` object is a facade that uses a DBAPI 3499s connection internally in order to communicate with the database. This 3499s connection is procured from the connection-holding :class:`_pool.Pool` 3499s referenced by this :class:`_engine.Engine`. When the 3499s :meth:`_engine.Connection.close` method of the 3499s :class:`_engine.Connection` object 3499s is called, the underlying DBAPI connection is then returned to the 3499s connection pool, where it may be used again in a subsequent call to 3499s :meth:`_engine.Engine.connect`. 3499s 3499s """ 3499s 3499s > return self._connection_cls(self, close_with_result=close_with_result) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3325: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 3499s close_with_result = False, _branch_from = None, _execution_options = None 3499s _dispatch = None, _has_events = None, _allow_revalidate = True 3499s 3499s def __init__( 3499s self, 3499s engine, 3499s connection=None, 3499s close_with_result=False, 3499s _branch_from=None, 3499s _execution_options=None, 3499s _dispatch=None, 3499s _has_events=None, 3499s _allow_revalidate=True, 3499s ): 3499s """Construct a new Connection.""" 3499s self.engine = engine 3499s self.dialect = engine.dialect 3499s self.__branch_from = _branch_from 3499s 3499s if _branch_from: 3499s # branching is always "from" the root connection 3499s assert _branch_from.__branch_from is None 3499s self._dbapi_connection = connection 3499s self._execution_options = _execution_options 3499s self._echo = _branch_from._echo 3499s self.should_close_with_result = False 3499s self.dispatch = _dispatch 3499s self._has_events = _branch_from._has_events 3499s else: 3499s self._dbapi_connection = ( 3499s connection 3499s if connection is not None 3499s > else engine.raw_connection() 3499s ) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:96: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = Engine(mysql+pymysql://root@localhost:3306/pandas), _connection = None 3499s 3499s def raw_connection(self, _connection=None): 3499s """Return a "raw" DBAPI connection from the connection pool. 3499s 3499s The returned object is a proxied version of the DBAPI 3499s connection object used by the underlying driver in use. 3499s The object will have all the same behavior as the real DBAPI 3499s connection, except that its ``close()`` method will result in the 3499s connection being returned to the pool, rather than being closed 3499s for real. 3499s 3499s This method provides direct DBAPI connection access for 3499s special situations when the API provided by 3499s :class:`_engine.Connection` 3499s is not needed. When a :class:`_engine.Connection` object is already 3499s present, the DBAPI connection is available using 3499s the :attr:`_engine.Connection.connection` accessor. 3499s 3499s .. seealso:: 3499s 3499s :ref:`dbapi_connections` 3499s 3499s """ 3499s > return self._wrap_pool_connect(self.pool.connect, _connection) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3404: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3499s fn = > 3499s connection = None 3499s 3499s def _wrap_pool_connect(self, fn, connection): 3499s dialect = self.dialect 3499s try: 3499s return fn() 3499s except dialect.dbapi.Error as e: 3499s if connection is None: 3499s > Connection._handle_dbapi_exception_noconnection( 3499s e, dialect, self 3499s ) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3374: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s e = OperationalError(2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3499s dialect = 3499s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 3499s 3499s @classmethod 3499s def _handle_dbapi_exception_noconnection(cls, e, dialect, engine): 3499s exc_info = sys.exc_info() 3499s 3499s is_disconnect = dialect.is_disconnect(e, None, None) 3499s 3499s should_wrap = isinstance(e, dialect.dbapi.Error) 3499s 3499s if should_wrap: 3499s sqlalchemy_exception = exc.DBAPIError.instance( 3499s None, 3499s None, 3499s e, 3499s dialect.dbapi.Error, 3499s hide_parameters=engine.hide_parameters, 3499s connection_invalidated=is_disconnect, 3499s ) 3499s else: 3499s sqlalchemy_exception = None 3499s 3499s newraise = None 3499s 3499s if engine._has_events: 3499s ctx = ExceptionContextImpl( 3499s e, 3499s sqlalchemy_exception, 3499s engine, 3499s None, 3499s None, 3499s None, 3499s None, 3499s None, 3499s is_disconnect, 3499s True, 3499s ) 3499s for fn in engine.dispatch.handle_error: 3499s try: 3499s # handler returns an exception; 3499s # call next handler in a chain 3499s per_fn = fn(ctx) 3499s if per_fn is not None: 3499s ctx.chained_exception = newraise = per_fn 3499s except Exception as _raised: 3499s # handler raises an exception - stop processing 3499s newraise = _raised 3499s break 3499s 3499s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 3499s sqlalchemy_exception.connection_invalidated = ( 3499s is_disconnect 3499s ) = ctx.is_disconnect 3499s 3499s if newraise: 3499s util.raise_(newraise, with_traceback=exc_info[2], from_=e) 3499s elif should_wrap: 3499s > util.raise_( 3499s sqlalchemy_exception, with_traceback=exc_info[2], from_=e 3499s ) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2208: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s def raise_( 3499s exception, with_traceback=None, replace_context=None, from_=False 3499s ): 3499s r"""implement "raise" with cause support. 3499s 3499s :param exception: exception to raise 3499s :param with_traceback: will call exception.with_traceback() 3499s :param replace_context: an as-yet-unsupported feature. This is 3499s an exception object which we are "replacing", e.g., it's our 3499s "cause" but we don't want it printed. Basically just what 3499s ``__suppress_context__`` does but we don't want to suppress 3499s the enclosing context, if any. So for now we make it the 3499s cause. 3499s :param from\_: the cause. this actually sets the cause and doesn't 3499s hope to hide it someday. 3499s 3499s """ 3499s if with_traceback is not None: 3499s exception = exception.with_traceback(with_traceback) 3499s 3499s if from_ is not False: 3499s exception.__cause__ = from_ 3499s elif replace_context is not None: 3499s # no good solution here, we would like to have the exception 3499s # have only the context of replace_context.__context__ so that the 3499s # intermediary exception does not change, but we can't figure 3499s # that out. 3499s exception.__cause__ = replace_context 3499s 3499s try: 3499s > raise exception 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3499s fn = > 3499s connection = None 3499s 3499s def _wrap_pool_connect(self, fn, connection): 3499s dialect = self.dialect 3499s try: 3499s > return fn() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def connect(self): 3499s """Return a DBAPI connection from the pool. 3499s 3499s The connection is instrumented such that when its 3499s ``close()`` method is called, the connection will be returned to 3499s the pool. 3499s 3499s """ 3499s > return _ConnectionFairy._checkout(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s pool = , threadconns = None 3499s fairy = None 3499s 3499s @classmethod 3499s def _checkout(cls, pool, threadconns=None, fairy=None): 3499s if not fairy: 3499s > fairy = _ConnectionRecord.checkout(pool) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s pool = 3499s 3499s @classmethod 3499s def checkout(cls, pool): 3499s > rec = pool._do_get() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def _do_get(self): 3499s > return self._create_connection() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def _create_connection(self): 3499s """Called by subclasses to create a new ConnectionRecord.""" 3499s 3499s > return _ConnectionRecord(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s pool = , connect = True 3499s 3499s def __init__(self, pool, connect=True): 3499s self.__pool = pool 3499s if connect: 3499s > self.__connect() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def __connect(self): 3499s pool = self.__pool 3499s 3499s # ensure any existing connection is removed, so that if 3499s # creator fails, this attribute stays None 3499s self.dbapi_connection = None 3499s try: 3499s self.starttime = time.time() 3499s self.dbapi_connection = connection = pool._invoke_creator(self) 3499s pool.logger.debug("Created new connection %r", connection) 3499s self.fresh = True 3499s except BaseException as e: 3499s > with util.safe_reraise(): 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s type_ = None, value = None, traceback = None 3499s 3499s def __exit__(self, type_, value, traceback): 3499s # see #2703 for notes 3499s if type_ is None: 3499s exc_type, exc_value, exc_tb = self._exc_info 3499s self._exc_info = None # remove potential circular references 3499s if not self.warn_only: 3499s > compat.raise_( 3499s exc_value, 3499s with_traceback=exc_tb, 3499s ) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s def raise_( 3499s exception, with_traceback=None, replace_context=None, from_=False 3499s ): 3499s r"""implement "raise" with cause support. 3499s 3499s :param exception: exception to raise 3499s :param with_traceback: will call exception.with_traceback() 3499s :param replace_context: an as-yet-unsupported feature. This is 3499s an exception object which we are "replacing", e.g., it's our 3499s "cause" but we don't want it printed. Basically just what 3499s ``__suppress_context__`` does but we don't want to suppress 3499s the enclosing context, if any. So for now we make it the 3499s cause. 3499s :param from\_: the cause. this actually sets the cause and doesn't 3499s hope to hide it someday. 3499s 3499s """ 3499s if with_traceback is not None: 3499s exception = exception.with_traceback(with_traceback) 3499s 3499s if from_ is not False: 3499s exception.__cause__ = from_ 3499s elif replace_context is not None: 3499s # no good solution here, we would like to have the exception 3499s # have only the context of replace_context.__context__ so that the 3499s # intermediary exception does not change, but we can't figure 3499s # that out. 3499s exception.__cause__ = replace_context 3499s 3499s try: 3499s > raise exception 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def __connect(self): 3499s pool = self.__pool 3499s 3499s # ensure any existing connection is removed, so that if 3499s # creator fails, this attribute stays None 3499s self.dbapi_connection = None 3499s try: 3499s self.starttime = time.time() 3499s > self.dbapi_connection = connection = pool._invoke_creator(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s connection_record = 3499s 3499s def connect(connection_record=None): 3499s if dialect._has_events: 3499s for fn in dialect.dispatch.do_connect: 3499s connection = fn(dialect, connection_record, cargs, cparams) 3499s if connection is not None: 3499s return connection 3499s > return dialect.connect(*cargs, **cparams) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s cargs = () 3499s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 3499s 3499s def connect(self, *cargs, **cparams): 3499s # inherits the docstring from interfaces.Dialect.connect 3499s > return self.dbapi.connect(*cargs, **cparams) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def __init__( 3499s self, 3499s *, 3499s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 3499s password="", 3499s host=None, 3499s database=None, 3499s unix_socket=None, 3499s port=0, 3499s charset="", 3499s collation=None, 3499s sql_mode=None, 3499s read_default_file=None, 3499s conv=None, 3499s use_unicode=True, 3499s client_flag=0, 3499s cursorclass=Cursor, 3499s init_command=None, 3499s connect_timeout=10, 3499s read_default_group=None, 3499s autocommit=False, 3499s local_infile=False, 3499s max_allowed_packet=16 * 1024 * 1024, 3499s defer_connect=False, 3499s auth_plugin_map=None, 3499s read_timeout=None, 3499s write_timeout=None, 3499s bind_address=None, 3499s binary_prefix=False, 3499s program_name=None, 3499s server_public_key=None, 3499s ssl=None, 3499s ssl_ca=None, 3499s ssl_cert=None, 3499s ssl_disabled=None, 3499s ssl_key=None, 3499s ssl_key_password=None, 3499s ssl_verify_cert=None, 3499s ssl_verify_identity=None, 3499s compress=None, # not supported 3499s named_pipe=None, # not supported 3499s passwd=None, # deprecated 3499s db=None, # deprecated 3499s ): 3499s if db is not None and database is None: 3499s # We will raise warning in 2022 or later. 3499s # See https://github.com/PyMySQL/PyMySQL/issues/939 3499s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 3499s database = db 3499s if passwd is not None and not password: 3499s # We will raise warning in 2022 or later. 3499s # See https://github.com/PyMySQL/PyMySQL/issues/939 3499s # warnings.warn( 3499s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 3499s # ) 3499s password = passwd 3499s 3499s if compress or named_pipe: 3499s raise NotImplementedError( 3499s "compress and named_pipe arguments are not supported" 3499s ) 3499s 3499s self._local_infile = bool(local_infile) 3499s if self._local_infile: 3499s client_flag |= CLIENT.LOCAL_FILES 3499s 3499s if read_default_group and not read_default_file: 3499s if sys.platform.startswith("win"): 3499s read_default_file = "c:\\my.ini" 3499s else: 3499s read_default_file = "/etc/my.cnf" 3499s 3499s if read_default_file: 3499s if not read_default_group: 3499s read_default_group = "client" 3499s 3499s cfg = Parser() 3499s cfg.read(os.path.expanduser(read_default_file)) 3499s 3499s def _config(key, arg): 3499s if arg: 3499s return arg 3499s try: 3499s return cfg.get(read_default_group, key) 3499s except Exception: 3499s return arg 3499s 3499s user = _config("user", user) 3499s password = _config("password", password) 3499s host = _config("host", host) 3499s database = _config("database", database) 3499s unix_socket = _config("socket", unix_socket) 3499s port = int(_config("port", port)) 3499s bind_address = _config("bind-address", bind_address) 3499s charset = _config("default-character-set", charset) 3499s if not ssl: 3499s ssl = {} 3499s if isinstance(ssl, dict): 3499s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 3499s value = _config("ssl-" + key, ssl.get(key)) 3499s if value: 3499s ssl[key] = value 3499s 3499s self.ssl = False 3499s if not ssl_disabled: 3499s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 3499s ssl = { 3499s "ca": ssl_ca, 3499s "check_hostname": bool(ssl_verify_identity), 3499s "verify_mode": ssl_verify_cert 3499s if ssl_verify_cert is not None 3499s else False, 3499s } 3499s if ssl_cert is not None: 3499s ssl["cert"] = ssl_cert 3499s if ssl_key is not None: 3499s ssl["key"] = ssl_key 3499s if ssl_key_password is not None: 3499s ssl["password"] = ssl_key_password 3499s if ssl: 3499s if not SSL_ENABLED: 3499s raise NotImplementedError("ssl module not found") 3499s self.ssl = True 3499s client_flag |= CLIENT.SSL 3499s self.ctx = self._create_ssl_ctx(ssl) 3499s 3499s self.host = host or "localhost" 3499s self.port = port or 3306 3499s if type(self.port) is not int: 3499s raise ValueError("port should be of type int") 3499s self.user = user or DEFAULT_USER 3499s self.password = password or b"" 3499s if isinstance(self.password, str): 3499s self.password = self.password.encode("latin1") 3499s self.db = database 3499s self.unix_socket = unix_socket 3499s self.bind_address = bind_address 3499s if not (0 < connect_timeout <= 31536000): 3499s raise ValueError("connect_timeout should be >0 and <=31536000") 3499s self.connect_timeout = connect_timeout or None 3499s if read_timeout is not None and read_timeout <= 0: 3499s raise ValueError("read_timeout should be > 0") 3499s self._read_timeout = read_timeout 3499s if write_timeout is not None and write_timeout <= 0: 3499s raise ValueError("write_timeout should be > 0") 3499s self._write_timeout = write_timeout 3499s 3499s self.charset = charset or DEFAULT_CHARSET 3499s self.collation = collation 3499s self.use_unicode = use_unicode 3499s 3499s self.encoding = charset_by_name(self.charset).encoding 3499s 3499s client_flag |= CLIENT.CAPABILITIES 3499s if self.db: 3499s client_flag |= CLIENT.CONNECT_WITH_DB 3499s 3499s self.client_flag = client_flag 3499s 3499s self.cursorclass = cursorclass 3499s 3499s self._result = None 3499s self._affected_rows = 0 3499s self.host_info = "Not connected" 3499s 3499s # specified autocommit mode. None means use server default. 3499s self.autocommit_mode = autocommit 3499s 3499s if conv is None: 3499s conv = converters.conversions 3499s 3499s # Need for MySQLdb compatibility. 3499s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 3499s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 3499s self.sql_mode = sql_mode 3499s self.init_command = init_command 3499s self.max_allowed_packet = max_allowed_packet 3499s self._auth_plugin_map = auth_plugin_map or {} 3499s self._binary_prefix = binary_prefix 3499s self.server_public_key = server_public_key 3499s 3499s self._connect_attrs = { 3499s "_client_name": "pymysql", 3499s "_client_version": VERSION_STRING, 3499s "_pid": str(os.getpid()), 3499s } 3499s 3499s if program_name: 3499s self._connect_attrs["program_name"] = program_name 3499s 3499s if defer_connect: 3499s self._sock = None 3499s else: 3499s > self.connect() 3499s 3499s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = , sock = None 3499s 3499s def connect(self, sock=None): 3499s self._closed = False 3499s try: 3499s if sock is None: 3499s if self.unix_socket: 3499s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3499s sock.settimeout(self.connect_timeout) 3499s sock.connect(self.unix_socket) 3499s self.host_info = "Localhost via UNIX socket" 3499s self._secure = True 3499s if DEBUG: 3499s print("connected using unix_socket") 3499s else: 3499s kwargs = {} 3499s if self.bind_address is not None: 3499s kwargs["source_address"] = (self.bind_address, 0) 3499s while True: 3499s try: 3499s sock = socket.create_connection( 3499s (self.host, self.port), self.connect_timeout, **kwargs 3499s ) 3499s break 3499s except OSError as e: 3499s if e.errno == errno.EINTR: 3499s continue 3499s raise 3499s self.host_info = "socket %s:%d" % (self.host, self.port) 3499s if DEBUG: 3499s print("connected using socket") 3499s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 3499s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 3499s sock.settimeout(None) 3499s 3499s self._sock = sock 3499s self._rfile = sock.makefile("rb") 3499s self._next_seq_id = 0 3499s 3499s self._get_server_information() 3499s self._request_authentication() 3499s 3499s # Send "SET NAMES" query on init for: 3499s # - Ensure charaset (and collation) is set to the server. 3499s # - collation_id in handshake packet may be ignored. 3499s # - If collation is not specified, we don't know what is server's 3499s # default collation for the charset. For example, default collation 3499s # of utf8mb4 is: 3499s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 3499s # - MySQL 8.0: utf8mb4_0900_ai_ci 3499s # 3499s # Reference: 3499s # - https://github.com/PyMySQL/PyMySQL/issues/1092 3499s # - https://github.com/wagtail/wagtail/issues/9477 3499s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 3499s self.set_character_set(self.charset, self.collation) 3499s 3499s if self.sql_mode is not None: 3499s c = self.cursor() 3499s c.execute("SET sql_mode=%s", (self.sql_mode,)) 3499s c.close() 3499s 3499s if self.init_command is not None: 3499s c = self.cursor() 3499s c.execute(self.init_command) 3499s c.close() 3499s 3499s if self.autocommit_mode is not None: 3499s self.autocommit(self.autocommit_mode) 3499s except BaseException as e: 3499s self._rfile = None 3499s if sock is not None: 3499s try: 3499s sock.close() 3499s except: # noqa 3499s pass 3499s 3499s if isinstance(e, (OSError, IOError)): 3499s exc = err.OperationalError( 3499s CR.CR_CONN_HOST_ERROR, 3499s f"Can't connect to MySQL server on {self.host!r} ({e})", 3499s ) 3499s # Keep original exception and traceback to investigate error. 3499s exc.original_exception = e 3499s exc.traceback = traceback.format_exc() 3499s if DEBUG: 3499s print(exc.traceback) 3499s > raise exc 3499s E sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3499s E (Background on this error at: https://sqlalche.me/e/14/e3q8) 3499s 3499s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 3499s __________________ test_dataframe_to_sql[mysql_pymysql_conn] ___________________ 3499s self = , sock = None 3499s 3499s def connect(self, sock=None): 3499s self._closed = False 3499s try: 3499s if sock is None: 3499s if self.unix_socket: 3499s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3499s sock.settimeout(self.connect_timeout) 3499s sock.connect(self.unix_socket) 3499s self.host_info = "Localhost via UNIX socket" 3499s self._secure = True 3499s if DEBUG: 3499s print("connected using unix_socket") 3499s else: 3499s kwargs = {} 3499s if self.bind_address is not None: 3499s kwargs["source_address"] = (self.bind_address, 0) 3499s while True: 3499s try: 3499s > sock = socket.create_connection( 3499s (self.host, self.port), self.connect_timeout, **kwargs 3499s ) 3499s 3499s /usr/lib/python3/dist-packages/pymysql/connections.py:649: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s address = ('localhost', 3306), timeout = 10, source_address = None 3499s 3499s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 3499s source_address=None, *, all_errors=False): 3499s """Connect to *address* and return the socket object. 3499s 3499s Convenience function. Connect to *address* (a 2-tuple ``(host, 3499s port)``) and return the socket object. Passing the optional 3499s *timeout* parameter will set the timeout on the socket instance 3499s before attempting to connect. If no *timeout* is supplied, the 3499s global default timeout setting returned by :func:`getdefaulttimeout` 3499s is used. If *source_address* is set it must be a tuple of (host, port) 3499s for the socket to bind as a source address before making the connection. 3499s A host of '' or port 0 tells the OS to use the default. When a connection 3499s cannot be created, raises the last error if *all_errors* is False, 3499s and an ExceptionGroup of all errors if *all_errors* is True. 3499s """ 3499s 3499s host, port = address 3499s exceptions = [] 3499s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 3499s af, socktype, proto, canonname, sa = res 3499s sock = None 3499s try: 3499s sock = socket(af, socktype, proto) 3499s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 3499s sock.settimeout(timeout) 3499s if source_address: 3499s sock.bind(source_address) 3499s sock.connect(sa) 3499s # Break explicitly a reference cycle 3499s exceptions.clear() 3499s return sock 3499s 3499s except error as exc: 3499s if not all_errors: 3499s exceptions.clear() # raise only the last error 3499s exceptions.append(exc) 3499s if sock is not None: 3499s sock.close() 3499s 3499s if len(exceptions): 3499s try: 3499s if not all_errors: 3499s > raise exceptions[0] 3499s 3499s /usr/lib/python3.12/socket.py:853: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s address = ('localhost', 3306), timeout = 10, source_address = None 3499s 3499s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 3499s source_address=None, *, all_errors=False): 3499s """Connect to *address* and return the socket object. 3499s 3499s Convenience function. Connect to *address* (a 2-tuple ``(host, 3499s port)``) and return the socket object. Passing the optional 3499s *timeout* parameter will set the timeout on the socket instance 3499s before attempting to connect. If no *timeout* is supplied, the 3499s global default timeout setting returned by :func:`getdefaulttimeout` 3499s is used. If *source_address* is set it must be a tuple of (host, port) 3499s for the socket to bind as a source address before making the connection. 3499s A host of '' or port 0 tells the OS to use the default. When a connection 3499s cannot be created, raises the last error if *all_errors* is False, 3499s and an ExceptionGroup of all errors if *all_errors* is True. 3499s """ 3499s 3499s host, port = address 3499s exceptions = [] 3499s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 3499s af, socktype, proto, canonname, sa = res 3499s sock = None 3499s try: 3499s sock = socket(af, socktype, proto) 3499s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 3499s sock.settimeout(timeout) 3499s if source_address: 3499s sock.bind(source_address) 3499s > sock.connect(sa) 3499s E ConnectionRefusedError: [Errno 111] Connection refused 3499s 3499s /usr/lib/python3.12/socket.py:838: ConnectionRefusedError 3499s 3499s During handling of the above exception, another exception occurred: 3499s 3499s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3499s fn = > 3499s connection = None 3499s 3499s def _wrap_pool_connect(self, fn, connection): 3499s dialect = self.dialect 3499s try: 3499s > return fn() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def connect(self): 3499s """Return a DBAPI connection from the pool. 3499s 3499s The connection is instrumented such that when its 3499s ``close()`` method is called, the connection will be returned to 3499s the pool. 3499s 3499s """ 3499s > return _ConnectionFairy._checkout(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s pool = , threadconns = None 3499s fairy = None 3499s 3499s @classmethod 3499s def _checkout(cls, pool, threadconns=None, fairy=None): 3499s if not fairy: 3499s > fairy = _ConnectionRecord.checkout(pool) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s pool = 3499s 3499s @classmethod 3499s def checkout(cls, pool): 3499s > rec = pool._do_get() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def _do_get(self): 3499s > return self._create_connection() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def _create_connection(self): 3499s """Called by subclasses to create a new ConnectionRecord.""" 3499s 3499s > return _ConnectionRecord(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s pool = , connect = True 3499s 3499s def __init__(self, pool, connect=True): 3499s self.__pool = pool 3499s if connect: 3499s > self.__connect() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def __connect(self): 3499s pool = self.__pool 3499s 3499s # ensure any existing connection is removed, so that if 3499s # creator fails, this attribute stays None 3499s self.dbapi_connection = None 3499s try: 3499s self.starttime = time.time() 3499s self.dbapi_connection = connection = pool._invoke_creator(self) 3499s pool.logger.debug("Created new connection %r", connection) 3499s self.fresh = True 3499s except BaseException as e: 3499s > with util.safe_reraise(): 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s type_ = None, value = None, traceback = None 3499s 3499s def __exit__(self, type_, value, traceback): 3499s # see #2703 for notes 3499s if type_ is None: 3499s exc_type, exc_value, exc_tb = self._exc_info 3499s self._exc_info = None # remove potential circular references 3499s if not self.warn_only: 3499s > compat.raise_( 3499s exc_value, 3499s with_traceback=exc_tb, 3499s ) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s def raise_( 3499s exception, with_traceback=None, replace_context=None, from_=False 3499s ): 3499s r"""implement "raise" with cause support. 3499s 3499s :param exception: exception to raise 3499s :param with_traceback: will call exception.with_traceback() 3499s :param replace_context: an as-yet-unsupported feature. This is 3499s an exception object which we are "replacing", e.g., it's our 3499s "cause" but we don't want it printed. Basically just what 3499s ``__suppress_context__`` does but we don't want to suppress 3499s the enclosing context, if any. So for now we make it the 3499s cause. 3499s :param from\_: the cause. this actually sets the cause and doesn't 3499s hope to hide it someday. 3499s 3499s """ 3499s if with_traceback is not None: 3499s exception = exception.with_traceback(with_traceback) 3499s 3499s if from_ is not False: 3499s exception.__cause__ = from_ 3499s elif replace_context is not None: 3499s # no good solution here, we would like to have the exception 3499s # have only the context of replace_context.__context__ so that the 3499s # intermediary exception does not change, but we can't figure 3499s # that out. 3499s exception.__cause__ = replace_context 3499s 3499s try: 3499s > raise exception 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def __connect(self): 3499s pool = self.__pool 3499s 3499s # ensure any existing connection is removed, so that if 3499s # creator fails, this attribute stays None 3499s self.dbapi_connection = None 3499s try: 3499s self.starttime = time.time() 3499s > self.dbapi_connection = connection = pool._invoke_creator(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s connection_record = 3499s 3499s def connect(connection_record=None): 3499s if dialect._has_events: 3499s for fn in dialect.dispatch.do_connect: 3499s connection = fn(dialect, connection_record, cargs, cparams) 3499s if connection is not None: 3499s return connection 3499s > return dialect.connect(*cargs, **cparams) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s cargs = () 3499s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 3499s 3499s def connect(self, *cargs, **cparams): 3499s # inherits the docstring from interfaces.Dialect.connect 3499s > return self.dbapi.connect(*cargs, **cparams) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def __init__( 3499s self, 3499s *, 3499s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 3499s password="", 3499s host=None, 3499s database=None, 3499s unix_socket=None, 3499s port=0, 3499s charset="", 3499s collation=None, 3499s sql_mode=None, 3499s read_default_file=None, 3499s conv=None, 3499s use_unicode=True, 3499s client_flag=0, 3499s cursorclass=Cursor, 3499s init_command=None, 3499s connect_timeout=10, 3499s read_default_group=None, 3499s autocommit=False, 3499s local_infile=False, 3499s max_allowed_packet=16 * 1024 * 1024, 3499s defer_connect=False, 3499s auth_plugin_map=None, 3499s read_timeout=None, 3499s write_timeout=None, 3499s bind_address=None, 3499s binary_prefix=False, 3499s program_name=None, 3499s server_public_key=None, 3499s ssl=None, 3499s ssl_ca=None, 3499s ssl_cert=None, 3499s ssl_disabled=None, 3499s ssl_key=None, 3499s ssl_key_password=None, 3499s ssl_verify_cert=None, 3499s ssl_verify_identity=None, 3499s compress=None, # not supported 3499s named_pipe=None, # not supported 3499s passwd=None, # deprecated 3499s db=None, # deprecated 3499s ): 3499s if db is not None and database is None: 3499s # We will raise warning in 2022 or later. 3499s # See https://github.com/PyMySQL/PyMySQL/issues/939 3499s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 3499s database = db 3499s if passwd is not None and not password: 3499s # We will raise warning in 2022 or later. 3499s # See https://github.com/PyMySQL/PyMySQL/issues/939 3499s # warnings.warn( 3499s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 3499s # ) 3499s password = passwd 3499s 3499s if compress or named_pipe: 3499s raise NotImplementedError( 3499s "compress and named_pipe arguments are not supported" 3499s ) 3499s 3499s self._local_infile = bool(local_infile) 3499s if self._local_infile: 3499s client_flag |= CLIENT.LOCAL_FILES 3499s 3499s if read_default_group and not read_default_file: 3499s if sys.platform.startswith("win"): 3499s read_default_file = "c:\\my.ini" 3499s else: 3499s read_default_file = "/etc/my.cnf" 3499s 3499s if read_default_file: 3499s if not read_default_group: 3499s read_default_group = "client" 3499s 3499s cfg = Parser() 3499s cfg.read(os.path.expanduser(read_default_file)) 3499s 3499s def _config(key, arg): 3499s if arg: 3499s return arg 3499s try: 3499s return cfg.get(read_default_group, key) 3499s except Exception: 3499s return arg 3499s 3499s user = _config("user", user) 3499s password = _config("password", password) 3499s host = _config("host", host) 3499s database = _config("database", database) 3499s unix_socket = _config("socket", unix_socket) 3499s port = int(_config("port", port)) 3499s bind_address = _config("bind-address", bind_address) 3499s charset = _config("default-character-set", charset) 3499s if not ssl: 3499s ssl = {} 3499s if isinstance(ssl, dict): 3499s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 3499s value = _config("ssl-" + key, ssl.get(key)) 3499s if value: 3499s ssl[key] = value 3499s 3499s self.ssl = False 3499s if not ssl_disabled: 3499s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 3499s ssl = { 3499s "ca": ssl_ca, 3499s "check_hostname": bool(ssl_verify_identity), 3499s "verify_mode": ssl_verify_cert 3499s if ssl_verify_cert is not None 3499s else False, 3499s } 3499s if ssl_cert is not None: 3499s ssl["cert"] = ssl_cert 3499s if ssl_key is not None: 3499s ssl["key"] = ssl_key 3499s if ssl_key_password is not None: 3499s ssl["password"] = ssl_key_password 3499s if ssl: 3499s if not SSL_ENABLED: 3499s raise NotImplementedError("ssl module not found") 3499s self.ssl = True 3499s client_flag |= CLIENT.SSL 3499s self.ctx = self._create_ssl_ctx(ssl) 3499s 3499s self.host = host or "localhost" 3499s self.port = port or 3306 3499s if type(self.port) is not int: 3499s raise ValueError("port should be of type int") 3499s self.user = user or DEFAULT_USER 3499s self.password = password or b"" 3499s if isinstance(self.password, str): 3499s self.password = self.password.encode("latin1") 3499s self.db = database 3499s self.unix_socket = unix_socket 3499s self.bind_address = bind_address 3499s if not (0 < connect_timeout <= 31536000): 3499s raise ValueError("connect_timeout should be >0 and <=31536000") 3499s self.connect_timeout = connect_timeout or None 3499s if read_timeout is not None and read_timeout <= 0: 3499s raise ValueError("read_timeout should be > 0") 3499s self._read_timeout = read_timeout 3499s if write_timeout is not None and write_timeout <= 0: 3499s raise ValueError("write_timeout should be > 0") 3499s self._write_timeout = write_timeout 3499s 3499s self.charset = charset or DEFAULT_CHARSET 3499s self.collation = collation 3499s self.use_unicode = use_unicode 3499s 3499s self.encoding = charset_by_name(self.charset).encoding 3499s 3499s client_flag |= CLIENT.CAPABILITIES 3499s if self.db: 3499s client_flag |= CLIENT.CONNECT_WITH_DB 3499s 3499s self.client_flag = client_flag 3499s 3499s self.cursorclass = cursorclass 3499s 3499s self._result = None 3499s self._affected_rows = 0 3499s self.host_info = "Not connected" 3499s 3499s # specified autocommit mode. None means use server default. 3499s self.autocommit_mode = autocommit 3499s 3499s if conv is None: 3499s conv = converters.conversions 3499s 3499s # Need for MySQLdb compatibility. 3499s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 3499s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 3499s self.sql_mode = sql_mode 3499s self.init_command = init_command 3499s self.max_allowed_packet = max_allowed_packet 3499s self._auth_plugin_map = auth_plugin_map or {} 3499s self._binary_prefix = binary_prefix 3499s self.server_public_key = server_public_key 3499s 3499s self._connect_attrs = { 3499s "_client_name": "pymysql", 3499s "_client_version": VERSION_STRING, 3499s "_pid": str(os.getpid()), 3499s } 3499s 3499s if program_name: 3499s self._connect_attrs["program_name"] = program_name 3499s 3499s if defer_connect: 3499s self._sock = None 3499s else: 3499s > self.connect() 3499s 3499s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = , sock = None 3499s 3499s def connect(self, sock=None): 3499s self._closed = False 3499s try: 3499s if sock is None: 3499s if self.unix_socket: 3499s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3499s sock.settimeout(self.connect_timeout) 3499s sock.connect(self.unix_socket) 3499s self.host_info = "Localhost via UNIX socket" 3499s self._secure = True 3499s if DEBUG: 3499s print("connected using unix_socket") 3499s else: 3499s kwargs = {} 3499s if self.bind_address is not None: 3499s kwargs["source_address"] = (self.bind_address, 0) 3499s while True: 3499s try: 3499s sock = socket.create_connection( 3499s (self.host, self.port), self.connect_timeout, **kwargs 3499s ) 3499s break 3499s except OSError as e: 3499s if e.errno == errno.EINTR: 3499s continue 3499s raise 3499s self.host_info = "socket %s:%d" % (self.host, self.port) 3499s if DEBUG: 3499s print("connected using socket") 3499s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 3499s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 3499s sock.settimeout(None) 3499s 3499s self._sock = sock 3499s self._rfile = sock.makefile("rb") 3499s self._next_seq_id = 0 3499s 3499s self._get_server_information() 3499s self._request_authentication() 3499s 3499s # Send "SET NAMES" query on init for: 3499s # - Ensure charaset (and collation) is set to the server. 3499s # - collation_id in handshake packet may be ignored. 3499s # - If collation is not specified, we don't know what is server's 3499s # default collation for the charset. For example, default collation 3499s # of utf8mb4 is: 3499s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 3499s # - MySQL 8.0: utf8mb4_0900_ai_ci 3499s # 3499s # Reference: 3499s # - https://github.com/PyMySQL/PyMySQL/issues/1092 3499s # - https://github.com/wagtail/wagtail/issues/9477 3499s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 3499s self.set_character_set(self.charset, self.collation) 3499s 3499s if self.sql_mode is not None: 3499s c = self.cursor() 3499s c.execute("SET sql_mode=%s", (self.sql_mode,)) 3499s c.close() 3499s 3499s if self.init_command is not None: 3499s c = self.cursor() 3499s c.execute(self.init_command) 3499s c.close() 3499s 3499s if self.autocommit_mode is not None: 3499s self.autocommit(self.autocommit_mode) 3499s except BaseException as e: 3499s self._rfile = None 3499s if sock is not None: 3499s try: 3499s sock.close() 3499s except: # noqa 3499s pass 3499s 3499s if isinstance(e, (OSError, IOError)): 3499s exc = err.OperationalError( 3499s CR.CR_CONN_HOST_ERROR, 3499s f"Can't connect to MySQL server on {self.host!r} ({e})", 3499s ) 3499s # Keep original exception and traceback to investigate error. 3499s exc.original_exception = e 3499s exc.traceback = traceback.format_exc() 3499s if DEBUG: 3499s print(exc.traceback) 3499s > raise exc 3499s E pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3499s 3499s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 3499s 3499s The above exception was the direct cause of the following exception: 3499s 3499s conn = 'mysql_pymysql_conn' 3499s test_frame1 = index A B C D 3499s 0 2000-01-03 00:00:00 0.980269 3.685731 -0.364217 -1...0-01-05 00:00:00 0.498581 0.731168 -0.537677 1.346270 3499s 3 2000-01-06 00:00:00 1.120202 1.567621 0.003641 0.675253 3499s request = > 3499s 3499s @pytest.mark.db 3499s @pytest.mark.parametrize("conn", all_connectable) 3499s def test_dataframe_to_sql(conn, test_frame1, request): 3499s # GH 51086 if conn is sqlite_engine 3499s > conn = request.getfixturevalue(conn) 3499s 3499s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:550: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = > 3499s argname = 'mysql_pymysql_conn' 3499s 3499s def getfixturevalue(self, argname: str) -> Any: 3499s """Dynamically run a named fixture function. 3499s 3499s Declaring fixtures via function argument is recommended where possible. 3499s But if you can only decide whether to use another fixture at test 3499s setup time, you may use this function to retrieve it inside a fixture 3499s or test function body. 3499s 3499s This method can be used during the test setup phase or the test run 3499s phase, but during the test teardown phase a fixture's value may not 3499s be available. 3499s 3499s :param argname: 3499s The fixture name. 3499s :raises pytest.FixtureLookupError: 3499s If the given fixture could not be found. 3499s """ 3499s > fixturedef = self._get_active_fixturedef(argname) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:585: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = > 3499s argname = 'mysql_pymysql_conn' 3499s 3499s def _get_active_fixturedef( 3499s self, argname: str 3499s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3499s try: 3499s return self._fixture_defs[argname] 3499s except KeyError: 3499s try: 3499s fixturedef = self._getnextfixturedef(argname) 3499s except FixtureLookupError: 3499s if argname == "request": 3499s cached_result = (self, [0], None) 3499s return PseudoFixtureDef(cached_result, Scope.Function) 3499s raise 3499s # Remove indent to prevent the python3 exception 3499s # from leaking into the call. 3499s > self._compute_fixture_value(fixturedef) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = > 3499s fixturedef = 3499s 3499s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3499s """Create a SubRequest based on "self" and call the execute method 3499s of the given FixtureDef object. 3499s 3499s This will force the FixtureDef object to throw away any previous 3499s results and compute a new fixture value, which will be stored into 3499s the FixtureDef object itself. 3499s """ 3499s # prepare a subrequest object before calling fixture function 3499s # (latter managed by fixturedef) 3499s argname = fixturedef.argname 3499s funcitem = self._pyfuncitem 3499s scope = fixturedef._scope 3499s try: 3499s callspec = funcitem.callspec 3499s except AttributeError: 3499s callspec = None 3499s if callspec is not None and argname in callspec.params: 3499s param = callspec.params[argname] 3499s param_index = callspec.indices[argname] 3499s # If a parametrize invocation set a scope it will override 3499s # the static scope defined with the fixture function. 3499s with suppress(KeyError): 3499s scope = callspec._arg2scope[argname] 3499s else: 3499s param = NOTSET 3499s param_index = 0 3499s has_params = fixturedef.params is not None 3499s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3499s if has_params and fixtures_not_supported: 3499s msg = ( 3499s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3499s "Node id: {nodeid}\n" 3499s "Function type: {typename}" 3499s ).format( 3499s name=funcitem.name, 3499s nodeid=funcitem.nodeid, 3499s typename=type(funcitem).__name__, 3499s ) 3499s fail(msg, pytrace=False) 3499s if has_params: 3499s frame = inspect.stack()[3] 3499s frameinfo = inspect.getframeinfo(frame[0]) 3499s source_path = absolutepath(frameinfo.filename) 3499s source_lineno = frameinfo.lineno 3499s try: 3499s source_path_str = str( 3499s source_path.relative_to(funcitem.config.rootpath) 3499s ) 3499s except ValueError: 3499s source_path_str = str(source_path) 3499s msg = ( 3499s "The requested fixture has no parameter defined for test:\n" 3499s " {}\n\n" 3499s "Requested fixture '{}' defined in:\n{}" 3499s "\n\nRequested here:\n{}:{}".format( 3499s funcitem.nodeid, 3499s fixturedef.argname, 3499s getlocation(fixturedef.func, funcitem.config.rootpath), 3499s source_path_str, 3499s source_lineno, 3499s ) 3499s ) 3499s fail(msg, pytrace=False) 3499s 3499s subrequest = SubRequest( 3499s self, scope, param, param_index, fixturedef, _ispytest=True 3499s ) 3499s 3499s # Check if a higher-level scoped fixture accesses a lower level one. 3499s subrequest._check_scope(argname, self._scope, scope) 3499s try: 3499s # Call the fixture function. 3499s > fixturedef.execute(request=subrequest) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s request = > 3499s 3499s def execute(self, request: SubRequest) -> FixtureValue: 3499s # Get required arguments and register our own finish() 3499s # with their finalization. 3499s for argname in self.argnames: 3499s > fixturedef = request._get_active_fixturedef(argname) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1045: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = > 3499s argname = 'mysql_pymysql_engine' 3499s 3499s def _get_active_fixturedef( 3499s self, argname: str 3499s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3499s try: 3499s return self._fixture_defs[argname] 3499s except KeyError: 3499s try: 3499s fixturedef = self._getnextfixturedef(argname) 3499s except FixtureLookupError: 3499s if argname == "request": 3499s cached_result = (self, [0], None) 3499s return PseudoFixtureDef(cached_result, Scope.Function) 3499s raise 3499s # Remove indent to prevent the python3 exception 3499s # from leaking into the call. 3499s > self._compute_fixture_value(fixturedef) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = > 3499s fixturedef = 3499s 3499s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3499s """Create a SubRequest based on "self" and call the execute method 3499s of the given FixtureDef object. 3499s 3499s This will force the FixtureDef object to throw away any previous 3499s results and compute a new fixture value, which will be stored into 3499s the FixtureDef object itself. 3499s """ 3499s # prepare a subrequest object before calling fixture function 3499s # (latter managed by fixturedef) 3499s argname = fixturedef.argname 3499s funcitem = self._pyfuncitem 3499s scope = fixturedef._scope 3499s try: 3499s callspec = funcitem.callspec 3499s except AttributeError: 3499s callspec = None 3499s if callspec is not None and argname in callspec.params: 3499s param = callspec.params[argname] 3499s param_index = callspec.indices[argname] 3499s # If a parametrize invocation set a scope it will override 3499s # the static scope defined with the fixture function. 3499s with suppress(KeyError): 3499s scope = callspec._arg2scope[argname] 3499s else: 3499s param = NOTSET 3499s param_index = 0 3499s has_params = fixturedef.params is not None 3499s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3499s if has_params and fixtures_not_supported: 3499s msg = ( 3499s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3499s "Node id: {nodeid}\n" 3499s "Function type: {typename}" 3499s ).format( 3499s name=funcitem.name, 3499s nodeid=funcitem.nodeid, 3499s typename=type(funcitem).__name__, 3499s ) 3499s fail(msg, pytrace=False) 3499s if has_params: 3499s frame = inspect.stack()[3] 3499s frameinfo = inspect.getframeinfo(frame[0]) 3499s source_path = absolutepath(frameinfo.filename) 3499s source_lineno = frameinfo.lineno 3499s try: 3499s source_path_str = str( 3499s source_path.relative_to(funcitem.config.rootpath) 3499s ) 3499s except ValueError: 3499s source_path_str = str(source_path) 3499s msg = ( 3499s "The requested fixture has no parameter defined for test:\n" 3499s " {}\n\n" 3499s "Requested fixture '{}' defined in:\n{}" 3499s "\n\nRequested here:\n{}:{}".format( 3499s funcitem.nodeid, 3499s fixturedef.argname, 3499s getlocation(fixturedef.func, funcitem.config.rootpath), 3499s source_path_str, 3499s source_lineno, 3499s ) 3499s ) 3499s fail(msg, pytrace=False) 3499s 3499s subrequest = SubRequest( 3499s self, scope, param, param_index, fixturedef, _ispytest=True 3499s ) 3499s 3499s # Check if a higher-level scoped fixture accesses a lower level one. 3499s subrequest._check_scope(argname, self._scope, scope) 3499s try: 3499s # Call the fixture function. 3499s > fixturedef.execute(request=subrequest) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s request = > 3499s 3499s def execute(self, request: SubRequest) -> FixtureValue: 3499s # Get required arguments and register our own finish() 3499s # with their finalization. 3499s for argname in self.argnames: 3499s fixturedef = request._get_active_fixturedef(argname) 3499s if argname != "request": 3499s # PseudoFixtureDef is only for "request". 3499s assert isinstance(fixturedef, FixtureDef) 3499s fixturedef.addfinalizer(functools.partial(self.finish, request=request)) 3499s 3499s my_cache_key = self.cache_key(request) 3499s if self.cached_result is not None: 3499s # note: comparison with `==` can fail (or be expensive) for e.g. 3499s # numpy arrays (#6497). 3499s cache_key = self.cached_result[1] 3499s if my_cache_key is cache_key: 3499s if self.cached_result[2] is not None: 3499s _, val, tb = self.cached_result[2] 3499s raise val.with_traceback(tb) 3499s else: 3499s result = self.cached_result[0] 3499s return result 3499s # We have a previous but differently parametrized fixture instance 3499s # so we need to tear it down before creating a new one. 3499s self.finish(request) 3499s assert self.cached_result is None 3499s 3499s ihook = request.node.ihook 3499s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1069: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s kwargs = {'fixturedef': , 'request': >} 3499s firstresult = True 3499s 3499s def __call__(self, **kwargs: object) -> Any: 3499s """Call the hook. 3499s 3499s Only accepts keyword arguments, which should match the hook 3499s specification. 3499s 3499s Returns the result(s) of calling all registered plugins, see 3499s :ref:`calling`. 3499s """ 3499s assert ( 3499s not self.is_historic() 3499s ), "Cannot directly call a historic hook - use call_historic instead." 3499s self._verify_all_args_are_provided(kwargs) 3499s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 3499s # Copy because plugins may register other plugins during iteration (#438). 3499s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 3499s 3499s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = <_pytest.config.PytestPluginManager object at 0xe9079168> 3499s hook_name = 'pytest_fixture_setup' 3499s methods = [>] 3499s kwargs = {'fixturedef': , 'request': >} 3499s firstresult = True 3499s 3499s def _hookexec( 3499s self, 3499s hook_name: str, 3499s methods: Sequence[HookImpl], 3499s kwargs: Mapping[str, object], 3499s firstresult: bool, 3499s ) -> object | list[object]: 3499s # called from all hookcaller instances. 3499s # enable_tracing will set its own wrapping function at self._inner_hookexec 3499s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 3499s 3499s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s fixturedef = 3499s request = > 3499s 3499s def pytest_fixture_setup( 3499s fixturedef: FixtureDef[FixtureValue], request: SubRequest 3499s ) -> FixtureValue: 3499s """Execution of fixture setup.""" 3499s kwargs = {} 3499s for argname in fixturedef.argnames: 3499s fixdef = request._get_active_fixturedef(argname) 3499s assert fixdef.cached_result is not None 3499s result, arg_cache_key, exc = fixdef.cached_result 3499s request._check_scope(argname, request._scope, fixdef._scope) 3499s kwargs[argname] = result 3499s 3499s fixturefunc = resolve_fixture_function(fixturedef, request) 3499s my_cache_key = fixturedef.cache_key(request) 3499s try: 3499s > result = call_fixture_func(fixturefunc, request, kwargs) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1123: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s fixturefunc = 3499s request = > 3499s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv'), 'types_data': [{'B... False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}]} 3499s 3499s def call_fixture_func( 3499s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 3499s ) -> FixtureValue: 3499s if is_generator(fixturefunc): 3499s fixturefunc = cast( 3499s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 3499s ) 3499s generator = fixturefunc(**kwargs) 3499s try: 3499s > fixture_result = next(generator) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:895: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s iris_path = PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv') 3499s types_data = [{'BoolCol': False, 'BoolColWithNull': False, 'DateCol': '2000-01-03 00:00:00', 'DateColWithTz': '2000-01-01 00:00:00-...: False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}] 3499s 3499s @pytest.fixture 3499s def mysql_pymysql_engine(iris_path, types_data): 3499s sqlalchemy = pytest.importorskip("sqlalchemy") 3499s pymysql = pytest.importorskip("pymysql") 3499s engine = sqlalchemy.create_engine( 3499s "mysql+pymysql://root@localhost:3306/pandas", 3499s connect_args={"client_flag": pymysql.constants.CLIENT.MULTI_STATEMENTS}, 3499s poolclass=sqlalchemy.pool.NullPool, 3499s ) 3499s > insp = sqlalchemy.inspect(engine) 3499s 3499s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:409: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s subject = Engine(mysql+pymysql://root@localhost:3306/pandas), raiseerr = True 3499s 3499s def inspect(subject, raiseerr=True): 3499s """Produce an inspection object for the given target. 3499s 3499s The returned value in some cases may be the 3499s same object as the one given, such as if a 3499s :class:`_orm.Mapper` object is passed. In other 3499s cases, it will be an instance of the registered 3499s inspection type for the given object, such as 3499s if an :class:`_engine.Engine` is passed, an 3499s :class:`_reflection.Inspector` object is returned. 3499s 3499s :param subject: the subject to be inspected. 3499s :param raiseerr: When ``True``, if the given subject 3499s does not 3499s correspond to a known SQLAlchemy inspected type, 3499s :class:`sqlalchemy.exc.NoInspectionAvailable` 3499s is raised. If ``False``, ``None`` is returned. 3499s 3499s """ 3499s type_ = type(subject) 3499s for cls in type_.__mro__: 3499s if cls in _registrars: 3499s reg = _registrars[cls] 3499s if reg is True: 3499s return subject 3499s > ret = reg(subject) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:64: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 3499s 3499s @inspection._inspects(Engine) 3499s def _engine_insp(bind): 3499s > return Inspector._construct(Inspector._init_engine, bind) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:182: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s init = 3499s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 3499s 3499s @classmethod 3499s def _construct(cls, init, bind): 3499s 3499s if hasattr(bind.dialect, "inspector"): 3499s cls = bind.dialect.inspector 3499s 3499s self = cls.__new__(cls) 3499s > init(self, bind) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:117: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 3499s 3499s def _init_engine(self, engine): 3499s self.bind = self.engine = engine 3499s > engine.connect().close() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:128: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3499s close_with_result = False 3499s 3499s def connect(self, close_with_result=False): 3499s """Return a new :class:`_engine.Connection` object. 3499s 3499s The :class:`_engine.Connection` object is a facade that uses a DBAPI 3499s connection internally in order to communicate with the database. This 3499s connection is procured from the connection-holding :class:`_pool.Pool` 3499s referenced by this :class:`_engine.Engine`. When the 3499s :meth:`_engine.Connection.close` method of the 3499s :class:`_engine.Connection` object 3499s is called, the underlying DBAPI connection is then returned to the 3499s connection pool, where it may be used again in a subsequent call to 3499s :meth:`_engine.Engine.connect`. 3499s 3499s """ 3499s 3499s > return self._connection_cls(self, close_with_result=close_with_result) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3325: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 3499s close_with_result = False, _branch_from = None, _execution_options = None 3499s _dispatch = None, _has_events = None, _allow_revalidate = True 3499s 3499s def __init__( 3499s self, 3499s engine, 3499s connection=None, 3499s close_with_result=False, 3499s _branch_from=None, 3499s _execution_options=None, 3499s _dispatch=None, 3499s _has_events=None, 3499s _allow_revalidate=True, 3499s ): 3499s """Construct a new Connection.""" 3499s self.engine = engine 3499s self.dialect = engine.dialect 3499s self.__branch_from = _branch_from 3499s 3499s if _branch_from: 3499s # branching is always "from" the root connection 3499s assert _branch_from.__branch_from is None 3499s self._dbapi_connection = connection 3499s self._execution_options = _execution_options 3499s self._echo = _branch_from._echo 3499s self.should_close_with_result = False 3499s self.dispatch = _dispatch 3499s self._has_events = _branch_from._has_events 3499s else: 3499s self._dbapi_connection = ( 3499s connection 3499s if connection is not None 3499s > else engine.raw_connection() 3499s ) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:96: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = Engine(mysql+pymysql://root@localhost:3306/pandas), _connection = None 3499s 3499s def raw_connection(self, _connection=None): 3499s """Return a "raw" DBAPI connection from the connection pool. 3499s 3499s The returned object is a proxied version of the DBAPI 3499s connection object used by the underlying driver in use. 3499s The object will have all the same behavior as the real DBAPI 3499s connection, except that its ``close()`` method will result in the 3499s connection being returned to the pool, rather than being closed 3499s for real. 3499s 3499s This method provides direct DBAPI connection access for 3499s special situations when the API provided by 3499s :class:`_engine.Connection` 3499s is not needed. When a :class:`_engine.Connection` object is already 3499s present, the DBAPI connection is available using 3499s the :attr:`_engine.Connection.connection` accessor. 3499s 3499s .. seealso:: 3499s 3499s :ref:`dbapi_connections` 3499s 3499s """ 3499s > return self._wrap_pool_connect(self.pool.connect, _connection) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3404: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3499s fn = > 3499s connection = None 3499s 3499s def _wrap_pool_connect(self, fn, connection): 3499s dialect = self.dialect 3499s try: 3499s return fn() 3499s except dialect.dbapi.Error as e: 3499s if connection is None: 3499s > Connection._handle_dbapi_exception_noconnection( 3499s e, dialect, self 3499s ) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3374: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s e = OperationalError(2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3499s dialect = 3499s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 3499s 3499s @classmethod 3499s def _handle_dbapi_exception_noconnection(cls, e, dialect, engine): 3499s exc_info = sys.exc_info() 3499s 3499s is_disconnect = dialect.is_disconnect(e, None, None) 3499s 3499s should_wrap = isinstance(e, dialect.dbapi.Error) 3499s 3499s if should_wrap: 3499s sqlalchemy_exception = exc.DBAPIError.instance( 3499s None, 3499s None, 3499s e, 3499s dialect.dbapi.Error, 3499s hide_parameters=engine.hide_parameters, 3499s connection_invalidated=is_disconnect, 3499s ) 3499s else: 3499s sqlalchemy_exception = None 3499s 3499s newraise = None 3499s 3499s if engine._has_events: 3499s ctx = ExceptionContextImpl( 3499s e, 3499s sqlalchemy_exception, 3499s engine, 3499s None, 3499s None, 3499s None, 3499s None, 3499s None, 3499s is_disconnect, 3499s True, 3499s ) 3499s for fn in engine.dispatch.handle_error: 3499s try: 3499s # handler returns an exception; 3499s # call next handler in a chain 3499s per_fn = fn(ctx) 3499s if per_fn is not None: 3499s ctx.chained_exception = newraise = per_fn 3499s except Exception as _raised: 3499s # handler raises an exception - stop processing 3499s newraise = _raised 3499s break 3499s 3499s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 3499s sqlalchemy_exception.connection_invalidated = ( 3499s is_disconnect 3499s ) = ctx.is_disconnect 3499s 3499s if newraise: 3499s util.raise_(newraise, with_traceback=exc_info[2], from_=e) 3499s elif should_wrap: 3499s > util.raise_( 3499s sqlalchemy_exception, with_traceback=exc_info[2], from_=e 3499s ) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2208: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s def raise_( 3499s exception, with_traceback=None, replace_context=None, from_=False 3499s ): 3499s r"""implement "raise" with cause support. 3499s 3499s :param exception: exception to raise 3499s :param with_traceback: will call exception.with_traceback() 3499s :param replace_context: an as-yet-unsupported feature. This is 3499s an exception object which we are "replacing", e.g., it's our 3499s "cause" but we don't want it printed. Basically just what 3499s ``__suppress_context__`` does but we don't want to suppress 3499s the enclosing context, if any. So for now we make it the 3499s cause. 3499s :param from\_: the cause. this actually sets the cause and doesn't 3499s hope to hide it someday. 3499s 3499s """ 3499s if with_traceback is not None: 3499s exception = exception.with_traceback(with_traceback) 3499s 3499s if from_ is not False: 3499s exception.__cause__ = from_ 3499s elif replace_context is not None: 3499s # no good solution here, we would like to have the exception 3499s # have only the context of replace_context.__context__ so that the 3499s # intermediary exception does not change, but we can't figure 3499s # that out. 3499s exception.__cause__ = replace_context 3499s 3499s try: 3499s > raise exception 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3499s fn = > 3499s connection = None 3499s 3499s def _wrap_pool_connect(self, fn, connection): 3499s dialect = self.dialect 3499s try: 3499s > return fn() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def connect(self): 3499s """Return a DBAPI connection from the pool. 3499s 3499s The connection is instrumented such that when its 3499s ``close()`` method is called, the connection will be returned to 3499s the pool. 3499s 3499s """ 3499s > return _ConnectionFairy._checkout(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s pool = , threadconns = None 3499s fairy = None 3499s 3499s @classmethod 3499s def _checkout(cls, pool, threadconns=None, fairy=None): 3499s if not fairy: 3499s > fairy = _ConnectionRecord.checkout(pool) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s pool = 3499s 3499s @classmethod 3499s def checkout(cls, pool): 3499s > rec = pool._do_get() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def _do_get(self): 3499s > return self._create_connection() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def _create_connection(self): 3499s """Called by subclasses to create a new ConnectionRecord.""" 3499s 3499s > return _ConnectionRecord(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s pool = , connect = True 3499s 3499s def __init__(self, pool, connect=True): 3499s self.__pool = pool 3499s if connect: 3499s > self.__connect() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def __connect(self): 3499s pool = self.__pool 3499s 3499s # ensure any existing connection is removed, so that if 3499s # creator fails, this attribute stays None 3499s self.dbapi_connection = None 3499s try: 3499s self.starttime = time.time() 3499s self.dbapi_connection = connection = pool._invoke_creator(self) 3499s pool.logger.debug("Created new connection %r", connection) 3499s self.fresh = True 3499s except BaseException as e: 3499s > with util.safe_reraise(): 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s type_ = None, value = None, traceback = None 3499s 3499s def __exit__(self, type_, value, traceback): 3499s # see #2703 for notes 3499s if type_ is None: 3499s exc_type, exc_value, exc_tb = self._exc_info 3499s self._exc_info = None # remove potential circular references 3499s if not self.warn_only: 3499s > compat.raise_( 3499s exc_value, 3499s with_traceback=exc_tb, 3499s ) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s def raise_( 3499s exception, with_traceback=None, replace_context=None, from_=False 3499s ): 3499s r"""implement "raise" with cause support. 3499s 3499s :param exception: exception to raise 3499s :param with_traceback: will call exception.with_traceback() 3499s :param replace_context: an as-yet-unsupported feature. This is 3499s an exception object which we are "replacing", e.g., it's our 3499s "cause" but we don't want it printed. Basically just what 3499s ``__suppress_context__`` does but we don't want to suppress 3499s the enclosing context, if any. So for now we make it the 3499s cause. 3499s :param from\_: the cause. this actually sets the cause and doesn't 3499s hope to hide it someday. 3499s 3499s """ 3499s if with_traceback is not None: 3499s exception = exception.with_traceback(with_traceback) 3499s 3499s if from_ is not False: 3499s exception.__cause__ = from_ 3499s elif replace_context is not None: 3499s # no good solution here, we would like to have the exception 3499s # have only the context of replace_context.__context__ so that the 3499s # intermediary exception does not change, but we can't figure 3499s # that out. 3499s exception.__cause__ = replace_context 3499s 3499s try: 3499s > raise exception 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def __connect(self): 3499s pool = self.__pool 3499s 3499s # ensure any existing connection is removed, so that if 3499s # creator fails, this attribute stays None 3499s self.dbapi_connection = None 3499s try: 3499s self.starttime = time.time() 3499s > self.dbapi_connection = connection = pool._invoke_creator(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s connection_record = 3499s 3499s def connect(connection_record=None): 3499s if dialect._has_events: 3499s for fn in dialect.dispatch.do_connect: 3499s connection = fn(dialect, connection_record, cargs, cparams) 3499s if connection is not None: 3499s return connection 3499s > return dialect.connect(*cargs, **cparams) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s cargs = () 3499s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 3499s 3499s def connect(self, *cargs, **cparams): 3499s # inherits the docstring from interfaces.Dialect.connect 3499s > return self.dbapi.connect(*cargs, **cparams) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def __init__( 3499s self, 3499s *, 3499s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 3499s password="", 3499s host=None, 3499s database=None, 3499s unix_socket=None, 3499s port=0, 3499s charset="", 3499s collation=None, 3499s sql_mode=None, 3499s read_default_file=None, 3499s conv=None, 3499s use_unicode=True, 3499s client_flag=0, 3499s cursorclass=Cursor, 3499s init_command=None, 3499s connect_timeout=10, 3499s read_default_group=None, 3499s autocommit=False, 3499s local_infile=False, 3499s max_allowed_packet=16 * 1024 * 1024, 3499s defer_connect=False, 3499s auth_plugin_map=None, 3499s read_timeout=None, 3499s write_timeout=None, 3499s bind_address=None, 3499s binary_prefix=False, 3499s program_name=None, 3499s server_public_key=None, 3499s ssl=None, 3499s ssl_ca=None, 3499s ssl_cert=None, 3499s ssl_disabled=None, 3499s ssl_key=None, 3499s ssl_key_password=None, 3499s ssl_verify_cert=None, 3499s ssl_verify_identity=None, 3499s compress=None, # not supported 3499s named_pipe=None, # not supported 3499s passwd=None, # deprecated 3499s db=None, # deprecated 3499s ): 3499s if db is not None and database is None: 3499s # We will raise warning in 2022 or later. 3499s # See https://github.com/PyMySQL/PyMySQL/issues/939 3499s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 3499s database = db 3499s if passwd is not None and not password: 3499s # We will raise warning in 2022 or later. 3499s # See https://github.com/PyMySQL/PyMySQL/issues/939 3499s # warnings.warn( 3499s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 3499s # ) 3499s password = passwd 3499s 3499s if compress or named_pipe: 3499s raise NotImplementedError( 3499s "compress and named_pipe arguments are not supported" 3499s ) 3499s 3499s self._local_infile = bool(local_infile) 3499s if self._local_infile: 3499s client_flag |= CLIENT.LOCAL_FILES 3499s 3499s if read_default_group and not read_default_file: 3499s if sys.platform.startswith("win"): 3499s read_default_file = "c:\\my.ini" 3499s else: 3499s read_default_file = "/etc/my.cnf" 3499s 3499s if read_default_file: 3499s if not read_default_group: 3499s read_default_group = "client" 3499s 3499s cfg = Parser() 3499s cfg.read(os.path.expanduser(read_default_file)) 3499s 3499s def _config(key, arg): 3499s if arg: 3499s return arg 3499s try: 3499s return cfg.get(read_default_group, key) 3499s except Exception: 3499s return arg 3499s 3499s user = _config("user", user) 3499s password = _config("password", password) 3499s host = _config("host", host) 3499s database = _config("database", database) 3499s unix_socket = _config("socket", unix_socket) 3499s port = int(_config("port", port)) 3499s bind_address = _config("bind-address", bind_address) 3499s charset = _config("default-character-set", charset) 3499s if not ssl: 3499s ssl = {} 3499s if isinstance(ssl, dict): 3499s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 3499s value = _config("ssl-" + key, ssl.get(key)) 3499s if value: 3499s ssl[key] = value 3499s 3499s self.ssl = False 3499s if not ssl_disabled: 3499s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 3499s ssl = { 3499s "ca": ssl_ca, 3499s "check_hostname": bool(ssl_verify_identity), 3499s "verify_mode": ssl_verify_cert 3499s if ssl_verify_cert is not None 3499s else False, 3499s } 3499s if ssl_cert is not None: 3499s ssl["cert"] = ssl_cert 3499s if ssl_key is not None: 3499s ssl["key"] = ssl_key 3499s if ssl_key_password is not None: 3499s ssl["password"] = ssl_key_password 3499s if ssl: 3499s if not SSL_ENABLED: 3499s raise NotImplementedError("ssl module not found") 3499s self.ssl = True 3499s client_flag |= CLIENT.SSL 3499s self.ctx = self._create_ssl_ctx(ssl) 3499s 3499s self.host = host or "localhost" 3499s self.port = port or 3306 3499s if type(self.port) is not int: 3499s raise ValueError("port should be of type int") 3499s self.user = user or DEFAULT_USER 3499s self.password = password or b"" 3499s if isinstance(self.password, str): 3499s self.password = self.password.encode("latin1") 3499s self.db = database 3499s self.unix_socket = unix_socket 3499s self.bind_address = bind_address 3499s if not (0 < connect_timeout <= 31536000): 3499s raise ValueError("connect_timeout should be >0 and <=31536000") 3499s self.connect_timeout = connect_timeout or None 3499s if read_timeout is not None and read_timeout <= 0: 3499s raise ValueError("read_timeout should be > 0") 3499s self._read_timeout = read_timeout 3499s if write_timeout is not None and write_timeout <= 0: 3499s raise ValueError("write_timeout should be > 0") 3499s self._write_timeout = write_timeout 3499s 3499s self.charset = charset or DEFAULT_CHARSET 3499s self.collation = collation 3499s self.use_unicode = use_unicode 3499s 3499s self.encoding = charset_by_name(self.charset).encoding 3499s 3499s client_flag |= CLIENT.CAPABILITIES 3499s if self.db: 3499s client_flag |= CLIENT.CONNECT_WITH_DB 3499s 3499s self.client_flag = client_flag 3499s 3499s self.cursorclass = cursorclass 3499s 3499s self._result = None 3499s self._affected_rows = 0 3499s self.host_info = "Not connected" 3499s 3499s # specified autocommit mode. None means use server default. 3499s self.autocommit_mode = autocommit 3499s 3499s if conv is None: 3499s conv = converters.conversions 3499s 3499s # Need for MySQLdb compatibility. 3499s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 3499s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 3499s self.sql_mode = sql_mode 3499s self.init_command = init_command 3499s self.max_allowed_packet = max_allowed_packet 3499s self._auth_plugin_map = auth_plugin_map or {} 3499s self._binary_prefix = binary_prefix 3499s self.server_public_key = server_public_key 3499s 3499s self._connect_attrs = { 3499s "_client_name": "pymysql", 3499s "_client_version": VERSION_STRING, 3499s "_pid": str(os.getpid()), 3499s } 3499s 3499s if program_name: 3499s self._connect_attrs["program_name"] = program_name 3499s 3499s if defer_connect: 3499s self._sock = None 3499s else: 3499s > self.connect() 3499s 3499s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = , sock = None 3499s 3499s def connect(self, sock=None): 3499s self._closed = False 3499s try: 3499s if sock is None: 3499s if self.unix_socket: 3499s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3499s sock.settimeout(self.connect_timeout) 3499s sock.connect(self.unix_socket) 3499s self.host_info = "Localhost via UNIX socket" 3499s self._secure = True 3499s if DEBUG: 3499s print("connected using unix_socket") 3499s else: 3499s kwargs = {} 3499s if self.bind_address is not None: 3499s kwargs["source_address"] = (self.bind_address, 0) 3499s while True: 3499s try: 3499s sock = socket.create_connection( 3499s (self.host, self.port), self.connect_timeout, **kwargs 3499s ) 3499s break 3499s except OSError as e: 3499s if e.errno == errno.EINTR: 3499s continue 3499s raise 3499s self.host_info = "socket %s:%d" % (self.host, self.port) 3499s if DEBUG: 3499s print("connected using socket") 3499s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 3499s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 3499s sock.settimeout(None) 3499s 3499s self._sock = sock 3499s self._rfile = sock.makefile("rb") 3499s self._next_seq_id = 0 3499s 3499s self._get_server_information() 3499s self._request_authentication() 3499s 3499s # Send "SET NAMES" query on init for: 3499s # - Ensure charaset (and collation) is set to the server. 3499s # - collation_id in handshake packet may be ignored. 3499s # - If collation is not specified, we don't know what is server's 3499s # default collation for the charset. For example, default collation 3499s # of utf8mb4 is: 3499s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 3499s # - MySQL 8.0: utf8mb4_0900_ai_ci 3499s # 3499s # Reference: 3499s # - https://github.com/PyMySQL/PyMySQL/issues/1092 3499s # - https://github.com/wagtail/wagtail/issues/9477 3499s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 3499s self.set_character_set(self.charset, self.collation) 3499s 3499s if self.sql_mode is not None: 3499s c = self.cursor() 3499s c.execute("SET sql_mode=%s", (self.sql_mode,)) 3499s c.close() 3499s 3499s if self.init_command is not None: 3499s c = self.cursor() 3499s c.execute(self.init_command) 3499s c.close() 3499s 3499s if self.autocommit_mode is not None: 3499s self.autocommit(self.autocommit_mode) 3499s except BaseException as e: 3499s self._rfile = None 3499s if sock is not None: 3499s try: 3499s sock.close() 3499s except: # noqa 3499s pass 3499s 3499s if isinstance(e, (OSError, IOError)): 3499s exc = err.OperationalError( 3499s CR.CR_CONN_HOST_ERROR, 3499s f"Can't connect to MySQL server on {self.host!r} ({e})", 3499s ) 3499s # Keep original exception and traceback to investigate error. 3499s exc.original_exception = e 3499s exc.traceback = traceback.format_exc() 3499s if DEBUG: 3499s print(exc.traceback) 3499s > raise exc 3499s E sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3499s E (Background on this error at: https://sqlalche.me/e/14/e3q8) 3499s 3499s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 3499s ______________ test_dataframe_to_sql[postgresql_psycopg2_engine] _______________ 3499s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3499s fn = > 3499s connection = None 3499s 3499s def _wrap_pool_connect(self, fn, connection): 3499s dialect = self.dialect 3499s try: 3499s > return fn() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def connect(self): 3499s """Return a DBAPI connection from the pool. 3499s 3499s The connection is instrumented such that when its 3499s ``close()`` method is called, the connection will be returned to 3499s the pool. 3499s 3499s """ 3499s > return _ConnectionFairy._checkout(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s pool = , threadconns = None 3499s fairy = None 3499s 3499s @classmethod 3499s def _checkout(cls, pool, threadconns=None, fairy=None): 3499s if not fairy: 3499s > fairy = _ConnectionRecord.checkout(pool) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s pool = 3499s 3499s @classmethod 3499s def checkout(cls, pool): 3499s > rec = pool._do_get() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def _do_get(self): 3499s > return self._create_connection() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def _create_connection(self): 3499s """Called by subclasses to create a new ConnectionRecord.""" 3499s 3499s > return _ConnectionRecord(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s pool = , connect = True 3499s 3499s def __init__(self, pool, connect=True): 3499s self.__pool = pool 3499s if connect: 3499s > self.__connect() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def __connect(self): 3499s pool = self.__pool 3499s 3499s # ensure any existing connection is removed, so that if 3499s # creator fails, this attribute stays None 3499s self.dbapi_connection = None 3499s try: 3499s self.starttime = time.time() 3499s self.dbapi_connection = connection = pool._invoke_creator(self) 3499s pool.logger.debug("Created new connection %r", connection) 3499s self.fresh = True 3499s except BaseException as e: 3499s > with util.safe_reraise(): 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s type_ = None, value = None, traceback = None 3499s 3499s def __exit__(self, type_, value, traceback): 3499s # see #2703 for notes 3499s if type_ is None: 3499s exc_type, exc_value, exc_tb = self._exc_info 3499s self._exc_info = None # remove potential circular references 3499s if not self.warn_only: 3499s > compat.raise_( 3499s exc_value, 3499s with_traceback=exc_tb, 3499s ) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s def raise_( 3499s exception, with_traceback=None, replace_context=None, from_=False 3499s ): 3499s r"""implement "raise" with cause support. 3499s 3499s :param exception: exception to raise 3499s :param with_traceback: will call exception.with_traceback() 3499s :param replace_context: an as-yet-unsupported feature. This is 3499s an exception object which we are "replacing", e.g., it's our 3499s "cause" but we don't want it printed. Basically just what 3499s ``__suppress_context__`` does but we don't want to suppress 3499s the enclosing context, if any. So for now we make it the 3499s cause. 3499s :param from\_: the cause. this actually sets the cause and doesn't 3499s hope to hide it someday. 3499s 3499s """ 3499s if with_traceback is not None: 3499s exception = exception.with_traceback(with_traceback) 3499s 3499s if from_ is not False: 3499s exception.__cause__ = from_ 3499s elif replace_context is not None: 3499s # no good solution here, we would like to have the exception 3499s # have only the context of replace_context.__context__ so that the 3499s # intermediary exception does not change, but we can't figure 3499s # that out. 3499s exception.__cause__ = replace_context 3499s 3499s try: 3499s > raise exception 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def __connect(self): 3499s pool = self.__pool 3499s 3499s # ensure any existing connection is removed, so that if 3499s # creator fails, this attribute stays None 3499s self.dbapi_connection = None 3499s try: 3499s self.starttime = time.time() 3499s > self.dbapi_connection = connection = pool._invoke_creator(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s connection_record = 3499s 3499s def connect(connection_record=None): 3499s if dialect._has_events: 3499s for fn in dialect.dispatch.do_connect: 3499s connection = fn(dialect, connection_record, cargs, cparams) 3499s if connection is not None: 3499s return connection 3499s > return dialect.connect(*cargs, **cparams) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s cargs = () 3499s cparams = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3499s 3499s def connect(self, *cargs, **cparams): 3499s # inherits the docstring from interfaces.Dialect.connect 3499s > return self.dbapi.connect(*cargs, **cparams) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s dsn = 'host=localhost user=postgres password=postgres port=5432 dbname=pandas' 3499s connection_factory = None, cursor_factory = None 3499s kwargs = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3499s kwasync = {} 3499s 3499s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 3499s """ 3499s Create a new database connection. 3499s 3499s The connection parameters can be specified as a string: 3499s 3499s conn = psycopg2.connect("dbname=test user=postgres password=secret") 3499s 3499s or using a set of keyword arguments: 3499s 3499s conn = psycopg2.connect(database="test", user="postgres", password="secret") 3499s 3499s Or as a mix of both. The basic connection parameters are: 3499s 3499s - *dbname*: the database name 3499s - *database*: the database name (only as keyword argument) 3499s - *user*: user name used to authenticate 3499s - *password*: password used to authenticate 3499s - *host*: database host address (defaults to UNIX socket if not provided) 3499s - *port*: connection port number (defaults to 5432 if not provided) 3499s 3499s Using the *connection_factory* parameter a different class or connections 3499s factory can be specified. It should be a callable object taking a dsn 3499s argument. 3499s 3499s Using the *cursor_factory* parameter, a new default cursor factory will be 3499s used by cursor(). 3499s 3499s Using *async*=True an asynchronous connection will be created. *async_* is 3499s a valid alias (for Python versions where ``async`` is a keyword). 3499s 3499s Any other keyword parameter will be passed to the underlying client 3499s library: the list of supported parameters depends on the library version. 3499s 3499s """ 3499s kwasync = {} 3499s if 'async' in kwargs: 3499s kwasync['async'] = kwargs.pop('async') 3499s if 'async_' in kwargs: 3499s kwasync['async_'] = kwargs.pop('async_') 3499s 3499s dsn = _ext.make_dsn(dsn, **kwargs) 3499s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 3499s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 3499s E Is the server running on that host and accepting TCP/IP connections? 3499s 3499s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 3499s 3499s The above exception was the direct cause of the following exception: 3499s 3499s conn = 'postgresql_psycopg2_engine' 3499s test_frame1 = index A B C D 3499s 0 2000-01-03 00:00:00 0.980269 3.685731 -0.364217 -1...0-01-05 00:00:00 0.498581 0.731168 -0.537677 1.346270 3499s 3 2000-01-06 00:00:00 1.120202 1.567621 0.003641 0.675253 3499s request = > 3499s 3499s @pytest.mark.db 3499s @pytest.mark.parametrize("conn", all_connectable) 3499s def test_dataframe_to_sql(conn, test_frame1, request): 3499s # GH 51086 if conn is sqlite_engine 3499s > conn = request.getfixturevalue(conn) 3499s 3499s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:550: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = > 3499s argname = 'postgresql_psycopg2_engine' 3499s 3499s def getfixturevalue(self, argname: str) -> Any: 3499s """Dynamically run a named fixture function. 3499s 3499s Declaring fixtures via function argument is recommended where possible. 3499s But if you can only decide whether to use another fixture at test 3499s setup time, you may use this function to retrieve it inside a fixture 3499s or test function body. 3499s 3499s This method can be used during the test setup phase or the test run 3499s phase, but during the test teardown phase a fixture's value may not 3499s be available. 3499s 3499s :param argname: 3499s The fixture name. 3499s :raises pytest.FixtureLookupError: 3499s If the given fixture could not be found. 3499s """ 3499s > fixturedef = self._get_active_fixturedef(argname) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:585: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = > 3499s argname = 'postgresql_psycopg2_engine' 3499s 3499s def _get_active_fixturedef( 3499s self, argname: str 3499s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3499s try: 3499s return self._fixture_defs[argname] 3499s except KeyError: 3499s try: 3499s fixturedef = self._getnextfixturedef(argname) 3499s except FixtureLookupError: 3499s if argname == "request": 3499s cached_result = (self, [0], None) 3499s return PseudoFixtureDef(cached_result, Scope.Function) 3499s raise 3499s # Remove indent to prevent the python3 exception 3499s # from leaking into the call. 3499s > self._compute_fixture_value(fixturedef) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = > 3499s fixturedef = 3499s 3499s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3499s """Create a SubRequest based on "self" and call the execute method 3499s of the given FixtureDef object. 3499s 3499s This will force the FixtureDef object to throw away any previous 3499s results and compute a new fixture value, which will be stored into 3499s the FixtureDef object itself. 3499s """ 3499s # prepare a subrequest object before calling fixture function 3499s # (latter managed by fixturedef) 3499s argname = fixturedef.argname 3499s funcitem = self._pyfuncitem 3499s scope = fixturedef._scope 3499s try: 3499s callspec = funcitem.callspec 3499s except AttributeError: 3499s callspec = None 3499s if callspec is not None and argname in callspec.params: 3499s param = callspec.params[argname] 3499s param_index = callspec.indices[argname] 3499s # If a parametrize invocation set a scope it will override 3499s # the static scope defined with the fixture function. 3499s with suppress(KeyError): 3499s scope = callspec._arg2scope[argname] 3499s else: 3499s param = NOTSET 3499s param_index = 0 3499s has_params = fixturedef.params is not None 3499s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3499s if has_params and fixtures_not_supported: 3499s msg = ( 3499s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3499s "Node id: {nodeid}\n" 3499s "Function type: {typename}" 3499s ).format( 3499s name=funcitem.name, 3499s nodeid=funcitem.nodeid, 3499s typename=type(funcitem).__name__, 3499s ) 3499s fail(msg, pytrace=False) 3499s if has_params: 3499s frame = inspect.stack()[3] 3499s frameinfo = inspect.getframeinfo(frame[0]) 3499s source_path = absolutepath(frameinfo.filename) 3499s source_lineno = frameinfo.lineno 3499s try: 3499s source_path_str = str( 3499s source_path.relative_to(funcitem.config.rootpath) 3499s ) 3499s except ValueError: 3499s source_path_str = str(source_path) 3499s msg = ( 3499s "The requested fixture has no parameter defined for test:\n" 3499s " {}\n\n" 3499s "Requested fixture '{}' defined in:\n{}" 3499s "\n\nRequested here:\n{}:{}".format( 3499s funcitem.nodeid, 3499s fixturedef.argname, 3499s getlocation(fixturedef.func, funcitem.config.rootpath), 3499s source_path_str, 3499s source_lineno, 3499s ) 3499s ) 3499s fail(msg, pytrace=False) 3499s 3499s subrequest = SubRequest( 3499s self, scope, param, param_index, fixturedef, _ispytest=True 3499s ) 3499s 3499s # Check if a higher-level scoped fixture accesses a lower level one. 3499s subrequest._check_scope(argname, self._scope, scope) 3499s try: 3499s # Call the fixture function. 3499s > fixturedef.execute(request=subrequest) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s request = > 3499s 3499s def execute(self, request: SubRequest) -> FixtureValue: 3499s # Get required arguments and register our own finish() 3499s # with their finalization. 3499s for argname in self.argnames: 3499s fixturedef = request._get_active_fixturedef(argname) 3499s if argname != "request": 3499s # PseudoFixtureDef is only for "request". 3499s assert isinstance(fixturedef, FixtureDef) 3499s fixturedef.addfinalizer(functools.partial(self.finish, request=request)) 3499s 3499s my_cache_key = self.cache_key(request) 3499s if self.cached_result is not None: 3499s # note: comparison with `==` can fail (or be expensive) for e.g. 3499s # numpy arrays (#6497). 3499s cache_key = self.cached_result[1] 3499s if my_cache_key is cache_key: 3499s if self.cached_result[2] is not None: 3499s _, val, tb = self.cached_result[2] 3499s raise val.with_traceback(tb) 3499s else: 3499s result = self.cached_result[0] 3499s return result 3499s # We have a previous but differently parametrized fixture instance 3499s # so we need to tear it down before creating a new one. 3499s self.finish(request) 3499s assert self.cached_result is None 3499s 3499s ihook = request.node.ihook 3499s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1069: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s kwargs = {'fixturedef': , 'request': >} 3499s firstresult = True 3499s 3499s def __call__(self, **kwargs: object) -> Any: 3499s """Call the hook. 3499s 3499s Only accepts keyword arguments, which should match the hook 3499s specification. 3499s 3499s Returns the result(s) of calling all registered plugins, see 3499s :ref:`calling`. 3499s """ 3499s assert ( 3499s not self.is_historic() 3499s ), "Cannot directly call a historic hook - use call_historic instead." 3499s self._verify_all_args_are_provided(kwargs) 3499s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 3499s # Copy because plugins may register other plugins during iteration (#438). 3499s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 3499s 3499s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = <_pytest.config.PytestPluginManager object at 0xe9079168> 3499s hook_name = 'pytest_fixture_setup' 3499s methods = [>] 3499s kwargs = {'fixturedef': , 'request': >} 3499s firstresult = True 3499s 3499s def _hookexec( 3499s self, 3499s hook_name: str, 3499s methods: Sequence[HookImpl], 3499s kwargs: Mapping[str, object], 3499s firstresult: bool, 3499s ) -> object | list[object]: 3499s # called from all hookcaller instances. 3499s # enable_tracing will set its own wrapping function at self._inner_hookexec 3499s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 3499s 3499s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s fixturedef = 3499s request = > 3499s 3499s def pytest_fixture_setup( 3499s fixturedef: FixtureDef[FixtureValue], request: SubRequest 3499s ) -> FixtureValue: 3499s """Execution of fixture setup.""" 3499s kwargs = {} 3499s for argname in fixturedef.argnames: 3499s fixdef = request._get_active_fixturedef(argname) 3499s assert fixdef.cached_result is not None 3499s result, arg_cache_key, exc = fixdef.cached_result 3499s request._check_scope(argname, request._scope, fixdef._scope) 3499s kwargs[argname] = result 3499s 3499s fixturefunc = resolve_fixture_function(fixturedef, request) 3499s my_cache_key = fixturedef.cache_key(request) 3499s try: 3499s > result = call_fixture_func(fixturefunc, request, kwargs) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1123: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s fixturefunc = 3499s request = > 3499s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv'), 'types_data': [{'B... False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}]} 3499s 3499s def call_fixture_func( 3499s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 3499s ) -> FixtureValue: 3499s if is_generator(fixturefunc): 3499s fixturefunc = cast( 3499s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 3499s ) 3499s generator = fixturefunc(**kwargs) 3499s try: 3499s > fixture_result = next(generator) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:895: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s iris_path = PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv') 3499s types_data = [{'BoolCol': False, 'BoolColWithNull': False, 'DateCol': '2000-01-03 00:00:00', 'DateColWithTz': '2000-01-01 00:00:00-...: False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}] 3499s 3499s @pytest.fixture 3499s def postgresql_psycopg2_engine(iris_path, types_data): 3499s sqlalchemy = pytest.importorskip("sqlalchemy") 3499s pytest.importorskip("psycopg2") 3499s engine = sqlalchemy.create_engine( 3499s "postgresql+psycopg2://postgres:postgres@localhost:5432/pandas", 3499s poolclass=sqlalchemy.pool.NullPool, 3499s ) 3499s > insp = sqlalchemy.inspect(engine) 3499s 3499s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:438: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s subject = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3499s raiseerr = True 3499s 3499s def inspect(subject, raiseerr=True): 3499s """Produce an inspection object for the given target. 3499s 3499s The returned value in some cases may be the 3499s same object as the one given, such as if a 3499s :class:`_orm.Mapper` object is passed. In other 3499s cases, it will be an instance of the registered 3499s inspection type for the given object, such as 3499s if an :class:`_engine.Engine` is passed, an 3499s :class:`_reflection.Inspector` object is returned. 3499s 3499s :param subject: the subject to be inspected. 3499s :param raiseerr: When ``True``, if the given subject 3499s does not 3499s correspond to a known SQLAlchemy inspected type, 3499s :class:`sqlalchemy.exc.NoInspectionAvailable` 3499s is raised. If ``False``, ``None`` is returned. 3499s 3499s """ 3499s type_ = type(subject) 3499s for cls in type_.__mro__: 3499s if cls in _registrars: 3499s reg = _registrars[cls] 3499s if reg is True: 3499s return subject 3499s > ret = reg(subject) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:64: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3499s 3499s @inspection._inspects(Engine) 3499s def _engine_insp(bind): 3499s > return Inspector._construct(Inspector._init_engine, bind) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:182: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s init = 3499s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3499s 3499s @classmethod 3499s def _construct(cls, init, bind): 3499s 3499s if hasattr(bind.dialect, "inspector"): 3499s cls = bind.dialect.inspector 3499s 3499s self = cls.__new__(cls) 3499s > init(self, bind) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:117: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3499s 3499s def _init_engine(self, engine): 3499s self.bind = self.engine = engine 3499s > engine.connect().close() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:128: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3499s close_with_result = False 3499s 3499s def connect(self, close_with_result=False): 3499s """Return a new :class:`_engine.Connection` object. 3499s 3499s The :class:`_engine.Connection` object is a facade that uses a DBAPI 3499s connection internally in order to communicate with the database. This 3499s connection is procured from the connection-holding :class:`_pool.Pool` 3499s referenced by this :class:`_engine.Engine`. When the 3499s :meth:`_engine.Connection.close` method of the 3499s :class:`_engine.Connection` object 3499s is called, the underlying DBAPI connection is then returned to the 3499s connection pool, where it may be used again in a subsequent call to 3499s :meth:`_engine.Engine.connect`. 3499s 3499s """ 3499s 3499s > return self._connection_cls(self, close_with_result=close_with_result) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3325: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3499s connection = None, close_with_result = False, _branch_from = None 3499s _execution_options = None, _dispatch = None, _has_events = None 3499s _allow_revalidate = True 3499s 3499s def __init__( 3499s self, 3499s engine, 3499s connection=None, 3499s close_with_result=False, 3499s _branch_from=None, 3499s _execution_options=None, 3499s _dispatch=None, 3499s _has_events=None, 3499s _allow_revalidate=True, 3499s ): 3499s """Construct a new Connection.""" 3499s self.engine = engine 3499s self.dialect = engine.dialect 3499s self.__branch_from = _branch_from 3499s 3499s if _branch_from: 3499s # branching is always "from" the root connection 3499s assert _branch_from.__branch_from is None 3499s self._dbapi_connection = connection 3499s self._execution_options = _execution_options 3499s self._echo = _branch_from._echo 3499s self.should_close_with_result = False 3499s self.dispatch = _dispatch 3499s self._has_events = _branch_from._has_events 3499s else: 3499s self._dbapi_connection = ( 3499s connection 3499s if connection is not None 3499s > else engine.raw_connection() 3499s ) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:96: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3499s _connection = None 3499s 3499s def raw_connection(self, _connection=None): 3499s """Return a "raw" DBAPI connection from the connection pool. 3499s 3499s The returned object is a proxied version of the DBAPI 3499s connection object used by the underlying driver in use. 3499s The object will have all the same behavior as the real DBAPI 3499s connection, except that its ``close()`` method will result in the 3499s connection being returned to the pool, rather than being closed 3499s for real. 3499s 3499s This method provides direct DBAPI connection access for 3499s special situations when the API provided by 3499s :class:`_engine.Connection` 3499s is not needed. When a :class:`_engine.Connection` object is already 3499s present, the DBAPI connection is available using 3499s the :attr:`_engine.Connection.connection` accessor. 3499s 3499s .. seealso:: 3499s 3499s :ref:`dbapi_connections` 3499s 3499s """ 3499s > return self._wrap_pool_connect(self.pool.connect, _connection) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3404: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3499s fn = > 3499s connection = None 3499s 3499s def _wrap_pool_connect(self, fn, connection): 3499s dialect = self.dialect 3499s try: 3499s return fn() 3499s except dialect.dbapi.Error as e: 3499s if connection is None: 3499s > Connection._handle_dbapi_exception_noconnection( 3499s e, dialect, self 3499s ) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3374: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s e = OperationalError('connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused\n\tIs the server running on that host and accepting TCP/IP connections?\n') 3499s dialect = 3499s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3499s 3499s @classmethod 3499s def _handle_dbapi_exception_noconnection(cls, e, dialect, engine): 3499s exc_info = sys.exc_info() 3499s 3499s is_disconnect = dialect.is_disconnect(e, None, None) 3499s 3499s should_wrap = isinstance(e, dialect.dbapi.Error) 3499s 3499s if should_wrap: 3499s sqlalchemy_exception = exc.DBAPIError.instance( 3499s None, 3499s None, 3499s e, 3499s dialect.dbapi.Error, 3499s hide_parameters=engine.hide_parameters, 3499s connection_invalidated=is_disconnect, 3499s ) 3499s else: 3499s sqlalchemy_exception = None 3499s 3499s newraise = None 3499s 3499s if engine._has_events: 3499s ctx = ExceptionContextImpl( 3499s e, 3499s sqlalchemy_exception, 3499s engine, 3499s None, 3499s None, 3499s None, 3499s None, 3499s None, 3499s is_disconnect, 3499s True, 3499s ) 3499s for fn in engine.dispatch.handle_error: 3499s try: 3499s # handler returns an exception; 3499s # call next handler in a chain 3499s per_fn = fn(ctx) 3499s if per_fn is not None: 3499s ctx.chained_exception = newraise = per_fn 3499s except Exception as _raised: 3499s # handler raises an exception - stop processing 3499s newraise = _raised 3499s break 3499s 3499s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 3499s sqlalchemy_exception.connection_invalidated = ( 3499s is_disconnect 3499s ) = ctx.is_disconnect 3499s 3499s if newraise: 3499s util.raise_(newraise, with_traceback=exc_info[2], from_=e) 3499s elif should_wrap: 3499s > util.raise_( 3499s sqlalchemy_exception, with_traceback=exc_info[2], from_=e 3499s ) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2208: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s def raise_( 3499s exception, with_traceback=None, replace_context=None, from_=False 3499s ): 3499s r"""implement "raise" with cause support. 3499s 3499s :param exception: exception to raise 3499s :param with_traceback: will call exception.with_traceback() 3499s :param replace_context: an as-yet-unsupported feature. This is 3499s an exception object which we are "replacing", e.g., it's our 3499s "cause" but we don't want it printed. Basically just what 3499s ``__suppress_context__`` does but we don't want to suppress 3499s the enclosing context, if any. So for now we make it the 3499s cause. 3499s :param from\_: the cause. this actually sets the cause and doesn't 3499s hope to hide it someday. 3499s 3499s """ 3499s if with_traceback is not None: 3499s exception = exception.with_traceback(with_traceback) 3499s 3499s if from_ is not False: 3499s exception.__cause__ = from_ 3499s elif replace_context is not None: 3499s # no good solution here, we would like to have the exception 3499s # have only the context of replace_context.__context__ so that the 3499s # intermediary exception does not change, but we can't figure 3499s # that out. 3499s exception.__cause__ = replace_context 3499s 3499s try: 3499s > raise exception 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3499s fn = > 3499s connection = None 3499s 3499s def _wrap_pool_connect(self, fn, connection): 3499s dialect = self.dialect 3499s try: 3499s > return fn() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def connect(self): 3499s """Return a DBAPI connection from the pool. 3499s 3499s The connection is instrumented such that when its 3499s ``close()`` method is called, the connection will be returned to 3499s the pool. 3499s 3499s """ 3499s > return _ConnectionFairy._checkout(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s pool = , threadconns = None 3499s fairy = None 3499s 3499s @classmethod 3499s def _checkout(cls, pool, threadconns=None, fairy=None): 3499s if not fairy: 3499s > fairy = _ConnectionRecord.checkout(pool) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s pool = 3499s 3499s @classmethod 3499s def checkout(cls, pool): 3499s > rec = pool._do_get() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def _do_get(self): 3499s > return self._create_connection() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def _create_connection(self): 3499s """Called by subclasses to create a new ConnectionRecord.""" 3499s 3499s > return _ConnectionRecord(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s pool = , connect = True 3499s 3499s def __init__(self, pool, connect=True): 3499s self.__pool = pool 3499s if connect: 3499s > self.__connect() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def __connect(self): 3499s pool = self.__pool 3499s 3499s # ensure any existing connection is removed, so that if 3499s # creator fails, this attribute stays None 3499s self.dbapi_connection = None 3499s try: 3499s self.starttime = time.time() 3499s self.dbapi_connection = connection = pool._invoke_creator(self) 3499s pool.logger.debug("Created new connection %r", connection) 3499s self.fresh = True 3499s except BaseException as e: 3499s > with util.safe_reraise(): 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s type_ = None, value = None, traceback = None 3499s 3499s def __exit__(self, type_, value, traceback): 3499s # see #2703 for notes 3499s if type_ is None: 3499s exc_type, exc_value, exc_tb = self._exc_info 3499s self._exc_info = None # remove potential circular references 3499s if not self.warn_only: 3499s > compat.raise_( 3499s exc_value, 3499s with_traceback=exc_tb, 3499s ) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s def raise_( 3499s exception, with_traceback=None, replace_context=None, from_=False 3499s ): 3499s r"""implement "raise" with cause support. 3499s 3499s :param exception: exception to raise 3499s :param with_traceback: will call exception.with_traceback() 3499s :param replace_context: an as-yet-unsupported feature. This is 3499s an exception object which we are "replacing", e.g., it's our 3499s "cause" but we don't want it printed. Basically just what 3499s ``__suppress_context__`` does but we don't want to suppress 3499s the enclosing context, if any. So for now we make it the 3499s cause. 3499s :param from\_: the cause. this actually sets the cause and doesn't 3499s hope to hide it someday. 3499s 3499s """ 3499s if with_traceback is not None: 3499s exception = exception.with_traceback(with_traceback) 3499s 3499s if from_ is not False: 3499s exception.__cause__ = from_ 3499s elif replace_context is not None: 3499s # no good solution here, we would like to have the exception 3499s # have only the context of replace_context.__context__ so that the 3499s # intermediary exception does not change, but we can't figure 3499s # that out. 3499s exception.__cause__ = replace_context 3499s 3499s try: 3499s > raise exception 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def __connect(self): 3499s pool = self.__pool 3499s 3499s # ensure any existing connection is removed, so that if 3499s # creator fails, this attribute stays None 3499s self.dbapi_connection = None 3499s try: 3499s self.starttime = time.time() 3499s > self.dbapi_connection = connection = pool._invoke_creator(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s connection_record = 3499s 3499s def connect(connection_record=None): 3499s if dialect._has_events: 3499s for fn in dialect.dispatch.do_connect: 3499s connection = fn(dialect, connection_record, cargs, cparams) 3499s if connection is not None: 3499s return connection 3499s > return dialect.connect(*cargs, **cparams) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s cargs = () 3499s cparams = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3499s 3499s def connect(self, *cargs, **cparams): 3499s # inherits the docstring from interfaces.Dialect.connect 3499s > return self.dbapi.connect(*cargs, **cparams) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s dsn = 'host=localhost user=postgres password=postgres port=5432 dbname=pandas' 3499s connection_factory = None, cursor_factory = None 3499s kwargs = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3499s kwasync = {} 3499s 3499s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 3499s """ 3499s Create a new database connection. 3499s 3499s The connection parameters can be specified as a string: 3499s 3499s conn = psycopg2.connect("dbname=test user=postgres password=secret") 3499s 3499s or using a set of keyword arguments: 3499s 3499s conn = psycopg2.connect(database="test", user="postgres", password="secret") 3499s 3499s Or as a mix of both. The basic connection parameters are: 3499s 3499s - *dbname*: the database name 3499s - *database*: the database name (only as keyword argument) 3499s - *user*: user name used to authenticate 3499s - *password*: password used to authenticate 3499s - *host*: database host address (defaults to UNIX socket if not provided) 3499s - *port*: connection port number (defaults to 5432 if not provided) 3499s 3499s Using the *connection_factory* parameter a different class or connections 3499s factory can be specified. It should be a callable object taking a dsn 3499s argument. 3499s 3499s Using the *cursor_factory* parameter, a new default cursor factory will be 3499s used by cursor(). 3499s 3499s Using *async*=True an asynchronous connection will be created. *async_* is 3499s a valid alias (for Python versions where ``async`` is a keyword). 3499s 3499s Any other keyword parameter will be passed to the underlying client 3499s library: the list of supported parameters depends on the library version. 3499s 3499s """ 3499s kwasync = {} 3499s if 'async' in kwargs: 3499s kwasync['async'] = kwargs.pop('async') 3499s if 'async_' in kwargs: 3499s kwasync['async_'] = kwargs.pop('async_') 3499s 3499s dsn = _ext.make_dsn(dsn, **kwargs) 3499s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 3499s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 3499s E Is the server running on that host and accepting TCP/IP connections? 3499s E 3499s E (Background on this error at: https://sqlalche.me/e/14/e3q8) 3499s 3499s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 3499s _______________ test_dataframe_to_sql[postgresql_psycopg2_conn] ________________ 3499s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3499s fn = > 3499s connection = None 3499s 3499s def _wrap_pool_connect(self, fn, connection): 3499s dialect = self.dialect 3499s try: 3499s > return fn() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def connect(self): 3499s """Return a DBAPI connection from the pool. 3499s 3499s The connection is instrumented such that when its 3499s ``close()`` method is called, the connection will be returned to 3499s the pool. 3499s 3499s """ 3499s > return _ConnectionFairy._checkout(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s pool = , threadconns = None 3499s fairy = None 3499s 3499s @classmethod 3499s def _checkout(cls, pool, threadconns=None, fairy=None): 3499s if not fairy: 3499s > fairy = _ConnectionRecord.checkout(pool) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s pool = 3499s 3499s @classmethod 3499s def checkout(cls, pool): 3499s > rec = pool._do_get() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def _do_get(self): 3499s > return self._create_connection() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def _create_connection(self): 3499s """Called by subclasses to create a new ConnectionRecord.""" 3499s 3499s > return _ConnectionRecord(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s pool = , connect = True 3499s 3499s def __init__(self, pool, connect=True): 3499s self.__pool = pool 3499s if connect: 3499s > self.__connect() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def __connect(self): 3499s pool = self.__pool 3499s 3499s # ensure any existing connection is removed, so that if 3499s # creator fails, this attribute stays None 3499s self.dbapi_connection = None 3499s try: 3499s self.starttime = time.time() 3499s self.dbapi_connection = connection = pool._invoke_creator(self) 3499s pool.logger.debug("Created new connection %r", connection) 3499s self.fresh = True 3499s except BaseException as e: 3499s > with util.safe_reraise(): 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s type_ = None, value = None, traceback = None 3499s 3499s def __exit__(self, type_, value, traceback): 3499s # see #2703 for notes 3499s if type_ is None: 3499s exc_type, exc_value, exc_tb = self._exc_info 3499s self._exc_info = None # remove potential circular references 3499s if not self.warn_only: 3499s > compat.raise_( 3499s exc_value, 3499s with_traceback=exc_tb, 3499s ) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s def raise_( 3499s exception, with_traceback=None, replace_context=None, from_=False 3499s ): 3499s r"""implement "raise" with cause support. 3499s 3499s :param exception: exception to raise 3499s :param with_traceback: will call exception.with_traceback() 3499s :param replace_context: an as-yet-unsupported feature. This is 3499s an exception object which we are "replacing", e.g., it's our 3499s "cause" but we don't want it printed. Basically just what 3499s ``__suppress_context__`` does but we don't want to suppress 3499s the enclosing context, if any. So for now we make it the 3499s cause. 3499s :param from\_: the cause. this actually sets the cause and doesn't 3499s hope to hide it someday. 3499s 3499s """ 3499s if with_traceback is not None: 3499s exception = exception.with_traceback(with_traceback) 3499s 3499s if from_ is not False: 3499s exception.__cause__ = from_ 3499s elif replace_context is not None: 3499s # no good solution here, we would like to have the exception 3499s # have only the context of replace_context.__context__ so that the 3499s # intermediary exception does not change, but we can't figure 3499s # that out. 3499s exception.__cause__ = replace_context 3499s 3499s try: 3499s > raise exception 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def __connect(self): 3499s pool = self.__pool 3499s 3499s # ensure any existing connection is removed, so that if 3499s # creator fails, this attribute stays None 3499s self.dbapi_connection = None 3499s try: 3499s self.starttime = time.time() 3499s > self.dbapi_connection = connection = pool._invoke_creator(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s connection_record = 3499s 3499s def connect(connection_record=None): 3499s if dialect._has_events: 3499s for fn in dialect.dispatch.do_connect: 3499s connection = fn(dialect, connection_record, cargs, cparams) 3499s if connection is not None: 3499s return connection 3499s > return dialect.connect(*cargs, **cparams) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s cargs = () 3499s cparams = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3499s 3499s def connect(self, *cargs, **cparams): 3499s # inherits the docstring from interfaces.Dialect.connect 3499s > return self.dbapi.connect(*cargs, **cparams) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s dsn = 'host=localhost user=postgres password=postgres port=5432 dbname=pandas' 3499s connection_factory = None, cursor_factory = None 3499s kwargs = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3499s kwasync = {} 3499s 3499s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 3499s """ 3499s Create a new database connection. 3499s 3499s The connection parameters can be specified as a string: 3499s 3499s conn = psycopg2.connect("dbname=test user=postgres password=secret") 3499s 3499s or using a set of keyword arguments: 3499s 3499s conn = psycopg2.connect(database="test", user="postgres", password="secret") 3499s 3499s Or as a mix of both. The basic connection parameters are: 3499s 3499s - *dbname*: the database name 3499s - *database*: the database name (only as keyword argument) 3499s - *user*: user name used to authenticate 3499s - *password*: password used to authenticate 3499s - *host*: database host address (defaults to UNIX socket if not provided) 3499s - *port*: connection port number (defaults to 5432 if not provided) 3499s 3499s Using the *connection_factory* parameter a different class or connections 3499s factory can be specified. It should be a callable object taking a dsn 3499s argument. 3499s 3499s Using the *cursor_factory* parameter, a new default cursor factory will be 3499s used by cursor(). 3499s 3499s Using *async*=True an asynchronous connection will be created. *async_* is 3499s a valid alias (for Python versions where ``async`` is a keyword). 3499s 3499s Any other keyword parameter will be passed to the underlying client 3499s library: the list of supported parameters depends on the library version. 3499s 3499s """ 3499s kwasync = {} 3499s if 'async' in kwargs: 3499s kwasync['async'] = kwargs.pop('async') 3499s if 'async_' in kwargs: 3499s kwasync['async_'] = kwargs.pop('async_') 3499s 3499s dsn = _ext.make_dsn(dsn, **kwargs) 3499s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 3499s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 3499s E Is the server running on that host and accepting TCP/IP connections? 3499s 3499s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 3499s 3499s The above exception was the direct cause of the following exception: 3499s 3499s conn = 'postgresql_psycopg2_conn' 3499s test_frame1 = index A B C D 3499s 0 2000-01-03 00:00:00 0.980269 3.685731 -0.364217 -1...0-01-05 00:00:00 0.498581 0.731168 -0.537677 1.346270 3499s 3 2000-01-06 00:00:00 1.120202 1.567621 0.003641 0.675253 3499s request = > 3499s 3499s @pytest.mark.db 3499s @pytest.mark.parametrize("conn", all_connectable) 3499s def test_dataframe_to_sql(conn, test_frame1, request): 3499s # GH 51086 if conn is sqlite_engine 3499s > conn = request.getfixturevalue(conn) 3499s 3499s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:550: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = > 3499s argname = 'postgresql_psycopg2_conn' 3499s 3499s def getfixturevalue(self, argname: str) -> Any: 3499s """Dynamically run a named fixture function. 3499s 3499s Declaring fixtures via function argument is recommended where possible. 3499s But if you can only decide whether to use another fixture at test 3499s setup time, you may use this function to retrieve it inside a fixture 3499s or test function body. 3499s 3499s This method can be used during the test setup phase or the test run 3499s phase, but during the test teardown phase a fixture's value may not 3499s be available. 3499s 3499s :param argname: 3499s The fixture name. 3499s :raises pytest.FixtureLookupError: 3499s If the given fixture could not be found. 3499s """ 3499s > fixturedef = self._get_active_fixturedef(argname) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:585: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = > 3499s argname = 'postgresql_psycopg2_conn' 3499s 3499s def _get_active_fixturedef( 3499s self, argname: str 3499s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3499s try: 3499s return self._fixture_defs[argname] 3499s except KeyError: 3499s try: 3499s fixturedef = self._getnextfixturedef(argname) 3499s except FixtureLookupError: 3499s if argname == "request": 3499s cached_result = (self, [0], None) 3499s return PseudoFixtureDef(cached_result, Scope.Function) 3499s raise 3499s # Remove indent to prevent the python3 exception 3499s # from leaking into the call. 3499s > self._compute_fixture_value(fixturedef) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = > 3499s fixturedef = 3499s 3499s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3499s """Create a SubRequest based on "self" and call the execute method 3499s of the given FixtureDef object. 3499s 3499s This will force the FixtureDef object to throw away any previous 3499s results and compute a new fixture value, which will be stored into 3499s the FixtureDef object itself. 3499s """ 3499s # prepare a subrequest object before calling fixture function 3499s # (latter managed by fixturedef) 3499s argname = fixturedef.argname 3499s funcitem = self._pyfuncitem 3499s scope = fixturedef._scope 3499s try: 3499s callspec = funcitem.callspec 3499s except AttributeError: 3499s callspec = None 3499s if callspec is not None and argname in callspec.params: 3499s param = callspec.params[argname] 3499s param_index = callspec.indices[argname] 3499s # If a parametrize invocation set a scope it will override 3499s # the static scope defined with the fixture function. 3499s with suppress(KeyError): 3499s scope = callspec._arg2scope[argname] 3499s else: 3499s param = NOTSET 3499s param_index = 0 3499s has_params = fixturedef.params is not None 3499s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3499s if has_params and fixtures_not_supported: 3499s msg = ( 3499s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3499s "Node id: {nodeid}\n" 3499s "Function type: {typename}" 3499s ).format( 3499s name=funcitem.name, 3499s nodeid=funcitem.nodeid, 3499s typename=type(funcitem).__name__, 3499s ) 3499s fail(msg, pytrace=False) 3499s if has_params: 3499s frame = inspect.stack()[3] 3499s frameinfo = inspect.getframeinfo(frame[0]) 3499s source_path = absolutepath(frameinfo.filename) 3499s source_lineno = frameinfo.lineno 3499s try: 3499s source_path_str = str( 3499s source_path.relative_to(funcitem.config.rootpath) 3499s ) 3499s except ValueError: 3499s source_path_str = str(source_path) 3499s msg = ( 3499s "The requested fixture has no parameter defined for test:\n" 3499s " {}\n\n" 3499s "Requested fixture '{}' defined in:\n{}" 3499s "\n\nRequested here:\n{}:{}".format( 3499s funcitem.nodeid, 3499s fixturedef.argname, 3499s getlocation(fixturedef.func, funcitem.config.rootpath), 3499s source_path_str, 3499s source_lineno, 3499s ) 3499s ) 3499s fail(msg, pytrace=False) 3499s 3499s subrequest = SubRequest( 3499s self, scope, param, param_index, fixturedef, _ispytest=True 3499s ) 3499s 3499s # Check if a higher-level scoped fixture accesses a lower level one. 3499s subrequest._check_scope(argname, self._scope, scope) 3499s try: 3499s # Call the fixture function. 3499s > fixturedef.execute(request=subrequest) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s request = > 3499s 3499s def execute(self, request: SubRequest) -> FixtureValue: 3499s # Get required arguments and register our own finish() 3499s # with their finalization. 3499s for argname in self.argnames: 3499s > fixturedef = request._get_active_fixturedef(argname) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1045: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = > 3499s argname = 'postgresql_psycopg2_engine' 3499s 3499s def _get_active_fixturedef( 3499s self, argname: str 3499s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3499s try: 3499s return self._fixture_defs[argname] 3499s except KeyError: 3499s try: 3499s fixturedef = self._getnextfixturedef(argname) 3499s except FixtureLookupError: 3499s if argname == "request": 3499s cached_result = (self, [0], None) 3499s return PseudoFixtureDef(cached_result, Scope.Function) 3499s raise 3499s # Remove indent to prevent the python3 exception 3499s # from leaking into the call. 3499s > self._compute_fixture_value(fixturedef) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = > 3499s fixturedef = 3499s 3499s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3499s """Create a SubRequest based on "self" and call the execute method 3499s of the given FixtureDef object. 3499s 3499s This will force the FixtureDef object to throw away any previous 3499s results and compute a new fixture value, which will be stored into 3499s the FixtureDef object itself. 3499s """ 3499s # prepare a subrequest object before calling fixture function 3499s # (latter managed by fixturedef) 3499s argname = fixturedef.argname 3499s funcitem = self._pyfuncitem 3499s scope = fixturedef._scope 3499s try: 3499s callspec = funcitem.callspec 3499s except AttributeError: 3499s callspec = None 3499s if callspec is not None and argname in callspec.params: 3499s param = callspec.params[argname] 3499s param_index = callspec.indices[argname] 3499s # If a parametrize invocation set a scope it will override 3499s # the static scope defined with the fixture function. 3499s with suppress(KeyError): 3499s scope = callspec._arg2scope[argname] 3499s else: 3499s param = NOTSET 3499s param_index = 0 3499s has_params = fixturedef.params is not None 3499s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3499s if has_params and fixtures_not_supported: 3499s msg = ( 3499s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3499s "Node id: {nodeid}\n" 3499s "Function type: {typename}" 3499s ).format( 3499s name=funcitem.name, 3499s nodeid=funcitem.nodeid, 3499s typename=type(funcitem).__name__, 3499s ) 3499s fail(msg, pytrace=False) 3499s if has_params: 3499s frame = inspect.stack()[3] 3499s frameinfo = inspect.getframeinfo(frame[0]) 3499s source_path = absolutepath(frameinfo.filename) 3499s source_lineno = frameinfo.lineno 3499s try: 3499s source_path_str = str( 3499s source_path.relative_to(funcitem.config.rootpath) 3499s ) 3499s except ValueError: 3499s source_path_str = str(source_path) 3499s msg = ( 3499s "The requested fixture has no parameter defined for test:\n" 3499s " {}\n\n" 3499s "Requested fixture '{}' defined in:\n{}" 3499s "\n\nRequested here:\n{}:{}".format( 3499s funcitem.nodeid, 3499s fixturedef.argname, 3499s getlocation(fixturedef.func, funcitem.config.rootpath), 3499s source_path_str, 3499s source_lineno, 3499s ) 3499s ) 3499s fail(msg, pytrace=False) 3499s 3499s subrequest = SubRequest( 3499s self, scope, param, param_index, fixturedef, _ispytest=True 3499s ) 3499s 3499s # Check if a higher-level scoped fixture accesses a lower level one. 3499s subrequest._check_scope(argname, self._scope, scope) 3499s try: 3499s # Call the fixture function. 3499s > fixturedef.execute(request=subrequest) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s request = > 3499s 3499s def execute(self, request: SubRequest) -> FixtureValue: 3499s # Get required arguments and register our own finish() 3499s # with their finalization. 3499s for argname in self.argnames: 3499s fixturedef = request._get_active_fixturedef(argname) 3499s if argname != "request": 3499s # PseudoFixtureDef is only for "request". 3499s assert isinstance(fixturedef, FixtureDef) 3499s fixturedef.addfinalizer(functools.partial(self.finish, request=request)) 3499s 3499s my_cache_key = self.cache_key(request) 3499s if self.cached_result is not None: 3499s # note: comparison with `==` can fail (or be expensive) for e.g. 3499s # numpy arrays (#6497). 3499s cache_key = self.cached_result[1] 3499s if my_cache_key is cache_key: 3499s if self.cached_result[2] is not None: 3499s _, val, tb = self.cached_result[2] 3499s raise val.with_traceback(tb) 3499s else: 3499s result = self.cached_result[0] 3499s return result 3499s # We have a previous but differently parametrized fixture instance 3499s # so we need to tear it down before creating a new one. 3499s self.finish(request) 3499s assert self.cached_result is None 3499s 3499s ihook = request.node.ihook 3499s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1069: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s kwargs = {'fixturedef': , 'request': >} 3499s firstresult = True 3499s 3499s def __call__(self, **kwargs: object) -> Any: 3499s """Call the hook. 3499s 3499s Only accepts keyword arguments, which should match the hook 3499s specification. 3499s 3499s Returns the result(s) of calling all registered plugins, see 3499s :ref:`calling`. 3499s """ 3499s assert ( 3499s not self.is_historic() 3499s ), "Cannot directly call a historic hook - use call_historic instead." 3499s self._verify_all_args_are_provided(kwargs) 3499s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 3499s # Copy because plugins may register other plugins during iteration (#438). 3499s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 3499s 3499s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = <_pytest.config.PytestPluginManager object at 0xe9079168> 3499s hook_name = 'pytest_fixture_setup' 3499s methods = [>] 3499s kwargs = {'fixturedef': , 'request': >} 3499s firstresult = True 3499s 3499s def _hookexec( 3499s self, 3499s hook_name: str, 3499s methods: Sequence[HookImpl], 3499s kwargs: Mapping[str, object], 3499s firstresult: bool, 3499s ) -> object | list[object]: 3499s # called from all hookcaller instances. 3499s # enable_tracing will set its own wrapping function at self._inner_hookexec 3499s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 3499s 3499s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s fixturedef = 3499s request = > 3499s 3499s def pytest_fixture_setup( 3499s fixturedef: FixtureDef[FixtureValue], request: SubRequest 3499s ) -> FixtureValue: 3499s """Execution of fixture setup.""" 3499s kwargs = {} 3499s for argname in fixturedef.argnames: 3499s fixdef = request._get_active_fixturedef(argname) 3499s assert fixdef.cached_result is not None 3499s result, arg_cache_key, exc = fixdef.cached_result 3499s request._check_scope(argname, request._scope, fixdef._scope) 3499s kwargs[argname] = result 3499s 3499s fixturefunc = resolve_fixture_function(fixturedef, request) 3499s my_cache_key = fixturedef.cache_key(request) 3499s try: 3499s > result = call_fixture_func(fixturefunc, request, kwargs) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1123: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s fixturefunc = 3499s request = > 3499s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv'), 'types_data': [{'B... False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}]} 3499s 3499s def call_fixture_func( 3499s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 3499s ) -> FixtureValue: 3499s if is_generator(fixturefunc): 3499s fixturefunc = cast( 3499s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 3499s ) 3499s generator = fixturefunc(**kwargs) 3499s try: 3499s > fixture_result = next(generator) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:895: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s iris_path = PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv') 3499s types_data = [{'BoolCol': False, 'BoolColWithNull': False, 'DateCol': '2000-01-03 00:00:00', 'DateColWithTz': '2000-01-01 00:00:00-...: False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}] 3499s 3499s @pytest.fixture 3499s def postgresql_psycopg2_engine(iris_path, types_data): 3499s sqlalchemy = pytest.importorskip("sqlalchemy") 3499s pytest.importorskip("psycopg2") 3499s engine = sqlalchemy.create_engine( 3499s "postgresql+psycopg2://postgres:postgres@localhost:5432/pandas", 3499s poolclass=sqlalchemy.pool.NullPool, 3499s ) 3499s > insp = sqlalchemy.inspect(engine) 3499s 3499s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:438: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s subject = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3499s raiseerr = True 3499s 3499s def inspect(subject, raiseerr=True): 3499s """Produce an inspection object for the given target. 3499s 3499s The returned value in some cases may be the 3499s same object as the one given, such as if a 3499s :class:`_orm.Mapper` object is passed. In other 3499s cases, it will be an instance of the registered 3499s inspection type for the given object, such as 3499s if an :class:`_engine.Engine` is passed, an 3499s :class:`_reflection.Inspector` object is returned. 3499s 3499s :param subject: the subject to be inspected. 3499s :param raiseerr: When ``True``, if the given subject 3499s does not 3499s correspond to a known SQLAlchemy inspected type, 3499s :class:`sqlalchemy.exc.NoInspectionAvailable` 3499s is raised. If ``False``, ``None`` is returned. 3499s 3499s """ 3499s type_ = type(subject) 3499s for cls in type_.__mro__: 3499s if cls in _registrars: 3499s reg = _registrars[cls] 3499s if reg is True: 3499s return subject 3499s > ret = reg(subject) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:64: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3499s 3499s @inspection._inspects(Engine) 3499s def _engine_insp(bind): 3499s > return Inspector._construct(Inspector._init_engine, bind) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:182: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s init = 3499s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3499s 3499s @classmethod 3499s def _construct(cls, init, bind): 3499s 3499s if hasattr(bind.dialect, "inspector"): 3499s cls = bind.dialect.inspector 3499s 3499s self = cls.__new__(cls) 3499s > init(self, bind) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:117: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3499s 3499s def _init_engine(self, engine): 3499s self.bind = self.engine = engine 3499s > engine.connect().close() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:128: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3499s close_with_result = False 3499s 3499s def connect(self, close_with_result=False): 3499s """Return a new :class:`_engine.Connection` object. 3499s 3499s The :class:`_engine.Connection` object is a facade that uses a DBAPI 3499s connection internally in order to communicate with the database. This 3499s connection is procured from the connection-holding :class:`_pool.Pool` 3499s referenced by this :class:`_engine.Engine`. When the 3499s :meth:`_engine.Connection.close` method of the 3499s :class:`_engine.Connection` object 3499s is called, the underlying DBAPI connection is then returned to the 3499s connection pool, where it may be used again in a subsequent call to 3499s :meth:`_engine.Engine.connect`. 3499s 3499s """ 3499s 3499s > return self._connection_cls(self, close_with_result=close_with_result) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3325: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3499s connection = None, close_with_result = False, _branch_from = None 3499s _execution_options = None, _dispatch = None, _has_events = None 3499s _allow_revalidate = True 3499s 3499s def __init__( 3499s self, 3499s engine, 3499s connection=None, 3499s close_with_result=False, 3499s _branch_from=None, 3499s _execution_options=None, 3499s _dispatch=None, 3499s _has_events=None, 3499s _allow_revalidate=True, 3499s ): 3499s """Construct a new Connection.""" 3499s self.engine = engine 3499s self.dialect = engine.dialect 3499s self.__branch_from = _branch_from 3499s 3499s if _branch_from: 3499s # branching is always "from" the root connection 3499s assert _branch_from.__branch_from is None 3499s self._dbapi_connection = connection 3499s self._execution_options = _execution_options 3499s self._echo = _branch_from._echo 3499s self.should_close_with_result = False 3499s self.dispatch = _dispatch 3499s self._has_events = _branch_from._has_events 3499s else: 3499s self._dbapi_connection = ( 3499s connection 3499s if connection is not None 3499s > else engine.raw_connection() 3499s ) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:96: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3499s _connection = None 3499s 3499s def raw_connection(self, _connection=None): 3499s """Return a "raw" DBAPI connection from the connection pool. 3499s 3499s The returned object is a proxied version of the DBAPI 3499s connection object used by the underlying driver in use. 3499s The object will have all the same behavior as the real DBAPI 3499s connection, except that its ``close()`` method will result in the 3499s connection being returned to the pool, rather than being closed 3499s for real. 3499s 3499s This method provides direct DBAPI connection access for 3499s special situations when the API provided by 3499s :class:`_engine.Connection` 3499s is not needed. When a :class:`_engine.Connection` object is already 3499s present, the DBAPI connection is available using 3499s the :attr:`_engine.Connection.connection` accessor. 3499s 3499s .. seealso:: 3499s 3499s :ref:`dbapi_connections` 3499s 3499s """ 3499s > return self._wrap_pool_connect(self.pool.connect, _connection) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3404: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3499s fn = > 3499s connection = None 3499s 3499s def _wrap_pool_connect(self, fn, connection): 3499s dialect = self.dialect 3499s try: 3499s return fn() 3499s except dialect.dbapi.Error as e: 3499s if connection is None: 3499s > Connection._handle_dbapi_exception_noconnection( 3499s e, dialect, self 3499s ) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3374: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s e = OperationalError('connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused\n\tIs the server running on that host and accepting TCP/IP connections?\n') 3499s dialect = 3499s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3499s 3499s @classmethod 3499s def _handle_dbapi_exception_noconnection(cls, e, dialect, engine): 3499s exc_info = sys.exc_info() 3499s 3499s is_disconnect = dialect.is_disconnect(e, None, None) 3499s 3499s should_wrap = isinstance(e, dialect.dbapi.Error) 3499s 3499s if should_wrap: 3499s sqlalchemy_exception = exc.DBAPIError.instance( 3499s None, 3499s None, 3499s e, 3499s dialect.dbapi.Error, 3499s hide_parameters=engine.hide_parameters, 3499s connection_invalidated=is_disconnect, 3499s ) 3499s else: 3499s sqlalchemy_exception = None 3499s 3499s newraise = None 3499s 3499s if engine._has_events: 3499s ctx = ExceptionContextImpl( 3499s e, 3499s sqlalchemy_exception, 3499s engine, 3499s None, 3499s None, 3499s None, 3499s None, 3499s None, 3499s is_disconnect, 3499s True, 3499s ) 3499s for fn in engine.dispatch.handle_error: 3499s try: 3499s # handler returns an exception; 3499s # call next handler in a chain 3499s per_fn = fn(ctx) 3499s if per_fn is not None: 3499s ctx.chained_exception = newraise = per_fn 3499s except Exception as _raised: 3499s # handler raises an exception - stop processing 3499s newraise = _raised 3499s break 3499s 3499s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 3499s sqlalchemy_exception.connection_invalidated = ( 3499s is_disconnect 3499s ) = ctx.is_disconnect 3499s 3499s if newraise: 3499s util.raise_(newraise, with_traceback=exc_info[2], from_=e) 3499s elif should_wrap: 3499s > util.raise_( 3499s sqlalchemy_exception, with_traceback=exc_info[2], from_=e 3499s ) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2208: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s def raise_( 3499s exception, with_traceback=None, replace_context=None, from_=False 3499s ): 3499s r"""implement "raise" with cause support. 3499s 3499s :param exception: exception to raise 3499s :param with_traceback: will call exception.with_traceback() 3499s :param replace_context: an as-yet-unsupported feature. This is 3499s an exception object which we are "replacing", e.g., it's our 3499s "cause" but we don't want it printed. Basically just what 3499s ``__suppress_context__`` does but we don't want to suppress 3499s the enclosing context, if any. So for now we make it the 3499s cause. 3499s :param from\_: the cause. this actually sets the cause and doesn't 3499s hope to hide it someday. 3499s 3499s """ 3499s if with_traceback is not None: 3499s exception = exception.with_traceback(with_traceback) 3499s 3499s if from_ is not False: 3499s exception.__cause__ = from_ 3499s elif replace_context is not None: 3499s # no good solution here, we would like to have the exception 3499s # have only the context of replace_context.__context__ so that the 3499s # intermediary exception does not change, but we can't figure 3499s # that out. 3499s exception.__cause__ = replace_context 3499s 3499s try: 3499s > raise exception 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3499s fn = > 3499s connection = None 3499s 3499s def _wrap_pool_connect(self, fn, connection): 3499s dialect = self.dialect 3499s try: 3499s > return fn() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def connect(self): 3499s """Return a DBAPI connection from the pool. 3499s 3499s The connection is instrumented such that when its 3499s ``close()`` method is called, the connection will be returned to 3499s the pool. 3499s 3499s """ 3499s > return _ConnectionFairy._checkout(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s pool = , threadconns = None 3499s fairy = None 3499s 3499s @classmethod 3499s def _checkout(cls, pool, threadconns=None, fairy=None): 3499s if not fairy: 3499s > fairy = _ConnectionRecord.checkout(pool) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s pool = 3499s 3499s @classmethod 3499s def checkout(cls, pool): 3499s > rec = pool._do_get() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def _do_get(self): 3499s > return self._create_connection() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def _create_connection(self): 3499s """Called by subclasses to create a new ConnectionRecord.""" 3499s 3499s > return _ConnectionRecord(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s pool = , connect = True 3499s 3499s def __init__(self, pool, connect=True): 3499s self.__pool = pool 3499s if connect: 3499s > self.__connect() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def __connect(self): 3499s pool = self.__pool 3499s 3499s # ensure any existing connection is removed, so that if 3499s # creator fails, this attribute stays None 3499s self.dbapi_connection = None 3499s try: 3499s self.starttime = time.time() 3499s self.dbapi_connection = connection = pool._invoke_creator(self) 3499s pool.logger.debug("Created new connection %r", connection) 3499s self.fresh = True 3499s except BaseException as e: 3499s > with util.safe_reraise(): 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s type_ = None, value = None, traceback = None 3499s 3499s def __exit__(self, type_, value, traceback): 3499s # see #2703 for notes 3499s if type_ is None: 3499s exc_type, exc_value, exc_tb = self._exc_info 3499s self._exc_info = None # remove potential circular references 3499s if not self.warn_only: 3499s > compat.raise_( 3499s exc_value, 3499s with_traceback=exc_tb, 3499s ) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s def raise_( 3499s exception, with_traceback=None, replace_context=None, from_=False 3499s ): 3499s r"""implement "raise" with cause support. 3499s 3499s :param exception: exception to raise 3499s :param with_traceback: will call exception.with_traceback() 3499s :param replace_context: an as-yet-unsupported feature. This is 3499s an exception object which we are "replacing", e.g., it's our 3499s "cause" but we don't want it printed. Basically just what 3499s ``__suppress_context__`` does but we don't want to suppress 3499s the enclosing context, if any. So for now we make it the 3499s cause. 3499s :param from\_: the cause. this actually sets the cause and doesn't 3499s hope to hide it someday. 3499s 3499s """ 3499s if with_traceback is not None: 3499s exception = exception.with_traceback(with_traceback) 3499s 3499s if from_ is not False: 3499s exception.__cause__ = from_ 3499s elif replace_context is not None: 3499s # no good solution here, we would like to have the exception 3499s # have only the context of replace_context.__context__ so that the 3499s # intermediary exception does not change, but we can't figure 3499s # that out. 3499s exception.__cause__ = replace_context 3499s 3499s try: 3499s > raise exception 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def __connect(self): 3499s pool = self.__pool 3499s 3499s # ensure any existing connection is removed, so that if 3499s # creator fails, this attribute stays None 3499s self.dbapi_connection = None 3499s try: 3499s self.starttime = time.time() 3499s > self.dbapi_connection = connection = pool._invoke_creator(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s connection_record = 3499s 3499s def connect(connection_record=None): 3499s if dialect._has_events: 3499s for fn in dialect.dispatch.do_connect: 3499s connection = fn(dialect, connection_record, cargs, cparams) 3499s if connection is not None: 3499s return connection 3499s > return dialect.connect(*cargs, **cparams) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s cargs = () 3499s cparams = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3499s 3499s def connect(self, *cargs, **cparams): 3499s # inherits the docstring from interfaces.Dialect.connect 3499s > return self.dbapi.connect(*cargs, **cparams) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s dsn = 'host=localhost user=postgres password=postgres port=5432 dbname=pandas' 3499s connection_factory = None, cursor_factory = None 3499s kwargs = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3499s kwasync = {} 3499s 3499s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 3499s """ 3499s Create a new database connection. 3499s 3499s The connection parameters can be specified as a string: 3499s 3499s conn = psycopg2.connect("dbname=test user=postgres password=secret") 3499s 3499s or using a set of keyword arguments: 3499s 3499s conn = psycopg2.connect(database="test", user="postgres", password="secret") 3499s 3499s Or as a mix of both. The basic connection parameters are: 3499s 3499s - *dbname*: the database name 3499s - *database*: the database name (only as keyword argument) 3499s - *user*: user name used to authenticate 3499s - *password*: password used to authenticate 3499s - *host*: database host address (defaults to UNIX socket if not provided) 3499s - *port*: connection port number (defaults to 5432 if not provided) 3499s 3499s Using the *connection_factory* parameter a different class or connections 3499s factory can be specified. It should be a callable object taking a dsn 3499s argument. 3499s 3499s Using the *cursor_factory* parameter, a new default cursor factory will be 3499s used by cursor(). 3499s 3499s Using *async*=True an asynchronous connection will be created. *async_* is 3499s a valid alias (for Python versions where ``async`` is a keyword). 3499s 3499s Any other keyword parameter will be passed to the underlying client 3499s library: the list of supported parameters depends on the library version. 3499s 3499s """ 3499s kwasync = {} 3499s if 'async' in kwargs: 3499s kwasync['async'] = kwargs.pop('async') 3499s if 'async_' in kwargs: 3499s kwasync['async_'] = kwargs.pop('async_') 3499s 3499s dsn = _ext.make_dsn(dsn, **kwargs) 3499s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 3499s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 3499s E Is the server running on that host and accepting TCP/IP connections? 3499s E 3499s E (Background on this error at: https://sqlalche.me/e/14/e3q8) 3499s 3499s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 3499s ____________________ test_to_sql[None-mysql_pymysql_engine] ____________________ 3499s self = , sock = None 3499s 3499s def connect(self, sock=None): 3499s self._closed = False 3499s try: 3499s if sock is None: 3499s if self.unix_socket: 3499s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3499s sock.settimeout(self.connect_timeout) 3499s sock.connect(self.unix_socket) 3499s self.host_info = "Localhost via UNIX socket" 3499s self._secure = True 3499s if DEBUG: 3499s print("connected using unix_socket") 3499s else: 3499s kwargs = {} 3499s if self.bind_address is not None: 3499s kwargs["source_address"] = (self.bind_address, 0) 3499s while True: 3499s try: 3499s > sock = socket.create_connection( 3499s (self.host, self.port), self.connect_timeout, **kwargs 3499s ) 3499s 3499s /usr/lib/python3/dist-packages/pymysql/connections.py:649: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s address = ('localhost', 3306), timeout = 10, source_address = None 3499s 3499s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 3499s source_address=None, *, all_errors=False): 3499s """Connect to *address* and return the socket object. 3499s 3499s Convenience function. Connect to *address* (a 2-tuple ``(host, 3499s port)``) and return the socket object. Passing the optional 3499s *timeout* parameter will set the timeout on the socket instance 3499s before attempting to connect. If no *timeout* is supplied, the 3499s global default timeout setting returned by :func:`getdefaulttimeout` 3499s is used. If *source_address* is set it must be a tuple of (host, port) 3499s for the socket to bind as a source address before making the connection. 3499s A host of '' or port 0 tells the OS to use the default. When a connection 3499s cannot be created, raises the last error if *all_errors* is False, 3499s and an ExceptionGroup of all errors if *all_errors* is True. 3499s """ 3499s 3499s host, port = address 3499s exceptions = [] 3499s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 3499s af, socktype, proto, canonname, sa = res 3499s sock = None 3499s try: 3499s sock = socket(af, socktype, proto) 3499s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 3499s sock.settimeout(timeout) 3499s if source_address: 3499s sock.bind(source_address) 3499s sock.connect(sa) 3499s # Break explicitly a reference cycle 3499s exceptions.clear() 3499s return sock 3499s 3499s except error as exc: 3499s if not all_errors: 3499s exceptions.clear() # raise only the last error 3499s exceptions.append(exc) 3499s if sock is not None: 3499s sock.close() 3499s 3499s if len(exceptions): 3499s try: 3499s if not all_errors: 3499s > raise exceptions[0] 3499s 3499s /usr/lib/python3.12/socket.py:853: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s address = ('localhost', 3306), timeout = 10, source_address = None 3499s 3499s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 3499s source_address=None, *, all_errors=False): 3499s """Connect to *address* and return the socket object. 3499s 3499s Convenience function. Connect to *address* (a 2-tuple ``(host, 3499s port)``) and return the socket object. Passing the optional 3499s *timeout* parameter will set the timeout on the socket instance 3499s before attempting to connect. If no *timeout* is supplied, the 3499s global default timeout setting returned by :func:`getdefaulttimeout` 3499s is used. If *source_address* is set it must be a tuple of (host, port) 3499s for the socket to bind as a source address before making the connection. 3499s A host of '' or port 0 tells the OS to use the default. When a connection 3499s cannot be created, raises the last error if *all_errors* is False, 3499s and an ExceptionGroup of all errors if *all_errors* is True. 3499s """ 3499s 3499s host, port = address 3499s exceptions = [] 3499s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 3499s af, socktype, proto, canonname, sa = res 3499s sock = None 3499s try: 3499s sock = socket(af, socktype, proto) 3499s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 3499s sock.settimeout(timeout) 3499s if source_address: 3499s sock.bind(source_address) 3499s > sock.connect(sa) 3499s E ConnectionRefusedError: [Errno 111] Connection refused 3499s 3499s /usr/lib/python3.12/socket.py:838: ConnectionRefusedError 3499s 3499s During handling of the above exception, another exception occurred: 3499s 3499s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3499s fn = > 3499s connection = None 3499s 3499s def _wrap_pool_connect(self, fn, connection): 3499s dialect = self.dialect 3499s try: 3499s > return fn() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def connect(self): 3499s """Return a DBAPI connection from the pool. 3499s 3499s The connection is instrumented such that when its 3499s ``close()`` method is called, the connection will be returned to 3499s the pool. 3499s 3499s """ 3499s > return _ConnectionFairy._checkout(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s pool = , threadconns = None 3499s fairy = None 3499s 3499s @classmethod 3499s def _checkout(cls, pool, threadconns=None, fairy=None): 3499s if not fairy: 3499s > fairy = _ConnectionRecord.checkout(pool) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s pool = 3499s 3499s @classmethod 3499s def checkout(cls, pool): 3499s > rec = pool._do_get() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def _do_get(self): 3499s > return self._create_connection() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def _create_connection(self): 3499s """Called by subclasses to create a new ConnectionRecord.""" 3499s 3499s > return _ConnectionRecord(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s pool = , connect = True 3499s 3499s def __init__(self, pool, connect=True): 3499s self.__pool = pool 3499s if connect: 3499s > self.__connect() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def __connect(self): 3499s pool = self.__pool 3499s 3499s # ensure any existing connection is removed, so that if 3499s # creator fails, this attribute stays None 3499s self.dbapi_connection = None 3499s try: 3499s self.starttime = time.time() 3499s self.dbapi_connection = connection = pool._invoke_creator(self) 3499s pool.logger.debug("Created new connection %r", connection) 3499s self.fresh = True 3499s except BaseException as e: 3499s > with util.safe_reraise(): 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s type_ = None, value = None, traceback = None 3499s 3499s def __exit__(self, type_, value, traceback): 3499s # see #2703 for notes 3499s if type_ is None: 3499s exc_type, exc_value, exc_tb = self._exc_info 3499s self._exc_info = None # remove potential circular references 3499s if not self.warn_only: 3499s > compat.raise_( 3499s exc_value, 3499s with_traceback=exc_tb, 3499s ) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s def raise_( 3499s exception, with_traceback=None, replace_context=None, from_=False 3499s ): 3499s r"""implement "raise" with cause support. 3499s 3499s :param exception: exception to raise 3499s :param with_traceback: will call exception.with_traceback() 3499s :param replace_context: an as-yet-unsupported feature. This is 3499s an exception object which we are "replacing", e.g., it's our 3499s "cause" but we don't want it printed. Basically just what 3499s ``__suppress_context__`` does but we don't want to suppress 3499s the enclosing context, if any. So for now we make it the 3499s cause. 3499s :param from\_: the cause. this actually sets the cause and doesn't 3499s hope to hide it someday. 3499s 3499s """ 3499s if with_traceback is not None: 3499s exception = exception.with_traceback(with_traceback) 3499s 3499s if from_ is not False: 3499s exception.__cause__ = from_ 3499s elif replace_context is not None: 3499s # no good solution here, we would like to have the exception 3499s # have only the context of replace_context.__context__ so that the 3499s # intermediary exception does not change, but we can't figure 3499s # that out. 3499s exception.__cause__ = replace_context 3499s 3499s try: 3499s > raise exception 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def __connect(self): 3499s pool = self.__pool 3499s 3499s # ensure any existing connection is removed, so that if 3499s # creator fails, this attribute stays None 3499s self.dbapi_connection = None 3499s try: 3499s self.starttime = time.time() 3499s > self.dbapi_connection = connection = pool._invoke_creator(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s connection_record = 3499s 3499s def connect(connection_record=None): 3499s if dialect._has_events: 3499s for fn in dialect.dispatch.do_connect: 3499s connection = fn(dialect, connection_record, cargs, cparams) 3499s if connection is not None: 3499s return connection 3499s > return dialect.connect(*cargs, **cparams) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s cargs = () 3499s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 3499s 3499s def connect(self, *cargs, **cparams): 3499s # inherits the docstring from interfaces.Dialect.connect 3499s > return self.dbapi.connect(*cargs, **cparams) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def __init__( 3499s self, 3499s *, 3499s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 3499s password="", 3499s host=None, 3499s database=None, 3499s unix_socket=None, 3499s port=0, 3499s charset="", 3499s collation=None, 3499s sql_mode=None, 3499s read_default_file=None, 3499s conv=None, 3499s use_unicode=True, 3499s client_flag=0, 3499s cursorclass=Cursor, 3499s init_command=None, 3499s connect_timeout=10, 3499s read_default_group=None, 3499s autocommit=False, 3499s local_infile=False, 3499s max_allowed_packet=16 * 1024 * 1024, 3499s defer_connect=False, 3499s auth_plugin_map=None, 3499s read_timeout=None, 3499s write_timeout=None, 3499s bind_address=None, 3499s binary_prefix=False, 3499s program_name=None, 3499s server_public_key=None, 3499s ssl=None, 3499s ssl_ca=None, 3499s ssl_cert=None, 3499s ssl_disabled=None, 3499s ssl_key=None, 3499s ssl_key_password=None, 3499s ssl_verify_cert=None, 3499s ssl_verify_identity=None, 3499s compress=None, # not supported 3499s named_pipe=None, # not supported 3499s passwd=None, # deprecated 3499s db=None, # deprecated 3499s ): 3499s if db is not None and database is None: 3499s # We will raise warning in 2022 or later. 3499s # See https://github.com/PyMySQL/PyMySQL/issues/939 3499s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 3499s database = db 3499s if passwd is not None and not password: 3499s # We will raise warning in 2022 or later. 3499s # See https://github.com/PyMySQL/PyMySQL/issues/939 3499s # warnings.warn( 3499s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 3499s # ) 3499s password = passwd 3499s 3499s if compress or named_pipe: 3499s raise NotImplementedError( 3499s "compress and named_pipe arguments are not supported" 3499s ) 3499s 3499s self._local_infile = bool(local_infile) 3499s if self._local_infile: 3499s client_flag |= CLIENT.LOCAL_FILES 3499s 3499s if read_default_group and not read_default_file: 3499s if sys.platform.startswith("win"): 3499s read_default_file = "c:\\my.ini" 3499s else: 3499s read_default_file = "/etc/my.cnf" 3499s 3499s if read_default_file: 3499s if not read_default_group: 3499s read_default_group = "client" 3499s 3499s cfg = Parser() 3499s cfg.read(os.path.expanduser(read_default_file)) 3499s 3499s def _config(key, arg): 3499s if arg: 3499s return arg 3499s try: 3499s return cfg.get(read_default_group, key) 3499s except Exception: 3499s return arg 3499s 3499s user = _config("user", user) 3499s password = _config("password", password) 3499s host = _config("host", host) 3499s database = _config("database", database) 3499s unix_socket = _config("socket", unix_socket) 3499s port = int(_config("port", port)) 3499s bind_address = _config("bind-address", bind_address) 3499s charset = _config("default-character-set", charset) 3499s if not ssl: 3499s ssl = {} 3499s if isinstance(ssl, dict): 3499s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 3499s value = _config("ssl-" + key, ssl.get(key)) 3499s if value: 3499s ssl[key] = value 3499s 3499s self.ssl = False 3499s if not ssl_disabled: 3499s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 3499s ssl = { 3499s "ca": ssl_ca, 3499s "check_hostname": bool(ssl_verify_identity), 3499s "verify_mode": ssl_verify_cert 3499s if ssl_verify_cert is not None 3499s else False, 3499s } 3499s if ssl_cert is not None: 3499s ssl["cert"] = ssl_cert 3499s if ssl_key is not None: 3499s ssl["key"] = ssl_key 3499s if ssl_key_password is not None: 3499s ssl["password"] = ssl_key_password 3499s if ssl: 3499s if not SSL_ENABLED: 3499s raise NotImplementedError("ssl module not found") 3499s self.ssl = True 3499s client_flag |= CLIENT.SSL 3499s self.ctx = self._create_ssl_ctx(ssl) 3499s 3499s self.host = host or "localhost" 3499s self.port = port or 3306 3499s if type(self.port) is not int: 3499s raise ValueError("port should be of type int") 3499s self.user = user or DEFAULT_USER 3499s self.password = password or b"" 3499s if isinstance(self.password, str): 3499s self.password = self.password.encode("latin1") 3499s self.db = database 3499s self.unix_socket = unix_socket 3499s self.bind_address = bind_address 3499s if not (0 < connect_timeout <= 31536000): 3499s raise ValueError("connect_timeout should be >0 and <=31536000") 3499s self.connect_timeout = connect_timeout or None 3499s if read_timeout is not None and read_timeout <= 0: 3499s raise ValueError("read_timeout should be > 0") 3499s self._read_timeout = read_timeout 3499s if write_timeout is not None and write_timeout <= 0: 3499s raise ValueError("write_timeout should be > 0") 3499s self._write_timeout = write_timeout 3499s 3499s self.charset = charset or DEFAULT_CHARSET 3499s self.collation = collation 3499s self.use_unicode = use_unicode 3499s 3499s self.encoding = charset_by_name(self.charset).encoding 3499s 3499s client_flag |= CLIENT.CAPABILITIES 3499s if self.db: 3499s client_flag |= CLIENT.CONNECT_WITH_DB 3499s 3499s self.client_flag = client_flag 3499s 3499s self.cursorclass = cursorclass 3499s 3499s self._result = None 3499s self._affected_rows = 0 3499s self.host_info = "Not connected" 3499s 3499s # specified autocommit mode. None means use server default. 3499s self.autocommit_mode = autocommit 3499s 3499s if conv is None: 3499s conv = converters.conversions 3499s 3499s # Need for MySQLdb compatibility. 3499s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 3499s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 3499s self.sql_mode = sql_mode 3499s self.init_command = init_command 3499s self.max_allowed_packet = max_allowed_packet 3499s self._auth_plugin_map = auth_plugin_map or {} 3499s self._binary_prefix = binary_prefix 3499s self.server_public_key = server_public_key 3499s 3499s self._connect_attrs = { 3499s "_client_name": "pymysql", 3499s "_client_version": VERSION_STRING, 3499s "_pid": str(os.getpid()), 3499s } 3499s 3499s if program_name: 3499s self._connect_attrs["program_name"] = program_name 3499s 3499s if defer_connect: 3499s self._sock = None 3499s else: 3499s > self.connect() 3499s 3499s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = , sock = None 3499s 3499s def connect(self, sock=None): 3499s self._closed = False 3499s try: 3499s if sock is None: 3499s if self.unix_socket: 3499s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3499s sock.settimeout(self.connect_timeout) 3499s sock.connect(self.unix_socket) 3499s self.host_info = "Localhost via UNIX socket" 3499s self._secure = True 3499s if DEBUG: 3499s print("connected using unix_socket") 3499s else: 3499s kwargs = {} 3499s if self.bind_address is not None: 3499s kwargs["source_address"] = (self.bind_address, 0) 3499s while True: 3499s try: 3499s sock = socket.create_connection( 3499s (self.host, self.port), self.connect_timeout, **kwargs 3499s ) 3499s break 3499s except OSError as e: 3499s if e.errno == errno.EINTR: 3499s continue 3499s raise 3499s self.host_info = "socket %s:%d" % (self.host, self.port) 3499s if DEBUG: 3499s print("connected using socket") 3499s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 3499s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 3499s sock.settimeout(None) 3499s 3499s self._sock = sock 3499s self._rfile = sock.makefile("rb") 3499s self._next_seq_id = 0 3499s 3499s self._get_server_information() 3499s self._request_authentication() 3499s 3499s # Send "SET NAMES" query on init for: 3499s # - Ensure charaset (and collation) is set to the server. 3499s # - collation_id in handshake packet may be ignored. 3499s # - If collation is not specified, we don't know what is server's 3499s # default collation for the charset. For example, default collation 3499s # of utf8mb4 is: 3499s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 3499s # - MySQL 8.0: utf8mb4_0900_ai_ci 3499s # 3499s # Reference: 3499s # - https://github.com/PyMySQL/PyMySQL/issues/1092 3499s # - https://github.com/wagtail/wagtail/issues/9477 3499s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 3499s self.set_character_set(self.charset, self.collation) 3499s 3499s if self.sql_mode is not None: 3499s c = self.cursor() 3499s c.execute("SET sql_mode=%s", (self.sql_mode,)) 3499s c.close() 3499s 3499s if self.init_command is not None: 3499s c = self.cursor() 3499s c.execute(self.init_command) 3499s c.close() 3499s 3499s if self.autocommit_mode is not None: 3499s self.autocommit(self.autocommit_mode) 3499s except BaseException as e: 3499s self._rfile = None 3499s if sock is not None: 3499s try: 3499s sock.close() 3499s except: # noqa 3499s pass 3499s 3499s if isinstance(e, (OSError, IOError)): 3499s exc = err.OperationalError( 3499s CR.CR_CONN_HOST_ERROR, 3499s f"Can't connect to MySQL server on {self.host!r} ({e})", 3499s ) 3499s # Keep original exception and traceback to investigate error. 3499s exc.original_exception = e 3499s exc.traceback = traceback.format_exc() 3499s if DEBUG: 3499s print(exc.traceback) 3499s > raise exc 3499s E pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3499s 3499s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 3499s 3499s The above exception was the direct cause of the following exception: 3499s 3499s conn = 'mysql_pymysql_engine', method = None 3499s test_frame1 = index A B C D 3499s 0 2000-01-03 00:00:00 0.980269 3.685731 -0.364217 -1...0-01-05 00:00:00 0.498581 0.731168 -0.537677 1.346270 3499s 3 2000-01-06 00:00:00 1.120202 1.567621 0.003641 0.675253 3499s request = > 3499s 3499s @pytest.mark.db 3499s @pytest.mark.parametrize("conn", all_connectable) 3499s @pytest.mark.parametrize("method", [None, "multi"]) 3499s def test_to_sql(conn, method, test_frame1, request): 3499s > conn = request.getfixturevalue(conn) 3499s 3499s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:595: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = > 3499s argname = 'mysql_pymysql_engine' 3499s 3499s def getfixturevalue(self, argname: str) -> Any: 3499s """Dynamically run a named fixture function. 3499s 3499s Declaring fixtures via function argument is recommended where possible. 3499s But if you can only decide whether to use another fixture at test 3499s setup time, you may use this function to retrieve it inside a fixture 3499s or test function body. 3499s 3499s This method can be used during the test setup phase or the test run 3499s phase, but during the test teardown phase a fixture's value may not 3499s be available. 3499s 3499s :param argname: 3499s The fixture name. 3499s :raises pytest.FixtureLookupError: 3499s If the given fixture could not be found. 3499s """ 3499s > fixturedef = self._get_active_fixturedef(argname) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:585: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = > 3499s argname = 'mysql_pymysql_engine' 3499s 3499s def _get_active_fixturedef( 3499s self, argname: str 3499s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3499s try: 3499s return self._fixture_defs[argname] 3499s except KeyError: 3499s try: 3499s fixturedef = self._getnextfixturedef(argname) 3499s except FixtureLookupError: 3499s if argname == "request": 3499s cached_result = (self, [0], None) 3499s return PseudoFixtureDef(cached_result, Scope.Function) 3499s raise 3499s # Remove indent to prevent the python3 exception 3499s # from leaking into the call. 3499s > self._compute_fixture_value(fixturedef) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = > 3499s fixturedef = 3499s 3499s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3499s """Create a SubRequest based on "self" and call the execute method 3499s of the given FixtureDef object. 3499s 3499s This will force the FixtureDef object to throw away any previous 3499s results and compute a new fixture value, which will be stored into 3499s the FixtureDef object itself. 3499s """ 3499s # prepare a subrequest object before calling fixture function 3499s # (latter managed by fixturedef) 3499s argname = fixturedef.argname 3499s funcitem = self._pyfuncitem 3499s scope = fixturedef._scope 3499s try: 3499s callspec = funcitem.callspec 3499s except AttributeError: 3499s callspec = None 3499s if callspec is not None and argname in callspec.params: 3499s param = callspec.params[argname] 3499s param_index = callspec.indices[argname] 3499s # If a parametrize invocation set a scope it will override 3499s # the static scope defined with the fixture function. 3499s with suppress(KeyError): 3499s scope = callspec._arg2scope[argname] 3499s else: 3499s param = NOTSET 3499s param_index = 0 3499s has_params = fixturedef.params is not None 3499s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3499s if has_params and fixtures_not_supported: 3499s msg = ( 3499s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3499s "Node id: {nodeid}\n" 3499s "Function type: {typename}" 3499s ).format( 3499s name=funcitem.name, 3499s nodeid=funcitem.nodeid, 3499s typename=type(funcitem).__name__, 3499s ) 3499s fail(msg, pytrace=False) 3499s if has_params: 3499s frame = inspect.stack()[3] 3499s frameinfo = inspect.getframeinfo(frame[0]) 3499s source_path = absolutepath(frameinfo.filename) 3499s source_lineno = frameinfo.lineno 3499s try: 3499s source_path_str = str( 3499s source_path.relative_to(funcitem.config.rootpath) 3499s ) 3499s except ValueError: 3499s source_path_str = str(source_path) 3499s msg = ( 3499s "The requested fixture has no parameter defined for test:\n" 3499s " {}\n\n" 3499s "Requested fixture '{}' defined in:\n{}" 3499s "\n\nRequested here:\n{}:{}".format( 3499s funcitem.nodeid, 3499s fixturedef.argname, 3499s getlocation(fixturedef.func, funcitem.config.rootpath), 3499s source_path_str, 3499s source_lineno, 3499s ) 3499s ) 3499s fail(msg, pytrace=False) 3499s 3499s subrequest = SubRequest( 3499s self, scope, param, param_index, fixturedef, _ispytest=True 3499s ) 3499s 3499s # Check if a higher-level scoped fixture accesses a lower level one. 3499s subrequest._check_scope(argname, self._scope, scope) 3499s try: 3499s # Call the fixture function. 3499s > fixturedef.execute(request=subrequest) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s request = > 3499s 3499s def execute(self, request: SubRequest) -> FixtureValue: 3499s # Get required arguments and register our own finish() 3499s # with their finalization. 3499s for argname in self.argnames: 3499s fixturedef = request._get_active_fixturedef(argname) 3499s if argname != "request": 3499s # PseudoFixtureDef is only for "request". 3499s assert isinstance(fixturedef, FixtureDef) 3499s fixturedef.addfinalizer(functools.partial(self.finish, request=request)) 3499s 3499s my_cache_key = self.cache_key(request) 3499s if self.cached_result is not None: 3499s # note: comparison with `==` can fail (or be expensive) for e.g. 3499s # numpy arrays (#6497). 3499s cache_key = self.cached_result[1] 3499s if my_cache_key is cache_key: 3499s if self.cached_result[2] is not None: 3499s _, val, tb = self.cached_result[2] 3499s raise val.with_traceback(tb) 3499s else: 3499s result = self.cached_result[0] 3499s return result 3499s # We have a previous but differently parametrized fixture instance 3499s # so we need to tear it down before creating a new one. 3499s self.finish(request) 3499s assert self.cached_result is None 3499s 3499s ihook = request.node.ihook 3499s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1069: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s kwargs = {'fixturedef': , 'request': >} 3499s firstresult = True 3499s 3499s def __call__(self, **kwargs: object) -> Any: 3499s """Call the hook. 3499s 3499s Only accepts keyword arguments, which should match the hook 3499s specification. 3499s 3499s Returns the result(s) of calling all registered plugins, see 3499s :ref:`calling`. 3499s """ 3499s assert ( 3499s not self.is_historic() 3499s ), "Cannot directly call a historic hook - use call_historic instead." 3499s self._verify_all_args_are_provided(kwargs) 3499s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 3499s # Copy because plugins may register other plugins during iteration (#438). 3499s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 3499s 3499s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = <_pytest.config.PytestPluginManager object at 0xe9079168> 3499s hook_name = 'pytest_fixture_setup' 3499s methods = [>] 3499s kwargs = {'fixturedef': , 'request': >} 3499s firstresult = True 3499s 3499s def _hookexec( 3499s self, 3499s hook_name: str, 3499s methods: Sequence[HookImpl], 3499s kwargs: Mapping[str, object], 3499s firstresult: bool, 3499s ) -> object | list[object]: 3499s # called from all hookcaller instances. 3499s # enable_tracing will set its own wrapping function at self._inner_hookexec 3499s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 3499s 3499s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s fixturedef = 3499s request = > 3499s 3499s def pytest_fixture_setup( 3499s fixturedef: FixtureDef[FixtureValue], request: SubRequest 3499s ) -> FixtureValue: 3499s """Execution of fixture setup.""" 3499s kwargs = {} 3499s for argname in fixturedef.argnames: 3499s fixdef = request._get_active_fixturedef(argname) 3499s assert fixdef.cached_result is not None 3499s result, arg_cache_key, exc = fixdef.cached_result 3499s request._check_scope(argname, request._scope, fixdef._scope) 3499s kwargs[argname] = result 3499s 3499s fixturefunc = resolve_fixture_function(fixturedef, request) 3499s my_cache_key = fixturedef.cache_key(request) 3499s try: 3499s > result = call_fixture_func(fixturefunc, request, kwargs) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1123: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s fixturefunc = 3499s request = > 3499s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv'), 'types_data': [{'B... False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}]} 3499s 3499s def call_fixture_func( 3499s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 3499s ) -> FixtureValue: 3499s if is_generator(fixturefunc): 3499s fixturefunc = cast( 3499s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 3499s ) 3499s generator = fixturefunc(**kwargs) 3499s try: 3499s > fixture_result = next(generator) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:895: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s iris_path = PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv') 3499s types_data = [{'BoolCol': False, 'BoolColWithNull': False, 'DateCol': '2000-01-03 00:00:00', 'DateColWithTz': '2000-01-01 00:00:00-...: False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}] 3499s 3499s @pytest.fixture 3499s def mysql_pymysql_engine(iris_path, types_data): 3499s sqlalchemy = pytest.importorskip("sqlalchemy") 3499s pymysql = pytest.importorskip("pymysql") 3499s engine = sqlalchemy.create_engine( 3499s "mysql+pymysql://root@localhost:3306/pandas", 3499s connect_args={"client_flag": pymysql.constants.CLIENT.MULTI_STATEMENTS}, 3499s poolclass=sqlalchemy.pool.NullPool, 3499s ) 3499s > insp = sqlalchemy.inspect(engine) 3499s 3499s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:409: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s subject = Engine(mysql+pymysql://root@localhost:3306/pandas), raiseerr = True 3499s 3499s def inspect(subject, raiseerr=True): 3499s """Produce an inspection object for the given target. 3499s 3499s The returned value in some cases may be the 3499s same object as the one given, such as if a 3499s :class:`_orm.Mapper` object is passed. In other 3499s cases, it will be an instance of the registered 3499s inspection type for the given object, such as 3499s if an :class:`_engine.Engine` is passed, an 3499s :class:`_reflection.Inspector` object is returned. 3499s 3499s :param subject: the subject to be inspected. 3499s :param raiseerr: When ``True``, if the given subject 3499s does not 3499s correspond to a known SQLAlchemy inspected type, 3499s :class:`sqlalchemy.exc.NoInspectionAvailable` 3499s is raised. If ``False``, ``None`` is returned. 3499s 3499s """ 3499s type_ = type(subject) 3499s for cls in type_.__mro__: 3499s if cls in _registrars: 3499s reg = _registrars[cls] 3499s if reg is True: 3499s return subject 3499s > ret = reg(subject) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:64: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 3499s 3499s @inspection._inspects(Engine) 3499s def _engine_insp(bind): 3499s > return Inspector._construct(Inspector._init_engine, bind) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:182: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s init = 3499s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 3499s 3499s @classmethod 3499s def _construct(cls, init, bind): 3499s 3499s if hasattr(bind.dialect, "inspector"): 3499s cls = bind.dialect.inspector 3499s 3499s self = cls.__new__(cls) 3499s > init(self, bind) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:117: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 3499s 3499s def _init_engine(self, engine): 3499s self.bind = self.engine = engine 3499s > engine.connect().close() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:128: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3499s close_with_result = False 3499s 3499s def connect(self, close_with_result=False): 3499s """Return a new :class:`_engine.Connection` object. 3499s 3499s The :class:`_engine.Connection` object is a facade that uses a DBAPI 3499s connection internally in order to communicate with the database. This 3499s connection is procured from the connection-holding :class:`_pool.Pool` 3499s referenced by this :class:`_engine.Engine`. When the 3499s :meth:`_engine.Connection.close` method of the 3499s :class:`_engine.Connection` object 3499s is called, the underlying DBAPI connection is then returned to the 3499s connection pool, where it may be used again in a subsequent call to 3499s :meth:`_engine.Engine.connect`. 3499s 3499s """ 3499s 3499s > return self._connection_cls(self, close_with_result=close_with_result) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3325: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 3499s close_with_result = False, _branch_from = None, _execution_options = None 3499s _dispatch = None, _has_events = None, _allow_revalidate = True 3499s 3499s def __init__( 3499s self, 3499s engine, 3499s connection=None, 3499s close_with_result=False, 3499s _branch_from=None, 3499s _execution_options=None, 3499s _dispatch=None, 3499s _has_events=None, 3499s _allow_revalidate=True, 3499s ): 3499s """Construct a new Connection.""" 3499s self.engine = engine 3499s self.dialect = engine.dialect 3499s self.__branch_from = _branch_from 3499s 3499s if _branch_from: 3499s # branching is always "from" the root connection 3499s assert _branch_from.__branch_from is None 3499s self._dbapi_connection = connection 3499s self._execution_options = _execution_options 3499s self._echo = _branch_from._echo 3499s self.should_close_with_result = False 3499s self.dispatch = _dispatch 3499s self._has_events = _branch_from._has_events 3499s else: 3499s self._dbapi_connection = ( 3499s connection 3499s if connection is not None 3499s > else engine.raw_connection() 3499s ) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:96: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = Engine(mysql+pymysql://root@localhost:3306/pandas), _connection = None 3499s 3499s def raw_connection(self, _connection=None): 3499s """Return a "raw" DBAPI connection from the connection pool. 3499s 3499s The returned object is a proxied version of the DBAPI 3499s connection object used by the underlying driver in use. 3499s The object will have all the same behavior as the real DBAPI 3499s connection, except that its ``close()`` method will result in the 3499s connection being returned to the pool, rather than being closed 3499s for real. 3499s 3499s This method provides direct DBAPI connection access for 3499s special situations when the API provided by 3499s :class:`_engine.Connection` 3499s is not needed. When a :class:`_engine.Connection` object is already 3499s present, the DBAPI connection is available using 3499s the :attr:`_engine.Connection.connection` accessor. 3499s 3499s .. seealso:: 3499s 3499s :ref:`dbapi_connections` 3499s 3499s """ 3499s > return self._wrap_pool_connect(self.pool.connect, _connection) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3404: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3499s fn = > 3499s connection = None 3499s 3499s def _wrap_pool_connect(self, fn, connection): 3499s dialect = self.dialect 3499s try: 3499s return fn() 3499s except dialect.dbapi.Error as e: 3499s if connection is None: 3499s > Connection._handle_dbapi_exception_noconnection( 3499s e, dialect, self 3499s ) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3374: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s e = OperationalError(2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3499s dialect = 3499s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 3499s 3499s @classmethod 3499s def _handle_dbapi_exception_noconnection(cls, e, dialect, engine): 3499s exc_info = sys.exc_info() 3499s 3499s is_disconnect = dialect.is_disconnect(e, None, None) 3499s 3499s should_wrap = isinstance(e, dialect.dbapi.Error) 3499s 3499s if should_wrap: 3499s sqlalchemy_exception = exc.DBAPIError.instance( 3499s None, 3499s None, 3499s e, 3499s dialect.dbapi.Error, 3499s hide_parameters=engine.hide_parameters, 3499s connection_invalidated=is_disconnect, 3499s ) 3499s else: 3499s sqlalchemy_exception = None 3499s 3499s newraise = None 3499s 3499s if engine._has_events: 3499s ctx = ExceptionContextImpl( 3499s e, 3499s sqlalchemy_exception, 3499s engine, 3499s None, 3499s None, 3499s None, 3499s None, 3499s None, 3499s is_disconnect, 3499s True, 3499s ) 3499s for fn in engine.dispatch.handle_error: 3499s try: 3499s # handler returns an exception; 3499s # call next handler in a chain 3499s per_fn = fn(ctx) 3499s if per_fn is not None: 3499s ctx.chained_exception = newraise = per_fn 3499s except Exception as _raised: 3499s # handler raises an exception - stop processing 3499s newraise = _raised 3499s break 3499s 3499s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 3499s sqlalchemy_exception.connection_invalidated = ( 3499s is_disconnect 3499s ) = ctx.is_disconnect 3499s 3499s if newraise: 3499s util.raise_(newraise, with_traceback=exc_info[2], from_=e) 3499s elif should_wrap: 3499s > util.raise_( 3499s sqlalchemy_exception, with_traceback=exc_info[2], from_=e 3499s ) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2208: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s def raise_( 3499s exception, with_traceback=None, replace_context=None, from_=False 3499s ): 3499s r"""implement "raise" with cause support. 3499s 3499s :param exception: exception to raise 3499s :param with_traceback: will call exception.with_traceback() 3499s :param replace_context: an as-yet-unsupported feature. This is 3499s an exception object which we are "replacing", e.g., it's our 3499s "cause" but we don't want it printed. Basically just what 3499s ``__suppress_context__`` does but we don't want to suppress 3499s the enclosing context, if any. So for now we make it the 3499s cause. 3499s :param from\_: the cause. this actually sets the cause and doesn't 3499s hope to hide it someday. 3499s 3499s """ 3499s if with_traceback is not None: 3499s exception = exception.with_traceback(with_traceback) 3499s 3499s if from_ is not False: 3499s exception.__cause__ = from_ 3499s elif replace_context is not None: 3499s # no good solution here, we would like to have the exception 3499s # have only the context of replace_context.__context__ so that the 3499s # intermediary exception does not change, but we can't figure 3499s # that out. 3499s exception.__cause__ = replace_context 3499s 3499s try: 3499s > raise exception 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3499s fn = > 3499s connection = None 3499s 3499s def _wrap_pool_connect(self, fn, connection): 3499s dialect = self.dialect 3499s try: 3499s > return fn() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def connect(self): 3499s """Return a DBAPI connection from the pool. 3499s 3499s The connection is instrumented such that when its 3499s ``close()`` method is called, the connection will be returned to 3499s the pool. 3499s 3499s """ 3499s > return _ConnectionFairy._checkout(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s pool = , threadconns = None 3499s fairy = None 3499s 3499s @classmethod 3499s def _checkout(cls, pool, threadconns=None, fairy=None): 3499s if not fairy: 3499s > fairy = _ConnectionRecord.checkout(pool) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s pool = 3499s 3499s @classmethod 3499s def checkout(cls, pool): 3499s > rec = pool._do_get() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def _do_get(self): 3499s > return self._create_connection() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def _create_connection(self): 3499s """Called by subclasses to create a new ConnectionRecord.""" 3499s 3499s > return _ConnectionRecord(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s pool = , connect = True 3499s 3499s def __init__(self, pool, connect=True): 3499s self.__pool = pool 3499s if connect: 3499s > self.__connect() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def __connect(self): 3499s pool = self.__pool 3499s 3499s # ensure any existing connection is removed, so that if 3499s # creator fails, this attribute stays None 3499s self.dbapi_connection = None 3499s try: 3499s self.starttime = time.time() 3499s self.dbapi_connection = connection = pool._invoke_creator(self) 3499s pool.logger.debug("Created new connection %r", connection) 3499s self.fresh = True 3499s except BaseException as e: 3499s > with util.safe_reraise(): 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s type_ = None, value = None, traceback = None 3499s 3499s def __exit__(self, type_, value, traceback): 3499s # see #2703 for notes 3499s if type_ is None: 3499s exc_type, exc_value, exc_tb = self._exc_info 3499s self._exc_info = None # remove potential circular references 3499s if not self.warn_only: 3499s > compat.raise_( 3499s exc_value, 3499s with_traceback=exc_tb, 3499s ) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s def raise_( 3499s exception, with_traceback=None, replace_context=None, from_=False 3499s ): 3499s r"""implement "raise" with cause support. 3499s 3499s :param exception: exception to raise 3499s :param with_traceback: will call exception.with_traceback() 3499s :param replace_context: an as-yet-unsupported feature. This is 3499s an exception object which we are "replacing", e.g., it's our 3499s "cause" but we don't want it printed. Basically just what 3499s ``__suppress_context__`` does but we don't want to suppress 3499s the enclosing context, if any. So for now we make it the 3499s cause. 3499s :param from\_: the cause. this actually sets the cause and doesn't 3499s hope to hide it someday. 3499s 3499s """ 3499s if with_traceback is not None: 3499s exception = exception.with_traceback(with_traceback) 3499s 3499s if from_ is not False: 3499s exception.__cause__ = from_ 3499s elif replace_context is not None: 3499s # no good solution here, we would like to have the exception 3499s # have only the context of replace_context.__context__ so that the 3499s # intermediary exception does not change, but we can't figure 3499s # that out. 3499s exception.__cause__ = replace_context 3499s 3499s try: 3499s > raise exception 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def __connect(self): 3499s pool = self.__pool 3499s 3499s # ensure any existing connection is removed, so that if 3499s # creator fails, this attribute stays None 3499s self.dbapi_connection = None 3499s try: 3499s self.starttime = time.time() 3499s > self.dbapi_connection = connection = pool._invoke_creator(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s connection_record = 3499s 3499s def connect(connection_record=None): 3499s if dialect._has_events: 3499s for fn in dialect.dispatch.do_connect: 3499s connection = fn(dialect, connection_record, cargs, cparams) 3499s if connection is not None: 3499s return connection 3499s > return dialect.connect(*cargs, **cparams) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s cargs = () 3499s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 3499s 3499s def connect(self, *cargs, **cparams): 3499s # inherits the docstring from interfaces.Dialect.connect 3499s > return self.dbapi.connect(*cargs, **cparams) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def __init__( 3499s self, 3499s *, 3499s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 3499s password="", 3499s host=None, 3499s database=None, 3499s unix_socket=None, 3499s port=0, 3499s charset="", 3499s collation=None, 3499s sql_mode=None, 3499s read_default_file=None, 3499s conv=None, 3499s use_unicode=True, 3499s client_flag=0, 3499s cursorclass=Cursor, 3499s init_command=None, 3499s connect_timeout=10, 3499s read_default_group=None, 3499s autocommit=False, 3499s local_infile=False, 3499s max_allowed_packet=16 * 1024 * 1024, 3499s defer_connect=False, 3499s auth_plugin_map=None, 3499s read_timeout=None, 3499s write_timeout=None, 3499s bind_address=None, 3499s binary_prefix=False, 3499s program_name=None, 3499s server_public_key=None, 3499s ssl=None, 3499s ssl_ca=None, 3499s ssl_cert=None, 3499s ssl_disabled=None, 3499s ssl_key=None, 3499s ssl_key_password=None, 3499s ssl_verify_cert=None, 3499s ssl_verify_identity=None, 3499s compress=None, # not supported 3499s named_pipe=None, # not supported 3499s passwd=None, # deprecated 3499s db=None, # deprecated 3499s ): 3499s if db is not None and database is None: 3499s # We will raise warning in 2022 or later. 3499s # See https://github.com/PyMySQL/PyMySQL/issues/939 3499s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 3499s database = db 3499s if passwd is not None and not password: 3499s # We will raise warning in 2022 or later. 3499s # See https://github.com/PyMySQL/PyMySQL/issues/939 3499s # warnings.warn( 3499s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 3499s # ) 3499s password = passwd 3499s 3499s if compress or named_pipe: 3499s raise NotImplementedError( 3499s "compress and named_pipe arguments are not supported" 3499s ) 3499s 3499s self._local_infile = bool(local_infile) 3499s if self._local_infile: 3499s client_flag |= CLIENT.LOCAL_FILES 3499s 3499s if read_default_group and not read_default_file: 3499s if sys.platform.startswith("win"): 3499s read_default_file = "c:\\my.ini" 3499s else: 3499s read_default_file = "/etc/my.cnf" 3499s 3499s if read_default_file: 3499s if not read_default_group: 3499s read_default_group = "client" 3499s 3499s cfg = Parser() 3499s cfg.read(os.path.expanduser(read_default_file)) 3499s 3499s def _config(key, arg): 3499s if arg: 3499s return arg 3499s try: 3499s return cfg.get(read_default_group, key) 3499s except Exception: 3499s return arg 3499s 3499s user = _config("user", user) 3499s password = _config("password", password) 3499s host = _config("host", host) 3499s database = _config("database", database) 3499s unix_socket = _config("socket", unix_socket) 3499s port = int(_config("port", port)) 3499s bind_address = _config("bind-address", bind_address) 3499s charset = _config("default-character-set", charset) 3499s if not ssl: 3499s ssl = {} 3499s if isinstance(ssl, dict): 3499s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 3499s value = _config("ssl-" + key, ssl.get(key)) 3499s if value: 3499s ssl[key] = value 3499s 3499s self.ssl = False 3499s if not ssl_disabled: 3499s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 3499s ssl = { 3499s "ca": ssl_ca, 3499s "check_hostname": bool(ssl_verify_identity), 3499s "verify_mode": ssl_verify_cert 3499s if ssl_verify_cert is not None 3499s else False, 3499s } 3499s if ssl_cert is not None: 3499s ssl["cert"] = ssl_cert 3499s if ssl_key is not None: 3499s ssl["key"] = ssl_key 3499s if ssl_key_password is not None: 3499s ssl["password"] = ssl_key_password 3499s if ssl: 3499s if not SSL_ENABLED: 3499s raise NotImplementedError("ssl module not found") 3499s self.ssl = True 3499s client_flag |= CLIENT.SSL 3499s self.ctx = self._create_ssl_ctx(ssl) 3499s 3499s self.host = host or "localhost" 3499s self.port = port or 3306 3499s if type(self.port) is not int: 3499s raise ValueError("port should be of type int") 3499s self.user = user or DEFAULT_USER 3499s self.password = password or b"" 3499s if isinstance(self.password, str): 3499s self.password = self.password.encode("latin1") 3499s self.db = database 3499s self.unix_socket = unix_socket 3499s self.bind_address = bind_address 3499s if not (0 < connect_timeout <= 31536000): 3499s raise ValueError("connect_timeout should be >0 and <=31536000") 3499s self.connect_timeout = connect_timeout or None 3499s if read_timeout is not None and read_timeout <= 0: 3499s raise ValueError("read_timeout should be > 0") 3499s self._read_timeout = read_timeout 3499s if write_timeout is not None and write_timeout <= 0: 3499s raise ValueError("write_timeout should be > 0") 3499s self._write_timeout = write_timeout 3499s 3499s self.charset = charset or DEFAULT_CHARSET 3499s self.collation = collation 3499s self.use_unicode = use_unicode 3499s 3499s self.encoding = charset_by_name(self.charset).encoding 3499s 3499s client_flag |= CLIENT.CAPABILITIES 3499s if self.db: 3499s client_flag |= CLIENT.CONNECT_WITH_DB 3499s 3499s self.client_flag = client_flag 3499s 3499s self.cursorclass = cursorclass 3499s 3499s self._result = None 3499s self._affected_rows = 0 3499s self.host_info = "Not connected" 3499s 3499s # specified autocommit mode. None means use server default. 3499s self.autocommit_mode = autocommit 3499s 3499s if conv is None: 3499s conv = converters.conversions 3499s 3499s # Need for MySQLdb compatibility. 3499s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 3499s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 3499s self.sql_mode = sql_mode 3499s self.init_command = init_command 3499s self.max_allowed_packet = max_allowed_packet 3499s self._auth_plugin_map = auth_plugin_map or {} 3499s self._binary_prefix = binary_prefix 3499s self.server_public_key = server_public_key 3499s 3499s self._connect_attrs = { 3499s "_client_name": "pymysql", 3499s "_client_version": VERSION_STRING, 3499s "_pid": str(os.getpid()), 3499s } 3499s 3499s if program_name: 3499s self._connect_attrs["program_name"] = program_name 3499s 3499s if defer_connect: 3499s self._sock = None 3499s else: 3499s > self.connect() 3499s 3499s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = , sock = None 3499s 3499s def connect(self, sock=None): 3499s self._closed = False 3499s try: 3499s if sock is None: 3499s if self.unix_socket: 3499s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3499s sock.settimeout(self.connect_timeout) 3499s sock.connect(self.unix_socket) 3499s self.host_info = "Localhost via UNIX socket" 3499s self._secure = True 3499s if DEBUG: 3499s print("connected using unix_socket") 3499s else: 3499s kwargs = {} 3499s if self.bind_address is not None: 3499s kwargs["source_address"] = (self.bind_address, 0) 3499s while True: 3499s try: 3499s sock = socket.create_connection( 3499s (self.host, self.port), self.connect_timeout, **kwargs 3499s ) 3499s break 3499s except OSError as e: 3499s if e.errno == errno.EINTR: 3499s continue 3499s raise 3499s self.host_info = "socket %s:%d" % (self.host, self.port) 3499s if DEBUG: 3499s print("connected using socket") 3499s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 3499s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 3499s sock.settimeout(None) 3499s 3499s self._sock = sock 3499s self._rfile = sock.makefile("rb") 3499s self._next_seq_id = 0 3499s 3499s self._get_server_information() 3499s self._request_authentication() 3499s 3499s # Send "SET NAMES" query on init for: 3499s # - Ensure charaset (and collation) is set to the server. 3499s # - collation_id in handshake packet may be ignored. 3499s # - If collation is not specified, we don't know what is server's 3499s # default collation for the charset. For example, default collation 3499s # of utf8mb4 is: 3499s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 3499s # - MySQL 8.0: utf8mb4_0900_ai_ci 3499s # 3499s # Reference: 3499s # - https://github.com/PyMySQL/PyMySQL/issues/1092 3499s # - https://github.com/wagtail/wagtail/issues/9477 3499s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 3499s self.set_character_set(self.charset, self.collation) 3499s 3499s if self.sql_mode is not None: 3499s c = self.cursor() 3499s c.execute("SET sql_mode=%s", (self.sql_mode,)) 3499s c.close() 3499s 3499s if self.init_command is not None: 3499s c = self.cursor() 3499s c.execute(self.init_command) 3499s c.close() 3499s 3499s if self.autocommit_mode is not None: 3499s self.autocommit(self.autocommit_mode) 3499s except BaseException as e: 3499s self._rfile = None 3499s if sock is not None: 3499s try: 3499s sock.close() 3499s except: # noqa 3499s pass 3499s 3499s if isinstance(e, (OSError, IOError)): 3499s exc = err.OperationalError( 3499s CR.CR_CONN_HOST_ERROR, 3499s f"Can't connect to MySQL server on {self.host!r} ({e})", 3499s ) 3499s # Keep original exception and traceback to investigate error. 3499s exc.original_exception = e 3499s exc.traceback = traceback.format_exc() 3499s if DEBUG: 3499s print(exc.traceback) 3499s > raise exc 3499s E sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3499s E (Background on this error at: https://sqlalche.me/e/14/e3q8) 3499s 3499s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 3499s _____________________ test_to_sql[None-mysql_pymysql_conn] _____________________ 3499s self = , sock = None 3499s 3499s def connect(self, sock=None): 3499s self._closed = False 3499s try: 3499s if sock is None: 3499s if self.unix_socket: 3499s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3499s sock.settimeout(self.connect_timeout) 3499s sock.connect(self.unix_socket) 3499s self.host_info = "Localhost via UNIX socket" 3499s self._secure = True 3499s if DEBUG: 3499s print("connected using unix_socket") 3499s else: 3499s kwargs = {} 3499s if self.bind_address is not None: 3499s kwargs["source_address"] = (self.bind_address, 0) 3499s while True: 3499s try: 3499s > sock = socket.create_connection( 3499s (self.host, self.port), self.connect_timeout, **kwargs 3499s ) 3499s 3499s /usr/lib/python3/dist-packages/pymysql/connections.py:649: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s address = ('localhost', 3306), timeout = 10, source_address = None 3499s 3499s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 3499s source_address=None, *, all_errors=False): 3499s """Connect to *address* and return the socket object. 3499s 3499s Convenience function. Connect to *address* (a 2-tuple ``(host, 3499s port)``) and return the socket object. Passing the optional 3499s *timeout* parameter will set the timeout on the socket instance 3499s before attempting to connect. If no *timeout* is supplied, the 3499s global default timeout setting returned by :func:`getdefaulttimeout` 3499s is used. If *source_address* is set it must be a tuple of (host, port) 3499s for the socket to bind as a source address before making the connection. 3499s A host of '' or port 0 tells the OS to use the default. When a connection 3499s cannot be created, raises the last error if *all_errors* is False, 3499s and an ExceptionGroup of all errors if *all_errors* is True. 3499s """ 3499s 3499s host, port = address 3499s exceptions = [] 3499s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 3499s af, socktype, proto, canonname, sa = res 3499s sock = None 3499s try: 3499s sock = socket(af, socktype, proto) 3499s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 3499s sock.settimeout(timeout) 3499s if source_address: 3499s sock.bind(source_address) 3499s sock.connect(sa) 3499s # Break explicitly a reference cycle 3499s exceptions.clear() 3499s return sock 3499s 3499s except error as exc: 3499s if not all_errors: 3499s exceptions.clear() # raise only the last error 3499s exceptions.append(exc) 3499s if sock is not None: 3499s sock.close() 3499s 3499s if len(exceptions): 3499s try: 3499s if not all_errors: 3499s > raise exceptions[0] 3499s 3499s /usr/lib/python3.12/socket.py:853: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s address = ('localhost', 3306), timeout = 10, source_address = None 3499s 3499s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 3499s source_address=None, *, all_errors=False): 3499s """Connect to *address* and return the socket object. 3499s 3499s Convenience function. Connect to *address* (a 2-tuple ``(host, 3499s port)``) and return the socket object. Passing the optional 3499s *timeout* parameter will set the timeout on the socket instance 3499s before attempting to connect. If no *timeout* is supplied, the 3499s global default timeout setting returned by :func:`getdefaulttimeout` 3499s is used. If *source_address* is set it must be a tuple of (host, port) 3499s for the socket to bind as a source address before making the connection. 3499s A host of '' or port 0 tells the OS to use the default. When a connection 3499s cannot be created, raises the last error if *all_errors* is False, 3499s and an ExceptionGroup of all errors if *all_errors* is True. 3499s """ 3499s 3499s host, port = address 3499s exceptions = [] 3499s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 3499s af, socktype, proto, canonname, sa = res 3499s sock = None 3499s try: 3499s sock = socket(af, socktype, proto) 3499s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 3499s sock.settimeout(timeout) 3499s if source_address: 3499s sock.bind(source_address) 3499s > sock.connect(sa) 3499s E ConnectionRefusedError: [Errno 111] Connection refused 3499s 3499s /usr/lib/python3.12/socket.py:838: ConnectionRefusedError 3499s 3499s During handling of the above exception, another exception occurred: 3499s 3499s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3499s fn = > 3499s connection = None 3499s 3499s def _wrap_pool_connect(self, fn, connection): 3499s dialect = self.dialect 3499s try: 3499s > return fn() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def connect(self): 3499s """Return a DBAPI connection from the pool. 3499s 3499s The connection is instrumented such that when its 3499s ``close()`` method is called, the connection will be returned to 3499s the pool. 3499s 3499s """ 3499s > return _ConnectionFairy._checkout(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s pool = , threadconns = None 3499s fairy = None 3499s 3499s @classmethod 3499s def _checkout(cls, pool, threadconns=None, fairy=None): 3499s if not fairy: 3499s > fairy = _ConnectionRecord.checkout(pool) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s pool = 3499s 3499s @classmethod 3499s def checkout(cls, pool): 3499s > rec = pool._do_get() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def _do_get(self): 3499s > return self._create_connection() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def _create_connection(self): 3499s """Called by subclasses to create a new ConnectionRecord.""" 3499s 3499s > return _ConnectionRecord(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s pool = , connect = True 3499s 3499s def __init__(self, pool, connect=True): 3499s self.__pool = pool 3499s if connect: 3499s > self.__connect() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def __connect(self): 3499s pool = self.__pool 3499s 3499s # ensure any existing connection is removed, so that if 3499s # creator fails, this attribute stays None 3499s self.dbapi_connection = None 3499s try: 3499s self.starttime = time.time() 3499s self.dbapi_connection = connection = pool._invoke_creator(self) 3499s pool.logger.debug("Created new connection %r", connection) 3499s self.fresh = True 3499s except BaseException as e: 3499s > with util.safe_reraise(): 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s type_ = None, value = None, traceback = None 3499s 3499s def __exit__(self, type_, value, traceback): 3499s # see #2703 for notes 3499s if type_ is None: 3499s exc_type, exc_value, exc_tb = self._exc_info 3499s self._exc_info = None # remove potential circular references 3499s if not self.warn_only: 3499s > compat.raise_( 3499s exc_value, 3499s with_traceback=exc_tb, 3499s ) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s def raise_( 3499s exception, with_traceback=None, replace_context=None, from_=False 3499s ): 3499s r"""implement "raise" with cause support. 3499s 3499s :param exception: exception to raise 3499s :param with_traceback: will call exception.with_traceback() 3499s :param replace_context: an as-yet-unsupported feature. This is 3499s an exception object which we are "replacing", e.g., it's our 3499s "cause" but we don't want it printed. Basically just what 3499s ``__suppress_context__`` does but we don't want to suppress 3499s the enclosing context, if any. So for now we make it the 3499s cause. 3499s :param from\_: the cause. this actually sets the cause and doesn't 3499s hope to hide it someday. 3499s 3499s """ 3499s if with_traceback is not None: 3499s exception = exception.with_traceback(with_traceback) 3499s 3499s if from_ is not False: 3499s exception.__cause__ = from_ 3499s elif replace_context is not None: 3499s # no good solution here, we would like to have the exception 3499s # have only the context of replace_context.__context__ so that the 3499s # intermediary exception does not change, but we can't figure 3499s # that out. 3499s exception.__cause__ = replace_context 3499s 3499s try: 3499s > raise exception 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def __connect(self): 3499s pool = self.__pool 3499s 3499s # ensure any existing connection is removed, so that if 3499s # creator fails, this attribute stays None 3499s self.dbapi_connection = None 3499s try: 3499s self.starttime = time.time() 3499s > self.dbapi_connection = connection = pool._invoke_creator(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s connection_record = 3499s 3499s def connect(connection_record=None): 3499s if dialect._has_events: 3499s for fn in dialect.dispatch.do_connect: 3499s connection = fn(dialect, connection_record, cargs, cparams) 3499s if connection is not None: 3499s return connection 3499s > return dialect.connect(*cargs, **cparams) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s cargs = () 3499s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 3499s 3499s def connect(self, *cargs, **cparams): 3499s # inherits the docstring from interfaces.Dialect.connect 3499s > return self.dbapi.connect(*cargs, **cparams) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def __init__( 3499s self, 3499s *, 3499s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 3499s password="", 3499s host=None, 3499s database=None, 3499s unix_socket=None, 3499s port=0, 3499s charset="", 3499s collation=None, 3499s sql_mode=None, 3499s read_default_file=None, 3499s conv=None, 3499s use_unicode=True, 3499s client_flag=0, 3499s cursorclass=Cursor, 3499s init_command=None, 3499s connect_timeout=10, 3499s read_default_group=None, 3499s autocommit=False, 3499s local_infile=False, 3499s max_allowed_packet=16 * 1024 * 1024, 3499s defer_connect=False, 3499s auth_plugin_map=None, 3499s read_timeout=None, 3499s write_timeout=None, 3499s bind_address=None, 3499s binary_prefix=False, 3499s program_name=None, 3499s server_public_key=None, 3499s ssl=None, 3499s ssl_ca=None, 3499s ssl_cert=None, 3499s ssl_disabled=None, 3499s ssl_key=None, 3499s ssl_key_password=None, 3499s ssl_verify_cert=None, 3499s ssl_verify_identity=None, 3499s compress=None, # not supported 3499s named_pipe=None, # not supported 3499s passwd=None, # deprecated 3499s db=None, # deprecated 3499s ): 3499s if db is not None and database is None: 3499s # We will raise warning in 2022 or later. 3499s # See https://github.com/PyMySQL/PyMySQL/issues/939 3499s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 3499s database = db 3499s if passwd is not None and not password: 3499s # We will raise warning in 2022 or later. 3499s # See https://github.com/PyMySQL/PyMySQL/issues/939 3499s # warnings.warn( 3499s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 3499s # ) 3499s password = passwd 3499s 3499s if compress or named_pipe: 3499s raise NotImplementedError( 3499s "compress and named_pipe arguments are not supported" 3499s ) 3499s 3499s self._local_infile = bool(local_infile) 3499s if self._local_infile: 3499s client_flag |= CLIENT.LOCAL_FILES 3499s 3499s if read_default_group and not read_default_file: 3499s if sys.platform.startswith("win"): 3499s read_default_file = "c:\\my.ini" 3499s else: 3499s read_default_file = "/etc/my.cnf" 3499s 3499s if read_default_file: 3499s if not read_default_group: 3499s read_default_group = "client" 3499s 3499s cfg = Parser() 3499s cfg.read(os.path.expanduser(read_default_file)) 3499s 3499s def _config(key, arg): 3499s if arg: 3499s return arg 3499s try: 3499s return cfg.get(read_default_group, key) 3499s except Exception: 3499s return arg 3499s 3499s user = _config("user", user) 3499s password = _config("password", password) 3499s host = _config("host", host) 3499s database = _config("database", database) 3499s unix_socket = _config("socket", unix_socket) 3499s port = int(_config("port", port)) 3499s bind_address = _config("bind-address", bind_address) 3499s charset = _config("default-character-set", charset) 3499s if not ssl: 3499s ssl = {} 3499s if isinstance(ssl, dict): 3499s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 3499s value = _config("ssl-" + key, ssl.get(key)) 3499s if value: 3499s ssl[key] = value 3499s 3499s self.ssl = False 3499s if not ssl_disabled: 3499s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 3499s ssl = { 3499s "ca": ssl_ca, 3499s "check_hostname": bool(ssl_verify_identity), 3499s "verify_mode": ssl_verify_cert 3499s if ssl_verify_cert is not None 3499s else False, 3499s } 3499s if ssl_cert is not None: 3499s ssl["cert"] = ssl_cert 3499s if ssl_key is not None: 3499s ssl["key"] = ssl_key 3499s if ssl_key_password is not None: 3499s ssl["password"] = ssl_key_password 3499s if ssl: 3499s if not SSL_ENABLED: 3499s raise NotImplementedError("ssl module not found") 3499s self.ssl = True 3499s client_flag |= CLIENT.SSL 3499s self.ctx = self._create_ssl_ctx(ssl) 3499s 3499s self.host = host or "localhost" 3499s self.port = port or 3306 3499s if type(self.port) is not int: 3499s raise ValueError("port should be of type int") 3499s self.user = user or DEFAULT_USER 3499s self.password = password or b"" 3499s if isinstance(self.password, str): 3499s self.password = self.password.encode("latin1") 3499s self.db = database 3499s self.unix_socket = unix_socket 3499s self.bind_address = bind_address 3499s if not (0 < connect_timeout <= 31536000): 3499s raise ValueError("connect_timeout should be >0 and <=31536000") 3499s self.connect_timeout = connect_timeout or None 3499s if read_timeout is not None and read_timeout <= 0: 3499s raise ValueError("read_timeout should be > 0") 3499s self._read_timeout = read_timeout 3499s if write_timeout is not None and write_timeout <= 0: 3499s raise ValueError("write_timeout should be > 0") 3499s self._write_timeout = write_timeout 3499s 3499s self.charset = charset or DEFAULT_CHARSET 3499s self.collation = collation 3499s self.use_unicode = use_unicode 3499s 3499s self.encoding = charset_by_name(self.charset).encoding 3499s 3499s client_flag |= CLIENT.CAPABILITIES 3499s if self.db: 3499s client_flag |= CLIENT.CONNECT_WITH_DB 3499s 3499s self.client_flag = client_flag 3499s 3499s self.cursorclass = cursorclass 3499s 3499s self._result = None 3499s self._affected_rows = 0 3499s self.host_info = "Not connected" 3499s 3499s # specified autocommit mode. None means use server default. 3499s self.autocommit_mode = autocommit 3499s 3499s if conv is None: 3499s conv = converters.conversions 3499s 3499s # Need for MySQLdb compatibility. 3499s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 3499s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 3499s self.sql_mode = sql_mode 3499s self.init_command = init_command 3499s self.max_allowed_packet = max_allowed_packet 3499s self._auth_plugin_map = auth_plugin_map or {} 3499s self._binary_prefix = binary_prefix 3499s self.server_public_key = server_public_key 3499s 3499s self._connect_attrs = { 3499s "_client_name": "pymysql", 3499s "_client_version": VERSION_STRING, 3499s "_pid": str(os.getpid()), 3499s } 3499s 3499s if program_name: 3499s self._connect_attrs["program_name"] = program_name 3499s 3499s if defer_connect: 3499s self._sock = None 3499s else: 3499s > self.connect() 3499s 3499s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = , sock = None 3499s 3499s def connect(self, sock=None): 3499s self._closed = False 3499s try: 3499s if sock is None: 3499s if self.unix_socket: 3499s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3499s sock.settimeout(self.connect_timeout) 3499s sock.connect(self.unix_socket) 3499s self.host_info = "Localhost via UNIX socket" 3499s self._secure = True 3499s if DEBUG: 3499s print("connected using unix_socket") 3499s else: 3499s kwargs = {} 3499s if self.bind_address is not None: 3499s kwargs["source_address"] = (self.bind_address, 0) 3499s while True: 3499s try: 3499s sock = socket.create_connection( 3499s (self.host, self.port), self.connect_timeout, **kwargs 3499s ) 3499s break 3499s except OSError as e: 3499s if e.errno == errno.EINTR: 3499s continue 3499s raise 3499s self.host_info = "socket %s:%d" % (self.host, self.port) 3499s if DEBUG: 3499s print("connected using socket") 3499s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 3499s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 3499s sock.settimeout(None) 3499s 3499s self._sock = sock 3499s self._rfile = sock.makefile("rb") 3499s self._next_seq_id = 0 3499s 3499s self._get_server_information() 3499s self._request_authentication() 3499s 3499s # Send "SET NAMES" query on init for: 3499s # - Ensure charaset (and collation) is set to the server. 3499s # - collation_id in handshake packet may be ignored. 3499s # - If collation is not specified, we don't know what is server's 3499s # default collation for the charset. For example, default collation 3499s # of utf8mb4 is: 3499s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 3499s # - MySQL 8.0: utf8mb4_0900_ai_ci 3499s # 3499s # Reference: 3499s # - https://github.com/PyMySQL/PyMySQL/issues/1092 3499s # - https://github.com/wagtail/wagtail/issues/9477 3499s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 3499s self.set_character_set(self.charset, self.collation) 3499s 3499s if self.sql_mode is not None: 3499s c = self.cursor() 3499s c.execute("SET sql_mode=%s", (self.sql_mode,)) 3499s c.close() 3499s 3499s if self.init_command is not None: 3499s c = self.cursor() 3499s c.execute(self.init_command) 3499s c.close() 3499s 3499s if self.autocommit_mode is not None: 3499s self.autocommit(self.autocommit_mode) 3499s except BaseException as e: 3499s self._rfile = None 3499s if sock is not None: 3499s try: 3499s sock.close() 3499s except: # noqa 3499s pass 3499s 3499s if isinstance(e, (OSError, IOError)): 3499s exc = err.OperationalError( 3499s CR.CR_CONN_HOST_ERROR, 3499s f"Can't connect to MySQL server on {self.host!r} ({e})", 3499s ) 3499s # Keep original exception and traceback to investigate error. 3499s exc.original_exception = e 3499s exc.traceback = traceback.format_exc() 3499s if DEBUG: 3499s print(exc.traceback) 3499s > raise exc 3499s E pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3499s 3499s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 3499s 3499s The above exception was the direct cause of the following exception: 3499s 3499s conn = 'mysql_pymysql_conn', method = None 3499s test_frame1 = index A B C D 3499s 0 2000-01-03 00:00:00 0.980269 3.685731 -0.364217 -1...0-01-05 00:00:00 0.498581 0.731168 -0.537677 1.346270 3499s 3 2000-01-06 00:00:00 1.120202 1.567621 0.003641 0.675253 3499s request = > 3499s 3499s @pytest.mark.db 3499s @pytest.mark.parametrize("conn", all_connectable) 3499s @pytest.mark.parametrize("method", [None, "multi"]) 3499s def test_to_sql(conn, method, test_frame1, request): 3499s > conn = request.getfixturevalue(conn) 3499s 3499s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:595: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = > 3499s argname = 'mysql_pymysql_conn' 3499s 3499s def getfixturevalue(self, argname: str) -> Any: 3499s """Dynamically run a named fixture function. 3499s 3499s Declaring fixtures via function argument is recommended where possible. 3499s But if you can only decide whether to use another fixture at test 3499s setup time, you may use this function to retrieve it inside a fixture 3499s or test function body. 3499s 3499s This method can be used during the test setup phase or the test run 3499s phase, but during the test teardown phase a fixture's value may not 3499s be available. 3499s 3499s :param argname: 3499s The fixture name. 3499s :raises pytest.FixtureLookupError: 3499s If the given fixture could not be found. 3499s """ 3499s > fixturedef = self._get_active_fixturedef(argname) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:585: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = > 3499s argname = 'mysql_pymysql_conn' 3499s 3499s def _get_active_fixturedef( 3499s self, argname: str 3499s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3499s try: 3499s return self._fixture_defs[argname] 3499s except KeyError: 3499s try: 3499s fixturedef = self._getnextfixturedef(argname) 3499s except FixtureLookupError: 3499s if argname == "request": 3499s cached_result = (self, [0], None) 3499s return PseudoFixtureDef(cached_result, Scope.Function) 3499s raise 3499s # Remove indent to prevent the python3 exception 3499s # from leaking into the call. 3499s > self._compute_fixture_value(fixturedef) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = > 3499s fixturedef = 3499s 3499s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3499s """Create a SubRequest based on "self" and call the execute method 3499s of the given FixtureDef object. 3499s 3499s This will force the FixtureDef object to throw away any previous 3499s results and compute a new fixture value, which will be stored into 3499s the FixtureDef object itself. 3499s """ 3499s # prepare a subrequest object before calling fixture function 3499s # (latter managed by fixturedef) 3499s argname = fixturedef.argname 3499s funcitem = self._pyfuncitem 3499s scope = fixturedef._scope 3499s try: 3499s callspec = funcitem.callspec 3499s except AttributeError: 3499s callspec = None 3499s if callspec is not None and argname in callspec.params: 3499s param = callspec.params[argname] 3499s param_index = callspec.indices[argname] 3499s # If a parametrize invocation set a scope it will override 3499s # the static scope defined with the fixture function. 3499s with suppress(KeyError): 3499s scope = callspec._arg2scope[argname] 3499s else: 3499s param = NOTSET 3499s param_index = 0 3499s has_params = fixturedef.params is not None 3499s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3499s if has_params and fixtures_not_supported: 3499s msg = ( 3499s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3499s "Node id: {nodeid}\n" 3499s "Function type: {typename}" 3499s ).format( 3499s name=funcitem.name, 3499s nodeid=funcitem.nodeid, 3499s typename=type(funcitem).__name__, 3499s ) 3499s fail(msg, pytrace=False) 3499s if has_params: 3499s frame = inspect.stack()[3] 3499s frameinfo = inspect.getframeinfo(frame[0]) 3499s source_path = absolutepath(frameinfo.filename) 3499s source_lineno = frameinfo.lineno 3499s try: 3499s source_path_str = str( 3499s source_path.relative_to(funcitem.config.rootpath) 3499s ) 3499s except ValueError: 3499s source_path_str = str(source_path) 3499s msg = ( 3499s "The requested fixture has no parameter defined for test:\n" 3499s " {}\n\n" 3499s "Requested fixture '{}' defined in:\n{}" 3499s "\n\nRequested here:\n{}:{}".format( 3499s funcitem.nodeid, 3499s fixturedef.argname, 3499s getlocation(fixturedef.func, funcitem.config.rootpath), 3499s source_path_str, 3499s source_lineno, 3499s ) 3499s ) 3499s fail(msg, pytrace=False) 3499s 3499s subrequest = SubRequest( 3499s self, scope, param, param_index, fixturedef, _ispytest=True 3499s ) 3499s 3499s # Check if a higher-level scoped fixture accesses a lower level one. 3499s subrequest._check_scope(argname, self._scope, scope) 3499s try: 3499s # Call the fixture function. 3499s > fixturedef.execute(request=subrequest) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s request = > 3499s 3499s def execute(self, request: SubRequest) -> FixtureValue: 3499s # Get required arguments and register our own finish() 3499s # with their finalization. 3499s for argname in self.argnames: 3499s > fixturedef = request._get_active_fixturedef(argname) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1045: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = > 3499s argname = 'mysql_pymysql_engine' 3499s 3499s def _get_active_fixturedef( 3499s self, argname: str 3499s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3499s try: 3499s return self._fixture_defs[argname] 3499s except KeyError: 3499s try: 3499s fixturedef = self._getnextfixturedef(argname) 3499s except FixtureLookupError: 3499s if argname == "request": 3499s cached_result = (self, [0], None) 3499s return PseudoFixtureDef(cached_result, Scope.Function) 3499s raise 3499s # Remove indent to prevent the python3 exception 3499s # from leaking into the call. 3499s > self._compute_fixture_value(fixturedef) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = > 3499s fixturedef = 3499s 3499s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3499s """Create a SubRequest based on "self" and call the execute method 3499s of the given FixtureDef object. 3499s 3499s This will force the FixtureDef object to throw away any previous 3499s results and compute a new fixture value, which will be stored into 3499s the FixtureDef object itself. 3499s """ 3499s # prepare a subrequest object before calling fixture function 3499s # (latter managed by fixturedef) 3499s argname = fixturedef.argname 3499s funcitem = self._pyfuncitem 3499s scope = fixturedef._scope 3499s try: 3499s callspec = funcitem.callspec 3499s except AttributeError: 3499s callspec = None 3499s if callspec is not None and argname in callspec.params: 3499s param = callspec.params[argname] 3499s param_index = callspec.indices[argname] 3499s # If a parametrize invocation set a scope it will override 3499s # the static scope defined with the fixture function. 3499s with suppress(KeyError): 3499s scope = callspec._arg2scope[argname] 3499s else: 3499s param = NOTSET 3499s param_index = 0 3499s has_params = fixturedef.params is not None 3499s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3499s if has_params and fixtures_not_supported: 3499s msg = ( 3499s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3499s "Node id: {nodeid}\n" 3499s "Function type: {typename}" 3499s ).format( 3499s name=funcitem.name, 3499s nodeid=funcitem.nodeid, 3499s typename=type(funcitem).__name__, 3499s ) 3499s fail(msg, pytrace=False) 3499s if has_params: 3499s frame = inspect.stack()[3] 3499s frameinfo = inspect.getframeinfo(frame[0]) 3499s source_path = absolutepath(frameinfo.filename) 3499s source_lineno = frameinfo.lineno 3499s try: 3499s source_path_str = str( 3499s source_path.relative_to(funcitem.config.rootpath) 3499s ) 3499s except ValueError: 3499s source_path_str = str(source_path) 3499s msg = ( 3499s "The requested fixture has no parameter defined for test:\n" 3499s " {}\n\n" 3499s "Requested fixture '{}' defined in:\n{}" 3499s "\n\nRequested here:\n{}:{}".format( 3499s funcitem.nodeid, 3499s fixturedef.argname, 3499s getlocation(fixturedef.func, funcitem.config.rootpath), 3499s source_path_str, 3499s source_lineno, 3499s ) 3499s ) 3499s fail(msg, pytrace=False) 3499s 3499s subrequest = SubRequest( 3499s self, scope, param, param_index, fixturedef, _ispytest=True 3499s ) 3499s 3499s # Check if a higher-level scoped fixture accesses a lower level one. 3499s subrequest._check_scope(argname, self._scope, scope) 3499s try: 3499s # Call the fixture function. 3499s > fixturedef.execute(request=subrequest) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s request = > 3499s 3499s def execute(self, request: SubRequest) -> FixtureValue: 3499s # Get required arguments and register our own finish() 3499s # with their finalization. 3499s for argname in self.argnames: 3499s fixturedef = request._get_active_fixturedef(argname) 3499s if argname != "request": 3499s # PseudoFixtureDef is only for "request". 3499s assert isinstance(fixturedef, FixtureDef) 3499s fixturedef.addfinalizer(functools.partial(self.finish, request=request)) 3499s 3499s my_cache_key = self.cache_key(request) 3499s if self.cached_result is not None: 3499s # note: comparison with `==` can fail (or be expensive) for e.g. 3499s # numpy arrays (#6497). 3499s cache_key = self.cached_result[1] 3499s if my_cache_key is cache_key: 3499s if self.cached_result[2] is not None: 3499s _, val, tb = self.cached_result[2] 3499s raise val.with_traceback(tb) 3499s else: 3499s result = self.cached_result[0] 3499s return result 3499s # We have a previous but differently parametrized fixture instance 3499s # so we need to tear it down before creating a new one. 3499s self.finish(request) 3499s assert self.cached_result is None 3499s 3499s ihook = request.node.ihook 3499s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1069: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s kwargs = {'fixturedef': , 'request': >} 3499s firstresult = True 3499s 3499s def __call__(self, **kwargs: object) -> Any: 3499s """Call the hook. 3499s 3499s Only accepts keyword arguments, which should match the hook 3499s specification. 3499s 3499s Returns the result(s) of calling all registered plugins, see 3499s :ref:`calling`. 3499s """ 3499s assert ( 3499s not self.is_historic() 3499s ), "Cannot directly call a historic hook - use call_historic instead." 3499s self._verify_all_args_are_provided(kwargs) 3499s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 3499s # Copy because plugins may register other plugins during iteration (#438). 3499s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 3499s 3499s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = <_pytest.config.PytestPluginManager object at 0xe9079168> 3499s hook_name = 'pytest_fixture_setup' 3499s methods = [>] 3499s kwargs = {'fixturedef': , 'request': >} 3499s firstresult = True 3499s 3499s def _hookexec( 3499s self, 3499s hook_name: str, 3499s methods: Sequence[HookImpl], 3499s kwargs: Mapping[str, object], 3499s firstresult: bool, 3499s ) -> object | list[object]: 3499s # called from all hookcaller instances. 3499s # enable_tracing will set its own wrapping function at self._inner_hookexec 3499s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 3499s 3499s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s fixturedef = 3499s request = > 3499s 3499s def pytest_fixture_setup( 3499s fixturedef: FixtureDef[FixtureValue], request: SubRequest 3499s ) -> FixtureValue: 3499s """Execution of fixture setup.""" 3499s kwargs = {} 3499s for argname in fixturedef.argnames: 3499s fixdef = request._get_active_fixturedef(argname) 3499s assert fixdef.cached_result is not None 3499s result, arg_cache_key, exc = fixdef.cached_result 3499s request._check_scope(argname, request._scope, fixdef._scope) 3499s kwargs[argname] = result 3499s 3499s fixturefunc = resolve_fixture_function(fixturedef, request) 3499s my_cache_key = fixturedef.cache_key(request) 3499s try: 3499s > result = call_fixture_func(fixturefunc, request, kwargs) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1123: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s fixturefunc = 3499s request = > 3499s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv'), 'types_data': [{'B... False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}]} 3499s 3499s def call_fixture_func( 3499s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 3499s ) -> FixtureValue: 3499s if is_generator(fixturefunc): 3499s fixturefunc = cast( 3499s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 3499s ) 3499s generator = fixturefunc(**kwargs) 3499s try: 3499s > fixture_result = next(generator) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:895: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s iris_path = PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv') 3499s types_data = [{'BoolCol': False, 'BoolColWithNull': False, 'DateCol': '2000-01-03 00:00:00', 'DateColWithTz': '2000-01-01 00:00:00-...: False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}] 3499s 3499s @pytest.fixture 3499s def mysql_pymysql_engine(iris_path, types_data): 3499s sqlalchemy = pytest.importorskip("sqlalchemy") 3499s pymysql = pytest.importorskip("pymysql") 3499s engine = sqlalchemy.create_engine( 3499s "mysql+pymysql://root@localhost:3306/pandas", 3499s connect_args={"client_flag": pymysql.constants.CLIENT.MULTI_STATEMENTS}, 3499s poolclass=sqlalchemy.pool.NullPool, 3499s ) 3499s > insp = sqlalchemy.inspect(engine) 3499s 3499s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:409: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s subject = Engine(mysql+pymysql://root@localhost:3306/pandas), raiseerr = True 3499s 3499s def inspect(subject, raiseerr=True): 3499s """Produce an inspection object for the given target. 3499s 3499s The returned value in some cases may be the 3499s same object as the one given, such as if a 3499s :class:`_orm.Mapper` object is passed. In other 3499s cases, it will be an instance of the registered 3499s inspection type for the given object, such as 3499s if an :class:`_engine.Engine` is passed, an 3499s :class:`_reflection.Inspector` object is returned. 3499s 3499s :param subject: the subject to be inspected. 3499s :param raiseerr: When ``True``, if the given subject 3499s does not 3499s correspond to a known SQLAlchemy inspected type, 3499s :class:`sqlalchemy.exc.NoInspectionAvailable` 3499s is raised. If ``False``, ``None`` is returned. 3499s 3499s """ 3499s type_ = type(subject) 3499s for cls in type_.__mro__: 3499s if cls in _registrars: 3499s reg = _registrars[cls] 3499s if reg is True: 3499s return subject 3499s > ret = reg(subject) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:64: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 3499s 3499s @inspection._inspects(Engine) 3499s def _engine_insp(bind): 3499s > return Inspector._construct(Inspector._init_engine, bind) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:182: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s init = 3499s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 3499s 3499s @classmethod 3499s def _construct(cls, init, bind): 3499s 3499s if hasattr(bind.dialect, "inspector"): 3499s cls = bind.dialect.inspector 3499s 3499s self = cls.__new__(cls) 3499s > init(self, bind) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:117: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 3499s 3499s def _init_engine(self, engine): 3499s self.bind = self.engine = engine 3499s > engine.connect().close() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:128: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3499s close_with_result = False 3499s 3499s def connect(self, close_with_result=False): 3499s """Return a new :class:`_engine.Connection` object. 3499s 3499s The :class:`_engine.Connection` object is a facade that uses a DBAPI 3499s connection internally in order to communicate with the database. This 3499s connection is procured from the connection-holding :class:`_pool.Pool` 3499s referenced by this :class:`_engine.Engine`. When the 3499s :meth:`_engine.Connection.close` method of the 3499s :class:`_engine.Connection` object 3499s is called, the underlying DBAPI connection is then returned to the 3499s connection pool, where it may be used again in a subsequent call to 3499s :meth:`_engine.Engine.connect`. 3499s 3499s """ 3499s 3499s > return self._connection_cls(self, close_with_result=close_with_result) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3325: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 3499s close_with_result = False, _branch_from = None, _execution_options = None 3499s _dispatch = None, _has_events = None, _allow_revalidate = True 3499s 3499s def __init__( 3499s self, 3499s engine, 3499s connection=None, 3499s close_with_result=False, 3499s _branch_from=None, 3499s _execution_options=None, 3499s _dispatch=None, 3499s _has_events=None, 3499s _allow_revalidate=True, 3499s ): 3499s """Construct a new Connection.""" 3499s self.engine = engine 3499s self.dialect = engine.dialect 3499s self.__branch_from = _branch_from 3499s 3499s if _branch_from: 3499s # branching is always "from" the root connection 3499s assert _branch_from.__branch_from is None 3499s self._dbapi_connection = connection 3499s self._execution_options = _execution_options 3499s self._echo = _branch_from._echo 3499s self.should_close_with_result = False 3499s self.dispatch = _dispatch 3499s self._has_events = _branch_from._has_events 3499s else: 3499s self._dbapi_connection = ( 3499s connection 3499s if connection is not None 3499s > else engine.raw_connection() 3499s ) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:96: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = Engine(mysql+pymysql://root@localhost:3306/pandas), _connection = None 3499s 3499s def raw_connection(self, _connection=None): 3499s """Return a "raw" DBAPI connection from the connection pool. 3499s 3499s The returned object is a proxied version of the DBAPI 3499s connection object used by the underlying driver in use. 3499s The object will have all the same behavior as the real DBAPI 3499s connection, except that its ``close()`` method will result in the 3499s connection being returned to the pool, rather than being closed 3499s for real. 3499s 3499s This method provides direct DBAPI connection access for 3499s special situations when the API provided by 3499s :class:`_engine.Connection` 3499s is not needed. When a :class:`_engine.Connection` object is already 3499s present, the DBAPI connection is available using 3499s the :attr:`_engine.Connection.connection` accessor. 3499s 3499s .. seealso:: 3499s 3499s :ref:`dbapi_connections` 3499s 3499s """ 3499s > return self._wrap_pool_connect(self.pool.connect, _connection) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3404: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3499s fn = > 3499s connection = None 3499s 3499s def _wrap_pool_connect(self, fn, connection): 3499s dialect = self.dialect 3499s try: 3499s return fn() 3499s except dialect.dbapi.Error as e: 3499s if connection is None: 3499s > Connection._handle_dbapi_exception_noconnection( 3499s e, dialect, self 3499s ) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3374: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s e = OperationalError(2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3499s dialect = 3499s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 3499s 3499s @classmethod 3499s def _handle_dbapi_exception_noconnection(cls, e, dialect, engine): 3499s exc_info = sys.exc_info() 3499s 3499s is_disconnect = dialect.is_disconnect(e, None, None) 3499s 3499s should_wrap = isinstance(e, dialect.dbapi.Error) 3499s 3499s if should_wrap: 3499s sqlalchemy_exception = exc.DBAPIError.instance( 3499s None, 3499s None, 3499s e, 3499s dialect.dbapi.Error, 3499s hide_parameters=engine.hide_parameters, 3499s connection_invalidated=is_disconnect, 3499s ) 3499s else: 3499s sqlalchemy_exception = None 3499s 3499s newraise = None 3499s 3499s if engine._has_events: 3499s ctx = ExceptionContextImpl( 3499s e, 3499s sqlalchemy_exception, 3499s engine, 3499s None, 3499s None, 3499s None, 3499s None, 3499s None, 3499s is_disconnect, 3499s True, 3499s ) 3499s for fn in engine.dispatch.handle_error: 3499s try: 3499s # handler returns an exception; 3499s # call next handler in a chain 3499s per_fn = fn(ctx) 3499s if per_fn is not None: 3499s ctx.chained_exception = newraise = per_fn 3499s except Exception as _raised: 3499s # handler raises an exception - stop processing 3499s newraise = _raised 3499s break 3499s 3499s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 3499s sqlalchemy_exception.connection_invalidated = ( 3499s is_disconnect 3499s ) = ctx.is_disconnect 3499s 3499s if newraise: 3499s util.raise_(newraise, with_traceback=exc_info[2], from_=e) 3499s elif should_wrap: 3499s > util.raise_( 3499s sqlalchemy_exception, with_traceback=exc_info[2], from_=e 3499s ) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2208: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s def raise_( 3499s exception, with_traceback=None, replace_context=None, from_=False 3499s ): 3499s r"""implement "raise" with cause support. 3499s 3499s :param exception: exception to raise 3499s :param with_traceback: will call exception.with_traceback() 3499s :param replace_context: an as-yet-unsupported feature. This is 3499s an exception object which we are "replacing", e.g., it's our 3499s "cause" but we don't want it printed. Basically just what 3499s ``__suppress_context__`` does but we don't want to suppress 3499s the enclosing context, if any. So for now we make it the 3499s cause. 3499s :param from\_: the cause. this actually sets the cause and doesn't 3499s hope to hide it someday. 3499s 3499s """ 3499s if with_traceback is not None: 3499s exception = exception.with_traceback(with_traceback) 3499s 3499s if from_ is not False: 3499s exception.__cause__ = from_ 3499s elif replace_context is not None: 3499s # no good solution here, we would like to have the exception 3499s # have only the context of replace_context.__context__ so that the 3499s # intermediary exception does not change, but we can't figure 3499s # that out. 3499s exception.__cause__ = replace_context 3499s 3499s try: 3499s > raise exception 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3499s fn = > 3499s connection = None 3499s 3499s def _wrap_pool_connect(self, fn, connection): 3499s dialect = self.dialect 3499s try: 3499s > return fn() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def connect(self): 3499s """Return a DBAPI connection from the pool. 3499s 3499s The connection is instrumented such that when its 3499s ``close()`` method is called, the connection will be returned to 3499s the pool. 3499s 3499s """ 3499s > return _ConnectionFairy._checkout(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s pool = , threadconns = None 3499s fairy = None 3499s 3499s @classmethod 3499s def _checkout(cls, pool, threadconns=None, fairy=None): 3499s if not fairy: 3499s > fairy = _ConnectionRecord.checkout(pool) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s pool = 3499s 3499s @classmethod 3499s def checkout(cls, pool): 3499s > rec = pool._do_get() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def _do_get(self): 3499s > return self._create_connection() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def _create_connection(self): 3499s """Called by subclasses to create a new ConnectionRecord.""" 3499s 3499s > return _ConnectionRecord(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s pool = , connect = True 3499s 3499s def __init__(self, pool, connect=True): 3499s self.__pool = pool 3499s if connect: 3499s > self.__connect() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def __connect(self): 3499s pool = self.__pool 3499s 3499s # ensure any existing connection is removed, so that if 3499s # creator fails, this attribute stays None 3499s self.dbapi_connection = None 3499s try: 3499s self.starttime = time.time() 3499s self.dbapi_connection = connection = pool._invoke_creator(self) 3499s pool.logger.debug("Created new connection %r", connection) 3499s self.fresh = True 3499s except BaseException as e: 3499s > with util.safe_reraise(): 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s type_ = None, value = None, traceback = None 3499s 3499s def __exit__(self, type_, value, traceback): 3499s # see #2703 for notes 3499s if type_ is None: 3499s exc_type, exc_value, exc_tb = self._exc_info 3499s self._exc_info = None # remove potential circular references 3499s if not self.warn_only: 3499s > compat.raise_( 3499s exc_value, 3499s with_traceback=exc_tb, 3499s ) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s def raise_( 3499s exception, with_traceback=None, replace_context=None, from_=False 3499s ): 3499s r"""implement "raise" with cause support. 3499s 3499s :param exception: exception to raise 3499s :param with_traceback: will call exception.with_traceback() 3499s :param replace_context: an as-yet-unsupported feature. This is 3499s an exception object which we are "replacing", e.g., it's our 3499s "cause" but we don't want it printed. Basically just what 3499s ``__suppress_context__`` does but we don't want to suppress 3499s the enclosing context, if any. So for now we make it the 3499s cause. 3499s :param from\_: the cause. this actually sets the cause and doesn't 3499s hope to hide it someday. 3499s 3499s """ 3499s if with_traceback is not None: 3499s exception = exception.with_traceback(with_traceback) 3499s 3499s if from_ is not False: 3499s exception.__cause__ = from_ 3499s elif replace_context is not None: 3499s # no good solution here, we would like to have the exception 3499s # have only the context of replace_context.__context__ so that the 3499s # intermediary exception does not change, but we can't figure 3499s # that out. 3499s exception.__cause__ = replace_context 3499s 3499s try: 3499s > raise exception 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def __connect(self): 3499s pool = self.__pool 3499s 3499s # ensure any existing connection is removed, so that if 3499s # creator fails, this attribute stays None 3499s self.dbapi_connection = None 3499s try: 3499s self.starttime = time.time() 3499s > self.dbapi_connection = connection = pool._invoke_creator(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s connection_record = 3499s 3499s def connect(connection_record=None): 3499s if dialect._has_events: 3499s for fn in dialect.dispatch.do_connect: 3499s connection = fn(dialect, connection_record, cargs, cparams) 3499s if connection is not None: 3499s return connection 3499s > return dialect.connect(*cargs, **cparams) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s cargs = () 3499s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 3499s 3499s def connect(self, *cargs, **cparams): 3499s # inherits the docstring from interfaces.Dialect.connect 3499s > return self.dbapi.connect(*cargs, **cparams) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def __init__( 3499s self, 3499s *, 3499s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 3499s password="", 3499s host=None, 3499s database=None, 3499s unix_socket=None, 3499s port=0, 3499s charset="", 3499s collation=None, 3499s sql_mode=None, 3499s read_default_file=None, 3499s conv=None, 3499s use_unicode=True, 3499s client_flag=0, 3499s cursorclass=Cursor, 3499s init_command=None, 3499s connect_timeout=10, 3499s read_default_group=None, 3499s autocommit=False, 3499s local_infile=False, 3499s max_allowed_packet=16 * 1024 * 1024, 3499s defer_connect=False, 3499s auth_plugin_map=None, 3499s read_timeout=None, 3499s write_timeout=None, 3499s bind_address=None, 3499s binary_prefix=False, 3499s program_name=None, 3499s server_public_key=None, 3499s ssl=None, 3499s ssl_ca=None, 3499s ssl_cert=None, 3499s ssl_disabled=None, 3499s ssl_key=None, 3499s ssl_key_password=None, 3499s ssl_verify_cert=None, 3499s ssl_verify_identity=None, 3499s compress=None, # not supported 3499s named_pipe=None, # not supported 3499s passwd=None, # deprecated 3499s db=None, # deprecated 3499s ): 3499s if db is not None and database is None: 3499s # We will raise warning in 2022 or later. 3499s # See https://github.com/PyMySQL/PyMySQL/issues/939 3499s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 3499s database = db 3499s if passwd is not None and not password: 3499s # We will raise warning in 2022 or later. 3499s # See https://github.com/PyMySQL/PyMySQL/issues/939 3499s # warnings.warn( 3499s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 3499s # ) 3499s password = passwd 3499s 3499s if compress or named_pipe: 3499s raise NotImplementedError( 3499s "compress and named_pipe arguments are not supported" 3499s ) 3499s 3499s self._local_infile = bool(local_infile) 3499s if self._local_infile: 3499s client_flag |= CLIENT.LOCAL_FILES 3499s 3499s if read_default_group and not read_default_file: 3499s if sys.platform.startswith("win"): 3499s read_default_file = "c:\\my.ini" 3499s else: 3499s read_default_file = "/etc/my.cnf" 3499s 3499s if read_default_file: 3499s if not read_default_group: 3499s read_default_group = "client" 3499s 3499s cfg = Parser() 3499s cfg.read(os.path.expanduser(read_default_file)) 3499s 3499s def _config(key, arg): 3499s if arg: 3499s return arg 3499s try: 3499s return cfg.get(read_default_group, key) 3499s except Exception: 3499s return arg 3499s 3499s user = _config("user", user) 3499s password = _config("password", password) 3499s host = _config("host", host) 3499s database = _config("database", database) 3499s unix_socket = _config("socket", unix_socket) 3499s port = int(_config("port", port)) 3499s bind_address = _config("bind-address", bind_address) 3499s charset = _config("default-character-set", charset) 3499s if not ssl: 3499s ssl = {} 3499s if isinstance(ssl, dict): 3499s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 3499s value = _config("ssl-" + key, ssl.get(key)) 3499s if value: 3499s ssl[key] = value 3499s 3499s self.ssl = False 3499s if not ssl_disabled: 3499s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 3499s ssl = { 3499s "ca": ssl_ca, 3499s "check_hostname": bool(ssl_verify_identity), 3499s "verify_mode": ssl_verify_cert 3499s if ssl_verify_cert is not None 3499s else False, 3499s } 3499s if ssl_cert is not None: 3499s ssl["cert"] = ssl_cert 3499s if ssl_key is not None: 3499s ssl["key"] = ssl_key 3499s if ssl_key_password is not None: 3499s ssl["password"] = ssl_key_password 3499s if ssl: 3499s if not SSL_ENABLED: 3499s raise NotImplementedError("ssl module not found") 3499s self.ssl = True 3499s client_flag |= CLIENT.SSL 3499s self.ctx = self._create_ssl_ctx(ssl) 3499s 3499s self.host = host or "localhost" 3499s self.port = port or 3306 3499s if type(self.port) is not int: 3499s raise ValueError("port should be of type int") 3499s self.user = user or DEFAULT_USER 3499s self.password = password or b"" 3499s if isinstance(self.password, str): 3499s self.password = self.password.encode("latin1") 3499s self.db = database 3499s self.unix_socket = unix_socket 3499s self.bind_address = bind_address 3499s if not (0 < connect_timeout <= 31536000): 3499s raise ValueError("connect_timeout should be >0 and <=31536000") 3499s self.connect_timeout = connect_timeout or None 3499s if read_timeout is not None and read_timeout <= 0: 3499s raise ValueError("read_timeout should be > 0") 3499s self._read_timeout = read_timeout 3499s if write_timeout is not None and write_timeout <= 0: 3499s raise ValueError("write_timeout should be > 0") 3499s self._write_timeout = write_timeout 3499s 3499s self.charset = charset or DEFAULT_CHARSET 3499s self.collation = collation 3499s self.use_unicode = use_unicode 3499s 3499s self.encoding = charset_by_name(self.charset).encoding 3499s 3499s client_flag |= CLIENT.CAPABILITIES 3499s if self.db: 3499s client_flag |= CLIENT.CONNECT_WITH_DB 3499s 3499s self.client_flag = client_flag 3499s 3499s self.cursorclass = cursorclass 3499s 3499s self._result = None 3499s self._affected_rows = 0 3499s self.host_info = "Not connected" 3499s 3499s # specified autocommit mode. None means use server default. 3499s self.autocommit_mode = autocommit 3499s 3499s if conv is None: 3499s conv = converters.conversions 3499s 3499s # Need for MySQLdb compatibility. 3499s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 3499s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 3499s self.sql_mode = sql_mode 3499s self.init_command = init_command 3499s self.max_allowed_packet = max_allowed_packet 3499s self._auth_plugin_map = auth_plugin_map or {} 3499s self._binary_prefix = binary_prefix 3499s self.server_public_key = server_public_key 3499s 3499s self._connect_attrs = { 3499s "_client_name": "pymysql", 3499s "_client_version": VERSION_STRING, 3499s "_pid": str(os.getpid()), 3499s } 3499s 3499s if program_name: 3499s self._connect_attrs["program_name"] = program_name 3499s 3499s if defer_connect: 3499s self._sock = None 3499s else: 3499s > self.connect() 3499s 3499s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = , sock = None 3499s 3499s def connect(self, sock=None): 3499s self._closed = False 3499s try: 3499s if sock is None: 3499s if self.unix_socket: 3499s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3499s sock.settimeout(self.connect_timeout) 3499s sock.connect(self.unix_socket) 3499s self.host_info = "Localhost via UNIX socket" 3499s self._secure = True 3499s if DEBUG: 3499s print("connected using unix_socket") 3499s else: 3499s kwargs = {} 3499s if self.bind_address is not None: 3499s kwargs["source_address"] = (self.bind_address, 0) 3499s while True: 3499s try: 3499s sock = socket.create_connection( 3499s (self.host, self.port), self.connect_timeout, **kwargs 3499s ) 3499s break 3499s except OSError as e: 3499s if e.errno == errno.EINTR: 3499s continue 3499s raise 3499s self.host_info = "socket %s:%d" % (self.host, self.port) 3499s if DEBUG: 3499s print("connected using socket") 3499s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 3499s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 3499s sock.settimeout(None) 3499s 3499s self._sock = sock 3499s self._rfile = sock.makefile("rb") 3499s self._next_seq_id = 0 3499s 3499s self._get_server_information() 3499s self._request_authentication() 3499s 3499s # Send "SET NAMES" query on init for: 3499s # - Ensure charaset (and collation) is set to the server. 3499s # - collation_id in handshake packet may be ignored. 3499s # - If collation is not specified, we don't know what is server's 3499s # default collation for the charset. For example, default collation 3499s # of utf8mb4 is: 3499s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 3499s # - MySQL 8.0: utf8mb4_0900_ai_ci 3499s # 3499s # Reference: 3499s # - https://github.com/PyMySQL/PyMySQL/issues/1092 3499s # - https://github.com/wagtail/wagtail/issues/9477 3499s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 3499s self.set_character_set(self.charset, self.collation) 3499s 3499s if self.sql_mode is not None: 3499s c = self.cursor() 3499s c.execute("SET sql_mode=%s", (self.sql_mode,)) 3499s c.close() 3499s 3499s if self.init_command is not None: 3499s c = self.cursor() 3499s c.execute(self.init_command) 3499s c.close() 3499s 3499s if self.autocommit_mode is not None: 3499s self.autocommit(self.autocommit_mode) 3499s except BaseException as e: 3499s self._rfile = None 3499s if sock is not None: 3499s try: 3499s sock.close() 3499s except: # noqa 3499s pass 3499s 3499s if isinstance(e, (OSError, IOError)): 3499s exc = err.OperationalError( 3499s CR.CR_CONN_HOST_ERROR, 3499s f"Can't connect to MySQL server on {self.host!r} ({e})", 3499s ) 3499s # Keep original exception and traceback to investigate error. 3499s exc.original_exception = e 3499s exc.traceback = traceback.format_exc() 3499s if DEBUG: 3499s print(exc.traceback) 3499s > raise exc 3499s E sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3499s E (Background on this error at: https://sqlalche.me/e/14/e3q8) 3499s 3499s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 3499s _________________ test_to_sql[None-postgresql_psycopg2_engine] _________________ 3499s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3499s fn = > 3499s connection = None 3499s 3499s def _wrap_pool_connect(self, fn, connection): 3499s dialect = self.dialect 3499s try: 3499s > return fn() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def connect(self): 3499s """Return a DBAPI connection from the pool. 3499s 3499s The connection is instrumented such that when its 3499s ``close()`` method is called, the connection will be returned to 3499s the pool. 3499s 3499s """ 3499s > return _ConnectionFairy._checkout(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s pool = , threadconns = None 3499s fairy = None 3499s 3499s @classmethod 3499s def _checkout(cls, pool, threadconns=None, fairy=None): 3499s if not fairy: 3499s > fairy = _ConnectionRecord.checkout(pool) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s pool = 3499s 3499s @classmethod 3499s def checkout(cls, pool): 3499s > rec = pool._do_get() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def _do_get(self): 3499s > return self._create_connection() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def _create_connection(self): 3499s """Called by subclasses to create a new ConnectionRecord.""" 3499s 3499s > return _ConnectionRecord(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s pool = , connect = True 3499s 3499s def __init__(self, pool, connect=True): 3499s self.__pool = pool 3499s if connect: 3499s > self.__connect() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def __connect(self): 3499s pool = self.__pool 3499s 3499s # ensure any existing connection is removed, so that if 3499s # creator fails, this attribute stays None 3499s self.dbapi_connection = None 3499s try: 3499s self.starttime = time.time() 3499s self.dbapi_connection = connection = pool._invoke_creator(self) 3499s pool.logger.debug("Created new connection %r", connection) 3499s self.fresh = True 3499s except BaseException as e: 3499s > with util.safe_reraise(): 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s type_ = None, value = None, traceback = None 3499s 3499s def __exit__(self, type_, value, traceback): 3499s # see #2703 for notes 3499s if type_ is None: 3499s exc_type, exc_value, exc_tb = self._exc_info 3499s self._exc_info = None # remove potential circular references 3499s if not self.warn_only: 3499s > compat.raise_( 3499s exc_value, 3499s with_traceback=exc_tb, 3499s ) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s def raise_( 3499s exception, with_traceback=None, replace_context=None, from_=False 3499s ): 3499s r"""implement "raise" with cause support. 3499s 3499s :param exception: exception to raise 3499s :param with_traceback: will call exception.with_traceback() 3499s :param replace_context: an as-yet-unsupported feature. This is 3499s an exception object which we are "replacing", e.g., it's our 3499s "cause" but we don't want it printed. Basically just what 3499s ``__suppress_context__`` does but we don't want to suppress 3499s the enclosing context, if any. So for now we make it the 3499s cause. 3499s :param from\_: the cause. this actually sets the cause and doesn't 3499s hope to hide it someday. 3499s 3499s """ 3499s if with_traceback is not None: 3499s exception = exception.with_traceback(with_traceback) 3499s 3499s if from_ is not False: 3499s exception.__cause__ = from_ 3499s elif replace_context is not None: 3499s # no good solution here, we would like to have the exception 3499s # have only the context of replace_context.__context__ so that the 3499s # intermediary exception does not change, but we can't figure 3499s # that out. 3499s exception.__cause__ = replace_context 3499s 3499s try: 3499s > raise exception 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def __connect(self): 3499s pool = self.__pool 3499s 3499s # ensure any existing connection is removed, so that if 3499s # creator fails, this attribute stays None 3499s self.dbapi_connection = None 3499s try: 3499s self.starttime = time.time() 3499s > self.dbapi_connection = connection = pool._invoke_creator(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s connection_record = 3499s 3499s def connect(connection_record=None): 3499s if dialect._has_events: 3499s for fn in dialect.dispatch.do_connect: 3499s connection = fn(dialect, connection_record, cargs, cparams) 3499s if connection is not None: 3499s return connection 3499s > return dialect.connect(*cargs, **cparams) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s cargs = () 3499s cparams = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3499s 3499s def connect(self, *cargs, **cparams): 3499s # inherits the docstring from interfaces.Dialect.connect 3499s > return self.dbapi.connect(*cargs, **cparams) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s dsn = 'host=localhost user=postgres password=postgres port=5432 dbname=pandas' 3499s connection_factory = None, cursor_factory = None 3499s kwargs = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3499s kwasync = {} 3499s 3499s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 3499s """ 3499s Create a new database connection. 3499s 3499s The connection parameters can be specified as a string: 3499s 3499s conn = psycopg2.connect("dbname=test user=postgres password=secret") 3499s 3499s or using a set of keyword arguments: 3499s 3499s conn = psycopg2.connect(database="test", user="postgres", password="secret") 3499s 3499s Or as a mix of both. The basic connection parameters are: 3499s 3499s - *dbname*: the database name 3499s - *database*: the database name (only as keyword argument) 3499s - *user*: user name used to authenticate 3499s - *password*: password used to authenticate 3499s - *host*: database host address (defaults to UNIX socket if not provided) 3499s - *port*: connection port number (defaults to 5432 if not provided) 3499s 3499s Using the *connection_factory* parameter a different class or connections 3499s factory can be specified. It should be a callable object taking a dsn 3499s argument. 3499s 3499s Using the *cursor_factory* parameter, a new default cursor factory will be 3499s used by cursor(). 3499s 3499s Using *async*=True an asynchronous connection will be created. *async_* is 3499s a valid alias (for Python versions where ``async`` is a keyword). 3499s 3499s Any other keyword parameter will be passed to the underlying client 3499s library: the list of supported parameters depends on the library version. 3499s 3499s """ 3499s kwasync = {} 3499s if 'async' in kwargs: 3499s kwasync['async'] = kwargs.pop('async') 3499s if 'async_' in kwargs: 3499s kwasync['async_'] = kwargs.pop('async_') 3499s 3499s dsn = _ext.make_dsn(dsn, **kwargs) 3499s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 3499s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 3499s E Is the server running on that host and accepting TCP/IP connections? 3499s 3499s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 3499s 3499s The above exception was the direct cause of the following exception: 3499s 3499s conn = 'postgresql_psycopg2_engine', method = None 3499s test_frame1 = index A B C D 3499s 0 2000-01-03 00:00:00 0.980269 3.685731 -0.364217 -1...0-01-05 00:00:00 0.498581 0.731168 -0.537677 1.346270 3499s 3 2000-01-06 00:00:00 1.120202 1.567621 0.003641 0.675253 3499s request = > 3499s 3499s @pytest.mark.db 3499s @pytest.mark.parametrize("conn", all_connectable) 3499s @pytest.mark.parametrize("method", [None, "multi"]) 3499s def test_to_sql(conn, method, test_frame1, request): 3499s > conn = request.getfixturevalue(conn) 3499s 3499s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:595: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = > 3499s argname = 'postgresql_psycopg2_engine' 3499s 3499s def getfixturevalue(self, argname: str) -> Any: 3499s """Dynamically run a named fixture function. 3499s 3499s Declaring fixtures via function argument is recommended where possible. 3499s But if you can only decide whether to use another fixture at test 3499s setup time, you may use this function to retrieve it inside a fixture 3499s or test function body. 3499s 3499s This method can be used during the test setup phase or the test run 3499s phase, but during the test teardown phase a fixture's value may not 3499s be available. 3499s 3499s :param argname: 3499s The fixture name. 3499s :raises pytest.FixtureLookupError: 3499s If the given fixture could not be found. 3499s """ 3499s > fixturedef = self._get_active_fixturedef(argname) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:585: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = > 3499s argname = 'postgresql_psycopg2_engine' 3499s 3499s def _get_active_fixturedef( 3499s self, argname: str 3499s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3499s try: 3499s return self._fixture_defs[argname] 3499s except KeyError: 3499s try: 3499s fixturedef = self._getnextfixturedef(argname) 3499s except FixtureLookupError: 3499s if argname == "request": 3499s cached_result = (self, [0], None) 3499s return PseudoFixtureDef(cached_result, Scope.Function) 3499s raise 3499s # Remove indent to prevent the python3 exception 3499s # from leaking into the call. 3499s > self._compute_fixture_value(fixturedef) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = > 3499s fixturedef = 3499s 3499s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3499s """Create a SubRequest based on "self" and call the execute method 3499s of the given FixtureDef object. 3499s 3499s This will force the FixtureDef object to throw away any previous 3499s results and compute a new fixture value, which will be stored into 3499s the FixtureDef object itself. 3499s """ 3499s # prepare a subrequest object before calling fixture function 3499s # (latter managed by fixturedef) 3499s argname = fixturedef.argname 3499s funcitem = self._pyfuncitem 3499s scope = fixturedef._scope 3499s try: 3499s callspec = funcitem.callspec 3499s except AttributeError: 3499s callspec = None 3499s if callspec is not None and argname in callspec.params: 3499s param = callspec.params[argname] 3499s param_index = callspec.indices[argname] 3499s # If a parametrize invocation set a scope it will override 3499s # the static scope defined with the fixture function. 3499s with suppress(KeyError): 3499s scope = callspec._arg2scope[argname] 3499s else: 3499s param = NOTSET 3499s param_index = 0 3499s has_params = fixturedef.params is not None 3499s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3499s if has_params and fixtures_not_supported: 3499s msg = ( 3499s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3499s "Node id: {nodeid}\n" 3499s "Function type: {typename}" 3499s ).format( 3499s name=funcitem.name, 3499s nodeid=funcitem.nodeid, 3499s typename=type(funcitem).__name__, 3499s ) 3499s fail(msg, pytrace=False) 3499s if has_params: 3499s frame = inspect.stack()[3] 3499s frameinfo = inspect.getframeinfo(frame[0]) 3499s source_path = absolutepath(frameinfo.filename) 3499s source_lineno = frameinfo.lineno 3499s try: 3499s source_path_str = str( 3499s source_path.relative_to(funcitem.config.rootpath) 3499s ) 3499s except ValueError: 3499s source_path_str = str(source_path) 3499s msg = ( 3499s "The requested fixture has no parameter defined for test:\n" 3499s " {}\n\n" 3499s "Requested fixture '{}' defined in:\n{}" 3499s "\n\nRequested here:\n{}:{}".format( 3499s funcitem.nodeid, 3499s fixturedef.argname, 3499s getlocation(fixturedef.func, funcitem.config.rootpath), 3499s source_path_str, 3499s source_lineno, 3499s ) 3499s ) 3499s fail(msg, pytrace=False) 3499s 3499s subrequest = SubRequest( 3499s self, scope, param, param_index, fixturedef, _ispytest=True 3499s ) 3499s 3499s # Check if a higher-level scoped fixture accesses a lower level one. 3499s subrequest._check_scope(argname, self._scope, scope) 3499s try: 3499s # Call the fixture function. 3499s > fixturedef.execute(request=subrequest) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s request = > 3499s 3499s def execute(self, request: SubRequest) -> FixtureValue: 3499s # Get required arguments and register our own finish() 3499s # with their finalization. 3499s for argname in self.argnames: 3499s fixturedef = request._get_active_fixturedef(argname) 3499s if argname != "request": 3499s # PseudoFixtureDef is only for "request". 3499s assert isinstance(fixturedef, FixtureDef) 3499s fixturedef.addfinalizer(functools.partial(self.finish, request=request)) 3499s 3499s my_cache_key = self.cache_key(request) 3499s if self.cached_result is not None: 3499s # note: comparison with `==` can fail (or be expensive) for e.g. 3499s # numpy arrays (#6497). 3499s cache_key = self.cached_result[1] 3499s if my_cache_key is cache_key: 3499s if self.cached_result[2] is not None: 3499s _, val, tb = self.cached_result[2] 3499s raise val.with_traceback(tb) 3499s else: 3499s result = self.cached_result[0] 3499s return result 3499s # We have a previous but differently parametrized fixture instance 3499s # so we need to tear it down before creating a new one. 3499s self.finish(request) 3499s assert self.cached_result is None 3499s 3499s ihook = request.node.ihook 3499s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1069: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s kwargs = {'fixturedef': , 'request': >} 3499s firstresult = True 3499s 3499s def __call__(self, **kwargs: object) -> Any: 3499s """Call the hook. 3499s 3499s Only accepts keyword arguments, which should match the hook 3499s specification. 3499s 3499s Returns the result(s) of calling all registered plugins, see 3499s :ref:`calling`. 3499s """ 3499s assert ( 3499s not self.is_historic() 3499s ), "Cannot directly call a historic hook - use call_historic instead." 3499s self._verify_all_args_are_provided(kwargs) 3499s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 3499s # Copy because plugins may register other plugins during iteration (#438). 3499s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 3499s 3499s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = <_pytest.config.PytestPluginManager object at 0xe9079168> 3499s hook_name = 'pytest_fixture_setup' 3499s methods = [>] 3499s kwargs = {'fixturedef': , 'request': >} 3499s firstresult = True 3499s 3499s def _hookexec( 3499s self, 3499s hook_name: str, 3499s methods: Sequence[HookImpl], 3499s kwargs: Mapping[str, object], 3499s firstresult: bool, 3499s ) -> object | list[object]: 3499s # called from all hookcaller instances. 3499s # enable_tracing will set its own wrapping function at self._inner_hookexec 3499s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 3499s 3499s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s fixturedef = 3499s request = > 3499s 3499s def pytest_fixture_setup( 3499s fixturedef: FixtureDef[FixtureValue], request: SubRequest 3499s ) -> FixtureValue: 3499s """Execution of fixture setup.""" 3499s kwargs = {} 3499s for argname in fixturedef.argnames: 3499s fixdef = request._get_active_fixturedef(argname) 3499s assert fixdef.cached_result is not None 3499s result, arg_cache_key, exc = fixdef.cached_result 3499s request._check_scope(argname, request._scope, fixdef._scope) 3499s kwargs[argname] = result 3499s 3499s fixturefunc = resolve_fixture_function(fixturedef, request) 3499s my_cache_key = fixturedef.cache_key(request) 3499s try: 3499s > result = call_fixture_func(fixturefunc, request, kwargs) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1123: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s fixturefunc = 3499s request = > 3499s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv'), 'types_data': [{'B... False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}]} 3499s 3499s def call_fixture_func( 3499s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 3499s ) -> FixtureValue: 3499s if is_generator(fixturefunc): 3499s fixturefunc = cast( 3499s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 3499s ) 3499s generator = fixturefunc(**kwargs) 3499s try: 3499s > fixture_result = next(generator) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:895: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s iris_path = PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv') 3499s types_data = [{'BoolCol': False, 'BoolColWithNull': False, 'DateCol': '2000-01-03 00:00:00', 'DateColWithTz': '2000-01-01 00:00:00-...: False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}] 3499s 3499s @pytest.fixture 3499s def postgresql_psycopg2_engine(iris_path, types_data): 3499s sqlalchemy = pytest.importorskip("sqlalchemy") 3499s pytest.importorskip("psycopg2") 3499s engine = sqlalchemy.create_engine( 3499s "postgresql+psycopg2://postgres:postgres@localhost:5432/pandas", 3499s poolclass=sqlalchemy.pool.NullPool, 3499s ) 3499s > insp = sqlalchemy.inspect(engine) 3499s 3499s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:438: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s subject = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3499s raiseerr = True 3499s 3499s def inspect(subject, raiseerr=True): 3499s """Produce an inspection object for the given target. 3499s 3499s The returned value in some cases may be the 3499s same object as the one given, such as if a 3499s :class:`_orm.Mapper` object is passed. In other 3499s cases, it will be an instance of the registered 3499s inspection type for the given object, such as 3499s if an :class:`_engine.Engine` is passed, an 3499s :class:`_reflection.Inspector` object is returned. 3499s 3499s :param subject: the subject to be inspected. 3499s :param raiseerr: When ``True``, if the given subject 3499s does not 3499s correspond to a known SQLAlchemy inspected type, 3499s :class:`sqlalchemy.exc.NoInspectionAvailable` 3499s is raised. If ``False``, ``None`` is returned. 3499s 3499s """ 3499s type_ = type(subject) 3499s for cls in type_.__mro__: 3499s if cls in _registrars: 3499s reg = _registrars[cls] 3499s if reg is True: 3499s return subject 3499s > ret = reg(subject) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:64: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3499s 3499s @inspection._inspects(Engine) 3499s def _engine_insp(bind): 3499s > return Inspector._construct(Inspector._init_engine, bind) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:182: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s init = 3499s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3499s 3499s @classmethod 3499s def _construct(cls, init, bind): 3499s 3499s if hasattr(bind.dialect, "inspector"): 3499s cls = bind.dialect.inspector 3499s 3499s self = cls.__new__(cls) 3499s > init(self, bind) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:117: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3499s 3499s def _init_engine(self, engine): 3499s self.bind = self.engine = engine 3499s > engine.connect().close() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:128: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3499s close_with_result = False 3499s 3499s def connect(self, close_with_result=False): 3499s """Return a new :class:`_engine.Connection` object. 3499s 3499s The :class:`_engine.Connection` object is a facade that uses a DBAPI 3499s connection internally in order to communicate with the database. This 3499s connection is procured from the connection-holding :class:`_pool.Pool` 3499s referenced by this :class:`_engine.Engine`. When the 3499s :meth:`_engine.Connection.close` method of the 3499s :class:`_engine.Connection` object 3499s is called, the underlying DBAPI connection is then returned to the 3499s connection pool, where it may be used again in a subsequent call to 3499s :meth:`_engine.Engine.connect`. 3499s 3499s """ 3499s 3499s > return self._connection_cls(self, close_with_result=close_with_result) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3325: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3499s connection = None, close_with_result = False, _branch_from = None 3499s _execution_options = None, _dispatch = None, _has_events = None 3499s _allow_revalidate = True 3499s 3499s def __init__( 3499s self, 3499s engine, 3499s connection=None, 3499s close_with_result=False, 3499s _branch_from=None, 3499s _execution_options=None, 3499s _dispatch=None, 3499s _has_events=None, 3499s _allow_revalidate=True, 3499s ): 3499s """Construct a new Connection.""" 3499s self.engine = engine 3499s self.dialect = engine.dialect 3499s self.__branch_from = _branch_from 3499s 3499s if _branch_from: 3499s # branching is always "from" the root connection 3499s assert _branch_from.__branch_from is None 3499s self._dbapi_connection = connection 3499s self._execution_options = _execution_options 3499s self._echo = _branch_from._echo 3499s self.should_close_with_result = False 3499s self.dispatch = _dispatch 3499s self._has_events = _branch_from._has_events 3499s else: 3499s self._dbapi_connection = ( 3499s connection 3499s if connection is not None 3499s > else engine.raw_connection() 3499s ) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:96: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3499s _connection = None 3499s 3499s def raw_connection(self, _connection=None): 3499s """Return a "raw" DBAPI connection from the connection pool. 3499s 3499s The returned object is a proxied version of the DBAPI 3499s connection object used by the underlying driver in use. 3499s The object will have all the same behavior as the real DBAPI 3499s connection, except that its ``close()`` method will result in the 3499s connection being returned to the pool, rather than being closed 3499s for real. 3499s 3499s This method provides direct DBAPI connection access for 3499s special situations when the API provided by 3499s :class:`_engine.Connection` 3499s is not needed. When a :class:`_engine.Connection` object is already 3499s present, the DBAPI connection is available using 3499s the :attr:`_engine.Connection.connection` accessor. 3499s 3499s .. seealso:: 3499s 3499s :ref:`dbapi_connections` 3499s 3499s """ 3499s > return self._wrap_pool_connect(self.pool.connect, _connection) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3404: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3499s fn = > 3499s connection = None 3499s 3499s def _wrap_pool_connect(self, fn, connection): 3499s dialect = self.dialect 3499s try: 3499s return fn() 3499s except dialect.dbapi.Error as e: 3499s if connection is None: 3499s > Connection._handle_dbapi_exception_noconnection( 3499s e, dialect, self 3499s ) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3374: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s e = OperationalError('connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused\n\tIs the server running on that host and accepting TCP/IP connections?\n') 3499s dialect = 3499s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3499s 3499s @classmethod 3499s def _handle_dbapi_exception_noconnection(cls, e, dialect, engine): 3499s exc_info = sys.exc_info() 3499s 3499s is_disconnect = dialect.is_disconnect(e, None, None) 3499s 3499s should_wrap = isinstance(e, dialect.dbapi.Error) 3499s 3499s if should_wrap: 3499s sqlalchemy_exception = exc.DBAPIError.instance( 3499s None, 3499s None, 3499s e, 3499s dialect.dbapi.Error, 3499s hide_parameters=engine.hide_parameters, 3499s connection_invalidated=is_disconnect, 3499s ) 3499s else: 3499s sqlalchemy_exception = None 3499s 3499s newraise = None 3499s 3499s if engine._has_events: 3499s ctx = ExceptionContextImpl( 3499s e, 3499s sqlalchemy_exception, 3499s engine, 3499s None, 3499s None, 3499s None, 3499s None, 3499s None, 3499s is_disconnect, 3499s True, 3499s ) 3499s for fn in engine.dispatch.handle_error: 3499s try: 3499s # handler returns an exception; 3499s # call next handler in a chain 3499s per_fn = fn(ctx) 3499s if per_fn is not None: 3499s ctx.chained_exception = newraise = per_fn 3499s except Exception as _raised: 3499s # handler raises an exception - stop processing 3499s newraise = _raised 3499s break 3499s 3499s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 3499s sqlalchemy_exception.connection_invalidated = ( 3499s is_disconnect 3499s ) = ctx.is_disconnect 3499s 3499s if newraise: 3499s util.raise_(newraise, with_traceback=exc_info[2], from_=e) 3499s elif should_wrap: 3499s > util.raise_( 3499s sqlalchemy_exception, with_traceback=exc_info[2], from_=e 3499s ) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2208: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s def raise_( 3499s exception, with_traceback=None, replace_context=None, from_=False 3499s ): 3499s r"""implement "raise" with cause support. 3499s 3499s :param exception: exception to raise 3499s :param with_traceback: will call exception.with_traceback() 3499s :param replace_context: an as-yet-unsupported feature. This is 3499s an exception object which we are "replacing", e.g., it's our 3499s "cause" but we don't want it printed. Basically just what 3499s ``__suppress_context__`` does but we don't want to suppress 3499s the enclosing context, if any. So for now we make it the 3499s cause. 3499s :param from\_: the cause. this actually sets the cause and doesn't 3499s hope to hide it someday. 3499s 3499s """ 3499s if with_traceback is not None: 3499s exception = exception.with_traceback(with_traceback) 3499s 3499s if from_ is not False: 3499s exception.__cause__ = from_ 3499s elif replace_context is not None: 3499s # no good solution here, we would like to have the exception 3499s # have only the context of replace_context.__context__ so that the 3499s # intermediary exception does not change, but we can't figure 3499s # that out. 3499s exception.__cause__ = replace_context 3499s 3499s try: 3499s > raise exception 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3499s fn = > 3499s connection = None 3499s 3499s def _wrap_pool_connect(self, fn, connection): 3499s dialect = self.dialect 3499s try: 3499s > return fn() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def connect(self): 3499s """Return a DBAPI connection from the pool. 3499s 3499s The connection is instrumented such that when its 3499s ``close()`` method is called, the connection will be returned to 3499s the pool. 3499s 3499s """ 3499s > return _ConnectionFairy._checkout(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s pool = , threadconns = None 3499s fairy = None 3499s 3499s @classmethod 3499s def _checkout(cls, pool, threadconns=None, fairy=None): 3499s if not fairy: 3499s > fairy = _ConnectionRecord.checkout(pool) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s pool = 3499s 3499s @classmethod 3499s def checkout(cls, pool): 3499s > rec = pool._do_get() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def _do_get(self): 3499s > return self._create_connection() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def _create_connection(self): 3499s """Called by subclasses to create a new ConnectionRecord.""" 3499s 3499s > return _ConnectionRecord(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s pool = , connect = True 3499s 3499s def __init__(self, pool, connect=True): 3499s self.__pool = pool 3499s if connect: 3499s > self.__connect() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def __connect(self): 3499s pool = self.__pool 3499s 3499s # ensure any existing connection is removed, so that if 3499s # creator fails, this attribute stays None 3499s self.dbapi_connection = None 3499s try: 3499s self.starttime = time.time() 3499s self.dbapi_connection = connection = pool._invoke_creator(self) 3499s pool.logger.debug("Created new connection %r", connection) 3499s self.fresh = True 3499s except BaseException as e: 3499s > with util.safe_reraise(): 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s type_ = None, value = None, traceback = None 3499s 3499s def __exit__(self, type_, value, traceback): 3499s # see #2703 for notes 3499s if type_ is None: 3499s exc_type, exc_value, exc_tb = self._exc_info 3499s self._exc_info = None # remove potential circular references 3499s if not self.warn_only: 3499s > compat.raise_( 3499s exc_value, 3499s with_traceback=exc_tb, 3499s ) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s def raise_( 3499s exception, with_traceback=None, replace_context=None, from_=False 3499s ): 3499s r"""implement "raise" with cause support. 3499s 3499s :param exception: exception to raise 3499s :param with_traceback: will call exception.with_traceback() 3499s :param replace_context: an as-yet-unsupported feature. This is 3499s an exception object which we are "replacing", e.g., it's our 3499s "cause" but we don't want it printed. Basically just what 3499s ``__suppress_context__`` does but we don't want to suppress 3499s the enclosing context, if any. So for now we make it the 3499s cause. 3499s :param from\_: the cause. this actually sets the cause and doesn't 3499s hope to hide it someday. 3499s 3499s """ 3499s if with_traceback is not None: 3499s exception = exception.with_traceback(with_traceback) 3499s 3499s if from_ is not False: 3499s exception.__cause__ = from_ 3499s elif replace_context is not None: 3499s # no good solution here, we would like to have the exception 3499s # have only the context of replace_context.__context__ so that the 3499s # intermediary exception does not change, but we can't figure 3499s # that out. 3499s exception.__cause__ = replace_context 3499s 3499s try: 3499s > raise exception 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def __connect(self): 3499s pool = self.__pool 3499s 3499s # ensure any existing connection is removed, so that if 3499s # creator fails, this attribute stays None 3499s self.dbapi_connection = None 3499s try: 3499s self.starttime = time.time() 3499s > self.dbapi_connection = connection = pool._invoke_creator(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s connection_record = 3499s 3499s def connect(connection_record=None): 3499s if dialect._has_events: 3499s for fn in dialect.dispatch.do_connect: 3499s connection = fn(dialect, connection_record, cargs, cparams) 3499s if connection is not None: 3499s return connection 3499s > return dialect.connect(*cargs, **cparams) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s cargs = () 3499s cparams = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3499s 3499s def connect(self, *cargs, **cparams): 3499s # inherits the docstring from interfaces.Dialect.connect 3499s > return self.dbapi.connect(*cargs, **cparams) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s dsn = 'host=localhost user=postgres password=postgres port=5432 dbname=pandas' 3499s connection_factory = None, cursor_factory = None 3499s kwargs = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3499s kwasync = {} 3499s 3499s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 3499s """ 3499s Create a new database connection. 3499s 3499s The connection parameters can be specified as a string: 3499s 3499s conn = psycopg2.connect("dbname=test user=postgres password=secret") 3499s 3499s or using a set of keyword arguments: 3499s 3499s conn = psycopg2.connect(database="test", user="postgres", password="secret") 3499s 3499s Or as a mix of both. The basic connection parameters are: 3499s 3499s - *dbname*: the database name 3499s - *database*: the database name (only as keyword argument) 3499s - *user*: user name used to authenticate 3499s - *password*: password used to authenticate 3499s - *host*: database host address (defaults to UNIX socket if not provided) 3499s - *port*: connection port number (defaults to 5432 if not provided) 3499s 3499s Using the *connection_factory* parameter a different class or connections 3499s factory can be specified. It should be a callable object taking a dsn 3499s argument. 3499s 3499s Using the *cursor_factory* parameter, a new default cursor factory will be 3499s used by cursor(). 3499s 3499s Using *async*=True an asynchronous connection will be created. *async_* is 3499s a valid alias (for Python versions where ``async`` is a keyword). 3499s 3499s Any other keyword parameter will be passed to the underlying client 3499s library: the list of supported parameters depends on the library version. 3499s 3499s """ 3499s kwasync = {} 3499s if 'async' in kwargs: 3499s kwasync['async'] = kwargs.pop('async') 3499s if 'async_' in kwargs: 3499s kwasync['async_'] = kwargs.pop('async_') 3499s 3499s dsn = _ext.make_dsn(dsn, **kwargs) 3499s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 3499s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 3499s E Is the server running on that host and accepting TCP/IP connections? 3499s E 3499s E (Background on this error at: https://sqlalche.me/e/14/e3q8) 3499s 3499s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 3499s __________________ test_to_sql[None-postgresql_psycopg2_conn] __________________ 3499s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3499s fn = > 3499s connection = None 3499s 3499s def _wrap_pool_connect(self, fn, connection): 3499s dialect = self.dialect 3499s try: 3499s > return fn() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def connect(self): 3499s """Return a DBAPI connection from the pool. 3499s 3499s The connection is instrumented such that when its 3499s ``close()`` method is called, the connection will be returned to 3499s the pool. 3499s 3499s """ 3499s > return _ConnectionFairy._checkout(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s pool = , threadconns = None 3499s fairy = None 3499s 3499s @classmethod 3499s def _checkout(cls, pool, threadconns=None, fairy=None): 3499s if not fairy: 3499s > fairy = _ConnectionRecord.checkout(pool) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s pool = 3499s 3499s @classmethod 3499s def checkout(cls, pool): 3499s > rec = pool._do_get() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def _do_get(self): 3499s > return self._create_connection() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def _create_connection(self): 3499s """Called by subclasses to create a new ConnectionRecord.""" 3499s 3499s > return _ConnectionRecord(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s pool = , connect = True 3499s 3499s def __init__(self, pool, connect=True): 3499s self.__pool = pool 3499s if connect: 3499s > self.__connect() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def __connect(self): 3499s pool = self.__pool 3499s 3499s # ensure any existing connection is removed, so that if 3499s # creator fails, this attribute stays None 3499s self.dbapi_connection = None 3499s try: 3499s self.starttime = time.time() 3499s self.dbapi_connection = connection = pool._invoke_creator(self) 3499s pool.logger.debug("Created new connection %r", connection) 3499s self.fresh = True 3499s except BaseException as e: 3499s > with util.safe_reraise(): 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s type_ = None, value = None, traceback = None 3499s 3499s def __exit__(self, type_, value, traceback): 3499s # see #2703 for notes 3499s if type_ is None: 3499s exc_type, exc_value, exc_tb = self._exc_info 3499s self._exc_info = None # remove potential circular references 3499s if not self.warn_only: 3499s > compat.raise_( 3499s exc_value, 3499s with_traceback=exc_tb, 3499s ) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s def raise_( 3499s exception, with_traceback=None, replace_context=None, from_=False 3499s ): 3499s r"""implement "raise" with cause support. 3499s 3499s :param exception: exception to raise 3499s :param with_traceback: will call exception.with_traceback() 3499s :param replace_context: an as-yet-unsupported feature. This is 3499s an exception object which we are "replacing", e.g., it's our 3499s "cause" but we don't want it printed. Basically just what 3499s ``__suppress_context__`` does but we don't want to suppress 3499s the enclosing context, if any. So for now we make it the 3499s cause. 3499s :param from\_: the cause. this actually sets the cause and doesn't 3499s hope to hide it someday. 3499s 3499s """ 3499s if with_traceback is not None: 3499s exception = exception.with_traceback(with_traceback) 3499s 3499s if from_ is not False: 3499s exception.__cause__ = from_ 3499s elif replace_context is not None: 3499s # no good solution here, we would like to have the exception 3499s # have only the context of replace_context.__context__ so that the 3499s # intermediary exception does not change, but we can't figure 3499s # that out. 3499s exception.__cause__ = replace_context 3499s 3499s try: 3499s > raise exception 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def __connect(self): 3499s pool = self.__pool 3499s 3499s # ensure any existing connection is removed, so that if 3499s # creator fails, this attribute stays None 3499s self.dbapi_connection = None 3499s try: 3499s self.starttime = time.time() 3499s > self.dbapi_connection = connection = pool._invoke_creator(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s connection_record = 3499s 3499s def connect(connection_record=None): 3499s if dialect._has_events: 3499s for fn in dialect.dispatch.do_connect: 3499s connection = fn(dialect, connection_record, cargs, cparams) 3499s if connection is not None: 3499s return connection 3499s > return dialect.connect(*cargs, **cparams) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s cargs = () 3499s cparams = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3499s 3499s def connect(self, *cargs, **cparams): 3499s # inherits the docstring from interfaces.Dialect.connect 3499s > return self.dbapi.connect(*cargs, **cparams) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s dsn = 'host=localhost user=postgres password=postgres port=5432 dbname=pandas' 3499s connection_factory = None, cursor_factory = None 3499s kwargs = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3499s kwasync = {} 3499s 3499s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 3499s """ 3499s Create a new database connection. 3499s 3499s The connection parameters can be specified as a string: 3499s 3499s conn = psycopg2.connect("dbname=test user=postgres password=secret") 3499s 3499s or using a set of keyword arguments: 3499s 3499s conn = psycopg2.connect(database="test", user="postgres", password="secret") 3499s 3499s Or as a mix of both. The basic connection parameters are: 3499s 3499s - *dbname*: the database name 3499s - *database*: the database name (only as keyword argument) 3499s - *user*: user name used to authenticate 3499s - *password*: password used to authenticate 3499s - *host*: database host address (defaults to UNIX socket if not provided) 3499s - *port*: connection port number (defaults to 5432 if not provided) 3499s 3499s Using the *connection_factory* parameter a different class or connections 3499s factory can be specified. It should be a callable object taking a dsn 3499s argument. 3499s 3499s Using the *cursor_factory* parameter, a new default cursor factory will be 3499s used by cursor(). 3499s 3499s Using *async*=True an asynchronous connection will be created. *async_* is 3499s a valid alias (for Python versions where ``async`` is a keyword). 3499s 3499s Any other keyword parameter will be passed to the underlying client 3499s library: the list of supported parameters depends on the library version. 3499s 3499s """ 3499s kwasync = {} 3499s if 'async' in kwargs: 3499s kwasync['async'] = kwargs.pop('async') 3499s if 'async_' in kwargs: 3499s kwasync['async_'] = kwargs.pop('async_') 3499s 3499s dsn = _ext.make_dsn(dsn, **kwargs) 3499s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 3499s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 3499s E Is the server running on that host and accepting TCP/IP connections? 3499s 3499s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 3499s 3499s The above exception was the direct cause of the following exception: 3499s 3499s conn = 'postgresql_psycopg2_conn', method = None 3499s test_frame1 = index A B C D 3499s 0 2000-01-03 00:00:00 0.980269 3.685731 -0.364217 -1...0-01-05 00:00:00 0.498581 0.731168 -0.537677 1.346270 3499s 3 2000-01-06 00:00:00 1.120202 1.567621 0.003641 0.675253 3499s request = > 3499s 3499s @pytest.mark.db 3499s @pytest.mark.parametrize("conn", all_connectable) 3499s @pytest.mark.parametrize("method", [None, "multi"]) 3499s def test_to_sql(conn, method, test_frame1, request): 3499s > conn = request.getfixturevalue(conn) 3499s 3499s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:595: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = > 3499s argname = 'postgresql_psycopg2_conn' 3499s 3499s def getfixturevalue(self, argname: str) -> Any: 3499s """Dynamically run a named fixture function. 3499s 3499s Declaring fixtures via function argument is recommended where possible. 3499s But if you can only decide whether to use another fixture at test 3499s setup time, you may use this function to retrieve it inside a fixture 3499s or test function body. 3499s 3499s This method can be used during the test setup phase or the test run 3499s phase, but during the test teardown phase a fixture's value may not 3499s be available. 3499s 3499s :param argname: 3499s The fixture name. 3499s :raises pytest.FixtureLookupError: 3499s If the given fixture could not be found. 3499s """ 3499s > fixturedef = self._get_active_fixturedef(argname) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:585: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = > 3499s argname = 'postgresql_psycopg2_conn' 3499s 3499s def _get_active_fixturedef( 3499s self, argname: str 3499s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3499s try: 3499s return self._fixture_defs[argname] 3499s except KeyError: 3499s try: 3499s fixturedef = self._getnextfixturedef(argname) 3499s except FixtureLookupError: 3499s if argname == "request": 3499s cached_result = (self, [0], None) 3499s return PseudoFixtureDef(cached_result, Scope.Function) 3499s raise 3499s # Remove indent to prevent the python3 exception 3499s # from leaking into the call. 3499s > self._compute_fixture_value(fixturedef) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = > 3499s fixturedef = 3499s 3499s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3499s """Create a SubRequest based on "self" and call the execute method 3499s of the given FixtureDef object. 3499s 3499s This will force the FixtureDef object to throw away any previous 3499s results and compute a new fixture value, which will be stored into 3499s the FixtureDef object itself. 3499s """ 3499s # prepare a subrequest object before calling fixture function 3499s # (latter managed by fixturedef) 3499s argname = fixturedef.argname 3499s funcitem = self._pyfuncitem 3499s scope = fixturedef._scope 3499s try: 3499s callspec = funcitem.callspec 3499s except AttributeError: 3499s callspec = None 3499s if callspec is not None and argname in callspec.params: 3499s param = callspec.params[argname] 3499s param_index = callspec.indices[argname] 3499s # If a parametrize invocation set a scope it will override 3499s # the static scope defined with the fixture function. 3499s with suppress(KeyError): 3499s scope = callspec._arg2scope[argname] 3499s else: 3499s param = NOTSET 3499s param_index = 0 3499s has_params = fixturedef.params is not None 3499s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3499s if has_params and fixtures_not_supported: 3499s msg = ( 3499s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3499s "Node id: {nodeid}\n" 3499s "Function type: {typename}" 3499s ).format( 3499s name=funcitem.name, 3499s nodeid=funcitem.nodeid, 3499s typename=type(funcitem).__name__, 3499s ) 3499s fail(msg, pytrace=False) 3499s if has_params: 3499s frame = inspect.stack()[3] 3499s frameinfo = inspect.getframeinfo(frame[0]) 3499s source_path = absolutepath(frameinfo.filename) 3499s source_lineno = frameinfo.lineno 3499s try: 3499s source_path_str = str( 3499s source_path.relative_to(funcitem.config.rootpath) 3499s ) 3499s except ValueError: 3499s source_path_str = str(source_path) 3499s msg = ( 3499s "The requested fixture has no parameter defined for test:\n" 3499s " {}\n\n" 3499s "Requested fixture '{}' defined in:\n{}" 3499s "\n\nRequested here:\n{}:{}".format( 3499s funcitem.nodeid, 3499s fixturedef.argname, 3499s getlocation(fixturedef.func, funcitem.config.rootpath), 3499s source_path_str, 3499s source_lineno, 3499s ) 3499s ) 3499s fail(msg, pytrace=False) 3499s 3499s subrequest = SubRequest( 3499s self, scope, param, param_index, fixturedef, _ispytest=True 3499s ) 3499s 3499s # Check if a higher-level scoped fixture accesses a lower level one. 3499s subrequest._check_scope(argname, self._scope, scope) 3499s try: 3499s # Call the fixture function. 3499s > fixturedef.execute(request=subrequest) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s request = > 3499s 3499s def execute(self, request: SubRequest) -> FixtureValue: 3499s # Get required arguments and register our own finish() 3499s # with their finalization. 3499s for argname in self.argnames: 3499s > fixturedef = request._get_active_fixturedef(argname) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1045: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = > 3499s argname = 'postgresql_psycopg2_engine' 3499s 3499s def _get_active_fixturedef( 3499s self, argname: str 3499s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3499s try: 3499s return self._fixture_defs[argname] 3499s except KeyError: 3499s try: 3499s fixturedef = self._getnextfixturedef(argname) 3499s except FixtureLookupError: 3499s if argname == "request": 3499s cached_result = (self, [0], None) 3499s return PseudoFixtureDef(cached_result, Scope.Function) 3499s raise 3499s # Remove indent to prevent the python3 exception 3499s # from leaking into the call. 3499s > self._compute_fixture_value(fixturedef) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = > 3499s fixturedef = 3499s 3499s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3499s """Create a SubRequest based on "self" and call the execute method 3499s of the given FixtureDef object. 3499s 3499s This will force the FixtureDef object to throw away any previous 3499s results and compute a new fixture value, which will be stored into 3499s the FixtureDef object itself. 3499s """ 3499s # prepare a subrequest object before calling fixture function 3499s # (latter managed by fixturedef) 3499s argname = fixturedef.argname 3499s funcitem = self._pyfuncitem 3499s scope = fixturedef._scope 3499s try: 3499s callspec = funcitem.callspec 3499s except AttributeError: 3499s callspec = None 3499s if callspec is not None and argname in callspec.params: 3499s param = callspec.params[argname] 3499s param_index = callspec.indices[argname] 3499s # If a parametrize invocation set a scope it will override 3499s # the static scope defined with the fixture function. 3499s with suppress(KeyError): 3499s scope = callspec._arg2scope[argname] 3499s else: 3499s param = NOTSET 3499s param_index = 0 3499s has_params = fixturedef.params is not None 3499s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3499s if has_params and fixtures_not_supported: 3499s msg = ( 3499s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3499s "Node id: {nodeid}\n" 3499s "Function type: {typename}" 3499s ).format( 3499s name=funcitem.name, 3499s nodeid=funcitem.nodeid, 3499s typename=type(funcitem).__name__, 3499s ) 3499s fail(msg, pytrace=False) 3499s if has_params: 3499s frame = inspect.stack()[3] 3499s frameinfo = inspect.getframeinfo(frame[0]) 3499s source_path = absolutepath(frameinfo.filename) 3499s source_lineno = frameinfo.lineno 3499s try: 3499s source_path_str = str( 3499s source_path.relative_to(funcitem.config.rootpath) 3499s ) 3499s except ValueError: 3499s source_path_str = str(source_path) 3499s msg = ( 3499s "The requested fixture has no parameter defined for test:\n" 3499s " {}\n\n" 3499s "Requested fixture '{}' defined in:\n{}" 3499s "\n\nRequested here:\n{}:{}".format( 3499s funcitem.nodeid, 3499s fixturedef.argname, 3499s getlocation(fixturedef.func, funcitem.config.rootpath), 3499s source_path_str, 3499s source_lineno, 3499s ) 3499s ) 3499s fail(msg, pytrace=False) 3499s 3499s subrequest = SubRequest( 3499s self, scope, param, param_index, fixturedef, _ispytest=True 3499s ) 3499s 3499s # Check if a higher-level scoped fixture accesses a lower level one. 3499s subrequest._check_scope(argname, self._scope, scope) 3499s try: 3499s # Call the fixture function. 3499s > fixturedef.execute(request=subrequest) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s request = > 3499s 3499s def execute(self, request: SubRequest) -> FixtureValue: 3499s # Get required arguments and register our own finish() 3499s # with their finalization. 3499s for argname in self.argnames: 3499s fixturedef = request._get_active_fixturedef(argname) 3499s if argname != "request": 3499s # PseudoFixtureDef is only for "request". 3499s assert isinstance(fixturedef, FixtureDef) 3499s fixturedef.addfinalizer(functools.partial(self.finish, request=request)) 3499s 3499s my_cache_key = self.cache_key(request) 3499s if self.cached_result is not None: 3499s # note: comparison with `==` can fail (or be expensive) for e.g. 3499s # numpy arrays (#6497). 3499s cache_key = self.cached_result[1] 3499s if my_cache_key is cache_key: 3499s if self.cached_result[2] is not None: 3499s _, val, tb = self.cached_result[2] 3499s raise val.with_traceback(tb) 3499s else: 3499s result = self.cached_result[0] 3499s return result 3499s # We have a previous but differently parametrized fixture instance 3499s # so we need to tear it down before creating a new one. 3499s self.finish(request) 3499s assert self.cached_result is None 3499s 3499s ihook = request.node.ihook 3499s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1069: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s kwargs = {'fixturedef': , 'request': >} 3499s firstresult = True 3499s 3499s def __call__(self, **kwargs: object) -> Any: 3499s """Call the hook. 3499s 3499s Only accepts keyword arguments, which should match the hook 3499s specification. 3499s 3499s Returns the result(s) of calling all registered plugins, see 3499s :ref:`calling`. 3499s """ 3499s assert ( 3499s not self.is_historic() 3499s ), "Cannot directly call a historic hook - use call_historic instead." 3499s self._verify_all_args_are_provided(kwargs) 3499s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 3499s # Copy because plugins may register other plugins during iteration (#438). 3499s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 3499s 3499s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = <_pytest.config.PytestPluginManager object at 0xe9079168> 3499s hook_name = 'pytest_fixture_setup' 3499s methods = [>] 3499s kwargs = {'fixturedef': , 'request': >} 3499s firstresult = True 3499s 3499s def _hookexec( 3499s self, 3499s hook_name: str, 3499s methods: Sequence[HookImpl], 3499s kwargs: Mapping[str, object], 3499s firstresult: bool, 3499s ) -> object | list[object]: 3499s # called from all hookcaller instances. 3499s # enable_tracing will set its own wrapping function at self._inner_hookexec 3499s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 3499s 3499s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s fixturedef = 3499s request = > 3499s 3499s def pytest_fixture_setup( 3499s fixturedef: FixtureDef[FixtureValue], request: SubRequest 3499s ) -> FixtureValue: 3499s """Execution of fixture setup.""" 3499s kwargs = {} 3499s for argname in fixturedef.argnames: 3499s fixdef = request._get_active_fixturedef(argname) 3499s assert fixdef.cached_result is not None 3499s result, arg_cache_key, exc = fixdef.cached_result 3499s request._check_scope(argname, request._scope, fixdef._scope) 3499s kwargs[argname] = result 3499s 3499s fixturefunc = resolve_fixture_function(fixturedef, request) 3499s my_cache_key = fixturedef.cache_key(request) 3499s try: 3499s > result = call_fixture_func(fixturefunc, request, kwargs) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1123: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s fixturefunc = 3499s request = > 3499s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv'), 'types_data': [{'B... False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}]} 3499s 3499s def call_fixture_func( 3499s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 3499s ) -> FixtureValue: 3499s if is_generator(fixturefunc): 3499s fixturefunc = cast( 3499s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 3499s ) 3499s generator = fixturefunc(**kwargs) 3499s try: 3499s > fixture_result = next(generator) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:895: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s iris_path = PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv') 3499s types_data = [{'BoolCol': False, 'BoolColWithNull': False, 'DateCol': '2000-01-03 00:00:00', 'DateColWithTz': '2000-01-01 00:00:00-...: False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}] 3499s 3499s @pytest.fixture 3499s def postgresql_psycopg2_engine(iris_path, types_data): 3499s sqlalchemy = pytest.importorskip("sqlalchemy") 3499s pytest.importorskip("psycopg2") 3499s engine = sqlalchemy.create_engine( 3499s "postgresql+psycopg2://postgres:postgres@localhost:5432/pandas", 3499s poolclass=sqlalchemy.pool.NullPool, 3499s ) 3499s > insp = sqlalchemy.inspect(engine) 3499s 3499s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:438: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s subject = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3499s raiseerr = True 3499s 3499s def inspect(subject, raiseerr=True): 3499s """Produce an inspection object for the given target. 3499s 3499s The returned value in some cases may be the 3499s same object as the one given, such as if a 3499s :class:`_orm.Mapper` object is passed. In other 3499s cases, it will be an instance of the registered 3499s inspection type for the given object, such as 3499s if an :class:`_engine.Engine` is passed, an 3499s :class:`_reflection.Inspector` object is returned. 3499s 3499s :param subject: the subject to be inspected. 3499s :param raiseerr: When ``True``, if the given subject 3499s does not 3499s correspond to a known SQLAlchemy inspected type, 3499s :class:`sqlalchemy.exc.NoInspectionAvailable` 3499s is raised. If ``False``, ``None`` is returned. 3499s 3499s """ 3499s type_ = type(subject) 3499s for cls in type_.__mro__: 3499s if cls in _registrars: 3499s reg = _registrars[cls] 3499s if reg is True: 3499s return subject 3499s > ret = reg(subject) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:64: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3499s 3499s @inspection._inspects(Engine) 3499s def _engine_insp(bind): 3499s > return Inspector._construct(Inspector._init_engine, bind) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:182: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s init = 3499s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3499s 3499s @classmethod 3499s def _construct(cls, init, bind): 3499s 3499s if hasattr(bind.dialect, "inspector"): 3499s cls = bind.dialect.inspector 3499s 3499s self = cls.__new__(cls) 3499s > init(self, bind) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:117: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3499s 3499s def _init_engine(self, engine): 3499s self.bind = self.engine = engine 3499s > engine.connect().close() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:128: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3499s close_with_result = False 3499s 3499s def connect(self, close_with_result=False): 3499s """Return a new :class:`_engine.Connection` object. 3499s 3499s The :class:`_engine.Connection` object is a facade that uses a DBAPI 3499s connection internally in order to communicate with the database. This 3499s connection is procured from the connection-holding :class:`_pool.Pool` 3499s referenced by this :class:`_engine.Engine`. When the 3499s :meth:`_engine.Connection.close` method of the 3499s :class:`_engine.Connection` object 3499s is called, the underlying DBAPI connection is then returned to the 3499s connection pool, where it may be used again in a subsequent call to 3499s :meth:`_engine.Engine.connect`. 3499s 3499s """ 3499s 3499s > return self._connection_cls(self, close_with_result=close_with_result) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3325: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3499s connection = None, close_with_result = False, _branch_from = None 3499s _execution_options = None, _dispatch = None, _has_events = None 3499s _allow_revalidate = True 3499s 3499s def __init__( 3499s self, 3499s engine, 3499s connection=None, 3499s close_with_result=False, 3499s _branch_from=None, 3499s _execution_options=None, 3499s _dispatch=None, 3499s _has_events=None, 3499s _allow_revalidate=True, 3499s ): 3499s """Construct a new Connection.""" 3499s self.engine = engine 3499s self.dialect = engine.dialect 3499s self.__branch_from = _branch_from 3499s 3499s if _branch_from: 3499s # branching is always "from" the root connection 3499s assert _branch_from.__branch_from is None 3499s self._dbapi_connection = connection 3499s self._execution_options = _execution_options 3499s self._echo = _branch_from._echo 3499s self.should_close_with_result = False 3499s self.dispatch = _dispatch 3499s self._has_events = _branch_from._has_events 3499s else: 3499s self._dbapi_connection = ( 3499s connection 3499s if connection is not None 3499s > else engine.raw_connection() 3499s ) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:96: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3499s _connection = None 3499s 3499s def raw_connection(self, _connection=None): 3499s """Return a "raw" DBAPI connection from the connection pool. 3499s 3499s The returned object is a proxied version of the DBAPI 3499s connection object used by the underlying driver in use. 3499s The object will have all the same behavior as the real DBAPI 3499s connection, except that its ``close()`` method will result in the 3499s connection being returned to the pool, rather than being closed 3499s for real. 3499s 3499s This method provides direct DBAPI connection access for 3499s special situations when the API provided by 3499s :class:`_engine.Connection` 3499s is not needed. When a :class:`_engine.Connection` object is already 3499s present, the DBAPI connection is available using 3499s the :attr:`_engine.Connection.connection` accessor. 3499s 3499s .. seealso:: 3499s 3499s :ref:`dbapi_connections` 3499s 3499s """ 3499s > return self._wrap_pool_connect(self.pool.connect, _connection) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3404: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3499s fn = > 3499s connection = None 3499s 3499s def _wrap_pool_connect(self, fn, connection): 3499s dialect = self.dialect 3499s try: 3499s return fn() 3499s except dialect.dbapi.Error as e: 3499s if connection is None: 3499s > Connection._handle_dbapi_exception_noconnection( 3499s e, dialect, self 3499s ) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3374: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s e = OperationalError('connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused\n\tIs the server running on that host and accepting TCP/IP connections?\n') 3499s dialect = 3499s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3499s 3499s @classmethod 3499s def _handle_dbapi_exception_noconnection(cls, e, dialect, engine): 3499s exc_info = sys.exc_info() 3499s 3499s is_disconnect = dialect.is_disconnect(e, None, None) 3499s 3499s should_wrap = isinstance(e, dialect.dbapi.Error) 3499s 3499s if should_wrap: 3499s sqlalchemy_exception = exc.DBAPIError.instance( 3499s None, 3499s None, 3499s e, 3499s dialect.dbapi.Error, 3499s hide_parameters=engine.hide_parameters, 3499s connection_invalidated=is_disconnect, 3499s ) 3499s else: 3499s sqlalchemy_exception = None 3499s 3499s newraise = None 3499s 3499s if engine._has_events: 3499s ctx = ExceptionContextImpl( 3499s e, 3499s sqlalchemy_exception, 3499s engine, 3499s None, 3499s None, 3499s None, 3499s None, 3499s None, 3499s is_disconnect, 3499s True, 3499s ) 3499s for fn in engine.dispatch.handle_error: 3499s try: 3499s # handler returns an exception; 3499s # call next handler in a chain 3499s per_fn = fn(ctx) 3499s if per_fn is not None: 3499s ctx.chained_exception = newraise = per_fn 3499s except Exception as _raised: 3499s # handler raises an exception - stop processing 3499s newraise = _raised 3499s break 3499s 3499s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 3499s sqlalchemy_exception.connection_invalidated = ( 3499s is_disconnect 3499s ) = ctx.is_disconnect 3499s 3499s if newraise: 3499s util.raise_(newraise, with_traceback=exc_info[2], from_=e) 3499s elif should_wrap: 3499s > util.raise_( 3499s sqlalchemy_exception, with_traceback=exc_info[2], from_=e 3499s ) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2208: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s def raise_( 3499s exception, with_traceback=None, replace_context=None, from_=False 3499s ): 3499s r"""implement "raise" with cause support. 3499s 3499s :param exception: exception to raise 3499s :param with_traceback: will call exception.with_traceback() 3499s :param replace_context: an as-yet-unsupported feature. This is 3499s an exception object which we are "replacing", e.g., it's our 3499s "cause" but we don't want it printed. Basically just what 3499s ``__suppress_context__`` does but we don't want to suppress 3499s the enclosing context, if any. So for now we make it the 3499s cause. 3499s :param from\_: the cause. this actually sets the cause and doesn't 3499s hope to hide it someday. 3499s 3499s """ 3499s if with_traceback is not None: 3499s exception = exception.with_traceback(with_traceback) 3499s 3499s if from_ is not False: 3499s exception.__cause__ = from_ 3499s elif replace_context is not None: 3499s # no good solution here, we would like to have the exception 3499s # have only the context of replace_context.__context__ so that the 3499s # intermediary exception does not change, but we can't figure 3499s # that out. 3499s exception.__cause__ = replace_context 3499s 3499s try: 3499s > raise exception 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3499s fn = > 3499s connection = None 3499s 3499s def _wrap_pool_connect(self, fn, connection): 3499s dialect = self.dialect 3499s try: 3499s > return fn() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def connect(self): 3499s """Return a DBAPI connection from the pool. 3499s 3499s The connection is instrumented such that when its 3499s ``close()`` method is called, the connection will be returned to 3499s the pool. 3499s 3499s """ 3499s > return _ConnectionFairy._checkout(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s pool = , threadconns = None 3499s fairy = None 3499s 3499s @classmethod 3499s def _checkout(cls, pool, threadconns=None, fairy=None): 3499s if not fairy: 3499s > fairy = _ConnectionRecord.checkout(pool) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s pool = 3499s 3499s @classmethod 3499s def checkout(cls, pool): 3499s > rec = pool._do_get() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def _do_get(self): 3499s > return self._create_connection() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def _create_connection(self): 3499s """Called by subclasses to create a new ConnectionRecord.""" 3499s 3499s > return _ConnectionRecord(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s pool = , connect = True 3499s 3499s def __init__(self, pool, connect=True): 3499s self.__pool = pool 3499s if connect: 3499s > self.__connect() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def __connect(self): 3499s pool = self.__pool 3499s 3499s # ensure any existing connection is removed, so that if 3499s # creator fails, this attribute stays None 3499s self.dbapi_connection = None 3499s try: 3499s self.starttime = time.time() 3499s self.dbapi_connection = connection = pool._invoke_creator(self) 3499s pool.logger.debug("Created new connection %r", connection) 3499s self.fresh = True 3499s except BaseException as e: 3499s > with util.safe_reraise(): 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s type_ = None, value = None, traceback = None 3499s 3499s def __exit__(self, type_, value, traceback): 3499s # see #2703 for notes 3499s if type_ is None: 3499s exc_type, exc_value, exc_tb = self._exc_info 3499s self._exc_info = None # remove potential circular references 3499s if not self.warn_only: 3499s > compat.raise_( 3499s exc_value, 3499s with_traceback=exc_tb, 3499s ) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s def raise_( 3499s exception, with_traceback=None, replace_context=None, from_=False 3499s ): 3499s r"""implement "raise" with cause support. 3499s 3499s :param exception: exception to raise 3499s :param with_traceback: will call exception.with_traceback() 3499s :param replace_context: an as-yet-unsupported feature. This is 3499s an exception object which we are "replacing", e.g., it's our 3499s "cause" but we don't want it printed. Basically just what 3499s ``__suppress_context__`` does but we don't want to suppress 3499s the enclosing context, if any. So for now we make it the 3499s cause. 3499s :param from\_: the cause. this actually sets the cause and doesn't 3499s hope to hide it someday. 3499s 3499s """ 3499s if with_traceback is not None: 3499s exception = exception.with_traceback(with_traceback) 3499s 3499s if from_ is not False: 3499s exception.__cause__ = from_ 3499s elif replace_context is not None: 3499s # no good solution here, we would like to have the exception 3499s # have only the context of replace_context.__context__ so that the 3499s # intermediary exception does not change, but we can't figure 3499s # that out. 3499s exception.__cause__ = replace_context 3499s 3499s try: 3499s > raise exception 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def __connect(self): 3499s pool = self.__pool 3499s 3499s # ensure any existing connection is removed, so that if 3499s # creator fails, this attribute stays None 3499s self.dbapi_connection = None 3499s try: 3499s self.starttime = time.time() 3499s > self.dbapi_connection = connection = pool._invoke_creator(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s connection_record = 3499s 3499s def connect(connection_record=None): 3499s if dialect._has_events: 3499s for fn in dialect.dispatch.do_connect: 3499s connection = fn(dialect, connection_record, cargs, cparams) 3499s if connection is not None: 3499s return connection 3499s > return dialect.connect(*cargs, **cparams) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s cargs = () 3499s cparams = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3499s 3499s def connect(self, *cargs, **cparams): 3499s # inherits the docstring from interfaces.Dialect.connect 3499s > return self.dbapi.connect(*cargs, **cparams) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s dsn = 'host=localhost user=postgres password=postgres port=5432 dbname=pandas' 3499s connection_factory = None, cursor_factory = None 3499s kwargs = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3499s kwasync = {} 3499s 3499s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 3499s """ 3499s Create a new database connection. 3499s 3499s The connection parameters can be specified as a string: 3499s 3499s conn = psycopg2.connect("dbname=test user=postgres password=secret") 3499s 3499s or using a set of keyword arguments: 3499s 3499s conn = psycopg2.connect(database="test", user="postgres", password="secret") 3499s 3499s Or as a mix of both. The basic connection parameters are: 3499s 3499s - *dbname*: the database name 3499s - *database*: the database name (only as keyword argument) 3499s - *user*: user name used to authenticate 3499s - *password*: password used to authenticate 3499s - *host*: database host address (defaults to UNIX socket if not provided) 3499s - *port*: connection port number (defaults to 5432 if not provided) 3499s 3499s Using the *connection_factory* parameter a different class or connections 3499s factory can be specified. It should be a callable object taking a dsn 3499s argument. 3499s 3499s Using the *cursor_factory* parameter, a new default cursor factory will be 3499s used by cursor(). 3499s 3499s Using *async*=True an asynchronous connection will be created. *async_* is 3499s a valid alias (for Python versions where ``async`` is a keyword). 3499s 3499s Any other keyword parameter will be passed to the underlying client 3499s library: the list of supported parameters depends on the library version. 3499s 3499s """ 3499s kwasync = {} 3499s if 'async' in kwargs: 3499s kwasync['async'] = kwargs.pop('async') 3499s if 'async_' in kwargs: 3499s kwasync['async_'] = kwargs.pop('async_') 3499s 3499s dsn = _ext.make_dsn(dsn, **kwargs) 3499s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 3499s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 3499s E Is the server running on that host and accepting TCP/IP connections? 3499s E 3499s E (Background on this error at: https://sqlalche.me/e/14/e3q8) 3499s 3499s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 3499s ___________________ test_to_sql[multi-mysql_pymysql_engine] ____________________ 3499s self = , sock = None 3499s 3499s def connect(self, sock=None): 3499s self._closed = False 3499s try: 3499s if sock is None: 3499s if self.unix_socket: 3499s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3499s sock.settimeout(self.connect_timeout) 3499s sock.connect(self.unix_socket) 3499s self.host_info = "Localhost via UNIX socket" 3499s self._secure = True 3499s if DEBUG: 3499s print("connected using unix_socket") 3499s else: 3499s kwargs = {} 3499s if self.bind_address is not None: 3499s kwargs["source_address"] = (self.bind_address, 0) 3499s while True: 3499s try: 3499s > sock = socket.create_connection( 3499s (self.host, self.port), self.connect_timeout, **kwargs 3499s ) 3499s 3499s /usr/lib/python3/dist-packages/pymysql/connections.py:649: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s address = ('localhost', 3306), timeout = 10, source_address = None 3499s 3499s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 3499s source_address=None, *, all_errors=False): 3499s """Connect to *address* and return the socket object. 3499s 3499s Convenience function. Connect to *address* (a 2-tuple ``(host, 3499s port)``) and return the socket object. Passing the optional 3499s *timeout* parameter will set the timeout on the socket instance 3499s before attempting to connect. If no *timeout* is supplied, the 3499s global default timeout setting returned by :func:`getdefaulttimeout` 3499s is used. If *source_address* is set it must be a tuple of (host, port) 3499s for the socket to bind as a source address before making the connection. 3499s A host of '' or port 0 tells the OS to use the default. When a connection 3499s cannot be created, raises the last error if *all_errors* is False, 3499s and an ExceptionGroup of all errors if *all_errors* is True. 3499s """ 3499s 3499s host, port = address 3499s exceptions = [] 3499s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 3499s af, socktype, proto, canonname, sa = res 3499s sock = None 3499s try: 3499s sock = socket(af, socktype, proto) 3499s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 3499s sock.settimeout(timeout) 3499s if source_address: 3499s sock.bind(source_address) 3499s sock.connect(sa) 3499s # Break explicitly a reference cycle 3499s exceptions.clear() 3499s return sock 3499s 3499s except error as exc: 3499s if not all_errors: 3499s exceptions.clear() # raise only the last error 3499s exceptions.append(exc) 3499s if sock is not None: 3499s sock.close() 3499s 3499s if len(exceptions): 3499s try: 3499s if not all_errors: 3499s > raise exceptions[0] 3499s 3499s /usr/lib/python3.12/socket.py:853: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s address = ('localhost', 3306), timeout = 10, source_address = None 3499s 3499s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 3499s source_address=None, *, all_errors=False): 3499s """Connect to *address* and return the socket object. 3499s 3499s Convenience function. Connect to *address* (a 2-tuple ``(host, 3499s port)``) and return the socket object. Passing the optional 3499s *timeout* parameter will set the timeout on the socket instance 3499s before attempting to connect. If no *timeout* is supplied, the 3499s global default timeout setting returned by :func:`getdefaulttimeout` 3499s is used. If *source_address* is set it must be a tuple of (host, port) 3499s for the socket to bind as a source address before making the connection. 3499s A host of '' or port 0 tells the OS to use the default. When a connection 3499s cannot be created, raises the last error if *all_errors* is False, 3499s and an ExceptionGroup of all errors if *all_errors* is True. 3499s """ 3499s 3499s host, port = address 3499s exceptions = [] 3499s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 3499s af, socktype, proto, canonname, sa = res 3499s sock = None 3499s try: 3499s sock = socket(af, socktype, proto) 3499s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 3499s sock.settimeout(timeout) 3499s if source_address: 3499s sock.bind(source_address) 3499s > sock.connect(sa) 3499s E ConnectionRefusedError: [Errno 111] Connection refused 3499s 3499s /usr/lib/python3.12/socket.py:838: ConnectionRefusedError 3499s 3499s During handling of the above exception, another exception occurred: 3499s 3499s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3499s fn = > 3499s connection = None 3499s 3499s def _wrap_pool_connect(self, fn, connection): 3499s dialect = self.dialect 3499s try: 3499s > return fn() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def connect(self): 3499s """Return a DBAPI connection from the pool. 3499s 3499s The connection is instrumented such that when its 3499s ``close()`` method is called, the connection will be returned to 3499s the pool. 3499s 3499s """ 3499s > return _ConnectionFairy._checkout(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s pool = , threadconns = None 3499s fairy = None 3499s 3499s @classmethod 3499s def _checkout(cls, pool, threadconns=None, fairy=None): 3499s if not fairy: 3499s > fairy = _ConnectionRecord.checkout(pool) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s pool = 3499s 3499s @classmethod 3499s def checkout(cls, pool): 3499s > rec = pool._do_get() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def _do_get(self): 3499s > return self._create_connection() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def _create_connection(self): 3499s """Called by subclasses to create a new ConnectionRecord.""" 3499s 3499s > return _ConnectionRecord(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s pool = , connect = True 3499s 3499s def __init__(self, pool, connect=True): 3499s self.__pool = pool 3499s if connect: 3499s > self.__connect() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def __connect(self): 3499s pool = self.__pool 3499s 3499s # ensure any existing connection is removed, so that if 3499s # creator fails, this attribute stays None 3499s self.dbapi_connection = None 3499s try: 3499s self.starttime = time.time() 3499s self.dbapi_connection = connection = pool._invoke_creator(self) 3499s pool.logger.debug("Created new connection %r", connection) 3499s self.fresh = True 3499s except BaseException as e: 3499s > with util.safe_reraise(): 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s type_ = None, value = None, traceback = None 3499s 3499s def __exit__(self, type_, value, traceback): 3499s # see #2703 for notes 3499s if type_ is None: 3499s exc_type, exc_value, exc_tb = self._exc_info 3499s self._exc_info = None # remove potential circular references 3499s if not self.warn_only: 3499s > compat.raise_( 3499s exc_value, 3499s with_traceback=exc_tb, 3499s ) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s def raise_( 3499s exception, with_traceback=None, replace_context=None, from_=False 3499s ): 3499s r"""implement "raise" with cause support. 3499s 3499s :param exception: exception to raise 3499s :param with_traceback: will call exception.with_traceback() 3499s :param replace_context: an as-yet-unsupported feature. This is 3499s an exception object which we are "replacing", e.g., it's our 3499s "cause" but we don't want it printed. Basically just what 3499s ``__suppress_context__`` does but we don't want to suppress 3499s the enclosing context, if any. So for now we make it the 3499s cause. 3499s :param from\_: the cause. this actually sets the cause and doesn't 3499s hope to hide it someday. 3499s 3499s """ 3499s if with_traceback is not None: 3499s exception = exception.with_traceback(with_traceback) 3499s 3499s if from_ is not False: 3499s exception.__cause__ = from_ 3499s elif replace_context is not None: 3499s # no good solution here, we would like to have the exception 3499s # have only the context of replace_context.__context__ so that the 3499s # intermediary exception does not change, but we can't figure 3499s # that out. 3499s exception.__cause__ = replace_context 3499s 3499s try: 3499s > raise exception 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def __connect(self): 3499s pool = self.__pool 3499s 3499s # ensure any existing connection is removed, so that if 3499s # creator fails, this attribute stays None 3499s self.dbapi_connection = None 3499s try: 3499s self.starttime = time.time() 3499s > self.dbapi_connection = connection = pool._invoke_creator(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s connection_record = 3499s 3499s def connect(connection_record=None): 3499s if dialect._has_events: 3499s for fn in dialect.dispatch.do_connect: 3499s connection = fn(dialect, connection_record, cargs, cparams) 3499s if connection is not None: 3499s return connection 3499s > return dialect.connect(*cargs, **cparams) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s cargs = () 3499s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 3499s 3499s def connect(self, *cargs, **cparams): 3499s # inherits the docstring from interfaces.Dialect.connect 3499s > return self.dbapi.connect(*cargs, **cparams) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def __init__( 3499s self, 3499s *, 3499s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 3499s password="", 3499s host=None, 3499s database=None, 3499s unix_socket=None, 3499s port=0, 3499s charset="", 3499s collation=None, 3499s sql_mode=None, 3499s read_default_file=None, 3499s conv=None, 3499s use_unicode=True, 3499s client_flag=0, 3499s cursorclass=Cursor, 3499s init_command=None, 3499s connect_timeout=10, 3499s read_default_group=None, 3499s autocommit=False, 3499s local_infile=False, 3499s max_allowed_packet=16 * 1024 * 1024, 3499s defer_connect=False, 3499s auth_plugin_map=None, 3499s read_timeout=None, 3499s write_timeout=None, 3499s bind_address=None, 3499s binary_prefix=False, 3499s program_name=None, 3499s server_public_key=None, 3499s ssl=None, 3499s ssl_ca=None, 3499s ssl_cert=None, 3499s ssl_disabled=None, 3499s ssl_key=None, 3499s ssl_key_password=None, 3499s ssl_verify_cert=None, 3499s ssl_verify_identity=None, 3499s compress=None, # not supported 3499s named_pipe=None, # not supported 3499s passwd=None, # deprecated 3499s db=None, # deprecated 3499s ): 3499s if db is not None and database is None: 3499s # We will raise warning in 2022 or later. 3499s # See https://github.com/PyMySQL/PyMySQL/issues/939 3499s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 3499s database = db 3499s if passwd is not None and not password: 3499s # We will raise warning in 2022 or later. 3499s # See https://github.com/PyMySQL/PyMySQL/issues/939 3499s # warnings.warn( 3499s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 3499s # ) 3499s password = passwd 3499s 3499s if compress or named_pipe: 3499s raise NotImplementedError( 3499s "compress and named_pipe arguments are not supported" 3499s ) 3499s 3499s self._local_infile = bool(local_infile) 3499s if self._local_infile: 3499s client_flag |= CLIENT.LOCAL_FILES 3499s 3499s if read_default_group and not read_default_file: 3499s if sys.platform.startswith("win"): 3499s read_default_file = "c:\\my.ini" 3499s else: 3499s read_default_file = "/etc/my.cnf" 3499s 3499s if read_default_file: 3499s if not read_default_group: 3499s read_default_group = "client" 3499s 3499s cfg = Parser() 3499s cfg.read(os.path.expanduser(read_default_file)) 3499s 3499s def _config(key, arg): 3499s if arg: 3499s return arg 3499s try: 3499s return cfg.get(read_default_group, key) 3499s except Exception: 3499s return arg 3499s 3499s user = _config("user", user) 3499s password = _config("password", password) 3499s host = _config("host", host) 3499s database = _config("database", database) 3499s unix_socket = _config("socket", unix_socket) 3499s port = int(_config("port", port)) 3499s bind_address = _config("bind-address", bind_address) 3499s charset = _config("default-character-set", charset) 3499s if not ssl: 3499s ssl = {} 3499s if isinstance(ssl, dict): 3499s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 3499s value = _config("ssl-" + key, ssl.get(key)) 3499s if value: 3499s ssl[key] = value 3499s 3499s self.ssl = False 3499s if not ssl_disabled: 3499s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 3499s ssl = { 3499s "ca": ssl_ca, 3499s "check_hostname": bool(ssl_verify_identity), 3499s "verify_mode": ssl_verify_cert 3499s if ssl_verify_cert is not None 3499s else False, 3499s } 3499s if ssl_cert is not None: 3499s ssl["cert"] = ssl_cert 3499s if ssl_key is not None: 3499s ssl["key"] = ssl_key 3499s if ssl_key_password is not None: 3499s ssl["password"] = ssl_key_password 3499s if ssl: 3499s if not SSL_ENABLED: 3499s raise NotImplementedError("ssl module not found") 3499s self.ssl = True 3499s client_flag |= CLIENT.SSL 3499s self.ctx = self._create_ssl_ctx(ssl) 3499s 3499s self.host = host or "localhost" 3499s self.port = port or 3306 3499s if type(self.port) is not int: 3499s raise ValueError("port should be of type int") 3499s self.user = user or DEFAULT_USER 3499s self.password = password or b"" 3499s if isinstance(self.password, str): 3499s self.password = self.password.encode("latin1") 3499s self.db = database 3499s self.unix_socket = unix_socket 3499s self.bind_address = bind_address 3499s if not (0 < connect_timeout <= 31536000): 3499s raise ValueError("connect_timeout should be >0 and <=31536000") 3499s self.connect_timeout = connect_timeout or None 3499s if read_timeout is not None and read_timeout <= 0: 3499s raise ValueError("read_timeout should be > 0") 3499s self._read_timeout = read_timeout 3499s if write_timeout is not None and write_timeout <= 0: 3499s raise ValueError("write_timeout should be > 0") 3499s self._write_timeout = write_timeout 3499s 3499s self.charset = charset or DEFAULT_CHARSET 3499s self.collation = collation 3499s self.use_unicode = use_unicode 3499s 3499s self.encoding = charset_by_name(self.charset).encoding 3499s 3499s client_flag |= CLIENT.CAPABILITIES 3499s if self.db: 3499s client_flag |= CLIENT.CONNECT_WITH_DB 3499s 3499s self.client_flag = client_flag 3499s 3499s self.cursorclass = cursorclass 3499s 3499s self._result = None 3499s self._affected_rows = 0 3499s self.host_info = "Not connected" 3499s 3499s # specified autocommit mode. None means use server default. 3499s self.autocommit_mode = autocommit 3499s 3499s if conv is None: 3499s conv = converters.conversions 3499s 3499s # Need for MySQLdb compatibility. 3499s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 3499s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 3499s self.sql_mode = sql_mode 3499s self.init_command = init_command 3499s self.max_allowed_packet = max_allowed_packet 3499s self._auth_plugin_map = auth_plugin_map or {} 3499s self._binary_prefix = binary_prefix 3499s self.server_public_key = server_public_key 3499s 3499s self._connect_attrs = { 3499s "_client_name": "pymysql", 3499s "_client_version": VERSION_STRING, 3499s "_pid": str(os.getpid()), 3499s } 3499s 3499s if program_name: 3499s self._connect_attrs["program_name"] = program_name 3499s 3499s if defer_connect: 3499s self._sock = None 3499s else: 3499s > self.connect() 3499s 3499s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = , sock = None 3499s 3499s def connect(self, sock=None): 3499s self._closed = False 3499s try: 3499s if sock is None: 3499s if self.unix_socket: 3499s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3499s sock.settimeout(self.connect_timeout) 3499s sock.connect(self.unix_socket) 3499s self.host_info = "Localhost via UNIX socket" 3499s self._secure = True 3499s if DEBUG: 3499s print("connected using unix_socket") 3499s else: 3499s kwargs = {} 3499s if self.bind_address is not None: 3499s kwargs["source_address"] = (self.bind_address, 0) 3499s while True: 3499s try: 3499s sock = socket.create_connection( 3499s (self.host, self.port), self.connect_timeout, **kwargs 3499s ) 3499s break 3499s except OSError as e: 3499s if e.errno == errno.EINTR: 3499s continue 3499s raise 3499s self.host_info = "socket %s:%d" % (self.host, self.port) 3499s if DEBUG: 3499s print("connected using socket") 3499s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 3499s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 3499s sock.settimeout(None) 3499s 3499s self._sock = sock 3499s self._rfile = sock.makefile("rb") 3499s self._next_seq_id = 0 3499s 3499s self._get_server_information() 3499s self._request_authentication() 3499s 3499s # Send "SET NAMES" query on init for: 3499s # - Ensure charaset (and collation) is set to the server. 3499s # - collation_id in handshake packet may be ignored. 3499s # - If collation is not specified, we don't know what is server's 3499s # default collation for the charset. For example, default collation 3499s # of utf8mb4 is: 3499s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 3499s # - MySQL 8.0: utf8mb4_0900_ai_ci 3499s # 3499s # Reference: 3499s # - https://github.com/PyMySQL/PyMySQL/issues/1092 3499s # - https://github.com/wagtail/wagtail/issues/9477 3499s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 3499s self.set_character_set(self.charset, self.collation) 3499s 3499s if self.sql_mode is not None: 3499s c = self.cursor() 3499s c.execute("SET sql_mode=%s", (self.sql_mode,)) 3499s c.close() 3499s 3499s if self.init_command is not None: 3499s c = self.cursor() 3499s c.execute(self.init_command) 3499s c.close() 3499s 3499s if self.autocommit_mode is not None: 3499s self.autocommit(self.autocommit_mode) 3499s except BaseException as e: 3499s self._rfile = None 3499s if sock is not None: 3499s try: 3499s sock.close() 3499s except: # noqa 3499s pass 3499s 3499s if isinstance(e, (OSError, IOError)): 3499s exc = err.OperationalError( 3499s CR.CR_CONN_HOST_ERROR, 3499s f"Can't connect to MySQL server on {self.host!r} ({e})", 3499s ) 3499s # Keep original exception and traceback to investigate error. 3499s exc.original_exception = e 3499s exc.traceback = traceback.format_exc() 3499s if DEBUG: 3499s print(exc.traceback) 3499s > raise exc 3499s E pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3499s 3499s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 3499s 3499s The above exception was the direct cause of the following exception: 3499s 3499s conn = 'mysql_pymysql_engine', method = 'multi' 3499s test_frame1 = index A B C D 3499s 0 2000-01-03 00:00:00 0.980269 3.685731 -0.364217 -1...0-01-05 00:00:00 0.498581 0.731168 -0.537677 1.346270 3499s 3 2000-01-06 00:00:00 1.120202 1.567621 0.003641 0.675253 3499s request = > 3499s 3499s @pytest.mark.db 3499s @pytest.mark.parametrize("conn", all_connectable) 3499s @pytest.mark.parametrize("method", [None, "multi"]) 3499s def test_to_sql(conn, method, test_frame1, request): 3499s > conn = request.getfixturevalue(conn) 3499s 3499s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:595: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = > 3499s argname = 'mysql_pymysql_engine' 3499s 3499s def getfixturevalue(self, argname: str) -> Any: 3499s """Dynamically run a named fixture function. 3499s 3499s Declaring fixtures via function argument is recommended where possible. 3499s But if you can only decide whether to use another fixture at test 3499s setup time, you may use this function to retrieve it inside a fixture 3499s or test function body. 3499s 3499s This method can be used during the test setup phase or the test run 3499s phase, but during the test teardown phase a fixture's value may not 3499s be available. 3499s 3499s :param argname: 3499s The fixture name. 3499s :raises pytest.FixtureLookupError: 3499s If the given fixture could not be found. 3499s """ 3499s > fixturedef = self._get_active_fixturedef(argname) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:585: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = > 3499s argname = 'mysql_pymysql_engine' 3499s 3499s def _get_active_fixturedef( 3499s self, argname: str 3499s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3499s try: 3499s return self._fixture_defs[argname] 3499s except KeyError: 3499s try: 3499s fixturedef = self._getnextfixturedef(argname) 3499s except FixtureLookupError: 3499s if argname == "request": 3499s cached_result = (self, [0], None) 3499s return PseudoFixtureDef(cached_result, Scope.Function) 3499s raise 3499s # Remove indent to prevent the python3 exception 3499s # from leaking into the call. 3499s > self._compute_fixture_value(fixturedef) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = > 3499s fixturedef = 3499s 3499s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3499s """Create a SubRequest based on "self" and call the execute method 3499s of the given FixtureDef object. 3499s 3499s This will force the FixtureDef object to throw away any previous 3499s results and compute a new fixture value, which will be stored into 3499s the FixtureDef object itself. 3499s """ 3499s # prepare a subrequest object before calling fixture function 3499s # (latter managed by fixturedef) 3499s argname = fixturedef.argname 3499s funcitem = self._pyfuncitem 3499s scope = fixturedef._scope 3499s try: 3499s callspec = funcitem.callspec 3499s except AttributeError: 3499s callspec = None 3499s if callspec is not None and argname in callspec.params: 3499s param = callspec.params[argname] 3499s param_index = callspec.indices[argname] 3499s # If a parametrize invocation set a scope it will override 3499s # the static scope defined with the fixture function. 3499s with suppress(KeyError): 3499s scope = callspec._arg2scope[argname] 3499s else: 3499s param = NOTSET 3499s param_index = 0 3499s has_params = fixturedef.params is not None 3499s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3499s if has_params and fixtures_not_supported: 3499s msg = ( 3499s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3499s "Node id: {nodeid}\n" 3499s "Function type: {typename}" 3499s ).format( 3499s name=funcitem.name, 3499s nodeid=funcitem.nodeid, 3499s typename=type(funcitem).__name__, 3499s ) 3499s fail(msg, pytrace=False) 3499s if has_params: 3499s frame = inspect.stack()[3] 3499s frameinfo = inspect.getframeinfo(frame[0]) 3499s source_path = absolutepath(frameinfo.filename) 3499s source_lineno = frameinfo.lineno 3499s try: 3499s source_path_str = str( 3499s source_path.relative_to(funcitem.config.rootpath) 3499s ) 3499s except ValueError: 3499s source_path_str = str(source_path) 3499s msg = ( 3499s "The requested fixture has no parameter defined for test:\n" 3499s " {}\n\n" 3499s "Requested fixture '{}' defined in:\n{}" 3499s "\n\nRequested here:\n{}:{}".format( 3499s funcitem.nodeid, 3499s fixturedef.argname, 3499s getlocation(fixturedef.func, funcitem.config.rootpath), 3499s source_path_str, 3499s source_lineno, 3499s ) 3499s ) 3499s fail(msg, pytrace=False) 3499s 3499s subrequest = SubRequest( 3499s self, scope, param, param_index, fixturedef, _ispytest=True 3499s ) 3499s 3499s # Check if a higher-level scoped fixture accesses a lower level one. 3499s subrequest._check_scope(argname, self._scope, scope) 3499s try: 3499s # Call the fixture function. 3499s > fixturedef.execute(request=subrequest) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s request = > 3499s 3499s def execute(self, request: SubRequest) -> FixtureValue: 3499s # Get required arguments and register our own finish() 3499s # with their finalization. 3499s for argname in self.argnames: 3499s fixturedef = request._get_active_fixturedef(argname) 3499s if argname != "request": 3499s # PseudoFixtureDef is only for "request". 3499s assert isinstance(fixturedef, FixtureDef) 3499s fixturedef.addfinalizer(functools.partial(self.finish, request=request)) 3499s 3499s my_cache_key = self.cache_key(request) 3499s if self.cached_result is not None: 3499s # note: comparison with `==` can fail (or be expensive) for e.g. 3499s # numpy arrays (#6497). 3499s cache_key = self.cached_result[1] 3499s if my_cache_key is cache_key: 3499s if self.cached_result[2] is not None: 3499s _, val, tb = self.cached_result[2] 3499s raise val.with_traceback(tb) 3499s else: 3499s result = self.cached_result[0] 3499s return result 3499s # We have a previous but differently parametrized fixture instance 3499s # so we need to tear it down before creating a new one. 3499s self.finish(request) 3499s assert self.cached_result is None 3499s 3499s ihook = request.node.ihook 3499s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1069: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s kwargs = {'fixturedef': , 'request': >} 3499s firstresult = True 3499s 3499s def __call__(self, **kwargs: object) -> Any: 3499s """Call the hook. 3499s 3499s Only accepts keyword arguments, which should match the hook 3499s specification. 3499s 3499s Returns the result(s) of calling all registered plugins, see 3499s :ref:`calling`. 3499s """ 3499s assert ( 3499s not self.is_historic() 3499s ), "Cannot directly call a historic hook - use call_historic instead." 3499s self._verify_all_args_are_provided(kwargs) 3499s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 3499s # Copy because plugins may register other plugins during iteration (#438). 3499s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 3499s 3499s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = <_pytest.config.PytestPluginManager object at 0xe9079168> 3499s hook_name = 'pytest_fixture_setup' 3499s methods = [>] 3499s kwargs = {'fixturedef': , 'request': >} 3499s firstresult = True 3499s 3499s def _hookexec( 3499s self, 3499s hook_name: str, 3499s methods: Sequence[HookImpl], 3499s kwargs: Mapping[str, object], 3499s firstresult: bool, 3499s ) -> object | list[object]: 3499s # called from all hookcaller instances. 3499s # enable_tracing will set its own wrapping function at self._inner_hookexec 3499s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 3499s 3499s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s fixturedef = 3499s request = > 3499s 3499s def pytest_fixture_setup( 3499s fixturedef: FixtureDef[FixtureValue], request: SubRequest 3499s ) -> FixtureValue: 3499s """Execution of fixture setup.""" 3499s kwargs = {} 3499s for argname in fixturedef.argnames: 3499s fixdef = request._get_active_fixturedef(argname) 3499s assert fixdef.cached_result is not None 3499s result, arg_cache_key, exc = fixdef.cached_result 3499s request._check_scope(argname, request._scope, fixdef._scope) 3499s kwargs[argname] = result 3499s 3499s fixturefunc = resolve_fixture_function(fixturedef, request) 3499s my_cache_key = fixturedef.cache_key(request) 3499s try: 3499s > result = call_fixture_func(fixturefunc, request, kwargs) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1123: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s fixturefunc = 3499s request = > 3499s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv'), 'types_data': [{'B... False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}]} 3499s 3499s def call_fixture_func( 3499s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 3499s ) -> FixtureValue: 3499s if is_generator(fixturefunc): 3499s fixturefunc = cast( 3499s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 3499s ) 3499s generator = fixturefunc(**kwargs) 3499s try: 3499s > fixture_result = next(generator) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:895: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s iris_path = PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv') 3499s types_data = [{'BoolCol': False, 'BoolColWithNull': False, 'DateCol': '2000-01-03 00:00:00', 'DateColWithTz': '2000-01-01 00:00:00-...: False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}] 3499s 3499s @pytest.fixture 3499s def mysql_pymysql_engine(iris_path, types_data): 3499s sqlalchemy = pytest.importorskip("sqlalchemy") 3499s pymysql = pytest.importorskip("pymysql") 3499s engine = sqlalchemy.create_engine( 3499s "mysql+pymysql://root@localhost:3306/pandas", 3499s connect_args={"client_flag": pymysql.constants.CLIENT.MULTI_STATEMENTS}, 3499s poolclass=sqlalchemy.pool.NullPool, 3499s ) 3499s > insp = sqlalchemy.inspect(engine) 3499s 3499s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:409: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s subject = Engine(mysql+pymysql://root@localhost:3306/pandas), raiseerr = True 3499s 3499s def inspect(subject, raiseerr=True): 3499s """Produce an inspection object for the given target. 3499s 3499s The returned value in some cases may be the 3499s same object as the one given, such as if a 3499s :class:`_orm.Mapper` object is passed. In other 3499s cases, it will be an instance of the registered 3499s inspection type for the given object, such as 3499s if an :class:`_engine.Engine` is passed, an 3499s :class:`_reflection.Inspector` object is returned. 3499s 3499s :param subject: the subject to be inspected. 3499s :param raiseerr: When ``True``, if the given subject 3499s does not 3499s correspond to a known SQLAlchemy inspected type, 3499s :class:`sqlalchemy.exc.NoInspectionAvailable` 3499s is raised. If ``False``, ``None`` is returned. 3499s 3499s """ 3499s type_ = type(subject) 3499s for cls in type_.__mro__: 3499s if cls in _registrars: 3499s reg = _registrars[cls] 3499s if reg is True: 3499s return subject 3499s > ret = reg(subject) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:64: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 3499s 3499s @inspection._inspects(Engine) 3499s def _engine_insp(bind): 3499s > return Inspector._construct(Inspector._init_engine, bind) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:182: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s init = 3499s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 3499s 3499s @classmethod 3499s def _construct(cls, init, bind): 3499s 3499s if hasattr(bind.dialect, "inspector"): 3499s cls = bind.dialect.inspector 3499s 3499s self = cls.__new__(cls) 3499s > init(self, bind) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:117: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 3499s 3499s def _init_engine(self, engine): 3499s self.bind = self.engine = engine 3499s > engine.connect().close() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:128: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3499s close_with_result = False 3499s 3499s def connect(self, close_with_result=False): 3499s """Return a new :class:`_engine.Connection` object. 3499s 3499s The :class:`_engine.Connection` object is a facade that uses a DBAPI 3499s connection internally in order to communicate with the database. This 3499s connection is procured from the connection-holding :class:`_pool.Pool` 3499s referenced by this :class:`_engine.Engine`. When the 3499s :meth:`_engine.Connection.close` method of the 3499s :class:`_engine.Connection` object 3499s is called, the underlying DBAPI connection is then returned to the 3499s connection pool, where it may be used again in a subsequent call to 3499s :meth:`_engine.Engine.connect`. 3499s 3499s """ 3499s 3499s > return self._connection_cls(self, close_with_result=close_with_result) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3325: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 3499s close_with_result = False, _branch_from = None, _execution_options = None 3499s _dispatch = None, _has_events = None, _allow_revalidate = True 3499s 3499s def __init__( 3499s self, 3499s engine, 3499s connection=None, 3499s close_with_result=False, 3499s _branch_from=None, 3499s _execution_options=None, 3499s _dispatch=None, 3499s _has_events=None, 3499s _allow_revalidate=True, 3499s ): 3499s """Construct a new Connection.""" 3499s self.engine = engine 3499s self.dialect = engine.dialect 3499s self.__branch_from = _branch_from 3499s 3499s if _branch_from: 3499s # branching is always "from" the root connection 3499s assert _branch_from.__branch_from is None 3499s self._dbapi_connection = connection 3499s self._execution_options = _execution_options 3499s self._echo = _branch_from._echo 3499s self.should_close_with_result = False 3499s self.dispatch = _dispatch 3499s self._has_events = _branch_from._has_events 3499s else: 3499s self._dbapi_connection = ( 3499s connection 3499s if connection is not None 3499s > else engine.raw_connection() 3499s ) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:96: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = Engine(mysql+pymysql://root@localhost:3306/pandas), _connection = None 3499s 3499s def raw_connection(self, _connection=None): 3499s """Return a "raw" DBAPI connection from the connection pool. 3499s 3499s The returned object is a proxied version of the DBAPI 3499s connection object used by the underlying driver in use. 3499s The object will have all the same behavior as the real DBAPI 3499s connection, except that its ``close()`` method will result in the 3499s connection being returned to the pool, rather than being closed 3499s for real. 3499s 3499s This method provides direct DBAPI connection access for 3499s special situations when the API provided by 3499s :class:`_engine.Connection` 3499s is not needed. When a :class:`_engine.Connection` object is already 3499s present, the DBAPI connection is available using 3499s the :attr:`_engine.Connection.connection` accessor. 3499s 3499s .. seealso:: 3499s 3499s :ref:`dbapi_connections` 3499s 3499s """ 3499s > return self._wrap_pool_connect(self.pool.connect, _connection) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3404: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3499s fn = > 3499s connection = None 3499s 3499s def _wrap_pool_connect(self, fn, connection): 3499s dialect = self.dialect 3499s try: 3499s return fn() 3499s except dialect.dbapi.Error as e: 3499s if connection is None: 3499s > Connection._handle_dbapi_exception_noconnection( 3499s e, dialect, self 3499s ) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3374: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s e = OperationalError(2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3499s dialect = 3499s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 3499s 3499s @classmethod 3499s def _handle_dbapi_exception_noconnection(cls, e, dialect, engine): 3499s exc_info = sys.exc_info() 3499s 3499s is_disconnect = dialect.is_disconnect(e, None, None) 3499s 3499s should_wrap = isinstance(e, dialect.dbapi.Error) 3499s 3499s if should_wrap: 3499s sqlalchemy_exception = exc.DBAPIError.instance( 3499s None, 3499s None, 3499s e, 3499s dialect.dbapi.Error, 3499s hide_parameters=engine.hide_parameters, 3499s connection_invalidated=is_disconnect, 3499s ) 3499s else: 3499s sqlalchemy_exception = None 3499s 3499s newraise = None 3499s 3499s if engine._has_events: 3499s ctx = ExceptionContextImpl( 3499s e, 3499s sqlalchemy_exception, 3499s engine, 3499s None, 3499s None, 3499s None, 3499s None, 3499s None, 3499s is_disconnect, 3499s True, 3499s ) 3499s for fn in engine.dispatch.handle_error: 3499s try: 3499s # handler returns an exception; 3499s # call next handler in a chain 3499s per_fn = fn(ctx) 3499s if per_fn is not None: 3499s ctx.chained_exception = newraise = per_fn 3499s except Exception as _raised: 3499s # handler raises an exception - stop processing 3499s newraise = _raised 3499s break 3499s 3499s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 3499s sqlalchemy_exception.connection_invalidated = ( 3499s is_disconnect 3499s ) = ctx.is_disconnect 3499s 3499s if newraise: 3499s util.raise_(newraise, with_traceback=exc_info[2], from_=e) 3499s elif should_wrap: 3499s > util.raise_( 3499s sqlalchemy_exception, with_traceback=exc_info[2], from_=e 3499s ) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2208: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s def raise_( 3499s exception, with_traceback=None, replace_context=None, from_=False 3499s ): 3499s r"""implement "raise" with cause support. 3499s 3499s :param exception: exception to raise 3499s :param with_traceback: will call exception.with_traceback() 3499s :param replace_context: an as-yet-unsupported feature. This is 3499s an exception object which we are "replacing", e.g., it's our 3499s "cause" but we don't want it printed. Basically just what 3499s ``__suppress_context__`` does but we don't want to suppress 3499s the enclosing context, if any. So for now we make it the 3499s cause. 3499s :param from\_: the cause. this actually sets the cause and doesn't 3499s hope to hide it someday. 3499s 3499s """ 3499s if with_traceback is not None: 3499s exception = exception.with_traceback(with_traceback) 3499s 3499s if from_ is not False: 3499s exception.__cause__ = from_ 3499s elif replace_context is not None: 3499s # no good solution here, we would like to have the exception 3499s # have only the context of replace_context.__context__ so that the 3499s # intermediary exception does not change, but we can't figure 3499s # that out. 3499s exception.__cause__ = replace_context 3499s 3499s try: 3499s > raise exception 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3499s fn = > 3499s connection = None 3499s 3499s def _wrap_pool_connect(self, fn, connection): 3499s dialect = self.dialect 3499s try: 3499s > return fn() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def connect(self): 3499s """Return a DBAPI connection from the pool. 3499s 3499s The connection is instrumented such that when its 3499s ``close()`` method is called, the connection will be returned to 3499s the pool. 3499s 3499s """ 3499s > return _ConnectionFairy._checkout(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s pool = , threadconns = None 3499s fairy = None 3499s 3499s @classmethod 3499s def _checkout(cls, pool, threadconns=None, fairy=None): 3499s if not fairy: 3499s > fairy = _ConnectionRecord.checkout(pool) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s pool = 3499s 3499s @classmethod 3499s def checkout(cls, pool): 3499s > rec = pool._do_get() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def _do_get(self): 3499s > return self._create_connection() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def _create_connection(self): 3499s """Called by subclasses to create a new ConnectionRecord.""" 3499s 3499s > return _ConnectionRecord(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s pool = , connect = True 3499s 3499s def __init__(self, pool, connect=True): 3499s self.__pool = pool 3499s if connect: 3499s > self.__connect() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def __connect(self): 3499s pool = self.__pool 3499s 3499s # ensure any existing connection is removed, so that if 3499s # creator fails, this attribute stays None 3499s self.dbapi_connection = None 3499s try: 3499s self.starttime = time.time() 3499s self.dbapi_connection = connection = pool._invoke_creator(self) 3499s pool.logger.debug("Created new connection %r", connection) 3499s self.fresh = True 3499s except BaseException as e: 3499s > with util.safe_reraise(): 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s type_ = None, value = None, traceback = None 3499s 3499s def __exit__(self, type_, value, traceback): 3499s # see #2703 for notes 3499s if type_ is None: 3499s exc_type, exc_value, exc_tb = self._exc_info 3499s self._exc_info = None # remove potential circular references 3499s if not self.warn_only: 3499s > compat.raise_( 3499s exc_value, 3499s with_traceback=exc_tb, 3499s ) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s def raise_( 3499s exception, with_traceback=None, replace_context=None, from_=False 3499s ): 3499s r"""implement "raise" with cause support. 3499s 3499s :param exception: exception to raise 3499s :param with_traceback: will call exception.with_traceback() 3499s :param replace_context: an as-yet-unsupported feature. This is 3499s an exception object which we are "replacing", e.g., it's our 3499s "cause" but we don't want it printed. Basically just what 3499s ``__suppress_context__`` does but we don't want to suppress 3499s the enclosing context, if any. So for now we make it the 3499s cause. 3499s :param from\_: the cause. this actually sets the cause and doesn't 3499s hope to hide it someday. 3499s 3499s """ 3499s if with_traceback is not None: 3499s exception = exception.with_traceback(with_traceback) 3499s 3499s if from_ is not False: 3499s exception.__cause__ = from_ 3499s elif replace_context is not None: 3499s # no good solution here, we would like to have the exception 3499s # have only the context of replace_context.__context__ so that the 3499s # intermediary exception does not change, but we can't figure 3499s # that out. 3499s exception.__cause__ = replace_context 3499s 3499s try: 3499s > raise exception 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def __connect(self): 3499s pool = self.__pool 3499s 3499s # ensure any existing connection is removed, so that if 3499s # creator fails, this attribute stays None 3499s self.dbapi_connection = None 3499s try: 3499s self.starttime = time.time() 3499s > self.dbapi_connection = connection = pool._invoke_creator(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s connection_record = 3499s 3499s def connect(connection_record=None): 3499s if dialect._has_events: 3499s for fn in dialect.dispatch.do_connect: 3499s connection = fn(dialect, connection_record, cargs, cparams) 3499s if connection is not None: 3499s return connection 3499s > return dialect.connect(*cargs, **cparams) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s cargs = () 3499s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 3499s 3499s def connect(self, *cargs, **cparams): 3499s # inherits the docstring from interfaces.Dialect.connect 3499s > return self.dbapi.connect(*cargs, **cparams) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def __init__( 3499s self, 3499s *, 3499s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 3499s password="", 3499s host=None, 3499s database=None, 3499s unix_socket=None, 3499s port=0, 3499s charset="", 3499s collation=None, 3499s sql_mode=None, 3499s read_default_file=None, 3499s conv=None, 3499s use_unicode=True, 3499s client_flag=0, 3499s cursorclass=Cursor, 3499s init_command=None, 3499s connect_timeout=10, 3499s read_default_group=None, 3499s autocommit=False, 3499s local_infile=False, 3499s max_allowed_packet=16 * 1024 * 1024, 3499s defer_connect=False, 3499s auth_plugin_map=None, 3499s read_timeout=None, 3499s write_timeout=None, 3499s bind_address=None, 3499s binary_prefix=False, 3499s program_name=None, 3499s server_public_key=None, 3499s ssl=None, 3499s ssl_ca=None, 3499s ssl_cert=None, 3499s ssl_disabled=None, 3499s ssl_key=None, 3499s ssl_key_password=None, 3499s ssl_verify_cert=None, 3499s ssl_verify_identity=None, 3499s compress=None, # not supported 3499s named_pipe=None, # not supported 3499s passwd=None, # deprecated 3499s db=None, # deprecated 3499s ): 3499s if db is not None and database is None: 3499s # We will raise warning in 2022 or later. 3499s # See https://github.com/PyMySQL/PyMySQL/issues/939 3499s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 3499s database = db 3499s if passwd is not None and not password: 3499s # We will raise warning in 2022 or later. 3499s # See https://github.com/PyMySQL/PyMySQL/issues/939 3499s # warnings.warn( 3499s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 3499s # ) 3499s password = passwd 3499s 3499s if compress or named_pipe: 3499s raise NotImplementedError( 3499s "compress and named_pipe arguments are not supported" 3499s ) 3499s 3499s self._local_infile = bool(local_infile) 3499s if self._local_infile: 3499s client_flag |= CLIENT.LOCAL_FILES 3499s 3499s if read_default_group and not read_default_file: 3499s if sys.platform.startswith("win"): 3499s read_default_file = "c:\\my.ini" 3499s else: 3499s read_default_file = "/etc/my.cnf" 3499s 3499s if read_default_file: 3499s if not read_default_group: 3499s read_default_group = "client" 3499s 3499s cfg = Parser() 3499s cfg.read(os.path.expanduser(read_default_file)) 3499s 3499s def _config(key, arg): 3499s if arg: 3499s return arg 3499s try: 3499s return cfg.get(read_default_group, key) 3499s except Exception: 3499s return arg 3499s 3499s user = _config("user", user) 3499s password = _config("password", password) 3499s host = _config("host", host) 3499s database = _config("database", database) 3499s unix_socket = _config("socket", unix_socket) 3499s port = int(_config("port", port)) 3499s bind_address = _config("bind-address", bind_address) 3499s charset = _config("default-character-set", charset) 3499s if not ssl: 3499s ssl = {} 3499s if isinstance(ssl, dict): 3499s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 3499s value = _config("ssl-" + key, ssl.get(key)) 3499s if value: 3499s ssl[key] = value 3499s 3499s self.ssl = False 3499s if not ssl_disabled: 3499s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 3499s ssl = { 3499s "ca": ssl_ca, 3499s "check_hostname": bool(ssl_verify_identity), 3499s "verify_mode": ssl_verify_cert 3499s if ssl_verify_cert is not None 3499s else False, 3499s } 3499s if ssl_cert is not None: 3499s ssl["cert"] = ssl_cert 3499s if ssl_key is not None: 3499s ssl["key"] = ssl_key 3499s if ssl_key_password is not None: 3499s ssl["password"] = ssl_key_password 3499s if ssl: 3499s if not SSL_ENABLED: 3499s raise NotImplementedError("ssl module not found") 3499s self.ssl = True 3499s client_flag |= CLIENT.SSL 3499s self.ctx = self._create_ssl_ctx(ssl) 3499s 3499s self.host = host or "localhost" 3499s self.port = port or 3306 3499s if type(self.port) is not int: 3499s raise ValueError("port should be of type int") 3499s self.user = user or DEFAULT_USER 3499s self.password = password or b"" 3499s if isinstance(self.password, str): 3499s self.password = self.password.encode("latin1") 3499s self.db = database 3499s self.unix_socket = unix_socket 3499s self.bind_address = bind_address 3499s if not (0 < connect_timeout <= 31536000): 3499s raise ValueError("connect_timeout should be >0 and <=31536000") 3499s self.connect_timeout = connect_timeout or None 3499s if read_timeout is not None and read_timeout <= 0: 3499s raise ValueError("read_timeout should be > 0") 3499s self._read_timeout = read_timeout 3499s if write_timeout is not None and write_timeout <= 0: 3499s raise ValueError("write_timeout should be > 0") 3499s self._write_timeout = write_timeout 3499s 3499s self.charset = charset or DEFAULT_CHARSET 3499s self.collation = collation 3499s self.use_unicode = use_unicode 3499s 3499s self.encoding = charset_by_name(self.charset).encoding 3499s 3499s client_flag |= CLIENT.CAPABILITIES 3499s if self.db: 3499s client_flag |= CLIENT.CONNECT_WITH_DB 3499s 3499s self.client_flag = client_flag 3499s 3499s self.cursorclass = cursorclass 3499s 3499s self._result = None 3499s self._affected_rows = 0 3499s self.host_info = "Not connected" 3499s 3499s # specified autocommit mode. None means use server default. 3499s self.autocommit_mode = autocommit 3499s 3499s if conv is None: 3499s conv = converters.conversions 3499s 3499s # Need for MySQLdb compatibility. 3499s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 3499s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 3499s self.sql_mode = sql_mode 3499s self.init_command = init_command 3499s self.max_allowed_packet = max_allowed_packet 3499s self._auth_plugin_map = auth_plugin_map or {} 3499s self._binary_prefix = binary_prefix 3499s self.server_public_key = server_public_key 3499s 3499s self._connect_attrs = { 3499s "_client_name": "pymysql", 3499s "_client_version": VERSION_STRING, 3499s "_pid": str(os.getpid()), 3499s } 3499s 3499s if program_name: 3499s self._connect_attrs["program_name"] = program_name 3499s 3499s if defer_connect: 3499s self._sock = None 3499s else: 3499s > self.connect() 3499s 3499s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = , sock = None 3499s 3499s def connect(self, sock=None): 3499s self._closed = False 3499s try: 3499s if sock is None: 3499s if self.unix_socket: 3499s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3499s sock.settimeout(self.connect_timeout) 3499s sock.connect(self.unix_socket) 3499s self.host_info = "Localhost via UNIX socket" 3499s self._secure = True 3499s if DEBUG: 3499s print("connected using unix_socket") 3499s else: 3499s kwargs = {} 3499s if self.bind_address is not None: 3499s kwargs["source_address"] = (self.bind_address, 0) 3499s while True: 3499s try: 3499s sock = socket.create_connection( 3499s (self.host, self.port), self.connect_timeout, **kwargs 3499s ) 3499s break 3499s except OSError as e: 3499s if e.errno == errno.EINTR: 3499s continue 3499s raise 3499s self.host_info = "socket %s:%d" % (self.host, self.port) 3499s if DEBUG: 3499s print("connected using socket") 3499s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 3499s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 3499s sock.settimeout(None) 3499s 3499s self._sock = sock 3499s self._rfile = sock.makefile("rb") 3499s self._next_seq_id = 0 3499s 3499s self._get_server_information() 3499s self._request_authentication() 3499s 3499s # Send "SET NAMES" query on init for: 3499s # - Ensure charaset (and collation) is set to the server. 3499s # - collation_id in handshake packet may be ignored. 3499s # - If collation is not specified, we don't know what is server's 3499s # default collation for the charset. For example, default collation 3499s # of utf8mb4 is: 3499s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 3499s # - MySQL 8.0: utf8mb4_0900_ai_ci 3499s # 3499s # Reference: 3499s # - https://github.com/PyMySQL/PyMySQL/issues/1092 3499s # - https://github.com/wagtail/wagtail/issues/9477 3499s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 3499s self.set_character_set(self.charset, self.collation) 3499s 3499s if self.sql_mode is not None: 3499s c = self.cursor() 3499s c.execute("SET sql_mode=%s", (self.sql_mode,)) 3499s c.close() 3499s 3499s if self.init_command is not None: 3499s c = self.cursor() 3499s c.execute(self.init_command) 3499s c.close() 3499s 3499s if self.autocommit_mode is not None: 3499s self.autocommit(self.autocommit_mode) 3499s except BaseException as e: 3499s self._rfile = None 3499s if sock is not None: 3499s try: 3499s sock.close() 3499s except: # noqa 3499s pass 3499s 3499s if isinstance(e, (OSError, IOError)): 3499s exc = err.OperationalError( 3499s CR.CR_CONN_HOST_ERROR, 3499s f"Can't connect to MySQL server on {self.host!r} ({e})", 3499s ) 3499s # Keep original exception and traceback to investigate error. 3499s exc.original_exception = e 3499s exc.traceback = traceback.format_exc() 3499s if DEBUG: 3499s print(exc.traceback) 3499s > raise exc 3499s E sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3499s E (Background on this error at: https://sqlalche.me/e/14/e3q8) 3499s 3499s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 3499s ____________________ test_to_sql[multi-mysql_pymysql_conn] _____________________ 3499s self = , sock = None 3499s 3499s def connect(self, sock=None): 3499s self._closed = False 3499s try: 3499s if sock is None: 3499s if self.unix_socket: 3499s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3499s sock.settimeout(self.connect_timeout) 3499s sock.connect(self.unix_socket) 3499s self.host_info = "Localhost via UNIX socket" 3499s self._secure = True 3499s if DEBUG: 3499s print("connected using unix_socket") 3499s else: 3499s kwargs = {} 3499s if self.bind_address is not None: 3499s kwargs["source_address"] = (self.bind_address, 0) 3499s while True: 3499s try: 3499s > sock = socket.create_connection( 3499s (self.host, self.port), self.connect_timeout, **kwargs 3499s ) 3499s 3499s /usr/lib/python3/dist-packages/pymysql/connections.py:649: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s address = ('localhost', 3306), timeout = 10, source_address = None 3499s 3499s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 3499s source_address=None, *, all_errors=False): 3499s """Connect to *address* and return the socket object. 3499s 3499s Convenience function. Connect to *address* (a 2-tuple ``(host, 3499s port)``) and return the socket object. Passing the optional 3499s *timeout* parameter will set the timeout on the socket instance 3499s before attempting to connect. If no *timeout* is supplied, the 3499s global default timeout setting returned by :func:`getdefaulttimeout` 3499s is used. If *source_address* is set it must be a tuple of (host, port) 3499s for the socket to bind as a source address before making the connection. 3499s A host of '' or port 0 tells the OS to use the default. When a connection 3499s cannot be created, raises the last error if *all_errors* is False, 3499s and an ExceptionGroup of all errors if *all_errors* is True. 3499s """ 3499s 3499s host, port = address 3499s exceptions = [] 3499s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 3499s af, socktype, proto, canonname, sa = res 3499s sock = None 3499s try: 3499s sock = socket(af, socktype, proto) 3499s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 3499s sock.settimeout(timeout) 3499s if source_address: 3499s sock.bind(source_address) 3499s sock.connect(sa) 3499s # Break explicitly a reference cycle 3499s exceptions.clear() 3499s return sock 3499s 3499s except error as exc: 3499s if not all_errors: 3499s exceptions.clear() # raise only the last error 3499s exceptions.append(exc) 3499s if sock is not None: 3499s sock.close() 3499s 3499s if len(exceptions): 3499s try: 3499s if not all_errors: 3499s > raise exceptions[0] 3499s 3499s /usr/lib/python3.12/socket.py:853: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s address = ('localhost', 3306), timeout = 10, source_address = None 3499s 3499s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 3499s source_address=None, *, all_errors=False): 3499s """Connect to *address* and return the socket object. 3499s 3499s Convenience function. Connect to *address* (a 2-tuple ``(host, 3499s port)``) and return the socket object. Passing the optional 3499s *timeout* parameter will set the timeout on the socket instance 3499s before attempting to connect. If no *timeout* is supplied, the 3499s global default timeout setting returned by :func:`getdefaulttimeout` 3499s is used. If *source_address* is set it must be a tuple of (host, port) 3499s for the socket to bind as a source address before making the connection. 3499s A host of '' or port 0 tells the OS to use the default. When a connection 3499s cannot be created, raises the last error if *all_errors* is False, 3499s and an ExceptionGroup of all errors if *all_errors* is True. 3499s """ 3499s 3499s host, port = address 3499s exceptions = [] 3499s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 3499s af, socktype, proto, canonname, sa = res 3499s sock = None 3499s try: 3499s sock = socket(af, socktype, proto) 3499s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 3499s sock.settimeout(timeout) 3499s if source_address: 3499s sock.bind(source_address) 3499s > sock.connect(sa) 3499s E ConnectionRefusedError: [Errno 111] Connection refused 3499s 3499s /usr/lib/python3.12/socket.py:838: ConnectionRefusedError 3499s 3499s During handling of the above exception, another exception occurred: 3499s 3499s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3499s fn = > 3499s connection = None 3499s 3499s def _wrap_pool_connect(self, fn, connection): 3499s dialect = self.dialect 3499s try: 3499s > return fn() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def connect(self): 3499s """Return a DBAPI connection from the pool. 3499s 3499s The connection is instrumented such that when its 3499s ``close()`` method is called, the connection will be returned to 3499s the pool. 3499s 3499s """ 3499s > return _ConnectionFairy._checkout(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s pool = , threadconns = None 3499s fairy = None 3499s 3499s @classmethod 3499s def _checkout(cls, pool, threadconns=None, fairy=None): 3499s if not fairy: 3499s > fairy = _ConnectionRecord.checkout(pool) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s pool = 3499s 3499s @classmethod 3499s def checkout(cls, pool): 3499s > rec = pool._do_get() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def _do_get(self): 3499s > return self._create_connection() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def _create_connection(self): 3499s """Called by subclasses to create a new ConnectionRecord.""" 3499s 3499s > return _ConnectionRecord(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s pool = , connect = True 3499s 3499s def __init__(self, pool, connect=True): 3499s self.__pool = pool 3499s if connect: 3499s > self.__connect() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def __connect(self): 3499s pool = self.__pool 3499s 3499s # ensure any existing connection is removed, so that if 3499s # creator fails, this attribute stays None 3499s self.dbapi_connection = None 3499s try: 3499s self.starttime = time.time() 3499s self.dbapi_connection = connection = pool._invoke_creator(self) 3499s pool.logger.debug("Created new connection %r", connection) 3499s self.fresh = True 3499s except BaseException as e: 3499s > with util.safe_reraise(): 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s type_ = None, value = None, traceback = None 3499s 3499s def __exit__(self, type_, value, traceback): 3499s # see #2703 for notes 3499s if type_ is None: 3499s exc_type, exc_value, exc_tb = self._exc_info 3499s self._exc_info = None # remove potential circular references 3499s if not self.warn_only: 3499s > compat.raise_( 3499s exc_value, 3499s with_traceback=exc_tb, 3499s ) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s def raise_( 3499s exception, with_traceback=None, replace_context=None, from_=False 3499s ): 3499s r"""implement "raise" with cause support. 3499s 3499s :param exception: exception to raise 3499s :param with_traceback: will call exception.with_traceback() 3499s :param replace_context: an as-yet-unsupported feature. This is 3499s an exception object which we are "replacing", e.g., it's our 3499s "cause" but we don't want it printed. Basically just what 3499s ``__suppress_context__`` does but we don't want to suppress 3499s the enclosing context, if any. So for now we make it the 3499s cause. 3499s :param from\_: the cause. this actually sets the cause and doesn't 3499s hope to hide it someday. 3499s 3499s """ 3499s if with_traceback is not None: 3499s exception = exception.with_traceback(with_traceback) 3499s 3499s if from_ is not False: 3499s exception.__cause__ = from_ 3499s elif replace_context is not None: 3499s # no good solution here, we would like to have the exception 3499s # have only the context of replace_context.__context__ so that the 3499s # intermediary exception does not change, but we can't figure 3499s # that out. 3499s exception.__cause__ = replace_context 3499s 3499s try: 3499s > raise exception 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def __connect(self): 3499s pool = self.__pool 3499s 3499s # ensure any existing connection is removed, so that if 3499s # creator fails, this attribute stays None 3499s self.dbapi_connection = None 3499s try: 3499s self.starttime = time.time() 3499s > self.dbapi_connection = connection = pool._invoke_creator(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s connection_record = 3499s 3499s def connect(connection_record=None): 3499s if dialect._has_events: 3499s for fn in dialect.dispatch.do_connect: 3499s connection = fn(dialect, connection_record, cargs, cparams) 3499s if connection is not None: 3499s return connection 3499s > return dialect.connect(*cargs, **cparams) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s cargs = () 3499s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 3499s 3499s def connect(self, *cargs, **cparams): 3499s # inherits the docstring from interfaces.Dialect.connect 3499s > return self.dbapi.connect(*cargs, **cparams) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def __init__( 3499s self, 3499s *, 3499s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 3499s password="", 3499s host=None, 3499s database=None, 3499s unix_socket=None, 3499s port=0, 3499s charset="", 3499s collation=None, 3499s sql_mode=None, 3499s read_default_file=None, 3499s conv=None, 3499s use_unicode=True, 3499s client_flag=0, 3499s cursorclass=Cursor, 3499s init_command=None, 3499s connect_timeout=10, 3499s read_default_group=None, 3499s autocommit=False, 3499s local_infile=False, 3499s max_allowed_packet=16 * 1024 * 1024, 3499s defer_connect=False, 3499s auth_plugin_map=None, 3499s read_timeout=None, 3499s write_timeout=None, 3499s bind_address=None, 3499s binary_prefix=False, 3499s program_name=None, 3499s server_public_key=None, 3499s ssl=None, 3499s ssl_ca=None, 3499s ssl_cert=None, 3499s ssl_disabled=None, 3499s ssl_key=None, 3499s ssl_key_password=None, 3499s ssl_verify_cert=None, 3499s ssl_verify_identity=None, 3499s compress=None, # not supported 3499s named_pipe=None, # not supported 3499s passwd=None, # deprecated 3499s db=None, # deprecated 3499s ): 3499s if db is not None and database is None: 3499s # We will raise warning in 2022 or later. 3499s # See https://github.com/PyMySQL/PyMySQL/issues/939 3499s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 3499s database = db 3499s if passwd is not None and not password: 3499s # We will raise warning in 2022 or later. 3499s # See https://github.com/PyMySQL/PyMySQL/issues/939 3499s # warnings.warn( 3499s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 3499s # ) 3499s password = passwd 3499s 3499s if compress or named_pipe: 3499s raise NotImplementedError( 3499s "compress and named_pipe arguments are not supported" 3499s ) 3499s 3499s self._local_infile = bool(local_infile) 3499s if self._local_infile: 3499s client_flag |= CLIENT.LOCAL_FILES 3499s 3499s if read_default_group and not read_default_file: 3499s if sys.platform.startswith("win"): 3499s read_default_file = "c:\\my.ini" 3499s else: 3499s read_default_file = "/etc/my.cnf" 3499s 3499s if read_default_file: 3499s if not read_default_group: 3499s read_default_group = "client" 3499s 3499s cfg = Parser() 3499s cfg.read(os.path.expanduser(read_default_file)) 3499s 3499s def _config(key, arg): 3499s if arg: 3499s return arg 3499s try: 3499s return cfg.get(read_default_group, key) 3499s except Exception: 3499s return arg 3499s 3499s user = _config("user", user) 3499s password = _config("password", password) 3499s host = _config("host", host) 3499s database = _config("database", database) 3499s unix_socket = _config("socket", unix_socket) 3499s port = int(_config("port", port)) 3499s bind_address = _config("bind-address", bind_address) 3499s charset = _config("default-character-set", charset) 3499s if not ssl: 3499s ssl = {} 3499s if isinstance(ssl, dict): 3499s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 3499s value = _config("ssl-" + key, ssl.get(key)) 3499s if value: 3499s ssl[key] = value 3499s 3499s self.ssl = False 3499s if not ssl_disabled: 3499s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 3499s ssl = { 3499s "ca": ssl_ca, 3499s "check_hostname": bool(ssl_verify_identity), 3499s "verify_mode": ssl_verify_cert 3499s if ssl_verify_cert is not None 3499s else False, 3499s } 3499s if ssl_cert is not None: 3499s ssl["cert"] = ssl_cert 3499s if ssl_key is not None: 3499s ssl["key"] = ssl_key 3499s if ssl_key_password is not None: 3499s ssl["password"] = ssl_key_password 3499s if ssl: 3499s if not SSL_ENABLED: 3499s raise NotImplementedError("ssl module not found") 3499s self.ssl = True 3499s client_flag |= CLIENT.SSL 3499s self.ctx = self._create_ssl_ctx(ssl) 3499s 3499s self.host = host or "localhost" 3499s self.port = port or 3306 3499s if type(self.port) is not int: 3499s raise ValueError("port should be of type int") 3499s self.user = user or DEFAULT_USER 3499s self.password = password or b"" 3499s if isinstance(self.password, str): 3499s self.password = self.password.encode("latin1") 3499s self.db = database 3499s self.unix_socket = unix_socket 3499s self.bind_address = bind_address 3499s if not (0 < connect_timeout <= 31536000): 3499s raise ValueError("connect_timeout should be >0 and <=31536000") 3499s self.connect_timeout = connect_timeout or None 3499s if read_timeout is not None and read_timeout <= 0: 3499s raise ValueError("read_timeout should be > 0") 3499s self._read_timeout = read_timeout 3499s if write_timeout is not None and write_timeout <= 0: 3499s raise ValueError("write_timeout should be > 0") 3499s self._write_timeout = write_timeout 3499s 3499s self.charset = charset or DEFAULT_CHARSET 3499s self.collation = collation 3499s self.use_unicode = use_unicode 3499s 3499s self.encoding = charset_by_name(self.charset).encoding 3499s 3499s client_flag |= CLIENT.CAPABILITIES 3499s if self.db: 3499s client_flag |= CLIENT.CONNECT_WITH_DB 3499s 3499s self.client_flag = client_flag 3499s 3499s self.cursorclass = cursorclass 3499s 3499s self._result = None 3499s self._affected_rows = 0 3499s self.host_info = "Not connected" 3499s 3499s # specified autocommit mode. None means use server default. 3499s self.autocommit_mode = autocommit 3499s 3499s if conv is None: 3499s conv = converters.conversions 3499s 3499s # Need for MySQLdb compatibility. 3499s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 3499s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 3499s self.sql_mode = sql_mode 3499s self.init_command = init_command 3499s self.max_allowed_packet = max_allowed_packet 3499s self._auth_plugin_map = auth_plugin_map or {} 3499s self._binary_prefix = binary_prefix 3499s self.server_public_key = server_public_key 3499s 3499s self._connect_attrs = { 3499s "_client_name": "pymysql", 3499s "_client_version": VERSION_STRING, 3499s "_pid": str(os.getpid()), 3499s } 3499s 3499s if program_name: 3499s self._connect_attrs["program_name"] = program_name 3499s 3499s if defer_connect: 3499s self._sock = None 3499s else: 3499s > self.connect() 3499s 3499s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = , sock = None 3499s 3499s def connect(self, sock=None): 3499s self._closed = False 3499s try: 3499s if sock is None: 3499s if self.unix_socket: 3499s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3499s sock.settimeout(self.connect_timeout) 3499s sock.connect(self.unix_socket) 3499s self.host_info = "Localhost via UNIX socket" 3499s self._secure = True 3499s if DEBUG: 3499s print("connected using unix_socket") 3499s else: 3499s kwargs = {} 3499s if self.bind_address is not None: 3499s kwargs["source_address"] = (self.bind_address, 0) 3499s while True: 3499s try: 3499s sock = socket.create_connection( 3499s (self.host, self.port), self.connect_timeout, **kwargs 3499s ) 3499s break 3499s except OSError as e: 3499s if e.errno == errno.EINTR: 3499s continue 3499s raise 3499s self.host_info = "socket %s:%d" % (self.host, self.port) 3499s if DEBUG: 3499s print("connected using socket") 3499s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 3499s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 3499s sock.settimeout(None) 3499s 3499s self._sock = sock 3499s self._rfile = sock.makefile("rb") 3499s self._next_seq_id = 0 3499s 3499s self._get_server_information() 3499s self._request_authentication() 3499s 3499s # Send "SET NAMES" query on init for: 3499s # - Ensure charaset (and collation) is set to the server. 3499s # - collation_id in handshake packet may be ignored. 3499s # - If collation is not specified, we don't know what is server's 3499s # default collation for the charset. For example, default collation 3499s # of utf8mb4 is: 3499s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 3499s # - MySQL 8.0: utf8mb4_0900_ai_ci 3499s # 3499s # Reference: 3499s # - https://github.com/PyMySQL/PyMySQL/issues/1092 3499s # - https://github.com/wagtail/wagtail/issues/9477 3499s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 3499s self.set_character_set(self.charset, self.collation) 3499s 3499s if self.sql_mode is not None: 3499s c = self.cursor() 3499s c.execute("SET sql_mode=%s", (self.sql_mode,)) 3499s c.close() 3499s 3499s if self.init_command is not None: 3499s c = self.cursor() 3499s c.execute(self.init_command) 3499s c.close() 3499s 3499s if self.autocommit_mode is not None: 3499s self.autocommit(self.autocommit_mode) 3499s except BaseException as e: 3499s self._rfile = None 3499s if sock is not None: 3499s try: 3499s sock.close() 3499s except: # noqa 3499s pass 3499s 3499s if isinstance(e, (OSError, IOError)): 3499s exc = err.OperationalError( 3499s CR.CR_CONN_HOST_ERROR, 3499s f"Can't connect to MySQL server on {self.host!r} ({e})", 3499s ) 3499s # Keep original exception and traceback to investigate error. 3499s exc.original_exception = e 3499s exc.traceback = traceback.format_exc() 3499s if DEBUG: 3499s print(exc.traceback) 3499s > raise exc 3499s E pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3499s 3499s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 3499s 3499s The above exception was the direct cause of the following exception: 3499s 3499s conn = 'mysql_pymysql_conn', method = 'multi' 3499s test_frame1 = index A B C D 3499s 0 2000-01-03 00:00:00 0.980269 3.685731 -0.364217 -1...0-01-05 00:00:00 0.498581 0.731168 -0.537677 1.346270 3499s 3 2000-01-06 00:00:00 1.120202 1.567621 0.003641 0.675253 3499s request = > 3499s 3499s @pytest.mark.db 3499s @pytest.mark.parametrize("conn", all_connectable) 3499s @pytest.mark.parametrize("method", [None, "multi"]) 3499s def test_to_sql(conn, method, test_frame1, request): 3499s > conn = request.getfixturevalue(conn) 3499s 3499s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:595: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = > 3499s argname = 'mysql_pymysql_conn' 3499s 3499s def getfixturevalue(self, argname: str) -> Any: 3499s """Dynamically run a named fixture function. 3499s 3499s Declaring fixtures via function argument is recommended where possible. 3499s But if you can only decide whether to use another fixture at test 3499s setup time, you may use this function to retrieve it inside a fixture 3499s or test function body. 3499s 3499s This method can be used during the test setup phase or the test run 3499s phase, but during the test teardown phase a fixture's value may not 3499s be available. 3499s 3499s :param argname: 3499s The fixture name. 3499s :raises pytest.FixtureLookupError: 3499s If the given fixture could not be found. 3499s """ 3499s > fixturedef = self._get_active_fixturedef(argname) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:585: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = > 3499s argname = 'mysql_pymysql_conn' 3499s 3499s def _get_active_fixturedef( 3499s self, argname: str 3499s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3499s try: 3499s return self._fixture_defs[argname] 3499s except KeyError: 3499s try: 3499s fixturedef = self._getnextfixturedef(argname) 3499s except FixtureLookupError: 3499s if argname == "request": 3499s cached_result = (self, [0], None) 3499s return PseudoFixtureDef(cached_result, Scope.Function) 3499s raise 3499s # Remove indent to prevent the python3 exception 3499s # from leaking into the call. 3499s > self._compute_fixture_value(fixturedef) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = > 3499s fixturedef = 3499s 3499s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3499s """Create a SubRequest based on "self" and call the execute method 3499s of the given FixtureDef object. 3499s 3499s This will force the FixtureDef object to throw away any previous 3499s results and compute a new fixture value, which will be stored into 3499s the FixtureDef object itself. 3499s """ 3499s # prepare a subrequest object before calling fixture function 3499s # (latter managed by fixturedef) 3499s argname = fixturedef.argname 3499s funcitem = self._pyfuncitem 3499s scope = fixturedef._scope 3499s try: 3499s callspec = funcitem.callspec 3499s except AttributeError: 3499s callspec = None 3499s if callspec is not None and argname in callspec.params: 3499s param = callspec.params[argname] 3499s param_index = callspec.indices[argname] 3499s # If a parametrize invocation set a scope it will override 3499s # the static scope defined with the fixture function. 3499s with suppress(KeyError): 3499s scope = callspec._arg2scope[argname] 3499s else: 3499s param = NOTSET 3499s param_index = 0 3499s has_params = fixturedef.params is not None 3499s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3499s if has_params and fixtures_not_supported: 3499s msg = ( 3499s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3499s "Node id: {nodeid}\n" 3499s "Function type: {typename}" 3499s ).format( 3499s name=funcitem.name, 3499s nodeid=funcitem.nodeid, 3499s typename=type(funcitem).__name__, 3499s ) 3499s fail(msg, pytrace=False) 3499s if has_params: 3499s frame = inspect.stack()[3] 3499s frameinfo = inspect.getframeinfo(frame[0]) 3499s source_path = absolutepath(frameinfo.filename) 3499s source_lineno = frameinfo.lineno 3499s try: 3499s source_path_str = str( 3499s source_path.relative_to(funcitem.config.rootpath) 3499s ) 3499s except ValueError: 3499s source_path_str = str(source_path) 3499s msg = ( 3499s "The requested fixture has no parameter defined for test:\n" 3499s " {}\n\n" 3499s "Requested fixture '{}' defined in:\n{}" 3499s "\n\nRequested here:\n{}:{}".format( 3499s funcitem.nodeid, 3499s fixturedef.argname, 3499s getlocation(fixturedef.func, funcitem.config.rootpath), 3499s source_path_str, 3499s source_lineno, 3499s ) 3499s ) 3499s fail(msg, pytrace=False) 3499s 3499s subrequest = SubRequest( 3499s self, scope, param, param_index, fixturedef, _ispytest=True 3499s ) 3499s 3499s # Check if a higher-level scoped fixture accesses a lower level one. 3499s subrequest._check_scope(argname, self._scope, scope) 3499s try: 3499s # Call the fixture function. 3499s > fixturedef.execute(request=subrequest) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s request = > 3499s 3499s def execute(self, request: SubRequest) -> FixtureValue: 3499s # Get required arguments and register our own finish() 3499s # with their finalization. 3499s for argname in self.argnames: 3499s > fixturedef = request._get_active_fixturedef(argname) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1045: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = > 3499s argname = 'mysql_pymysql_engine' 3499s 3499s def _get_active_fixturedef( 3499s self, argname: str 3499s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3499s try: 3499s return self._fixture_defs[argname] 3499s except KeyError: 3499s try: 3499s fixturedef = self._getnextfixturedef(argname) 3499s except FixtureLookupError: 3499s if argname == "request": 3499s cached_result = (self, [0], None) 3499s return PseudoFixtureDef(cached_result, Scope.Function) 3499s raise 3499s # Remove indent to prevent the python3 exception 3499s # from leaking into the call. 3499s > self._compute_fixture_value(fixturedef) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = > 3499s fixturedef = 3499s 3499s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3499s """Create a SubRequest based on "self" and call the execute method 3499s of the given FixtureDef object. 3499s 3499s This will force the FixtureDef object to throw away any previous 3499s results and compute a new fixture value, which will be stored into 3499s the FixtureDef object itself. 3499s """ 3499s # prepare a subrequest object before calling fixture function 3499s # (latter managed by fixturedef) 3499s argname = fixturedef.argname 3499s funcitem = self._pyfuncitem 3499s scope = fixturedef._scope 3499s try: 3499s callspec = funcitem.callspec 3499s except AttributeError: 3499s callspec = None 3499s if callspec is not None and argname in callspec.params: 3499s param = callspec.params[argname] 3499s param_index = callspec.indices[argname] 3499s # If a parametrize invocation set a scope it will override 3499s # the static scope defined with the fixture function. 3499s with suppress(KeyError): 3499s scope = callspec._arg2scope[argname] 3499s else: 3499s param = NOTSET 3499s param_index = 0 3499s has_params = fixturedef.params is not None 3499s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3499s if has_params and fixtures_not_supported: 3499s msg = ( 3499s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3499s "Node id: {nodeid}\n" 3499s "Function type: {typename}" 3499s ).format( 3499s name=funcitem.name, 3499s nodeid=funcitem.nodeid, 3499s typename=type(funcitem).__name__, 3499s ) 3499s fail(msg, pytrace=False) 3499s if has_params: 3499s frame = inspect.stack()[3] 3499s frameinfo = inspect.getframeinfo(frame[0]) 3499s source_path = absolutepath(frameinfo.filename) 3499s source_lineno = frameinfo.lineno 3499s try: 3499s source_path_str = str( 3499s source_path.relative_to(funcitem.config.rootpath) 3499s ) 3499s except ValueError: 3499s source_path_str = str(source_path) 3499s msg = ( 3499s "The requested fixture has no parameter defined for test:\n" 3499s " {}\n\n" 3499s "Requested fixture '{}' defined in:\n{}" 3499s "\n\nRequested here:\n{}:{}".format( 3499s funcitem.nodeid, 3499s fixturedef.argname, 3499s getlocation(fixturedef.func, funcitem.config.rootpath), 3499s source_path_str, 3499s source_lineno, 3499s ) 3499s ) 3499s fail(msg, pytrace=False) 3499s 3499s subrequest = SubRequest( 3499s self, scope, param, param_index, fixturedef, _ispytest=True 3499s ) 3499s 3499s # Check if a higher-level scoped fixture accesses a lower level one. 3499s subrequest._check_scope(argname, self._scope, scope) 3499s try: 3499s # Call the fixture function. 3499s > fixturedef.execute(request=subrequest) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s request = > 3499s 3499s def execute(self, request: SubRequest) -> FixtureValue: 3499s # Get required arguments and register our own finish() 3499s # with their finalization. 3499s for argname in self.argnames: 3499s fixturedef = request._get_active_fixturedef(argname) 3499s if argname != "request": 3499s # PseudoFixtureDef is only for "request". 3499s assert isinstance(fixturedef, FixtureDef) 3499s fixturedef.addfinalizer(functools.partial(self.finish, request=request)) 3499s 3499s my_cache_key = self.cache_key(request) 3499s if self.cached_result is not None: 3499s # note: comparison with `==` can fail (or be expensive) for e.g. 3499s # numpy arrays (#6497). 3499s cache_key = self.cached_result[1] 3499s if my_cache_key is cache_key: 3499s if self.cached_result[2] is not None: 3499s _, val, tb = self.cached_result[2] 3499s raise val.with_traceback(tb) 3499s else: 3499s result = self.cached_result[0] 3499s return result 3499s # We have a previous but differently parametrized fixture instance 3499s # so we need to tear it down before creating a new one. 3499s self.finish(request) 3499s assert self.cached_result is None 3499s 3499s ihook = request.node.ihook 3499s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1069: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s kwargs = {'fixturedef': , 'request': >} 3499s firstresult = True 3499s 3499s def __call__(self, **kwargs: object) -> Any: 3499s """Call the hook. 3499s 3499s Only accepts keyword arguments, which should match the hook 3499s specification. 3499s 3499s Returns the result(s) of calling all registered plugins, see 3499s :ref:`calling`. 3499s """ 3499s assert ( 3499s not self.is_historic() 3499s ), "Cannot directly call a historic hook - use call_historic instead." 3499s self._verify_all_args_are_provided(kwargs) 3499s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 3499s # Copy because plugins may register other plugins during iteration (#438). 3499s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 3499s 3499s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = <_pytest.config.PytestPluginManager object at 0xe9079168> 3499s hook_name = 'pytest_fixture_setup' 3499s methods = [>] 3499s kwargs = {'fixturedef': , 'request': >} 3499s firstresult = True 3499s 3499s def _hookexec( 3499s self, 3499s hook_name: str, 3499s methods: Sequence[HookImpl], 3499s kwargs: Mapping[str, object], 3499s firstresult: bool, 3499s ) -> object | list[object]: 3499s # called from all hookcaller instances. 3499s # enable_tracing will set its own wrapping function at self._inner_hookexec 3499s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 3499s 3499s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s fixturedef = 3499s request = > 3499s 3499s def pytest_fixture_setup( 3499s fixturedef: FixtureDef[FixtureValue], request: SubRequest 3499s ) -> FixtureValue: 3499s """Execution of fixture setup.""" 3499s kwargs = {} 3499s for argname in fixturedef.argnames: 3499s fixdef = request._get_active_fixturedef(argname) 3499s assert fixdef.cached_result is not None 3499s result, arg_cache_key, exc = fixdef.cached_result 3499s request._check_scope(argname, request._scope, fixdef._scope) 3499s kwargs[argname] = result 3499s 3499s fixturefunc = resolve_fixture_function(fixturedef, request) 3499s my_cache_key = fixturedef.cache_key(request) 3499s try: 3499s > result = call_fixture_func(fixturefunc, request, kwargs) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1123: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s fixturefunc = 3499s request = > 3499s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv'), 'types_data': [{'B... False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}]} 3499s 3499s def call_fixture_func( 3499s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 3499s ) -> FixtureValue: 3499s if is_generator(fixturefunc): 3499s fixturefunc = cast( 3499s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 3499s ) 3499s generator = fixturefunc(**kwargs) 3499s try: 3499s > fixture_result = next(generator) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:895: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s iris_path = PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv') 3499s types_data = [{'BoolCol': False, 'BoolColWithNull': False, 'DateCol': '2000-01-03 00:00:00', 'DateColWithTz': '2000-01-01 00:00:00-...: False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}] 3499s 3499s @pytest.fixture 3499s def mysql_pymysql_engine(iris_path, types_data): 3499s sqlalchemy = pytest.importorskip("sqlalchemy") 3499s pymysql = pytest.importorskip("pymysql") 3499s engine = sqlalchemy.create_engine( 3499s "mysql+pymysql://root@localhost:3306/pandas", 3499s connect_args={"client_flag": pymysql.constants.CLIENT.MULTI_STATEMENTS}, 3499s poolclass=sqlalchemy.pool.NullPool, 3499s ) 3499s > insp = sqlalchemy.inspect(engine) 3499s 3499s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:409: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s subject = Engine(mysql+pymysql://root@localhost:3306/pandas), raiseerr = True 3499s 3499s def inspect(subject, raiseerr=True): 3499s """Produce an inspection object for the given target. 3499s 3499s The returned value in some cases may be the 3499s same object as the one given, such as if a 3499s :class:`_orm.Mapper` object is passed. In other 3499s cases, it will be an instance of the registered 3499s inspection type for the given object, such as 3499s if an :class:`_engine.Engine` is passed, an 3499s :class:`_reflection.Inspector` object is returned. 3499s 3499s :param subject: the subject to be inspected. 3499s :param raiseerr: When ``True``, if the given subject 3499s does not 3499s correspond to a known SQLAlchemy inspected type, 3499s :class:`sqlalchemy.exc.NoInspectionAvailable` 3499s is raised. If ``False``, ``None`` is returned. 3499s 3499s """ 3499s type_ = type(subject) 3499s for cls in type_.__mro__: 3499s if cls in _registrars: 3499s reg = _registrars[cls] 3499s if reg is True: 3499s return subject 3499s > ret = reg(subject) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:64: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 3499s 3499s @inspection._inspects(Engine) 3499s def _engine_insp(bind): 3499s > return Inspector._construct(Inspector._init_engine, bind) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:182: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s init = 3499s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 3499s 3499s @classmethod 3499s def _construct(cls, init, bind): 3499s 3499s if hasattr(bind.dialect, "inspector"): 3499s cls = bind.dialect.inspector 3499s 3499s self = cls.__new__(cls) 3499s > init(self, bind) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:117: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 3499s 3499s def _init_engine(self, engine): 3499s self.bind = self.engine = engine 3499s > engine.connect().close() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:128: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3499s close_with_result = False 3499s 3499s def connect(self, close_with_result=False): 3499s """Return a new :class:`_engine.Connection` object. 3499s 3499s The :class:`_engine.Connection` object is a facade that uses a DBAPI 3499s connection internally in order to communicate with the database. This 3499s connection is procured from the connection-holding :class:`_pool.Pool` 3499s referenced by this :class:`_engine.Engine`. When the 3499s :meth:`_engine.Connection.close` method of the 3499s :class:`_engine.Connection` object 3499s is called, the underlying DBAPI connection is then returned to the 3499s connection pool, where it may be used again in a subsequent call to 3499s :meth:`_engine.Engine.connect`. 3499s 3499s """ 3499s 3499s > return self._connection_cls(self, close_with_result=close_with_result) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3325: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 3499s close_with_result = False, _branch_from = None, _execution_options = None 3499s _dispatch = None, _has_events = None, _allow_revalidate = True 3499s 3499s def __init__( 3499s self, 3499s engine, 3499s connection=None, 3499s close_with_result=False, 3499s _branch_from=None, 3499s _execution_options=None, 3499s _dispatch=None, 3499s _has_events=None, 3499s _allow_revalidate=True, 3499s ): 3499s """Construct a new Connection.""" 3499s self.engine = engine 3499s self.dialect = engine.dialect 3499s self.__branch_from = _branch_from 3499s 3499s if _branch_from: 3499s # branching is always "from" the root connection 3499s assert _branch_from.__branch_from is None 3499s self._dbapi_connection = connection 3499s self._execution_options = _execution_options 3499s self._echo = _branch_from._echo 3499s self.should_close_with_result = False 3499s self.dispatch = _dispatch 3499s self._has_events = _branch_from._has_events 3499s else: 3499s self._dbapi_connection = ( 3499s connection 3499s if connection is not None 3499s > else engine.raw_connection() 3499s ) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:96: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = Engine(mysql+pymysql://root@localhost:3306/pandas), _connection = None 3499s 3499s def raw_connection(self, _connection=None): 3499s """Return a "raw" DBAPI connection from the connection pool. 3499s 3499s The returned object is a proxied version of the DBAPI 3499s connection object used by the underlying driver in use. 3499s The object will have all the same behavior as the real DBAPI 3499s connection, except that its ``close()`` method will result in the 3499s connection being returned to the pool, rather than being closed 3499s for real. 3499s 3499s This method provides direct DBAPI connection access for 3499s special situations when the API provided by 3499s :class:`_engine.Connection` 3499s is not needed. When a :class:`_engine.Connection` object is already 3499s present, the DBAPI connection is available using 3499s the :attr:`_engine.Connection.connection` accessor. 3499s 3499s .. seealso:: 3499s 3499s :ref:`dbapi_connections` 3499s 3499s """ 3499s > return self._wrap_pool_connect(self.pool.connect, _connection) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3404: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3499s fn = > 3499s connection = None 3499s 3499s def _wrap_pool_connect(self, fn, connection): 3499s dialect = self.dialect 3499s try: 3499s return fn() 3499s except dialect.dbapi.Error as e: 3499s if connection is None: 3499s > Connection._handle_dbapi_exception_noconnection( 3499s e, dialect, self 3499s ) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3374: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s e = OperationalError(2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3499s dialect = 3499s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 3499s 3499s @classmethod 3499s def _handle_dbapi_exception_noconnection(cls, e, dialect, engine): 3499s exc_info = sys.exc_info() 3499s 3499s is_disconnect = dialect.is_disconnect(e, None, None) 3499s 3499s should_wrap = isinstance(e, dialect.dbapi.Error) 3499s 3499s if should_wrap: 3499s sqlalchemy_exception = exc.DBAPIError.instance( 3499s None, 3499s None, 3499s e, 3499s dialect.dbapi.Error, 3499s hide_parameters=engine.hide_parameters, 3499s connection_invalidated=is_disconnect, 3499s ) 3499s else: 3499s sqlalchemy_exception = None 3499s 3499s newraise = None 3499s 3499s if engine._has_events: 3499s ctx = ExceptionContextImpl( 3499s e, 3499s sqlalchemy_exception, 3499s engine, 3499s None, 3499s None, 3499s None, 3499s None, 3499s None, 3499s is_disconnect, 3499s True, 3499s ) 3499s for fn in engine.dispatch.handle_error: 3499s try: 3499s # handler returns an exception; 3499s # call next handler in a chain 3499s per_fn = fn(ctx) 3499s if per_fn is not None: 3499s ctx.chained_exception = newraise = per_fn 3499s except Exception as _raised: 3499s # handler raises an exception - stop processing 3499s newraise = _raised 3499s break 3499s 3499s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 3499s sqlalchemy_exception.connection_invalidated = ( 3499s is_disconnect 3499s ) = ctx.is_disconnect 3499s 3499s if newraise: 3499s util.raise_(newraise, with_traceback=exc_info[2], from_=e) 3499s elif should_wrap: 3499s > util.raise_( 3499s sqlalchemy_exception, with_traceback=exc_info[2], from_=e 3499s ) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2208: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s def raise_( 3499s exception, with_traceback=None, replace_context=None, from_=False 3499s ): 3499s r"""implement "raise" with cause support. 3499s 3499s :param exception: exception to raise 3499s :param with_traceback: will call exception.with_traceback() 3499s :param replace_context: an as-yet-unsupported feature. This is 3499s an exception object which we are "replacing", e.g., it's our 3499s "cause" but we don't want it printed. Basically just what 3499s ``__suppress_context__`` does but we don't want to suppress 3499s the enclosing context, if any. So for now we make it the 3499s cause. 3499s :param from\_: the cause. this actually sets the cause and doesn't 3499s hope to hide it someday. 3499s 3499s """ 3499s if with_traceback is not None: 3499s exception = exception.with_traceback(with_traceback) 3499s 3499s if from_ is not False: 3499s exception.__cause__ = from_ 3499s elif replace_context is not None: 3499s # no good solution here, we would like to have the exception 3499s # have only the context of replace_context.__context__ so that the 3499s # intermediary exception does not change, but we can't figure 3499s # that out. 3499s exception.__cause__ = replace_context 3499s 3499s try: 3499s > raise exception 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3499s fn = > 3499s connection = None 3499s 3499s def _wrap_pool_connect(self, fn, connection): 3499s dialect = self.dialect 3499s try: 3499s > return fn() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def connect(self): 3499s """Return a DBAPI connection from the pool. 3499s 3499s The connection is instrumented such that when its 3499s ``close()`` method is called, the connection will be returned to 3499s the pool. 3499s 3499s """ 3499s > return _ConnectionFairy._checkout(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s pool = , threadconns = None 3499s fairy = None 3499s 3499s @classmethod 3499s def _checkout(cls, pool, threadconns=None, fairy=None): 3499s if not fairy: 3499s > fairy = _ConnectionRecord.checkout(pool) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s pool = 3499s 3499s @classmethod 3499s def checkout(cls, pool): 3499s > rec = pool._do_get() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def _do_get(self): 3499s > return self._create_connection() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def _create_connection(self): 3499s """Called by subclasses to create a new ConnectionRecord.""" 3499s 3499s > return _ConnectionRecord(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s pool = , connect = True 3499s 3499s def __init__(self, pool, connect=True): 3499s self.__pool = pool 3499s if connect: 3499s > self.__connect() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def __connect(self): 3499s pool = self.__pool 3499s 3499s # ensure any existing connection is removed, so that if 3499s # creator fails, this attribute stays None 3499s self.dbapi_connection = None 3499s try: 3499s self.starttime = time.time() 3499s self.dbapi_connection = connection = pool._invoke_creator(self) 3499s pool.logger.debug("Created new connection %r", connection) 3499s self.fresh = True 3499s except BaseException as e: 3499s > with util.safe_reraise(): 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s type_ = None, value = None, traceback = None 3499s 3499s def __exit__(self, type_, value, traceback): 3499s # see #2703 for notes 3499s if type_ is None: 3499s exc_type, exc_value, exc_tb = self._exc_info 3499s self._exc_info = None # remove potential circular references 3499s if not self.warn_only: 3499s > compat.raise_( 3499s exc_value, 3499s with_traceback=exc_tb, 3499s ) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s def raise_( 3499s exception, with_traceback=None, replace_context=None, from_=False 3499s ): 3499s r"""implement "raise" with cause support. 3499s 3499s :param exception: exception to raise 3499s :param with_traceback: will call exception.with_traceback() 3499s :param replace_context: an as-yet-unsupported feature. This is 3499s an exception object which we are "replacing", e.g., it's our 3499s "cause" but we don't want it printed. Basically just what 3499s ``__suppress_context__`` does but we don't want to suppress 3499s the enclosing context, if any. So for now we make it the 3499s cause. 3499s :param from\_: the cause. this actually sets the cause and doesn't 3499s hope to hide it someday. 3499s 3499s """ 3499s if with_traceback is not None: 3499s exception = exception.with_traceback(with_traceback) 3499s 3499s if from_ is not False: 3499s exception.__cause__ = from_ 3499s elif replace_context is not None: 3499s # no good solution here, we would like to have the exception 3499s # have only the context of replace_context.__context__ so that the 3499s # intermediary exception does not change, but we can't figure 3499s # that out. 3499s exception.__cause__ = replace_context 3499s 3499s try: 3499s > raise exception 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def __connect(self): 3499s pool = self.__pool 3499s 3499s # ensure any existing connection is removed, so that if 3499s # creator fails, this attribute stays None 3499s self.dbapi_connection = None 3499s try: 3499s self.starttime = time.time() 3499s > self.dbapi_connection = connection = pool._invoke_creator(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s connection_record = 3499s 3499s def connect(connection_record=None): 3499s if dialect._has_events: 3499s for fn in dialect.dispatch.do_connect: 3499s connection = fn(dialect, connection_record, cargs, cparams) 3499s if connection is not None: 3499s return connection 3499s > return dialect.connect(*cargs, **cparams) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s cargs = () 3499s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 3499s 3499s def connect(self, *cargs, **cparams): 3499s # inherits the docstring from interfaces.Dialect.connect 3499s > return self.dbapi.connect(*cargs, **cparams) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def __init__( 3499s self, 3499s *, 3499s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 3499s password="", 3499s host=None, 3499s database=None, 3499s unix_socket=None, 3499s port=0, 3499s charset="", 3499s collation=None, 3499s sql_mode=None, 3499s read_default_file=None, 3499s conv=None, 3499s use_unicode=True, 3499s client_flag=0, 3499s cursorclass=Cursor, 3499s init_command=None, 3499s connect_timeout=10, 3499s read_default_group=None, 3499s autocommit=False, 3499s local_infile=False, 3499s max_allowed_packet=16 * 1024 * 1024, 3499s defer_connect=False, 3499s auth_plugin_map=None, 3499s read_timeout=None, 3499s write_timeout=None, 3499s bind_address=None, 3499s binary_prefix=False, 3499s program_name=None, 3499s server_public_key=None, 3499s ssl=None, 3499s ssl_ca=None, 3499s ssl_cert=None, 3499s ssl_disabled=None, 3499s ssl_key=None, 3499s ssl_key_password=None, 3499s ssl_verify_cert=None, 3499s ssl_verify_identity=None, 3499s compress=None, # not supported 3499s named_pipe=None, # not supported 3499s passwd=None, # deprecated 3499s db=None, # deprecated 3499s ): 3499s if db is not None and database is None: 3499s # We will raise warning in 2022 or later. 3499s # See https://github.com/PyMySQL/PyMySQL/issues/939 3499s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 3499s database = db 3499s if passwd is not None and not password: 3499s # We will raise warning in 2022 or later. 3499s # See https://github.com/PyMySQL/PyMySQL/issues/939 3499s # warnings.warn( 3499s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 3499s # ) 3499s password = passwd 3499s 3499s if compress or named_pipe: 3499s raise NotImplementedError( 3499s "compress and named_pipe arguments are not supported" 3499s ) 3499s 3499s self._local_infile = bool(local_infile) 3499s if self._local_infile: 3499s client_flag |= CLIENT.LOCAL_FILES 3499s 3499s if read_default_group and not read_default_file: 3499s if sys.platform.startswith("win"): 3499s read_default_file = "c:\\my.ini" 3499s else: 3499s read_default_file = "/etc/my.cnf" 3499s 3499s if read_default_file: 3499s if not read_default_group: 3499s read_default_group = "client" 3499s 3499s cfg = Parser() 3499s cfg.read(os.path.expanduser(read_default_file)) 3499s 3499s def _config(key, arg): 3499s if arg: 3499s return arg 3499s try: 3499s return cfg.get(read_default_group, key) 3499s except Exception: 3499s return arg 3499s 3499s user = _config("user", user) 3499s password = _config("password", password) 3499s host = _config("host", host) 3499s database = _config("database", database) 3499s unix_socket = _config("socket", unix_socket) 3499s port = int(_config("port", port)) 3499s bind_address = _config("bind-address", bind_address) 3499s charset = _config("default-character-set", charset) 3499s if not ssl: 3499s ssl = {} 3499s if isinstance(ssl, dict): 3499s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 3499s value = _config("ssl-" + key, ssl.get(key)) 3499s if value: 3499s ssl[key] = value 3499s 3499s self.ssl = False 3499s if not ssl_disabled: 3499s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 3499s ssl = { 3499s "ca": ssl_ca, 3499s "check_hostname": bool(ssl_verify_identity), 3499s "verify_mode": ssl_verify_cert 3499s if ssl_verify_cert is not None 3499s else False, 3499s } 3499s if ssl_cert is not None: 3499s ssl["cert"] = ssl_cert 3499s if ssl_key is not None: 3499s ssl["key"] = ssl_key 3499s if ssl_key_password is not None: 3499s ssl["password"] = ssl_key_password 3499s if ssl: 3499s if not SSL_ENABLED: 3499s raise NotImplementedError("ssl module not found") 3499s self.ssl = True 3499s client_flag |= CLIENT.SSL 3499s self.ctx = self._create_ssl_ctx(ssl) 3499s 3499s self.host = host or "localhost" 3499s self.port = port or 3306 3499s if type(self.port) is not int: 3499s raise ValueError("port should be of type int") 3499s self.user = user or DEFAULT_USER 3499s self.password = password or b"" 3499s if isinstance(self.password, str): 3499s self.password = self.password.encode("latin1") 3499s self.db = database 3499s self.unix_socket = unix_socket 3499s self.bind_address = bind_address 3499s if not (0 < connect_timeout <= 31536000): 3499s raise ValueError("connect_timeout should be >0 and <=31536000") 3499s self.connect_timeout = connect_timeout or None 3499s if read_timeout is not None and read_timeout <= 0: 3499s raise ValueError("read_timeout should be > 0") 3499s self._read_timeout = read_timeout 3499s if write_timeout is not None and write_timeout <= 0: 3499s raise ValueError("write_timeout should be > 0") 3499s self._write_timeout = write_timeout 3499s 3499s self.charset = charset or DEFAULT_CHARSET 3499s self.collation = collation 3499s self.use_unicode = use_unicode 3499s 3499s self.encoding = charset_by_name(self.charset).encoding 3499s 3499s client_flag |= CLIENT.CAPABILITIES 3499s if self.db: 3499s client_flag |= CLIENT.CONNECT_WITH_DB 3499s 3499s self.client_flag = client_flag 3499s 3499s self.cursorclass = cursorclass 3499s 3499s self._result = None 3499s self._affected_rows = 0 3499s self.host_info = "Not connected" 3499s 3499s # specified autocommit mode. None means use server default. 3499s self.autocommit_mode = autocommit 3499s 3499s if conv is None: 3499s conv = converters.conversions 3499s 3499s # Need for MySQLdb compatibility. 3499s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 3499s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 3499s self.sql_mode = sql_mode 3499s self.init_command = init_command 3499s self.max_allowed_packet = max_allowed_packet 3499s self._auth_plugin_map = auth_plugin_map or {} 3499s self._binary_prefix = binary_prefix 3499s self.server_public_key = server_public_key 3499s 3499s self._connect_attrs = { 3499s "_client_name": "pymysql", 3499s "_client_version": VERSION_STRING, 3499s "_pid": str(os.getpid()), 3499s } 3499s 3499s if program_name: 3499s self._connect_attrs["program_name"] = program_name 3499s 3499s if defer_connect: 3499s self._sock = None 3499s else: 3499s > self.connect() 3499s 3499s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = , sock = None 3499s 3499s def connect(self, sock=None): 3499s self._closed = False 3499s try: 3499s if sock is None: 3499s if self.unix_socket: 3499s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3499s sock.settimeout(self.connect_timeout) 3499s sock.connect(self.unix_socket) 3499s self.host_info = "Localhost via UNIX socket" 3499s self._secure = True 3499s if DEBUG: 3499s print("connected using unix_socket") 3499s else: 3499s kwargs = {} 3499s if self.bind_address is not None: 3499s kwargs["source_address"] = (self.bind_address, 0) 3499s while True: 3499s try: 3499s sock = socket.create_connection( 3499s (self.host, self.port), self.connect_timeout, **kwargs 3499s ) 3499s break 3499s except OSError as e: 3499s if e.errno == errno.EINTR: 3499s continue 3499s raise 3499s self.host_info = "socket %s:%d" % (self.host, self.port) 3499s if DEBUG: 3499s print("connected using socket") 3499s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 3499s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 3499s sock.settimeout(None) 3499s 3499s self._sock = sock 3499s self._rfile = sock.makefile("rb") 3499s self._next_seq_id = 0 3499s 3499s self._get_server_information() 3499s self._request_authentication() 3499s 3499s # Send "SET NAMES" query on init for: 3499s # - Ensure charaset (and collation) is set to the server. 3499s # - collation_id in handshake packet may be ignored. 3499s # - If collation is not specified, we don't know what is server's 3499s # default collation for the charset. For example, default collation 3499s # of utf8mb4 is: 3499s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 3499s # - MySQL 8.0: utf8mb4_0900_ai_ci 3499s # 3499s # Reference: 3499s # - https://github.com/PyMySQL/PyMySQL/issues/1092 3499s # - https://github.com/wagtail/wagtail/issues/9477 3499s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 3499s self.set_character_set(self.charset, self.collation) 3499s 3499s if self.sql_mode is not None: 3499s c = self.cursor() 3499s c.execute("SET sql_mode=%s", (self.sql_mode,)) 3499s c.close() 3499s 3499s if self.init_command is not None: 3499s c = self.cursor() 3499s c.execute(self.init_command) 3499s c.close() 3499s 3499s if self.autocommit_mode is not None: 3499s self.autocommit(self.autocommit_mode) 3499s except BaseException as e: 3499s self._rfile = None 3499s if sock is not None: 3499s try: 3499s sock.close() 3499s except: # noqa 3499s pass 3499s 3499s if isinstance(e, (OSError, IOError)): 3499s exc = err.OperationalError( 3499s CR.CR_CONN_HOST_ERROR, 3499s f"Can't connect to MySQL server on {self.host!r} ({e})", 3499s ) 3499s # Keep original exception and traceback to investigate error. 3499s exc.original_exception = e 3499s exc.traceback = traceback.format_exc() 3499s if DEBUG: 3499s print(exc.traceback) 3499s > raise exc 3499s E sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3499s E (Background on this error at: https://sqlalche.me/e/14/e3q8) 3499s 3499s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 3499s ________________ test_to_sql[multi-postgresql_psycopg2_engine] _________________ 3499s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3499s fn = > 3499s connection = None 3499s 3499s def _wrap_pool_connect(self, fn, connection): 3499s dialect = self.dialect 3499s try: 3499s > return fn() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def connect(self): 3499s """Return a DBAPI connection from the pool. 3499s 3499s The connection is instrumented such that when its 3499s ``close()`` method is called, the connection will be returned to 3499s the pool. 3499s 3499s """ 3499s > return _ConnectionFairy._checkout(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s pool = , threadconns = None 3499s fairy = None 3499s 3499s @classmethod 3499s def _checkout(cls, pool, threadconns=None, fairy=None): 3499s if not fairy: 3499s > fairy = _ConnectionRecord.checkout(pool) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s pool = 3499s 3499s @classmethod 3499s def checkout(cls, pool): 3499s > rec = pool._do_get() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def _do_get(self): 3499s > return self._create_connection() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def _create_connection(self): 3499s """Called by subclasses to create a new ConnectionRecord.""" 3499s 3499s > return _ConnectionRecord(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s pool = , connect = True 3499s 3499s def __init__(self, pool, connect=True): 3499s self.__pool = pool 3499s if connect: 3499s > self.__connect() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def __connect(self): 3499s pool = self.__pool 3499s 3499s # ensure any existing connection is removed, so that if 3499s # creator fails, this attribute stays None 3499s self.dbapi_connection = None 3499s try: 3499s self.starttime = time.time() 3499s self.dbapi_connection = connection = pool._invoke_creator(self) 3499s pool.logger.debug("Created new connection %r", connection) 3499s self.fresh = True 3499s except BaseException as e: 3499s > with util.safe_reraise(): 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s type_ = None, value = None, traceback = None 3499s 3499s def __exit__(self, type_, value, traceback): 3499s # see #2703 for notes 3499s if type_ is None: 3499s exc_type, exc_value, exc_tb = self._exc_info 3499s self._exc_info = None # remove potential circular references 3499s if not self.warn_only: 3499s > compat.raise_( 3499s exc_value, 3499s with_traceback=exc_tb, 3499s ) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s def raise_( 3499s exception, with_traceback=None, replace_context=None, from_=False 3499s ): 3499s r"""implement "raise" with cause support. 3499s 3499s :param exception: exception to raise 3499s :param with_traceback: will call exception.with_traceback() 3499s :param replace_context: an as-yet-unsupported feature. This is 3499s an exception object which we are "replacing", e.g., it's our 3499s "cause" but we don't want it printed. Basically just what 3499s ``__suppress_context__`` does but we don't want to suppress 3499s the enclosing context, if any. So for now we make it the 3499s cause. 3499s :param from\_: the cause. this actually sets the cause and doesn't 3499s hope to hide it someday. 3499s 3499s """ 3499s if with_traceback is not None: 3499s exception = exception.with_traceback(with_traceback) 3499s 3499s if from_ is not False: 3499s exception.__cause__ = from_ 3499s elif replace_context is not None: 3499s # no good solution here, we would like to have the exception 3499s # have only the context of replace_context.__context__ so that the 3499s # intermediary exception does not change, but we can't figure 3499s # that out. 3499s exception.__cause__ = replace_context 3499s 3499s try: 3499s > raise exception 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def __connect(self): 3499s pool = self.__pool 3499s 3499s # ensure any existing connection is removed, so that if 3499s # creator fails, this attribute stays None 3499s self.dbapi_connection = None 3499s try: 3499s self.starttime = time.time() 3499s > self.dbapi_connection = connection = pool._invoke_creator(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s connection_record = 3499s 3499s def connect(connection_record=None): 3499s if dialect._has_events: 3499s for fn in dialect.dispatch.do_connect: 3499s connection = fn(dialect, connection_record, cargs, cparams) 3499s if connection is not None: 3499s return connection 3499s > return dialect.connect(*cargs, **cparams) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s cargs = () 3499s cparams = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3499s 3499s def connect(self, *cargs, **cparams): 3499s # inherits the docstring from interfaces.Dialect.connect 3499s > return self.dbapi.connect(*cargs, **cparams) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s dsn = 'host=localhost user=postgres password=postgres port=5432 dbname=pandas' 3499s connection_factory = None, cursor_factory = None 3499s kwargs = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3499s kwasync = {} 3499s 3499s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 3499s """ 3499s Create a new database connection. 3499s 3499s The connection parameters can be specified as a string: 3499s 3499s conn = psycopg2.connect("dbname=test user=postgres password=secret") 3499s 3499s or using a set of keyword arguments: 3499s 3499s conn = psycopg2.connect(database="test", user="postgres", password="secret") 3499s 3499s Or as a mix of both. The basic connection parameters are: 3499s 3499s - *dbname*: the database name 3499s - *database*: the database name (only as keyword argument) 3499s - *user*: user name used to authenticate 3499s - *password*: password used to authenticate 3499s - *host*: database host address (defaults to UNIX socket if not provided) 3499s - *port*: connection port number (defaults to 5432 if not provided) 3499s 3499s Using the *connection_factory* parameter a different class or connections 3499s factory can be specified. It should be a callable object taking a dsn 3499s argument. 3499s 3499s Using the *cursor_factory* parameter, a new default cursor factory will be 3499s used by cursor(). 3499s 3499s Using *async*=True an asynchronous connection will be created. *async_* is 3499s a valid alias (for Python versions where ``async`` is a keyword). 3499s 3499s Any other keyword parameter will be passed to the underlying client 3499s library: the list of supported parameters depends on the library version. 3499s 3499s """ 3499s kwasync = {} 3499s if 'async' in kwargs: 3499s kwasync['async'] = kwargs.pop('async') 3499s if 'async_' in kwargs: 3499s kwasync['async_'] = kwargs.pop('async_') 3499s 3499s dsn = _ext.make_dsn(dsn, **kwargs) 3499s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 3499s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 3499s E Is the server running on that host and accepting TCP/IP connections? 3499s 3499s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 3499s 3499s The above exception was the direct cause of the following exception: 3499s 3499s conn = 'postgresql_psycopg2_engine', method = 'multi' 3499s test_frame1 = index A B C D 3499s 0 2000-01-03 00:00:00 0.980269 3.685731 -0.364217 -1...0-01-05 00:00:00 0.498581 0.731168 -0.537677 1.346270 3499s 3 2000-01-06 00:00:00 1.120202 1.567621 0.003641 0.675253 3499s request = > 3499s 3499s @pytest.mark.db 3499s @pytest.mark.parametrize("conn", all_connectable) 3499s @pytest.mark.parametrize("method", [None, "multi"]) 3499s def test_to_sql(conn, method, test_frame1, request): 3499s > conn = request.getfixturevalue(conn) 3499s 3499s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:595: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = > 3499s argname = 'postgresql_psycopg2_engine' 3499s 3499s def getfixturevalue(self, argname: str) -> Any: 3499s """Dynamically run a named fixture function. 3499s 3499s Declaring fixtures via function argument is recommended where possible. 3499s But if you can only decide whether to use another fixture at test 3499s setup time, you may use this function to retrieve it inside a fixture 3499s or test function body. 3499s 3499s This method can be used during the test setup phase or the test run 3499s phase, but during the test teardown phase a fixture's value may not 3499s be available. 3499s 3499s :param argname: 3499s The fixture name. 3499s :raises pytest.FixtureLookupError: 3499s If the given fixture could not be found. 3499s """ 3499s > fixturedef = self._get_active_fixturedef(argname) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:585: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = > 3499s argname = 'postgresql_psycopg2_engine' 3499s 3499s def _get_active_fixturedef( 3499s self, argname: str 3499s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3499s try: 3499s return self._fixture_defs[argname] 3499s except KeyError: 3499s try: 3499s fixturedef = self._getnextfixturedef(argname) 3499s except FixtureLookupError: 3499s if argname == "request": 3499s cached_result = (self, [0], None) 3499s return PseudoFixtureDef(cached_result, Scope.Function) 3499s raise 3499s # Remove indent to prevent the python3 exception 3499s # from leaking into the call. 3499s > self._compute_fixture_value(fixturedef) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = > 3499s fixturedef = 3499s 3499s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3499s """Create a SubRequest based on "self" and call the execute method 3499s of the given FixtureDef object. 3499s 3499s This will force the FixtureDef object to throw away any previous 3499s results and compute a new fixture value, which will be stored into 3499s the FixtureDef object itself. 3499s """ 3499s # prepare a subrequest object before calling fixture function 3499s # (latter managed by fixturedef) 3499s argname = fixturedef.argname 3499s funcitem = self._pyfuncitem 3499s scope = fixturedef._scope 3499s try: 3499s callspec = funcitem.callspec 3499s except AttributeError: 3499s callspec = None 3499s if callspec is not None and argname in callspec.params: 3499s param = callspec.params[argname] 3499s param_index = callspec.indices[argname] 3499s # If a parametrize invocation set a scope it will override 3499s # the static scope defined with the fixture function. 3499s with suppress(KeyError): 3499s scope = callspec._arg2scope[argname] 3499s else: 3499s param = NOTSET 3499s param_index = 0 3499s has_params = fixturedef.params is not None 3499s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3499s if has_params and fixtures_not_supported: 3499s msg = ( 3499s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3499s "Node id: {nodeid}\n" 3499s "Function type: {typename}" 3499s ).format( 3499s name=funcitem.name, 3499s nodeid=funcitem.nodeid, 3499s typename=type(funcitem).__name__, 3499s ) 3499s fail(msg, pytrace=False) 3499s if has_params: 3499s frame = inspect.stack()[3] 3499s frameinfo = inspect.getframeinfo(frame[0]) 3499s source_path = absolutepath(frameinfo.filename) 3499s source_lineno = frameinfo.lineno 3499s try: 3499s source_path_str = str( 3499s source_path.relative_to(funcitem.config.rootpath) 3499s ) 3499s except ValueError: 3499s source_path_str = str(source_path) 3499s msg = ( 3499s "The requested fixture has no parameter defined for test:\n" 3499s " {}\n\n" 3499s "Requested fixture '{}' defined in:\n{}" 3499s "\n\nRequested here:\n{}:{}".format( 3499s funcitem.nodeid, 3499s fixturedef.argname, 3499s getlocation(fixturedef.func, funcitem.config.rootpath), 3499s source_path_str, 3499s source_lineno, 3499s ) 3499s ) 3499s fail(msg, pytrace=False) 3499s 3499s subrequest = SubRequest( 3499s self, scope, param, param_index, fixturedef, _ispytest=True 3499s ) 3499s 3499s # Check if a higher-level scoped fixture accesses a lower level one. 3499s subrequest._check_scope(argname, self._scope, scope) 3499s try: 3499s # Call the fixture function. 3499s > fixturedef.execute(request=subrequest) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s request = > 3499s 3499s def execute(self, request: SubRequest) -> FixtureValue: 3499s # Get required arguments and register our own finish() 3499s # with their finalization. 3499s for argname in self.argnames: 3499s fixturedef = request._get_active_fixturedef(argname) 3499s if argname != "request": 3499s # PseudoFixtureDef is only for "request". 3499s assert isinstance(fixturedef, FixtureDef) 3499s fixturedef.addfinalizer(functools.partial(self.finish, request=request)) 3499s 3499s my_cache_key = self.cache_key(request) 3499s if self.cached_result is not None: 3499s # note: comparison with `==` can fail (or be expensive) for e.g. 3499s # numpy arrays (#6497). 3499s cache_key = self.cached_result[1] 3499s if my_cache_key is cache_key: 3499s if self.cached_result[2] is not None: 3499s _, val, tb = self.cached_result[2] 3499s raise val.with_traceback(tb) 3499s else: 3499s result = self.cached_result[0] 3499s return result 3499s # We have a previous but differently parametrized fixture instance 3499s # so we need to tear it down before creating a new one. 3499s self.finish(request) 3499s assert self.cached_result is None 3499s 3499s ihook = request.node.ihook 3499s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1069: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s kwargs = {'fixturedef': , 'request': >} 3499s firstresult = True 3499s 3499s def __call__(self, **kwargs: object) -> Any: 3499s """Call the hook. 3499s 3499s Only accepts keyword arguments, which should match the hook 3499s specification. 3499s 3499s Returns the result(s) of calling all registered plugins, see 3499s :ref:`calling`. 3499s """ 3499s assert ( 3499s not self.is_historic() 3499s ), "Cannot directly call a historic hook - use call_historic instead." 3499s self._verify_all_args_are_provided(kwargs) 3499s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 3499s # Copy because plugins may register other plugins during iteration (#438). 3499s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 3499s 3499s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = <_pytest.config.PytestPluginManager object at 0xe9079168> 3499s hook_name = 'pytest_fixture_setup' 3499s methods = [>] 3499s kwargs = {'fixturedef': , 'request': >} 3499s firstresult = True 3499s 3499s def _hookexec( 3499s self, 3499s hook_name: str, 3499s methods: Sequence[HookImpl], 3499s kwargs: Mapping[str, object], 3499s firstresult: bool, 3499s ) -> object | list[object]: 3499s # called from all hookcaller instances. 3499s # enable_tracing will set its own wrapping function at self._inner_hookexec 3499s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 3499s 3499s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s fixturedef = 3499s request = > 3499s 3499s def pytest_fixture_setup( 3499s fixturedef: FixtureDef[FixtureValue], request: SubRequest 3499s ) -> FixtureValue: 3499s """Execution of fixture setup.""" 3499s kwargs = {} 3499s for argname in fixturedef.argnames: 3499s fixdef = request._get_active_fixturedef(argname) 3499s assert fixdef.cached_result is not None 3499s result, arg_cache_key, exc = fixdef.cached_result 3499s request._check_scope(argname, request._scope, fixdef._scope) 3499s kwargs[argname] = result 3499s 3499s fixturefunc = resolve_fixture_function(fixturedef, request) 3499s my_cache_key = fixturedef.cache_key(request) 3499s try: 3499s > result = call_fixture_func(fixturefunc, request, kwargs) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1123: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s fixturefunc = 3499s request = > 3499s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv'), 'types_data': [{'B... False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}]} 3499s 3499s def call_fixture_func( 3499s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 3499s ) -> FixtureValue: 3499s if is_generator(fixturefunc): 3499s fixturefunc = cast( 3499s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 3499s ) 3499s generator = fixturefunc(**kwargs) 3499s try: 3499s > fixture_result = next(generator) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:895: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s iris_path = PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv') 3499s types_data = [{'BoolCol': False, 'BoolColWithNull': False, 'DateCol': '2000-01-03 00:00:00', 'DateColWithTz': '2000-01-01 00:00:00-...: False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}] 3499s 3499s @pytest.fixture 3499s def postgresql_psycopg2_engine(iris_path, types_data): 3499s sqlalchemy = pytest.importorskip("sqlalchemy") 3499s pytest.importorskip("psycopg2") 3499s engine = sqlalchemy.create_engine( 3499s "postgresql+psycopg2://postgres:postgres@localhost:5432/pandas", 3499s poolclass=sqlalchemy.pool.NullPool, 3499s ) 3499s > insp = sqlalchemy.inspect(engine) 3499s 3499s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:438: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s subject = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3499s raiseerr = True 3499s 3499s def inspect(subject, raiseerr=True): 3499s """Produce an inspection object for the given target. 3499s 3499s The returned value in some cases may be the 3499s same object as the one given, such as if a 3499s :class:`_orm.Mapper` object is passed. In other 3499s cases, it will be an instance of the registered 3499s inspection type for the given object, such as 3499s if an :class:`_engine.Engine` is passed, an 3499s :class:`_reflection.Inspector` object is returned. 3499s 3499s :param subject: the subject to be inspected. 3499s :param raiseerr: When ``True``, if the given subject 3499s does not 3499s correspond to a known SQLAlchemy inspected type, 3499s :class:`sqlalchemy.exc.NoInspectionAvailable` 3499s is raised. If ``False``, ``None`` is returned. 3499s 3499s """ 3499s type_ = type(subject) 3499s for cls in type_.__mro__: 3499s if cls in _registrars: 3499s reg = _registrars[cls] 3499s if reg is True: 3499s return subject 3499s > ret = reg(subject) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:64: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3499s 3499s @inspection._inspects(Engine) 3499s def _engine_insp(bind): 3499s > return Inspector._construct(Inspector._init_engine, bind) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:182: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s init = 3499s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3499s 3499s @classmethod 3499s def _construct(cls, init, bind): 3499s 3499s if hasattr(bind.dialect, "inspector"): 3499s cls = bind.dialect.inspector 3499s 3499s self = cls.__new__(cls) 3499s > init(self, bind) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:117: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3499s 3499s def _init_engine(self, engine): 3499s self.bind = self.engine = engine 3499s > engine.connect().close() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:128: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3499s close_with_result = False 3499s 3499s def connect(self, close_with_result=False): 3499s """Return a new :class:`_engine.Connection` object. 3499s 3499s The :class:`_engine.Connection` object is a facade that uses a DBAPI 3499s connection internally in order to communicate with the database. This 3499s connection is procured from the connection-holding :class:`_pool.Pool` 3499s referenced by this :class:`_engine.Engine`. When the 3499s :meth:`_engine.Connection.close` method of the 3499s :class:`_engine.Connection` object 3499s is called, the underlying DBAPI connection is then returned to the 3499s connection pool, where it may be used again in a subsequent call to 3499s :meth:`_engine.Engine.connect`. 3499s 3499s """ 3499s 3499s > return self._connection_cls(self, close_with_result=close_with_result) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3325: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3499s connection = None, close_with_result = False, _branch_from = None 3499s _execution_options = None, _dispatch = None, _has_events = None 3499s _allow_revalidate = True 3499s 3499s def __init__( 3499s self, 3499s engine, 3499s connection=None, 3499s close_with_result=False, 3499s _branch_from=None, 3499s _execution_options=None, 3499s _dispatch=None, 3499s _has_events=None, 3499s _allow_revalidate=True, 3499s ): 3499s """Construct a new Connection.""" 3499s self.engine = engine 3499s self.dialect = engine.dialect 3499s self.__branch_from = _branch_from 3499s 3499s if _branch_from: 3499s # branching is always "from" the root connection 3499s assert _branch_from.__branch_from is None 3499s self._dbapi_connection = connection 3499s self._execution_options = _execution_options 3499s self._echo = _branch_from._echo 3499s self.should_close_with_result = False 3499s self.dispatch = _dispatch 3499s self._has_events = _branch_from._has_events 3499s else: 3499s self._dbapi_connection = ( 3499s connection 3499s if connection is not None 3499s > else engine.raw_connection() 3499s ) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:96: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3499s _connection = None 3499s 3499s def raw_connection(self, _connection=None): 3499s """Return a "raw" DBAPI connection from the connection pool. 3499s 3499s The returned object is a proxied version of the DBAPI 3499s connection object used by the underlying driver in use. 3499s The object will have all the same behavior as the real DBAPI 3499s connection, except that its ``close()`` method will result in the 3499s connection being returned to the pool, rather than being closed 3499s for real. 3499s 3499s This method provides direct DBAPI connection access for 3499s special situations when the API provided by 3499s :class:`_engine.Connection` 3499s is not needed. When a :class:`_engine.Connection` object is already 3499s present, the DBAPI connection is available using 3499s the :attr:`_engine.Connection.connection` accessor. 3499s 3499s .. seealso:: 3499s 3499s :ref:`dbapi_connections` 3499s 3499s """ 3499s > return self._wrap_pool_connect(self.pool.connect, _connection) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3404: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3499s fn = > 3499s connection = None 3499s 3499s def _wrap_pool_connect(self, fn, connection): 3499s dialect = self.dialect 3499s try: 3499s return fn() 3499s except dialect.dbapi.Error as e: 3499s if connection is None: 3499s > Connection._handle_dbapi_exception_noconnection( 3499s e, dialect, self 3499s ) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3374: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s e = OperationalError('connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused\n\tIs the server running on that host and accepting TCP/IP connections?\n') 3499s dialect = 3499s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3499s 3499s @classmethod 3499s def _handle_dbapi_exception_noconnection(cls, e, dialect, engine): 3499s exc_info = sys.exc_info() 3499s 3499s is_disconnect = dialect.is_disconnect(e, None, None) 3499s 3499s should_wrap = isinstance(e, dialect.dbapi.Error) 3499s 3499s if should_wrap: 3499s sqlalchemy_exception = exc.DBAPIError.instance( 3499s None, 3499s None, 3499s e, 3499s dialect.dbapi.Error, 3499s hide_parameters=engine.hide_parameters, 3499s connection_invalidated=is_disconnect, 3499s ) 3499s else: 3499s sqlalchemy_exception = None 3499s 3499s newraise = None 3499s 3499s if engine._has_events: 3499s ctx = ExceptionContextImpl( 3499s e, 3499s sqlalchemy_exception, 3499s engine, 3499s None, 3499s None, 3499s None, 3499s None, 3499s None, 3499s is_disconnect, 3499s True, 3499s ) 3499s for fn in engine.dispatch.handle_error: 3499s try: 3499s # handler returns an exception; 3499s # call next handler in a chain 3499s per_fn = fn(ctx) 3499s if per_fn is not None: 3499s ctx.chained_exception = newraise = per_fn 3499s except Exception as _raised: 3499s # handler raises an exception - stop processing 3499s newraise = _raised 3499s break 3499s 3499s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 3499s sqlalchemy_exception.connection_invalidated = ( 3499s is_disconnect 3499s ) = ctx.is_disconnect 3499s 3499s if newraise: 3499s util.raise_(newraise, with_traceback=exc_info[2], from_=e) 3499s elif should_wrap: 3499s > util.raise_( 3499s sqlalchemy_exception, with_traceback=exc_info[2], from_=e 3499s ) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2208: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s def raise_( 3499s exception, with_traceback=None, replace_context=None, from_=False 3499s ): 3499s r"""implement "raise" with cause support. 3499s 3499s :param exception: exception to raise 3499s :param with_traceback: will call exception.with_traceback() 3499s :param replace_context: an as-yet-unsupported feature. This is 3499s an exception object which we are "replacing", e.g., it's our 3499s "cause" but we don't want it printed. Basically just what 3499s ``__suppress_context__`` does but we don't want to suppress 3499s the enclosing context, if any. So for now we make it the 3499s cause. 3499s :param from\_: the cause. this actually sets the cause and doesn't 3499s hope to hide it someday. 3499s 3499s """ 3499s if with_traceback is not None: 3499s exception = exception.with_traceback(with_traceback) 3499s 3499s if from_ is not False: 3499s exception.__cause__ = from_ 3499s elif replace_context is not None: 3499s # no good solution here, we would like to have the exception 3499s # have only the context of replace_context.__context__ so that the 3499s # intermediary exception does not change, but we can't figure 3499s # that out. 3499s exception.__cause__ = replace_context 3499s 3499s try: 3499s > raise exception 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3499s fn = > 3499s connection = None 3499s 3499s def _wrap_pool_connect(self, fn, connection): 3499s dialect = self.dialect 3499s try: 3499s > return fn() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def connect(self): 3499s """Return a DBAPI connection from the pool. 3499s 3499s The connection is instrumented such that when its 3499s ``close()`` method is called, the connection will be returned to 3499s the pool. 3499s 3499s """ 3499s > return _ConnectionFairy._checkout(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s pool = , threadconns = None 3499s fairy = None 3499s 3499s @classmethod 3499s def _checkout(cls, pool, threadconns=None, fairy=None): 3499s if not fairy: 3499s > fairy = _ConnectionRecord.checkout(pool) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s pool = 3499s 3499s @classmethod 3499s def checkout(cls, pool): 3499s > rec = pool._do_get() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def _do_get(self): 3499s > return self._create_connection() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def _create_connection(self): 3499s """Called by subclasses to create a new ConnectionRecord.""" 3499s 3499s > return _ConnectionRecord(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s pool = , connect = True 3499s 3499s def __init__(self, pool, connect=True): 3499s self.__pool = pool 3499s if connect: 3499s > self.__connect() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def __connect(self): 3499s pool = self.__pool 3499s 3499s # ensure any existing connection is removed, so that if 3499s # creator fails, this attribute stays None 3499s self.dbapi_connection = None 3499s try: 3499s self.starttime = time.time() 3499s self.dbapi_connection = connection = pool._invoke_creator(self) 3499s pool.logger.debug("Created new connection %r", connection) 3499s self.fresh = True 3499s except BaseException as e: 3499s > with util.safe_reraise(): 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s type_ = None, value = None, traceback = None 3499s 3499s def __exit__(self, type_, value, traceback): 3499s # see #2703 for notes 3499s if type_ is None: 3499s exc_type, exc_value, exc_tb = self._exc_info 3499s self._exc_info = None # remove potential circular references 3499s if not self.warn_only: 3499s > compat.raise_( 3499s exc_value, 3499s with_traceback=exc_tb, 3499s ) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s def raise_( 3499s exception, with_traceback=None, replace_context=None, from_=False 3499s ): 3499s r"""implement "raise" with cause support. 3499s 3499s :param exception: exception to raise 3499s :param with_traceback: will call exception.with_traceback() 3499s :param replace_context: an as-yet-unsupported feature. This is 3499s an exception object which we are "replacing", e.g., it's our 3499s "cause" but we don't want it printed. Basically just what 3499s ``__suppress_context__`` does but we don't want to suppress 3499s the enclosing context, if any. So for now we make it the 3499s cause. 3499s :param from\_: the cause. this actually sets the cause and doesn't 3499s hope to hide it someday. 3499s 3499s """ 3499s if with_traceback is not None: 3499s exception = exception.with_traceback(with_traceback) 3499s 3499s if from_ is not False: 3499s exception.__cause__ = from_ 3499s elif replace_context is not None: 3499s # no good solution here, we would like to have the exception 3499s # have only the context of replace_context.__context__ so that the 3499s # intermediary exception does not change, but we can't figure 3499s # that out. 3499s exception.__cause__ = replace_context 3499s 3499s try: 3499s > raise exception 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def __connect(self): 3499s pool = self.__pool 3499s 3499s # ensure any existing connection is removed, so that if 3499s # creator fails, this attribute stays None 3499s self.dbapi_connection = None 3499s try: 3499s self.starttime = time.time() 3499s > self.dbapi_connection = connection = pool._invoke_creator(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s connection_record = 3499s 3499s def connect(connection_record=None): 3499s if dialect._has_events: 3499s for fn in dialect.dispatch.do_connect: 3499s connection = fn(dialect, connection_record, cargs, cparams) 3499s if connection is not None: 3499s return connection 3499s > return dialect.connect(*cargs, **cparams) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s cargs = () 3499s cparams = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3499s 3499s def connect(self, *cargs, **cparams): 3499s # inherits the docstring from interfaces.Dialect.connect 3499s > return self.dbapi.connect(*cargs, **cparams) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s dsn = 'host=localhost user=postgres password=postgres port=5432 dbname=pandas' 3499s connection_factory = None, cursor_factory = None 3499s kwargs = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3499s kwasync = {} 3499s 3499s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 3499s """ 3499s Create a new database connection. 3499s 3499s The connection parameters can be specified as a string: 3499s 3499s conn = psycopg2.connect("dbname=test user=postgres password=secret") 3499s 3499s or using a set of keyword arguments: 3499s 3499s conn = psycopg2.connect(database="test", user="postgres", password="secret") 3499s 3499s Or as a mix of both. The basic connection parameters are: 3499s 3499s - *dbname*: the database name 3499s - *database*: the database name (only as keyword argument) 3499s - *user*: user name used to authenticate 3499s - *password*: password used to authenticate 3499s - *host*: database host address (defaults to UNIX socket if not provided) 3499s - *port*: connection port number (defaults to 5432 if not provided) 3499s 3499s Using the *connection_factory* parameter a different class or connections 3499s factory can be specified. It should be a callable object taking a dsn 3499s argument. 3499s 3499s Using the *cursor_factory* parameter, a new default cursor factory will be 3499s used by cursor(). 3499s 3499s Using *async*=True an asynchronous connection will be created. *async_* is 3499s a valid alias (for Python versions where ``async`` is a keyword). 3499s 3499s Any other keyword parameter will be passed to the underlying client 3499s library: the list of supported parameters depends on the library version. 3499s 3499s """ 3499s kwasync = {} 3499s if 'async' in kwargs: 3499s kwasync['async'] = kwargs.pop('async') 3499s if 'async_' in kwargs: 3499s kwasync['async_'] = kwargs.pop('async_') 3499s 3499s dsn = _ext.make_dsn(dsn, **kwargs) 3499s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 3499s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 3499s E Is the server running on that host and accepting TCP/IP connections? 3499s E 3499s E (Background on this error at: https://sqlalche.me/e/14/e3q8) 3499s 3499s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 3499s _________________ test_to_sql[multi-postgresql_psycopg2_conn] __________________ 3499s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3499s fn = > 3499s connection = None 3499s 3499s def _wrap_pool_connect(self, fn, connection): 3499s dialect = self.dialect 3499s try: 3499s > return fn() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def connect(self): 3499s """Return a DBAPI connection from the pool. 3499s 3499s The connection is instrumented such that when its 3499s ``close()`` method is called, the connection will be returned to 3499s the pool. 3499s 3499s """ 3499s > return _ConnectionFairy._checkout(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s pool = , threadconns = None 3499s fairy = None 3499s 3499s @classmethod 3499s def _checkout(cls, pool, threadconns=None, fairy=None): 3499s if not fairy: 3499s > fairy = _ConnectionRecord.checkout(pool) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s pool = 3499s 3499s @classmethod 3499s def checkout(cls, pool): 3499s > rec = pool._do_get() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def _do_get(self): 3499s > return self._create_connection() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def _create_connection(self): 3499s """Called by subclasses to create a new ConnectionRecord.""" 3499s 3499s > return _ConnectionRecord(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s pool = , connect = True 3499s 3499s def __init__(self, pool, connect=True): 3499s self.__pool = pool 3499s if connect: 3499s > self.__connect() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def __connect(self): 3499s pool = self.__pool 3499s 3499s # ensure any existing connection is removed, so that if 3499s # creator fails, this attribute stays None 3499s self.dbapi_connection = None 3499s try: 3499s self.starttime = time.time() 3499s self.dbapi_connection = connection = pool._invoke_creator(self) 3499s pool.logger.debug("Created new connection %r", connection) 3499s self.fresh = True 3499s except BaseException as e: 3499s > with util.safe_reraise(): 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s type_ = None, value = None, traceback = None 3499s 3499s def __exit__(self, type_, value, traceback): 3499s # see #2703 for notes 3499s if type_ is None: 3499s exc_type, exc_value, exc_tb = self._exc_info 3499s self._exc_info = None # remove potential circular references 3499s if not self.warn_only: 3499s > compat.raise_( 3499s exc_value, 3499s with_traceback=exc_tb, 3499s ) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s def raise_( 3499s exception, with_traceback=None, replace_context=None, from_=False 3499s ): 3499s r"""implement "raise" with cause support. 3499s 3499s :param exception: exception to raise 3499s :param with_traceback: will call exception.with_traceback() 3499s :param replace_context: an as-yet-unsupported feature. This is 3499s an exception object which we are "replacing", e.g., it's our 3499s "cause" but we don't want it printed. Basically just what 3499s ``__suppress_context__`` does but we don't want to suppress 3499s the enclosing context, if any. So for now we make it the 3499s cause. 3499s :param from\_: the cause. this actually sets the cause and doesn't 3499s hope to hide it someday. 3499s 3499s """ 3499s if with_traceback is not None: 3499s exception = exception.with_traceback(with_traceback) 3499s 3499s if from_ is not False: 3499s exception.__cause__ = from_ 3499s elif replace_context is not None: 3499s # no good solution here, we would like to have the exception 3499s # have only the context of replace_context.__context__ so that the 3499s # intermediary exception does not change, but we can't figure 3499s # that out. 3499s exception.__cause__ = replace_context 3499s 3499s try: 3499s > raise exception 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def __connect(self): 3499s pool = self.__pool 3499s 3499s # ensure any existing connection is removed, so that if 3499s # creator fails, this attribute stays None 3499s self.dbapi_connection = None 3499s try: 3499s self.starttime = time.time() 3499s > self.dbapi_connection = connection = pool._invoke_creator(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s connection_record = 3499s 3499s def connect(connection_record=None): 3499s if dialect._has_events: 3499s for fn in dialect.dispatch.do_connect: 3499s connection = fn(dialect, connection_record, cargs, cparams) 3499s if connection is not None: 3499s return connection 3499s > return dialect.connect(*cargs, **cparams) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s cargs = () 3499s cparams = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3499s 3499s def connect(self, *cargs, **cparams): 3499s # inherits the docstring from interfaces.Dialect.connect 3499s > return self.dbapi.connect(*cargs, **cparams) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s dsn = 'host=localhost user=postgres password=postgres port=5432 dbname=pandas' 3499s connection_factory = None, cursor_factory = None 3499s kwargs = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3499s kwasync = {} 3499s 3499s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 3499s """ 3499s Create a new database connection. 3499s 3499s The connection parameters can be specified as a string: 3499s 3499s conn = psycopg2.connect("dbname=test user=postgres password=secret") 3499s 3499s or using a set of keyword arguments: 3499s 3499s conn = psycopg2.connect(database="test", user="postgres", password="secret") 3499s 3499s Or as a mix of both. The basic connection parameters are: 3499s 3499s - *dbname*: the database name 3499s - *database*: the database name (only as keyword argument) 3499s - *user*: user name used to authenticate 3499s - *password*: password used to authenticate 3499s - *host*: database host address (defaults to UNIX socket if not provided) 3499s - *port*: connection port number (defaults to 5432 if not provided) 3499s 3499s Using the *connection_factory* parameter a different class or connections 3499s factory can be specified. It should be a callable object taking a dsn 3499s argument. 3499s 3499s Using the *cursor_factory* parameter, a new default cursor factory will be 3499s used by cursor(). 3499s 3499s Using *async*=True an asynchronous connection will be created. *async_* is 3499s a valid alias (for Python versions where ``async`` is a keyword). 3499s 3499s Any other keyword parameter will be passed to the underlying client 3499s library: the list of supported parameters depends on the library version. 3499s 3499s """ 3499s kwasync = {} 3499s if 'async' in kwargs: 3499s kwasync['async'] = kwargs.pop('async') 3499s if 'async_' in kwargs: 3499s kwasync['async_'] = kwargs.pop('async_') 3499s 3499s dsn = _ext.make_dsn(dsn, **kwargs) 3499s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 3499s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 3499s E Is the server running on that host and accepting TCP/IP connections? 3499s 3499s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 3499s 3499s The above exception was the direct cause of the following exception: 3499s 3499s conn = 'postgresql_psycopg2_conn', method = 'multi' 3499s test_frame1 = index A B C D 3499s 0 2000-01-03 00:00:00 0.980269 3.685731 -0.364217 -1...0-01-05 00:00:00 0.498581 0.731168 -0.537677 1.346270 3499s 3 2000-01-06 00:00:00 1.120202 1.567621 0.003641 0.675253 3499s request = > 3499s 3499s @pytest.mark.db 3499s @pytest.mark.parametrize("conn", all_connectable) 3499s @pytest.mark.parametrize("method", [None, "multi"]) 3499s def test_to_sql(conn, method, test_frame1, request): 3499s > conn = request.getfixturevalue(conn) 3499s 3499s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:595: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = > 3499s argname = 'postgresql_psycopg2_conn' 3499s 3499s def getfixturevalue(self, argname: str) -> Any: 3499s """Dynamically run a named fixture function. 3499s 3499s Declaring fixtures via function argument is recommended where possible. 3499s But if you can only decide whether to use another fixture at test 3499s setup time, you may use this function to retrieve it inside a fixture 3499s or test function body. 3499s 3499s This method can be used during the test setup phase or the test run 3499s phase, but during the test teardown phase a fixture's value may not 3499s be available. 3499s 3499s :param argname: 3499s The fixture name. 3499s :raises pytest.FixtureLookupError: 3499s If the given fixture could not be found. 3499s """ 3499s > fixturedef = self._get_active_fixturedef(argname) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:585: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = > 3499s argname = 'postgresql_psycopg2_conn' 3499s 3499s def _get_active_fixturedef( 3499s self, argname: str 3499s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3499s try: 3499s return self._fixture_defs[argname] 3499s except KeyError: 3499s try: 3499s fixturedef = self._getnextfixturedef(argname) 3499s except FixtureLookupError: 3499s if argname == "request": 3499s cached_result = (self, [0], None) 3499s return PseudoFixtureDef(cached_result, Scope.Function) 3499s raise 3499s # Remove indent to prevent the python3 exception 3499s # from leaking into the call. 3499s > self._compute_fixture_value(fixturedef) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = > 3499s fixturedef = 3499s 3499s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3499s """Create a SubRequest based on "self" and call the execute method 3499s of the given FixtureDef object. 3499s 3499s This will force the FixtureDef object to throw away any previous 3499s results and compute a new fixture value, which will be stored into 3499s the FixtureDef object itself. 3499s """ 3499s # prepare a subrequest object before calling fixture function 3499s # (latter managed by fixturedef) 3499s argname = fixturedef.argname 3499s funcitem = self._pyfuncitem 3499s scope = fixturedef._scope 3499s try: 3499s callspec = funcitem.callspec 3499s except AttributeError: 3499s callspec = None 3499s if callspec is not None and argname in callspec.params: 3499s param = callspec.params[argname] 3499s param_index = callspec.indices[argname] 3499s # If a parametrize invocation set a scope it will override 3499s # the static scope defined with the fixture function. 3499s with suppress(KeyError): 3499s scope = callspec._arg2scope[argname] 3499s else: 3499s param = NOTSET 3499s param_index = 0 3499s has_params = fixturedef.params is not None 3499s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3499s if has_params and fixtures_not_supported: 3499s msg = ( 3499s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3499s "Node id: {nodeid}\n" 3499s "Function type: {typename}" 3499s ).format( 3499s name=funcitem.name, 3499s nodeid=funcitem.nodeid, 3499s typename=type(funcitem).__name__, 3499s ) 3499s fail(msg, pytrace=False) 3499s if has_params: 3499s frame = inspect.stack()[3] 3499s frameinfo = inspect.getframeinfo(frame[0]) 3499s source_path = absolutepath(frameinfo.filename) 3499s source_lineno = frameinfo.lineno 3499s try: 3499s source_path_str = str( 3499s source_path.relative_to(funcitem.config.rootpath) 3499s ) 3499s except ValueError: 3499s source_path_str = str(source_path) 3499s msg = ( 3499s "The requested fixture has no parameter defined for test:\n" 3499s " {}\n\n" 3499s "Requested fixture '{}' defined in:\n{}" 3499s "\n\nRequested here:\n{}:{}".format( 3499s funcitem.nodeid, 3499s fixturedef.argname, 3499s getlocation(fixturedef.func, funcitem.config.rootpath), 3499s source_path_str, 3499s source_lineno, 3499s ) 3499s ) 3499s fail(msg, pytrace=False) 3499s 3499s subrequest = SubRequest( 3499s self, scope, param, param_index, fixturedef, _ispytest=True 3499s ) 3499s 3499s # Check if a higher-level scoped fixture accesses a lower level one. 3499s subrequest._check_scope(argname, self._scope, scope) 3499s try: 3499s # Call the fixture function. 3499s > fixturedef.execute(request=subrequest) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s request = > 3499s 3499s def execute(self, request: SubRequest) -> FixtureValue: 3499s # Get required arguments and register our own finish() 3499s # with their finalization. 3499s for argname in self.argnames: 3499s > fixturedef = request._get_active_fixturedef(argname) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1045: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = > 3499s argname = 'postgresql_psycopg2_engine' 3499s 3499s def _get_active_fixturedef( 3499s self, argname: str 3499s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3499s try: 3499s return self._fixture_defs[argname] 3499s except KeyError: 3499s try: 3499s fixturedef = self._getnextfixturedef(argname) 3499s except FixtureLookupError: 3499s if argname == "request": 3499s cached_result = (self, [0], None) 3499s return PseudoFixtureDef(cached_result, Scope.Function) 3499s raise 3499s # Remove indent to prevent the python3 exception 3499s # from leaking into the call. 3499s > self._compute_fixture_value(fixturedef) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = > 3499s fixturedef = 3499s 3499s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3499s """Create a SubRequest based on "self" and call the execute method 3499s of the given FixtureDef object. 3499s 3499s This will force the FixtureDef object to throw away any previous 3499s results and compute a new fixture value, which will be stored into 3499s the FixtureDef object itself. 3499s """ 3499s # prepare a subrequest object before calling fixture function 3499s # (latter managed by fixturedef) 3499s argname = fixturedef.argname 3499s funcitem = self._pyfuncitem 3499s scope = fixturedef._scope 3499s try: 3499s callspec = funcitem.callspec 3499s except AttributeError: 3499s callspec = None 3499s if callspec is not None and argname in callspec.params: 3499s param = callspec.params[argname] 3499s param_index = callspec.indices[argname] 3499s # If a parametrize invocation set a scope it will override 3499s # the static scope defined with the fixture function. 3499s with suppress(KeyError): 3499s scope = callspec._arg2scope[argname] 3499s else: 3499s param = NOTSET 3499s param_index = 0 3499s has_params = fixturedef.params is not None 3499s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3499s if has_params and fixtures_not_supported: 3499s msg = ( 3499s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3499s "Node id: {nodeid}\n" 3499s "Function type: {typename}" 3499s ).format( 3499s name=funcitem.name, 3499s nodeid=funcitem.nodeid, 3499s typename=type(funcitem).__name__, 3499s ) 3499s fail(msg, pytrace=False) 3499s if has_params: 3499s frame = inspect.stack()[3] 3499s frameinfo = inspect.getframeinfo(frame[0]) 3499s source_path = absolutepath(frameinfo.filename) 3499s source_lineno = frameinfo.lineno 3499s try: 3499s source_path_str = str( 3499s source_path.relative_to(funcitem.config.rootpath) 3499s ) 3499s except ValueError: 3499s source_path_str = str(source_path) 3499s msg = ( 3499s "The requested fixture has no parameter defined for test:\n" 3499s " {}\n\n" 3499s "Requested fixture '{}' defined in:\n{}" 3499s "\n\nRequested here:\n{}:{}".format( 3499s funcitem.nodeid, 3499s fixturedef.argname, 3499s getlocation(fixturedef.func, funcitem.config.rootpath), 3499s source_path_str, 3499s source_lineno, 3499s ) 3499s ) 3499s fail(msg, pytrace=False) 3499s 3499s subrequest = SubRequest( 3499s self, scope, param, param_index, fixturedef, _ispytest=True 3499s ) 3499s 3499s # Check if a higher-level scoped fixture accesses a lower level one. 3499s subrequest._check_scope(argname, self._scope, scope) 3499s try: 3499s # Call the fixture function. 3499s > fixturedef.execute(request=subrequest) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s request = > 3499s 3499s def execute(self, request: SubRequest) -> FixtureValue: 3499s # Get required arguments and register our own finish() 3499s # with their finalization. 3499s for argname in self.argnames: 3499s fixturedef = request._get_active_fixturedef(argname) 3499s if argname != "request": 3499s # PseudoFixtureDef is only for "request". 3499s assert isinstance(fixturedef, FixtureDef) 3499s fixturedef.addfinalizer(functools.partial(self.finish, request=request)) 3499s 3499s my_cache_key = self.cache_key(request) 3499s if self.cached_result is not None: 3499s # note: comparison with `==` can fail (or be expensive) for e.g. 3499s # numpy arrays (#6497). 3499s cache_key = self.cached_result[1] 3499s if my_cache_key is cache_key: 3499s if self.cached_result[2] is not None: 3499s _, val, tb = self.cached_result[2] 3499s raise val.with_traceback(tb) 3499s else: 3499s result = self.cached_result[0] 3499s return result 3499s # We have a previous but differently parametrized fixture instance 3499s # so we need to tear it down before creating a new one. 3499s self.finish(request) 3499s assert self.cached_result is None 3499s 3499s ihook = request.node.ihook 3499s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1069: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s kwargs = {'fixturedef': , 'request': >} 3499s firstresult = True 3499s 3499s def __call__(self, **kwargs: object) -> Any: 3499s """Call the hook. 3499s 3499s Only accepts keyword arguments, which should match the hook 3499s specification. 3499s 3499s Returns the result(s) of calling all registered plugins, see 3499s :ref:`calling`. 3499s """ 3499s assert ( 3499s not self.is_historic() 3499s ), "Cannot directly call a historic hook - use call_historic instead." 3499s self._verify_all_args_are_provided(kwargs) 3499s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 3499s # Copy because plugins may register other plugins during iteration (#438). 3499s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 3499s 3499s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = <_pytest.config.PytestPluginManager object at 0xe9079168> 3499s hook_name = 'pytest_fixture_setup' 3499s methods = [>] 3499s kwargs = {'fixturedef': , 'request': >} 3499s firstresult = True 3499s 3499s def _hookexec( 3499s self, 3499s hook_name: str, 3499s methods: Sequence[HookImpl], 3499s kwargs: Mapping[str, object], 3499s firstresult: bool, 3499s ) -> object | list[object]: 3499s # called from all hookcaller instances. 3499s # enable_tracing will set its own wrapping function at self._inner_hookexec 3499s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 3499s 3499s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s fixturedef = 3499s request = > 3499s 3499s def pytest_fixture_setup( 3499s fixturedef: FixtureDef[FixtureValue], request: SubRequest 3499s ) -> FixtureValue: 3499s """Execution of fixture setup.""" 3499s kwargs = {} 3499s for argname in fixturedef.argnames: 3499s fixdef = request._get_active_fixturedef(argname) 3499s assert fixdef.cached_result is not None 3499s result, arg_cache_key, exc = fixdef.cached_result 3499s request._check_scope(argname, request._scope, fixdef._scope) 3499s kwargs[argname] = result 3499s 3499s fixturefunc = resolve_fixture_function(fixturedef, request) 3499s my_cache_key = fixturedef.cache_key(request) 3499s try: 3499s > result = call_fixture_func(fixturefunc, request, kwargs) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1123: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s fixturefunc = 3499s request = > 3499s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv'), 'types_data': [{'B... False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}]} 3499s 3499s def call_fixture_func( 3499s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 3499s ) -> FixtureValue: 3499s if is_generator(fixturefunc): 3499s fixturefunc = cast( 3499s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 3499s ) 3499s generator = fixturefunc(**kwargs) 3499s try: 3499s > fixture_result = next(generator) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:895: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s iris_path = PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv') 3499s types_data = [{'BoolCol': False, 'BoolColWithNull': False, 'DateCol': '2000-01-03 00:00:00', 'DateColWithTz': '2000-01-01 00:00:00-...: False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}] 3499s 3499s @pytest.fixture 3499s def postgresql_psycopg2_engine(iris_path, types_data): 3499s sqlalchemy = pytest.importorskip("sqlalchemy") 3499s pytest.importorskip("psycopg2") 3499s engine = sqlalchemy.create_engine( 3499s "postgresql+psycopg2://postgres:postgres@localhost:5432/pandas", 3499s poolclass=sqlalchemy.pool.NullPool, 3499s ) 3499s > insp = sqlalchemy.inspect(engine) 3499s 3499s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:438: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s subject = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3499s raiseerr = True 3499s 3499s def inspect(subject, raiseerr=True): 3499s """Produce an inspection object for the given target. 3499s 3499s The returned value in some cases may be the 3499s same object as the one given, such as if a 3499s :class:`_orm.Mapper` object is passed. In other 3499s cases, it will be an instance of the registered 3499s inspection type for the given object, such as 3499s if an :class:`_engine.Engine` is passed, an 3499s :class:`_reflection.Inspector` object is returned. 3499s 3499s :param subject: the subject to be inspected. 3499s :param raiseerr: When ``True``, if the given subject 3499s does not 3499s correspond to a known SQLAlchemy inspected type, 3499s :class:`sqlalchemy.exc.NoInspectionAvailable` 3499s is raised. If ``False``, ``None`` is returned. 3499s 3499s """ 3499s type_ = type(subject) 3499s for cls in type_.__mro__: 3499s if cls in _registrars: 3499s reg = _registrars[cls] 3499s if reg is True: 3499s return subject 3499s > ret = reg(subject) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:64: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3499s 3499s @inspection._inspects(Engine) 3499s def _engine_insp(bind): 3499s > return Inspector._construct(Inspector._init_engine, bind) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:182: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s init = 3499s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3499s 3499s @classmethod 3499s def _construct(cls, init, bind): 3499s 3499s if hasattr(bind.dialect, "inspector"): 3499s cls = bind.dialect.inspector 3499s 3499s self = cls.__new__(cls) 3499s > init(self, bind) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:117: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3499s 3499s def _init_engine(self, engine): 3499s self.bind = self.engine = engine 3499s > engine.connect().close() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:128: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3499s close_with_result = False 3499s 3499s def connect(self, close_with_result=False): 3499s """Return a new :class:`_engine.Connection` object. 3499s 3499s The :class:`_engine.Connection` object is a facade that uses a DBAPI 3499s connection internally in order to communicate with the database. This 3499s connection is procured from the connection-holding :class:`_pool.Pool` 3499s referenced by this :class:`_engine.Engine`. When the 3499s :meth:`_engine.Connection.close` method of the 3499s :class:`_engine.Connection` object 3499s is called, the underlying DBAPI connection is then returned to the 3499s connection pool, where it may be used again in a subsequent call to 3499s :meth:`_engine.Engine.connect`. 3499s 3499s """ 3499s 3499s > return self._connection_cls(self, close_with_result=close_with_result) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3325: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3499s connection = None, close_with_result = False, _branch_from = None 3499s _execution_options = None, _dispatch = None, _has_events = None 3499s _allow_revalidate = True 3499s 3499s def __init__( 3499s self, 3499s engine, 3499s connection=None, 3499s close_with_result=False, 3499s _branch_from=None, 3499s _execution_options=None, 3499s _dispatch=None, 3499s _has_events=None, 3499s _allow_revalidate=True, 3499s ): 3499s """Construct a new Connection.""" 3499s self.engine = engine 3499s self.dialect = engine.dialect 3499s self.__branch_from = _branch_from 3499s 3499s if _branch_from: 3499s # branching is always "from" the root connection 3499s assert _branch_from.__branch_from is None 3499s self._dbapi_connection = connection 3499s self._execution_options = _execution_options 3499s self._echo = _branch_from._echo 3499s self.should_close_with_result = False 3499s self.dispatch = _dispatch 3499s self._has_events = _branch_from._has_events 3499s else: 3499s self._dbapi_connection = ( 3499s connection 3499s if connection is not None 3499s > else engine.raw_connection() 3499s ) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:96: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3499s _connection = None 3499s 3499s def raw_connection(self, _connection=None): 3499s """Return a "raw" DBAPI connection from the connection pool. 3499s 3499s The returned object is a proxied version of the DBAPI 3499s connection object used by the underlying driver in use. 3499s The object will have all the same behavior as the real DBAPI 3499s connection, except that its ``close()`` method will result in the 3499s connection being returned to the pool, rather than being closed 3499s for real. 3499s 3499s This method provides direct DBAPI connection access for 3499s special situations when the API provided by 3499s :class:`_engine.Connection` 3499s is not needed. When a :class:`_engine.Connection` object is already 3499s present, the DBAPI connection is available using 3499s the :attr:`_engine.Connection.connection` accessor. 3499s 3499s .. seealso:: 3499s 3499s :ref:`dbapi_connections` 3499s 3499s """ 3499s > return self._wrap_pool_connect(self.pool.connect, _connection) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3404: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3499s fn = > 3499s connection = None 3499s 3499s def _wrap_pool_connect(self, fn, connection): 3499s dialect = self.dialect 3499s try: 3499s return fn() 3499s except dialect.dbapi.Error as e: 3499s if connection is None: 3499s > Connection._handle_dbapi_exception_noconnection( 3499s e, dialect, self 3499s ) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3374: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s e = OperationalError('connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused\n\tIs the server running on that host and accepting TCP/IP connections?\n') 3499s dialect = 3499s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3499s 3499s @classmethod 3499s def _handle_dbapi_exception_noconnection(cls, e, dialect, engine): 3499s exc_info = sys.exc_info() 3499s 3499s is_disconnect = dialect.is_disconnect(e, None, None) 3499s 3499s should_wrap = isinstance(e, dialect.dbapi.Error) 3499s 3499s if should_wrap: 3499s sqlalchemy_exception = exc.DBAPIError.instance( 3499s None, 3499s None, 3499s e, 3499s dialect.dbapi.Error, 3499s hide_parameters=engine.hide_parameters, 3499s connection_invalidated=is_disconnect, 3499s ) 3499s else: 3499s sqlalchemy_exception = None 3499s 3499s newraise = None 3499s 3499s if engine._has_events: 3499s ctx = ExceptionContextImpl( 3499s e, 3499s sqlalchemy_exception, 3499s engine, 3499s None, 3499s None, 3499s None, 3499s None, 3499s None, 3499s is_disconnect, 3499s True, 3499s ) 3499s for fn in engine.dispatch.handle_error: 3499s try: 3499s # handler returns an exception; 3499s # call next handler in a chain 3499s per_fn = fn(ctx) 3499s if per_fn is not None: 3499s ctx.chained_exception = newraise = per_fn 3499s except Exception as _raised: 3499s # handler raises an exception - stop processing 3499s newraise = _raised 3499s break 3499s 3499s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 3499s sqlalchemy_exception.connection_invalidated = ( 3499s is_disconnect 3499s ) = ctx.is_disconnect 3499s 3499s if newraise: 3499s util.raise_(newraise, with_traceback=exc_info[2], from_=e) 3499s elif should_wrap: 3499s > util.raise_( 3499s sqlalchemy_exception, with_traceback=exc_info[2], from_=e 3499s ) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2208: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s def raise_( 3499s exception, with_traceback=None, replace_context=None, from_=False 3499s ): 3499s r"""implement "raise" with cause support. 3499s 3499s :param exception: exception to raise 3499s :param with_traceback: will call exception.with_traceback() 3499s :param replace_context: an as-yet-unsupported feature. This is 3499s an exception object which we are "replacing", e.g., it's our 3499s "cause" but we don't want it printed. Basically just what 3499s ``__suppress_context__`` does but we don't want to suppress 3499s the enclosing context, if any. So for now we make it the 3499s cause. 3499s :param from\_: the cause. this actually sets the cause and doesn't 3499s hope to hide it someday. 3499s 3499s """ 3499s if with_traceback is not None: 3499s exception = exception.with_traceback(with_traceback) 3499s 3499s if from_ is not False: 3499s exception.__cause__ = from_ 3499s elif replace_context is not None: 3499s # no good solution here, we would like to have the exception 3499s # have only the context of replace_context.__context__ so that the 3499s # intermediary exception does not change, but we can't figure 3499s # that out. 3499s exception.__cause__ = replace_context 3499s 3499s try: 3499s > raise exception 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3499s fn = > 3499s connection = None 3499s 3499s def _wrap_pool_connect(self, fn, connection): 3499s dialect = self.dialect 3499s try: 3499s > return fn() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def connect(self): 3499s """Return a DBAPI connection from the pool. 3499s 3499s The connection is instrumented such that when its 3499s ``close()`` method is called, the connection will be returned to 3499s the pool. 3499s 3499s """ 3499s > return _ConnectionFairy._checkout(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s pool = , threadconns = None 3499s fairy = None 3499s 3499s @classmethod 3499s def _checkout(cls, pool, threadconns=None, fairy=None): 3499s if not fairy: 3499s > fairy = _ConnectionRecord.checkout(pool) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s pool = 3499s 3499s @classmethod 3499s def checkout(cls, pool): 3499s > rec = pool._do_get() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def _do_get(self): 3499s > return self._create_connection() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def _create_connection(self): 3499s """Called by subclasses to create a new ConnectionRecord.""" 3499s 3499s > return _ConnectionRecord(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s pool = , connect = True 3499s 3499s def __init__(self, pool, connect=True): 3499s self.__pool = pool 3499s if connect: 3499s > self.__connect() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def __connect(self): 3499s pool = self.__pool 3499s 3499s # ensure any existing connection is removed, so that if 3499s # creator fails, this attribute stays None 3499s self.dbapi_connection = None 3499s try: 3499s self.starttime = time.time() 3499s self.dbapi_connection = connection = pool._invoke_creator(self) 3499s pool.logger.debug("Created new connection %r", connection) 3499s self.fresh = True 3499s except BaseException as e: 3499s > with util.safe_reraise(): 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s type_ = None, value = None, traceback = None 3499s 3499s def __exit__(self, type_, value, traceback): 3499s # see #2703 for notes 3499s if type_ is None: 3499s exc_type, exc_value, exc_tb = self._exc_info 3499s self._exc_info = None # remove potential circular references 3499s if not self.warn_only: 3499s > compat.raise_( 3499s exc_value, 3499s with_traceback=exc_tb, 3499s ) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s def raise_( 3499s exception, with_traceback=None, replace_context=None, from_=False 3499s ): 3499s r"""implement "raise" with cause support. 3499s 3499s :param exception: exception to raise 3499s :param with_traceback: will call exception.with_traceback() 3499s :param replace_context: an as-yet-unsupported feature. This is 3499s an exception object which we are "replacing", e.g., it's our 3499s "cause" but we don't want it printed. Basically just what 3499s ``__suppress_context__`` does but we don't want to suppress 3499s the enclosing context, if any. So for now we make it the 3499s cause. 3499s :param from\_: the cause. this actually sets the cause and doesn't 3499s hope to hide it someday. 3499s 3499s """ 3499s if with_traceback is not None: 3499s exception = exception.with_traceback(with_traceback) 3499s 3499s if from_ is not False: 3499s exception.__cause__ = from_ 3499s elif replace_context is not None: 3499s # no good solution here, we would like to have the exception 3499s # have only the context of replace_context.__context__ so that the 3499s # intermediary exception does not change, but we can't figure 3499s # that out. 3499s exception.__cause__ = replace_context 3499s 3499s try: 3499s > raise exception 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def __connect(self): 3499s pool = self.__pool 3499s 3499s # ensure any existing connection is removed, so that if 3499s # creator fails, this attribute stays None 3499s self.dbapi_connection = None 3499s try: 3499s self.starttime = time.time() 3499s > self.dbapi_connection = connection = pool._invoke_creator(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s connection_record = 3499s 3499s def connect(connection_record=None): 3499s if dialect._has_events: 3499s for fn in dialect.dispatch.do_connect: 3499s connection = fn(dialect, connection_record, cargs, cparams) 3499s if connection is not None: 3499s return connection 3499s > return dialect.connect(*cargs, **cparams) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s cargs = () 3499s cparams = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3499s 3499s def connect(self, *cargs, **cparams): 3499s # inherits the docstring from interfaces.Dialect.connect 3499s > return self.dbapi.connect(*cargs, **cparams) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s dsn = 'host=localhost user=postgres password=postgres port=5432 dbname=pandas' 3499s connection_factory = None, cursor_factory = None 3499s kwargs = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3499s kwasync = {} 3499s 3499s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 3499s """ 3499s Create a new database connection. 3499s 3499s The connection parameters can be specified as a string: 3499s 3499s conn = psycopg2.connect("dbname=test user=postgres password=secret") 3499s 3499s or using a set of keyword arguments: 3499s 3499s conn = psycopg2.connect(database="test", user="postgres", password="secret") 3499s 3499s Or as a mix of both. The basic connection parameters are: 3499s 3499s - *dbname*: the database name 3499s - *database*: the database name (only as keyword argument) 3499s - *user*: user name used to authenticate 3499s - *password*: password used to authenticate 3499s - *host*: database host address (defaults to UNIX socket if not provided) 3499s - *port*: connection port number (defaults to 5432 if not provided) 3499s 3499s Using the *connection_factory* parameter a different class or connections 3499s factory can be specified. It should be a callable object taking a dsn 3499s argument. 3499s 3499s Using the *cursor_factory* parameter, a new default cursor factory will be 3499s used by cursor(). 3499s 3499s Using *async*=True an asynchronous connection will be created. *async_* is 3499s a valid alias (for Python versions where ``async`` is a keyword). 3499s 3499s Any other keyword parameter will be passed to the underlying client 3499s library: the list of supported parameters depends on the library version. 3499s 3499s """ 3499s kwasync = {} 3499s if 'async' in kwargs: 3499s kwasync['async'] = kwargs.pop('async') 3499s if 'async_' in kwargs: 3499s kwasync['async_'] = kwargs.pop('async_') 3499s 3499s dsn = _ext.make_dsn(dsn, **kwargs) 3499s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 3499s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 3499s E Is the server running on that host and accepting TCP/IP connections? 3499s E 3499s E (Background on this error at: https://sqlalche.me/e/14/e3q8) 3499s 3499s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 3499s ______________ test_to_sql_exist[replace-1-mysql_pymysql_engine] _______________ 3499s self = , sock = None 3499s 3499s def connect(self, sock=None): 3499s self._closed = False 3499s try: 3499s if sock is None: 3499s if self.unix_socket: 3499s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3499s sock.settimeout(self.connect_timeout) 3499s sock.connect(self.unix_socket) 3499s self.host_info = "Localhost via UNIX socket" 3499s self._secure = True 3499s if DEBUG: 3499s print("connected using unix_socket") 3499s else: 3499s kwargs = {} 3499s if self.bind_address is not None: 3499s kwargs["source_address"] = (self.bind_address, 0) 3499s while True: 3499s try: 3499s > sock = socket.create_connection( 3499s (self.host, self.port), self.connect_timeout, **kwargs 3499s ) 3499s 3499s /usr/lib/python3/dist-packages/pymysql/connections.py:649: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s address = ('localhost', 3306), timeout = 10, source_address = None 3499s 3499s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 3499s source_address=None, *, all_errors=False): 3499s """Connect to *address* and return the socket object. 3499s 3499s Convenience function. Connect to *address* (a 2-tuple ``(host, 3499s port)``) and return the socket object. Passing the optional 3499s *timeout* parameter will set the timeout on the socket instance 3499s before attempting to connect. If no *timeout* is supplied, the 3499s global default timeout setting returned by :func:`getdefaulttimeout` 3499s is used. If *source_address* is set it must be a tuple of (host, port) 3499s for the socket to bind as a source address before making the connection. 3499s A host of '' or port 0 tells the OS to use the default. When a connection 3499s cannot be created, raises the last error if *all_errors* is False, 3499s and an ExceptionGroup of all errors if *all_errors* is True. 3499s """ 3499s 3499s host, port = address 3499s exceptions = [] 3499s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 3499s af, socktype, proto, canonname, sa = res 3499s sock = None 3499s try: 3499s sock = socket(af, socktype, proto) 3499s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 3499s sock.settimeout(timeout) 3499s if source_address: 3499s sock.bind(source_address) 3499s sock.connect(sa) 3499s # Break explicitly a reference cycle 3499s exceptions.clear() 3499s return sock 3499s 3499s except error as exc: 3499s if not all_errors: 3499s exceptions.clear() # raise only the last error 3499s exceptions.append(exc) 3499s if sock is not None: 3499s sock.close() 3499s 3499s if len(exceptions): 3499s try: 3499s if not all_errors: 3499s > raise exceptions[0] 3499s 3499s /usr/lib/python3.12/socket.py:853: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s address = ('localhost', 3306), timeout = 10, source_address = None 3499s 3499s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 3499s source_address=None, *, all_errors=False): 3499s """Connect to *address* and return the socket object. 3499s 3499s Convenience function. Connect to *address* (a 2-tuple ``(host, 3499s port)``) and return the socket object. Passing the optional 3499s *timeout* parameter will set the timeout on the socket instance 3499s before attempting to connect. If no *timeout* is supplied, the 3499s global default timeout setting returned by :func:`getdefaulttimeout` 3499s is used. If *source_address* is set it must be a tuple of (host, port) 3499s for the socket to bind as a source address before making the connection. 3499s A host of '' or port 0 tells the OS to use the default. When a connection 3499s cannot be created, raises the last error if *all_errors* is False, 3499s and an ExceptionGroup of all errors if *all_errors* is True. 3499s """ 3499s 3499s host, port = address 3499s exceptions = [] 3499s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 3499s af, socktype, proto, canonname, sa = res 3499s sock = None 3499s try: 3499s sock = socket(af, socktype, proto) 3499s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 3499s sock.settimeout(timeout) 3499s if source_address: 3499s sock.bind(source_address) 3499s > sock.connect(sa) 3499s E ConnectionRefusedError: [Errno 111] Connection refused 3499s 3499s /usr/lib/python3.12/socket.py:838: ConnectionRefusedError 3499s 3499s During handling of the above exception, another exception occurred: 3499s 3499s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3499s fn = > 3499s connection = None 3499s 3499s def _wrap_pool_connect(self, fn, connection): 3499s dialect = self.dialect 3499s try: 3499s > return fn() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def connect(self): 3499s """Return a DBAPI connection from the pool. 3499s 3499s The connection is instrumented such that when its 3499s ``close()`` method is called, the connection will be returned to 3499s the pool. 3499s 3499s """ 3499s > return _ConnectionFairy._checkout(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s pool = , threadconns = None 3499s fairy = None 3499s 3499s @classmethod 3499s def _checkout(cls, pool, threadconns=None, fairy=None): 3499s if not fairy: 3499s > fairy = _ConnectionRecord.checkout(pool) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s pool = 3499s 3499s @classmethod 3499s def checkout(cls, pool): 3499s > rec = pool._do_get() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def _do_get(self): 3499s > return self._create_connection() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def _create_connection(self): 3499s """Called by subclasses to create a new ConnectionRecord.""" 3499s 3499s > return _ConnectionRecord(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s pool = , connect = True 3499s 3499s def __init__(self, pool, connect=True): 3499s self.__pool = pool 3499s if connect: 3499s > self.__connect() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def __connect(self): 3499s pool = self.__pool 3499s 3499s # ensure any existing connection is removed, so that if 3499s # creator fails, this attribute stays None 3499s self.dbapi_connection = None 3499s try: 3499s self.starttime = time.time() 3499s self.dbapi_connection = connection = pool._invoke_creator(self) 3499s pool.logger.debug("Created new connection %r", connection) 3499s self.fresh = True 3499s except BaseException as e: 3499s > with util.safe_reraise(): 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s type_ = None, value = None, traceback = None 3499s 3499s def __exit__(self, type_, value, traceback): 3499s # see #2703 for notes 3499s if type_ is None: 3499s exc_type, exc_value, exc_tb = self._exc_info 3499s self._exc_info = None # remove potential circular references 3499s if not self.warn_only: 3499s > compat.raise_( 3499s exc_value, 3499s with_traceback=exc_tb, 3499s ) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s def raise_( 3499s exception, with_traceback=None, replace_context=None, from_=False 3499s ): 3499s r"""implement "raise" with cause support. 3499s 3499s :param exception: exception to raise 3499s :param with_traceback: will call exception.with_traceback() 3499s :param replace_context: an as-yet-unsupported feature. This is 3499s an exception object which we are "replacing", e.g., it's our 3499s "cause" but we don't want it printed. Basically just what 3499s ``__suppress_context__`` does but we don't want to suppress 3499s the enclosing context, if any. So for now we make it the 3499s cause. 3499s :param from\_: the cause. this actually sets the cause and doesn't 3499s hope to hide it someday. 3499s 3499s """ 3499s if with_traceback is not None: 3499s exception = exception.with_traceback(with_traceback) 3499s 3499s if from_ is not False: 3499s exception.__cause__ = from_ 3499s elif replace_context is not None: 3499s # no good solution here, we would like to have the exception 3499s # have only the context of replace_context.__context__ so that the 3499s # intermediary exception does not change, but we can't figure 3499s # that out. 3499s exception.__cause__ = replace_context 3499s 3499s try: 3499s > raise exception 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def __connect(self): 3499s pool = self.__pool 3499s 3499s # ensure any existing connection is removed, so that if 3499s # creator fails, this attribute stays None 3499s self.dbapi_connection = None 3499s try: 3499s self.starttime = time.time() 3499s > self.dbapi_connection = connection = pool._invoke_creator(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s connection_record = 3499s 3499s def connect(connection_record=None): 3499s if dialect._has_events: 3499s for fn in dialect.dispatch.do_connect: 3499s connection = fn(dialect, connection_record, cargs, cparams) 3499s if connection is not None: 3499s return connection 3499s > return dialect.connect(*cargs, **cparams) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s cargs = () 3499s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 3499s 3499s def connect(self, *cargs, **cparams): 3499s # inherits the docstring from interfaces.Dialect.connect 3499s > return self.dbapi.connect(*cargs, **cparams) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def __init__( 3499s self, 3499s *, 3499s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 3499s password="", 3499s host=None, 3499s database=None, 3499s unix_socket=None, 3499s port=0, 3499s charset="", 3499s collation=None, 3499s sql_mode=None, 3499s read_default_file=None, 3499s conv=None, 3499s use_unicode=True, 3499s client_flag=0, 3499s cursorclass=Cursor, 3499s init_command=None, 3499s connect_timeout=10, 3499s read_default_group=None, 3499s autocommit=False, 3499s local_infile=False, 3499s max_allowed_packet=16 * 1024 * 1024, 3499s defer_connect=False, 3499s auth_plugin_map=None, 3499s read_timeout=None, 3499s write_timeout=None, 3499s bind_address=None, 3499s binary_prefix=False, 3499s program_name=None, 3499s server_public_key=None, 3499s ssl=None, 3499s ssl_ca=None, 3499s ssl_cert=None, 3499s ssl_disabled=None, 3499s ssl_key=None, 3499s ssl_key_password=None, 3499s ssl_verify_cert=None, 3499s ssl_verify_identity=None, 3499s compress=None, # not supported 3499s named_pipe=None, # not supported 3499s passwd=None, # deprecated 3499s db=None, # deprecated 3499s ): 3499s if db is not None and database is None: 3499s # We will raise warning in 2022 or later. 3499s # See https://github.com/PyMySQL/PyMySQL/issues/939 3499s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 3499s database = db 3499s if passwd is not None and not password: 3499s # We will raise warning in 2022 or later. 3499s # See https://github.com/PyMySQL/PyMySQL/issues/939 3499s # warnings.warn( 3499s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 3499s # ) 3499s password = passwd 3499s 3499s if compress or named_pipe: 3499s raise NotImplementedError( 3499s "compress and named_pipe arguments are not supported" 3499s ) 3499s 3499s self._local_infile = bool(local_infile) 3499s if self._local_infile: 3499s client_flag |= CLIENT.LOCAL_FILES 3499s 3499s if read_default_group and not read_default_file: 3499s if sys.platform.startswith("win"): 3499s read_default_file = "c:\\my.ini" 3499s else: 3499s read_default_file = "/etc/my.cnf" 3499s 3499s if read_default_file: 3499s if not read_default_group: 3499s read_default_group = "client" 3499s 3499s cfg = Parser() 3499s cfg.read(os.path.expanduser(read_default_file)) 3499s 3499s def _config(key, arg): 3499s if arg: 3499s return arg 3499s try: 3499s return cfg.get(read_default_group, key) 3499s except Exception: 3499s return arg 3499s 3499s user = _config("user", user) 3499s password = _config("password", password) 3499s host = _config("host", host) 3499s database = _config("database", database) 3499s unix_socket = _config("socket", unix_socket) 3499s port = int(_config("port", port)) 3499s bind_address = _config("bind-address", bind_address) 3499s charset = _config("default-character-set", charset) 3499s if not ssl: 3499s ssl = {} 3499s if isinstance(ssl, dict): 3499s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 3499s value = _config("ssl-" + key, ssl.get(key)) 3499s if value: 3499s ssl[key] = value 3499s 3499s self.ssl = False 3499s if not ssl_disabled: 3499s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 3499s ssl = { 3499s "ca": ssl_ca, 3499s "check_hostname": bool(ssl_verify_identity), 3499s "verify_mode": ssl_verify_cert 3499s if ssl_verify_cert is not None 3499s else False, 3499s } 3499s if ssl_cert is not None: 3499s ssl["cert"] = ssl_cert 3499s if ssl_key is not None: 3499s ssl["key"] = ssl_key 3499s if ssl_key_password is not None: 3499s ssl["password"] = ssl_key_password 3499s if ssl: 3499s if not SSL_ENABLED: 3499s raise NotImplementedError("ssl module not found") 3499s self.ssl = True 3499s client_flag |= CLIENT.SSL 3499s self.ctx = self._create_ssl_ctx(ssl) 3499s 3499s self.host = host or "localhost" 3499s self.port = port or 3306 3499s if type(self.port) is not int: 3499s raise ValueError("port should be of type int") 3499s self.user = user or DEFAULT_USER 3499s self.password = password or b"" 3499s if isinstance(self.password, str): 3499s self.password = self.password.encode("latin1") 3499s self.db = database 3499s self.unix_socket = unix_socket 3499s self.bind_address = bind_address 3499s if not (0 < connect_timeout <= 31536000): 3499s raise ValueError("connect_timeout should be >0 and <=31536000") 3499s self.connect_timeout = connect_timeout or None 3499s if read_timeout is not None and read_timeout <= 0: 3499s raise ValueError("read_timeout should be > 0") 3499s self._read_timeout = read_timeout 3499s if write_timeout is not None and write_timeout <= 0: 3499s raise ValueError("write_timeout should be > 0") 3499s self._write_timeout = write_timeout 3499s 3499s self.charset = charset or DEFAULT_CHARSET 3499s self.collation = collation 3499s self.use_unicode = use_unicode 3499s 3499s self.encoding = charset_by_name(self.charset).encoding 3499s 3499s client_flag |= CLIENT.CAPABILITIES 3499s if self.db: 3499s client_flag |= CLIENT.CONNECT_WITH_DB 3499s 3499s self.client_flag = client_flag 3499s 3499s self.cursorclass = cursorclass 3499s 3499s self._result = None 3499s self._affected_rows = 0 3499s self.host_info = "Not connected" 3499s 3499s # specified autocommit mode. None means use server default. 3499s self.autocommit_mode = autocommit 3499s 3499s if conv is None: 3499s conv = converters.conversions 3499s 3499s # Need for MySQLdb compatibility. 3499s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 3499s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 3499s self.sql_mode = sql_mode 3499s self.init_command = init_command 3499s self.max_allowed_packet = max_allowed_packet 3499s self._auth_plugin_map = auth_plugin_map or {} 3499s self._binary_prefix = binary_prefix 3499s self.server_public_key = server_public_key 3499s 3499s self._connect_attrs = { 3499s "_client_name": "pymysql", 3499s "_client_version": VERSION_STRING, 3499s "_pid": str(os.getpid()), 3499s } 3499s 3499s if program_name: 3499s self._connect_attrs["program_name"] = program_name 3499s 3499s if defer_connect: 3499s self._sock = None 3499s else: 3499s > self.connect() 3499s 3499s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = , sock = None 3499s 3499s def connect(self, sock=None): 3499s self._closed = False 3499s try: 3499s if sock is None: 3499s if self.unix_socket: 3499s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3499s sock.settimeout(self.connect_timeout) 3499s sock.connect(self.unix_socket) 3499s self.host_info = "Localhost via UNIX socket" 3499s self._secure = True 3499s if DEBUG: 3499s print("connected using unix_socket") 3499s else: 3499s kwargs = {} 3499s if self.bind_address is not None: 3499s kwargs["source_address"] = (self.bind_address, 0) 3499s while True: 3499s try: 3499s sock = socket.create_connection( 3499s (self.host, self.port), self.connect_timeout, **kwargs 3499s ) 3499s break 3499s except OSError as e: 3499s if e.errno == errno.EINTR: 3499s continue 3499s raise 3499s self.host_info = "socket %s:%d" % (self.host, self.port) 3499s if DEBUG: 3499s print("connected using socket") 3499s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 3499s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 3499s sock.settimeout(None) 3499s 3499s self._sock = sock 3499s self._rfile = sock.makefile("rb") 3499s self._next_seq_id = 0 3499s 3499s self._get_server_information() 3499s self._request_authentication() 3499s 3499s # Send "SET NAMES" query on init for: 3499s # - Ensure charaset (and collation) is set to the server. 3499s # - collation_id in handshake packet may be ignored. 3499s # - If collation is not specified, we don't know what is server's 3499s # default collation for the charset. For example, default collation 3499s # of utf8mb4 is: 3499s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 3499s # - MySQL 8.0: utf8mb4_0900_ai_ci 3499s # 3499s # Reference: 3499s # - https://github.com/PyMySQL/PyMySQL/issues/1092 3499s # - https://github.com/wagtail/wagtail/issues/9477 3499s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 3499s self.set_character_set(self.charset, self.collation) 3499s 3499s if self.sql_mode is not None: 3499s c = self.cursor() 3499s c.execute("SET sql_mode=%s", (self.sql_mode,)) 3499s c.close() 3499s 3499s if self.init_command is not None: 3499s c = self.cursor() 3499s c.execute(self.init_command) 3499s c.close() 3499s 3499s if self.autocommit_mode is not None: 3499s self.autocommit(self.autocommit_mode) 3499s except BaseException as e: 3499s self._rfile = None 3499s if sock is not None: 3499s try: 3499s sock.close() 3499s except: # noqa 3499s pass 3499s 3499s if isinstance(e, (OSError, IOError)): 3499s exc = err.OperationalError( 3499s CR.CR_CONN_HOST_ERROR, 3499s f"Can't connect to MySQL server on {self.host!r} ({e})", 3499s ) 3499s # Keep original exception and traceback to investigate error. 3499s exc.original_exception = e 3499s exc.traceback = traceback.format_exc() 3499s if DEBUG: 3499s print(exc.traceback) 3499s > raise exc 3499s E pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3499s 3499s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 3499s 3499s The above exception was the direct cause of the following exception: 3499s 3499s conn = 'mysql_pymysql_engine', mode = 'replace', num_row_coef = 1 3499s test_frame1 = index A B C D 3499s 0 2000-01-03 00:00:00 0.980269 3.685731 -0.364217 -1...0-01-05 00:00:00 0.498581 0.731168 -0.537677 1.346270 3499s 3 2000-01-06 00:00:00 1.120202 1.567621 0.003641 0.675253 3499s request = > 3499s 3499s @pytest.mark.db 3499s @pytest.mark.parametrize("conn", all_connectable) 3499s @pytest.mark.parametrize("mode, num_row_coef", [("replace", 1), ("append", 2)]) 3499s def test_to_sql_exist(conn, mode, num_row_coef, test_frame1, request): 3499s > conn = request.getfixturevalue(conn) 3499s 3499s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:606: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = > 3499s argname = 'mysql_pymysql_engine' 3499s 3499s def getfixturevalue(self, argname: str) -> Any: 3499s """Dynamically run a named fixture function. 3499s 3499s Declaring fixtures via function argument is recommended where possible. 3499s But if you can only decide whether to use another fixture at test 3499s setup time, you may use this function to retrieve it inside a fixture 3499s or test function body. 3499s 3499s This method can be used during the test setup phase or the test run 3499s phase, but during the test teardown phase a fixture's value may not 3499s be available. 3499s 3499s :param argname: 3499s The fixture name. 3499s :raises pytest.FixtureLookupError: 3499s If the given fixture could not be found. 3499s """ 3499s > fixturedef = self._get_active_fixturedef(argname) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:585: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = > 3499s argname = 'mysql_pymysql_engine' 3499s 3499s def _get_active_fixturedef( 3499s self, argname: str 3499s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3499s try: 3499s return self._fixture_defs[argname] 3499s except KeyError: 3499s try: 3499s fixturedef = self._getnextfixturedef(argname) 3499s except FixtureLookupError: 3499s if argname == "request": 3499s cached_result = (self, [0], None) 3499s return PseudoFixtureDef(cached_result, Scope.Function) 3499s raise 3499s # Remove indent to prevent the python3 exception 3499s # from leaking into the call. 3499s > self._compute_fixture_value(fixturedef) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = > 3499s fixturedef = 3499s 3499s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3499s """Create a SubRequest based on "self" and call the execute method 3499s of the given FixtureDef object. 3499s 3499s This will force the FixtureDef object to throw away any previous 3499s results and compute a new fixture value, which will be stored into 3499s the FixtureDef object itself. 3499s """ 3499s # prepare a subrequest object before calling fixture function 3499s # (latter managed by fixturedef) 3499s argname = fixturedef.argname 3499s funcitem = self._pyfuncitem 3499s scope = fixturedef._scope 3499s try: 3499s callspec = funcitem.callspec 3499s except AttributeError: 3499s callspec = None 3499s if callspec is not None and argname in callspec.params: 3499s param = callspec.params[argname] 3499s param_index = callspec.indices[argname] 3499s # If a parametrize invocation set a scope it will override 3499s # the static scope defined with the fixture function. 3499s with suppress(KeyError): 3499s scope = callspec._arg2scope[argname] 3499s else: 3499s param = NOTSET 3499s param_index = 0 3499s has_params = fixturedef.params is not None 3499s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3499s if has_params and fixtures_not_supported: 3499s msg = ( 3499s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3499s "Node id: {nodeid}\n" 3499s "Function type: {typename}" 3499s ).format( 3499s name=funcitem.name, 3499s nodeid=funcitem.nodeid, 3499s typename=type(funcitem).__name__, 3499s ) 3499s fail(msg, pytrace=False) 3499s if has_params: 3499s frame = inspect.stack()[3] 3499s frameinfo = inspect.getframeinfo(frame[0]) 3499s source_path = absolutepath(frameinfo.filename) 3499s source_lineno = frameinfo.lineno 3499s try: 3499s source_path_str = str( 3499s source_path.relative_to(funcitem.config.rootpath) 3499s ) 3499s except ValueError: 3499s source_path_str = str(source_path) 3499s msg = ( 3499s "The requested fixture has no parameter defined for test:\n" 3499s " {}\n\n" 3499s "Requested fixture '{}' defined in:\n{}" 3499s "\n\nRequested here:\n{}:{}".format( 3499s funcitem.nodeid, 3499s fixturedef.argname, 3499s getlocation(fixturedef.func, funcitem.config.rootpath), 3499s source_path_str, 3499s source_lineno, 3499s ) 3499s ) 3499s fail(msg, pytrace=False) 3499s 3499s subrequest = SubRequest( 3499s self, scope, param, param_index, fixturedef, _ispytest=True 3499s ) 3499s 3499s # Check if a higher-level scoped fixture accesses a lower level one. 3499s subrequest._check_scope(argname, self._scope, scope) 3499s try: 3499s # Call the fixture function. 3499s > fixturedef.execute(request=subrequest) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s request = > 3499s 3499s def execute(self, request: SubRequest) -> FixtureValue: 3499s # Get required arguments and register our own finish() 3499s # with their finalization. 3499s for argname in self.argnames: 3499s fixturedef = request._get_active_fixturedef(argname) 3499s if argname != "request": 3499s # PseudoFixtureDef is only for "request". 3499s assert isinstance(fixturedef, FixtureDef) 3499s fixturedef.addfinalizer(functools.partial(self.finish, request=request)) 3499s 3499s my_cache_key = self.cache_key(request) 3499s if self.cached_result is not None: 3499s # note: comparison with `==` can fail (or be expensive) for e.g. 3499s # numpy arrays (#6497). 3499s cache_key = self.cached_result[1] 3499s if my_cache_key is cache_key: 3499s if self.cached_result[2] is not None: 3499s _, val, tb = self.cached_result[2] 3499s raise val.with_traceback(tb) 3499s else: 3499s result = self.cached_result[0] 3499s return result 3499s # We have a previous but differently parametrized fixture instance 3499s # so we need to tear it down before creating a new one. 3499s self.finish(request) 3499s assert self.cached_result is None 3499s 3499s ihook = request.node.ihook 3499s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1069: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s kwargs = {'fixturedef': , 'request': >} 3499s firstresult = True 3499s 3499s def __call__(self, **kwargs: object) -> Any: 3499s """Call the hook. 3499s 3499s Only accepts keyword arguments, which should match the hook 3499s specification. 3499s 3499s Returns the result(s) of calling all registered plugins, see 3499s :ref:`calling`. 3499s """ 3499s assert ( 3499s not self.is_historic() 3499s ), "Cannot directly call a historic hook - use call_historic instead." 3499s self._verify_all_args_are_provided(kwargs) 3499s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 3499s # Copy because plugins may register other plugins during iteration (#438). 3499s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 3499s 3499s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = <_pytest.config.PytestPluginManager object at 0xe9079168> 3499s hook_name = 'pytest_fixture_setup' 3499s methods = [>] 3499s kwargs = {'fixturedef': , 'request': >} 3499s firstresult = True 3499s 3499s def _hookexec( 3499s self, 3499s hook_name: str, 3499s methods: Sequence[HookImpl], 3499s kwargs: Mapping[str, object], 3499s firstresult: bool, 3499s ) -> object | list[object]: 3499s # called from all hookcaller instances. 3499s # enable_tracing will set its own wrapping function at self._inner_hookexec 3499s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 3499s 3499s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s fixturedef = 3499s request = > 3499s 3499s def pytest_fixture_setup( 3499s fixturedef: FixtureDef[FixtureValue], request: SubRequest 3499s ) -> FixtureValue: 3499s """Execution of fixture setup.""" 3499s kwargs = {} 3499s for argname in fixturedef.argnames: 3499s fixdef = request._get_active_fixturedef(argname) 3499s assert fixdef.cached_result is not None 3499s result, arg_cache_key, exc = fixdef.cached_result 3499s request._check_scope(argname, request._scope, fixdef._scope) 3499s kwargs[argname] = result 3499s 3499s fixturefunc = resolve_fixture_function(fixturedef, request) 3499s my_cache_key = fixturedef.cache_key(request) 3499s try: 3499s > result = call_fixture_func(fixturefunc, request, kwargs) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1123: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s fixturefunc = 3499s request = > 3499s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv'), 'types_data': [{'B... False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}]} 3499s 3499s def call_fixture_func( 3499s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 3499s ) -> FixtureValue: 3499s if is_generator(fixturefunc): 3499s fixturefunc = cast( 3499s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 3499s ) 3499s generator = fixturefunc(**kwargs) 3499s try: 3499s > fixture_result = next(generator) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:895: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s iris_path = PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv') 3499s types_data = [{'BoolCol': False, 'BoolColWithNull': False, 'DateCol': '2000-01-03 00:00:00', 'DateColWithTz': '2000-01-01 00:00:00-...: False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}] 3499s 3499s @pytest.fixture 3499s def mysql_pymysql_engine(iris_path, types_data): 3499s sqlalchemy = pytest.importorskip("sqlalchemy") 3499s pymysql = pytest.importorskip("pymysql") 3499s engine = sqlalchemy.create_engine( 3499s "mysql+pymysql://root@localhost:3306/pandas", 3499s connect_args={"client_flag": pymysql.constants.CLIENT.MULTI_STATEMENTS}, 3499s poolclass=sqlalchemy.pool.NullPool, 3499s ) 3499s > insp = sqlalchemy.inspect(engine) 3499s 3499s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:409: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s subject = Engine(mysql+pymysql://root@localhost:3306/pandas), raiseerr = True 3499s 3499s def inspect(subject, raiseerr=True): 3499s """Produce an inspection object for the given target. 3499s 3499s The returned value in some cases may be the 3499s same object as the one given, such as if a 3499s :class:`_orm.Mapper` object is passed. In other 3499s cases, it will be an instance of the registered 3499s inspection type for the given object, such as 3499s if an :class:`_engine.Engine` is passed, an 3499s :class:`_reflection.Inspector` object is returned. 3499s 3499s :param subject: the subject to be inspected. 3499s :param raiseerr: When ``True``, if the given subject 3499s does not 3499s correspond to a known SQLAlchemy inspected type, 3499s :class:`sqlalchemy.exc.NoInspectionAvailable` 3499s is raised. If ``False``, ``None`` is returned. 3499s 3499s """ 3499s type_ = type(subject) 3499s for cls in type_.__mro__: 3499s if cls in _registrars: 3499s reg = _registrars[cls] 3499s if reg is True: 3499s return subject 3499s > ret = reg(subject) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:64: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 3499s 3499s @inspection._inspects(Engine) 3499s def _engine_insp(bind): 3499s > return Inspector._construct(Inspector._init_engine, bind) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:182: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s init = 3499s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 3499s 3499s @classmethod 3499s def _construct(cls, init, bind): 3499s 3499s if hasattr(bind.dialect, "inspector"): 3499s cls = bind.dialect.inspector 3499s 3499s self = cls.__new__(cls) 3499s > init(self, bind) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:117: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 3499s 3499s def _init_engine(self, engine): 3499s self.bind = self.engine = engine 3499s > engine.connect().close() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:128: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3499s close_with_result = False 3499s 3499s def connect(self, close_with_result=False): 3499s """Return a new :class:`_engine.Connection` object. 3499s 3499s The :class:`_engine.Connection` object is a facade that uses a DBAPI 3499s connection internally in order to communicate with the database. This 3499s connection is procured from the connection-holding :class:`_pool.Pool` 3499s referenced by this :class:`_engine.Engine`. When the 3499s :meth:`_engine.Connection.close` method of the 3499s :class:`_engine.Connection` object 3499s is called, the underlying DBAPI connection is then returned to the 3499s connection pool, where it may be used again in a subsequent call to 3499s :meth:`_engine.Engine.connect`. 3499s 3499s """ 3499s 3499s > return self._connection_cls(self, close_with_result=close_with_result) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3325: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 3499s close_with_result = False, _branch_from = None, _execution_options = None 3499s _dispatch = None, _has_events = None, _allow_revalidate = True 3499s 3499s def __init__( 3499s self, 3499s engine, 3499s connection=None, 3499s close_with_result=False, 3499s _branch_from=None, 3499s _execution_options=None, 3499s _dispatch=None, 3499s _has_events=None, 3499s _allow_revalidate=True, 3499s ): 3499s """Construct a new Connection.""" 3499s self.engine = engine 3499s self.dialect = engine.dialect 3499s self.__branch_from = _branch_from 3499s 3499s if _branch_from: 3499s # branching is always "from" the root connection 3499s assert _branch_from.__branch_from is None 3499s self._dbapi_connection = connection 3499s self._execution_options = _execution_options 3499s self._echo = _branch_from._echo 3499s self.should_close_with_result = False 3499s self.dispatch = _dispatch 3499s self._has_events = _branch_from._has_events 3499s else: 3499s self._dbapi_connection = ( 3499s connection 3499s if connection is not None 3499s > else engine.raw_connection() 3499s ) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:96: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = Engine(mysql+pymysql://root@localhost:3306/pandas), _connection = None 3499s 3499s def raw_connection(self, _connection=None): 3499s """Return a "raw" DBAPI connection from the connection pool. 3499s 3499s The returned object is a proxied version of the DBAPI 3499s connection object used by the underlying driver in use. 3499s The object will have all the same behavior as the real DBAPI 3499s connection, except that its ``close()`` method will result in the 3499s connection being returned to the pool, rather than being closed 3499s for real. 3499s 3499s This method provides direct DBAPI connection access for 3499s special situations when the API provided by 3499s :class:`_engine.Connection` 3499s is not needed. When a :class:`_engine.Connection` object is already 3499s present, the DBAPI connection is available using 3499s the :attr:`_engine.Connection.connection` accessor. 3499s 3499s .. seealso:: 3499s 3499s :ref:`dbapi_connections` 3499s 3499s """ 3499s > return self._wrap_pool_connect(self.pool.connect, _connection) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3404: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3499s fn = > 3499s connection = None 3499s 3499s def _wrap_pool_connect(self, fn, connection): 3499s dialect = self.dialect 3499s try: 3499s return fn() 3499s except dialect.dbapi.Error as e: 3499s if connection is None: 3499s > Connection._handle_dbapi_exception_noconnection( 3499s e, dialect, self 3499s ) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3374: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s e = OperationalError(2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3499s dialect = 3499s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 3499s 3499s @classmethod 3499s def _handle_dbapi_exception_noconnection(cls, e, dialect, engine): 3499s exc_info = sys.exc_info() 3499s 3499s is_disconnect = dialect.is_disconnect(e, None, None) 3499s 3499s should_wrap = isinstance(e, dialect.dbapi.Error) 3499s 3499s if should_wrap: 3499s sqlalchemy_exception = exc.DBAPIError.instance( 3499s None, 3499s None, 3499s e, 3499s dialect.dbapi.Error, 3499s hide_parameters=engine.hide_parameters, 3499s connection_invalidated=is_disconnect, 3499s ) 3499s else: 3499s sqlalchemy_exception = None 3499s 3499s newraise = None 3499s 3499s if engine._has_events: 3499s ctx = ExceptionContextImpl( 3499s e, 3499s sqlalchemy_exception, 3499s engine, 3499s None, 3499s None, 3499s None, 3499s None, 3499s None, 3499s is_disconnect, 3499s True, 3499s ) 3499s for fn in engine.dispatch.handle_error: 3499s try: 3499s # handler returns an exception; 3499s # call next handler in a chain 3499s per_fn = fn(ctx) 3499s if per_fn is not None: 3499s ctx.chained_exception = newraise = per_fn 3499s except Exception as _raised: 3499s # handler raises an exception - stop processing 3499s newraise = _raised 3499s break 3499s 3499s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 3499s sqlalchemy_exception.connection_invalidated = ( 3499s is_disconnect 3499s ) = ctx.is_disconnect 3499s 3499s if newraise: 3499s util.raise_(newraise, with_traceback=exc_info[2], from_=e) 3499s elif should_wrap: 3499s > util.raise_( 3499s sqlalchemy_exception, with_traceback=exc_info[2], from_=e 3499s ) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2208: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s def raise_( 3499s exception, with_traceback=None, replace_context=None, from_=False 3499s ): 3499s r"""implement "raise" with cause support. 3499s 3499s :param exception: exception to raise 3499s :param with_traceback: will call exception.with_traceback() 3499s :param replace_context: an as-yet-unsupported feature. This is 3499s an exception object which we are "replacing", e.g., it's our 3499s "cause" but we don't want it printed. Basically just what 3499s ``__suppress_context__`` does but we don't want to suppress 3499s the enclosing context, if any. So for now we make it the 3499s cause. 3499s :param from\_: the cause. this actually sets the cause and doesn't 3499s hope to hide it someday. 3499s 3499s """ 3499s if with_traceback is not None: 3499s exception = exception.with_traceback(with_traceback) 3499s 3499s if from_ is not False: 3499s exception.__cause__ = from_ 3499s elif replace_context is not None: 3499s # no good solution here, we would like to have the exception 3499s # have only the context of replace_context.__context__ so that the 3499s # intermediary exception does not change, but we can't figure 3499s # that out. 3499s exception.__cause__ = replace_context 3499s 3499s try: 3499s > raise exception 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3499s fn = > 3499s connection = None 3499s 3499s def _wrap_pool_connect(self, fn, connection): 3499s dialect = self.dialect 3499s try: 3499s > return fn() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def connect(self): 3499s """Return a DBAPI connection from the pool. 3499s 3499s The connection is instrumented such that when its 3499s ``close()`` method is called, the connection will be returned to 3499s the pool. 3499s 3499s """ 3499s > return _ConnectionFairy._checkout(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s pool = , threadconns = None 3499s fairy = None 3499s 3499s @classmethod 3499s def _checkout(cls, pool, threadconns=None, fairy=None): 3499s if not fairy: 3499s > fairy = _ConnectionRecord.checkout(pool) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s pool = 3499s 3499s @classmethod 3499s def checkout(cls, pool): 3499s > rec = pool._do_get() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def _do_get(self): 3499s > return self._create_connection() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def _create_connection(self): 3499s """Called by subclasses to create a new ConnectionRecord.""" 3499s 3499s > return _ConnectionRecord(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s pool = , connect = True 3499s 3499s def __init__(self, pool, connect=True): 3499s self.__pool = pool 3499s if connect: 3499s > self.__connect() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def __connect(self): 3499s pool = self.__pool 3499s 3499s # ensure any existing connection is removed, so that if 3499s # creator fails, this attribute stays None 3499s self.dbapi_connection = None 3499s try: 3499s self.starttime = time.time() 3499s self.dbapi_connection = connection = pool._invoke_creator(self) 3499s pool.logger.debug("Created new connection %r", connection) 3499s self.fresh = True 3499s except BaseException as e: 3499s > with util.safe_reraise(): 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s type_ = None, value = None, traceback = None 3499s 3499s def __exit__(self, type_, value, traceback): 3499s # see #2703 for notes 3499s if type_ is None: 3499s exc_type, exc_value, exc_tb = self._exc_info 3499s self._exc_info = None # remove potential circular references 3499s if not self.warn_only: 3499s > compat.raise_( 3499s exc_value, 3499s with_traceback=exc_tb, 3499s ) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s def raise_( 3499s exception, with_traceback=None, replace_context=None, from_=False 3499s ): 3499s r"""implement "raise" with cause support. 3499s 3499s :param exception: exception to raise 3499s :param with_traceback: will call exception.with_traceback() 3499s :param replace_context: an as-yet-unsupported feature. This is 3499s an exception object which we are "replacing", e.g., it's our 3499s "cause" but we don't want it printed. Basically just what 3499s ``__suppress_context__`` does but we don't want to suppress 3499s the enclosing context, if any. So for now we make it the 3499s cause. 3499s :param from\_: the cause. this actually sets the cause and doesn't 3499s hope to hide it someday. 3499s 3499s """ 3499s if with_traceback is not None: 3499s exception = exception.with_traceback(with_traceback) 3499s 3499s if from_ is not False: 3499s exception.__cause__ = from_ 3499s elif replace_context is not None: 3499s # no good solution here, we would like to have the exception 3499s # have only the context of replace_context.__context__ so that the 3499s # intermediary exception does not change, but we can't figure 3499s # that out. 3499s exception.__cause__ = replace_context 3499s 3499s try: 3499s > raise exception 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def __connect(self): 3499s pool = self.__pool 3499s 3499s # ensure any existing connection is removed, so that if 3499s # creator fails, this attribute stays None 3499s self.dbapi_connection = None 3499s try: 3499s self.starttime = time.time() 3499s > self.dbapi_connection = connection = pool._invoke_creator(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s connection_record = 3499s 3499s def connect(connection_record=None): 3499s if dialect._has_events: 3499s for fn in dialect.dispatch.do_connect: 3499s connection = fn(dialect, connection_record, cargs, cparams) 3499s if connection is not None: 3499s return connection 3499s > return dialect.connect(*cargs, **cparams) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s cargs = () 3499s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 3499s 3499s def connect(self, *cargs, **cparams): 3499s # inherits the docstring from interfaces.Dialect.connect 3499s > return self.dbapi.connect(*cargs, **cparams) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def __init__( 3499s self, 3499s *, 3499s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 3499s password="", 3499s host=None, 3499s database=None, 3499s unix_socket=None, 3499s port=0, 3499s charset="", 3499s collation=None, 3499s sql_mode=None, 3499s read_default_file=None, 3499s conv=None, 3499s use_unicode=True, 3499s client_flag=0, 3499s cursorclass=Cursor, 3499s init_command=None, 3499s connect_timeout=10, 3499s read_default_group=None, 3499s autocommit=False, 3499s local_infile=False, 3499s max_allowed_packet=16 * 1024 * 1024, 3499s defer_connect=False, 3499s auth_plugin_map=None, 3499s read_timeout=None, 3499s write_timeout=None, 3499s bind_address=None, 3499s binary_prefix=False, 3499s program_name=None, 3499s server_public_key=None, 3499s ssl=None, 3499s ssl_ca=None, 3499s ssl_cert=None, 3499s ssl_disabled=None, 3499s ssl_key=None, 3499s ssl_key_password=None, 3499s ssl_verify_cert=None, 3499s ssl_verify_identity=None, 3499s compress=None, # not supported 3499s named_pipe=None, # not supported 3499s passwd=None, # deprecated 3499s db=None, # deprecated 3499s ): 3499s if db is not None and database is None: 3499s # We will raise warning in 2022 or later. 3499s # See https://github.com/PyMySQL/PyMySQL/issues/939 3499s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 3499s database = db 3499s if passwd is not None and not password: 3499s # We will raise warning in 2022 or later. 3499s # See https://github.com/PyMySQL/PyMySQL/issues/939 3499s # warnings.warn( 3499s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 3499s # ) 3499s password = passwd 3499s 3499s if compress or named_pipe: 3499s raise NotImplementedError( 3499s "compress and named_pipe arguments are not supported" 3499s ) 3499s 3499s self._local_infile = bool(local_infile) 3499s if self._local_infile: 3499s client_flag |= CLIENT.LOCAL_FILES 3499s 3499s if read_default_group and not read_default_file: 3499s if sys.platform.startswith("win"): 3499s read_default_file = "c:\\my.ini" 3499s else: 3499s read_default_file = "/etc/my.cnf" 3499s 3499s if read_default_file: 3499s if not read_default_group: 3499s read_default_group = "client" 3499s 3499s cfg = Parser() 3499s cfg.read(os.path.expanduser(read_default_file)) 3499s 3499s def _config(key, arg): 3499s if arg: 3499s return arg 3499s try: 3499s return cfg.get(read_default_group, key) 3499s except Exception: 3499s return arg 3499s 3499s user = _config("user", user) 3499s password = _config("password", password) 3499s host = _config("host", host) 3499s database = _config("database", database) 3499s unix_socket = _config("socket", unix_socket) 3499s port = int(_config("port", port)) 3499s bind_address = _config("bind-address", bind_address) 3499s charset = _config("default-character-set", charset) 3499s if not ssl: 3499s ssl = {} 3499s if isinstance(ssl, dict): 3499s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 3499s value = _config("ssl-" + key, ssl.get(key)) 3499s if value: 3499s ssl[key] = value 3499s 3499s self.ssl = False 3499s if not ssl_disabled: 3499s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 3499s ssl = { 3499s "ca": ssl_ca, 3499s "check_hostname": bool(ssl_verify_identity), 3499s "verify_mode": ssl_verify_cert 3499s if ssl_verify_cert is not None 3499s else False, 3499s } 3499s if ssl_cert is not None: 3499s ssl["cert"] = ssl_cert 3499s if ssl_key is not None: 3499s ssl["key"] = ssl_key 3499s if ssl_key_password is not None: 3499s ssl["password"] = ssl_key_password 3499s if ssl: 3499s if not SSL_ENABLED: 3499s raise NotImplementedError("ssl module not found") 3499s self.ssl = True 3499s client_flag |= CLIENT.SSL 3499s self.ctx = self._create_ssl_ctx(ssl) 3499s 3499s self.host = host or "localhost" 3499s self.port = port or 3306 3499s if type(self.port) is not int: 3499s raise ValueError("port should be of type int") 3499s self.user = user or DEFAULT_USER 3499s self.password = password or b"" 3499s if isinstance(self.password, str): 3499s self.password = self.password.encode("latin1") 3499s self.db = database 3499s self.unix_socket = unix_socket 3499s self.bind_address = bind_address 3499s if not (0 < connect_timeout <= 31536000): 3499s raise ValueError("connect_timeout should be >0 and <=31536000") 3499s self.connect_timeout = connect_timeout or None 3499s if read_timeout is not None and read_timeout <= 0: 3499s raise ValueError("read_timeout should be > 0") 3499s self._read_timeout = read_timeout 3499s if write_timeout is not None and write_timeout <= 0: 3499s raise ValueError("write_timeout should be > 0") 3499s self._write_timeout = write_timeout 3499s 3499s self.charset = charset or DEFAULT_CHARSET 3499s self.collation = collation 3499s self.use_unicode = use_unicode 3499s 3499s self.encoding = charset_by_name(self.charset).encoding 3499s 3499s client_flag |= CLIENT.CAPABILITIES 3499s if self.db: 3499s client_flag |= CLIENT.CONNECT_WITH_DB 3499s 3499s self.client_flag = client_flag 3499s 3499s self.cursorclass = cursorclass 3499s 3499s self._result = None 3499s self._affected_rows = 0 3499s self.host_info = "Not connected" 3499s 3499s # specified autocommit mode. None means use server default. 3499s self.autocommit_mode = autocommit 3499s 3499s if conv is None: 3499s conv = converters.conversions 3499s 3499s # Need for MySQLdb compatibility. 3499s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 3499s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 3499s self.sql_mode = sql_mode 3499s self.init_command = init_command 3499s self.max_allowed_packet = max_allowed_packet 3499s self._auth_plugin_map = auth_plugin_map or {} 3499s self._binary_prefix = binary_prefix 3499s self.server_public_key = server_public_key 3499s 3499s self._connect_attrs = { 3499s "_client_name": "pymysql", 3499s "_client_version": VERSION_STRING, 3499s "_pid": str(os.getpid()), 3499s } 3499s 3499s if program_name: 3499s self._connect_attrs["program_name"] = program_name 3499s 3499s if defer_connect: 3499s self._sock = None 3499s else: 3499s > self.connect() 3499s 3499s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = , sock = None 3499s 3499s def connect(self, sock=None): 3499s self._closed = False 3499s try: 3499s if sock is None: 3499s if self.unix_socket: 3499s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3499s sock.settimeout(self.connect_timeout) 3499s sock.connect(self.unix_socket) 3499s self.host_info = "Localhost via UNIX socket" 3499s self._secure = True 3499s if DEBUG: 3499s print("connected using unix_socket") 3499s else: 3499s kwargs = {} 3499s if self.bind_address is not None: 3499s kwargs["source_address"] = (self.bind_address, 0) 3499s while True: 3499s try: 3499s sock = socket.create_connection( 3499s (self.host, self.port), self.connect_timeout, **kwargs 3499s ) 3499s break 3499s except OSError as e: 3499s if e.errno == errno.EINTR: 3499s continue 3499s raise 3499s self.host_info = "socket %s:%d" % (self.host, self.port) 3499s if DEBUG: 3499s print("connected using socket") 3499s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 3499s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 3499s sock.settimeout(None) 3499s 3499s self._sock = sock 3499s self._rfile = sock.makefile("rb") 3499s self._next_seq_id = 0 3499s 3499s self._get_server_information() 3499s self._request_authentication() 3499s 3499s # Send "SET NAMES" query on init for: 3499s # - Ensure charaset (and collation) is set to the server. 3499s # - collation_id in handshake packet may be ignored. 3499s # - If collation is not specified, we don't know what is server's 3499s # default collation for the charset. For example, default collation 3499s # of utf8mb4 is: 3499s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 3499s # - MySQL 8.0: utf8mb4_0900_ai_ci 3499s # 3499s # Reference: 3499s # - https://github.com/PyMySQL/PyMySQL/issues/1092 3499s # - https://github.com/wagtail/wagtail/issues/9477 3499s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 3499s self.set_character_set(self.charset, self.collation) 3499s 3499s if self.sql_mode is not None: 3499s c = self.cursor() 3499s c.execute("SET sql_mode=%s", (self.sql_mode,)) 3499s c.close() 3499s 3499s if self.init_command is not None: 3499s c = self.cursor() 3499s c.execute(self.init_command) 3499s c.close() 3499s 3499s if self.autocommit_mode is not None: 3499s self.autocommit(self.autocommit_mode) 3499s except BaseException as e: 3499s self._rfile = None 3499s if sock is not None: 3499s try: 3499s sock.close() 3499s except: # noqa 3499s pass 3499s 3499s if isinstance(e, (OSError, IOError)): 3499s exc = err.OperationalError( 3499s CR.CR_CONN_HOST_ERROR, 3499s f"Can't connect to MySQL server on {self.host!r} ({e})", 3499s ) 3499s # Keep original exception and traceback to investigate error. 3499s exc.original_exception = e 3499s exc.traceback = traceback.format_exc() 3499s if DEBUG: 3499s print(exc.traceback) 3499s > raise exc 3499s E sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3499s E (Background on this error at: https://sqlalche.me/e/14/e3q8) 3499s 3499s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 3499s _______________ test_to_sql_exist[replace-1-mysql_pymysql_conn] ________________ 3499s self = , sock = None 3499s 3499s def connect(self, sock=None): 3499s self._closed = False 3499s try: 3499s if sock is None: 3499s if self.unix_socket: 3499s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3499s sock.settimeout(self.connect_timeout) 3499s sock.connect(self.unix_socket) 3499s self.host_info = "Localhost via UNIX socket" 3499s self._secure = True 3499s if DEBUG: 3499s print("connected using unix_socket") 3499s else: 3499s kwargs = {} 3499s if self.bind_address is not None: 3499s kwargs["source_address"] = (self.bind_address, 0) 3499s while True: 3499s try: 3499s > sock = socket.create_connection( 3499s (self.host, self.port), self.connect_timeout, **kwargs 3499s ) 3499s 3499s /usr/lib/python3/dist-packages/pymysql/connections.py:649: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s address = ('localhost', 3306), timeout = 10, source_address = None 3499s 3499s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 3499s source_address=None, *, all_errors=False): 3499s """Connect to *address* and return the socket object. 3499s 3499s Convenience function. Connect to *address* (a 2-tuple ``(host, 3499s port)``) and return the socket object. Passing the optional 3499s *timeout* parameter will set the timeout on the socket instance 3499s before attempting to connect. If no *timeout* is supplied, the 3499s global default timeout setting returned by :func:`getdefaulttimeout` 3499s is used. If *source_address* is set it must be a tuple of (host, port) 3499s for the socket to bind as a source address before making the connection. 3499s A host of '' or port 0 tells the OS to use the default. When a connection 3499s cannot be created, raises the last error if *all_errors* is False, 3499s and an ExceptionGroup of all errors if *all_errors* is True. 3499s """ 3499s 3499s host, port = address 3499s exceptions = [] 3499s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 3499s af, socktype, proto, canonname, sa = res 3499s sock = None 3499s try: 3499s sock = socket(af, socktype, proto) 3499s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 3499s sock.settimeout(timeout) 3499s if source_address: 3499s sock.bind(source_address) 3499s sock.connect(sa) 3499s # Break explicitly a reference cycle 3499s exceptions.clear() 3499s return sock 3499s 3499s except error as exc: 3499s if not all_errors: 3499s exceptions.clear() # raise only the last error 3499s exceptions.append(exc) 3499s if sock is not None: 3499s sock.close() 3499s 3499s if len(exceptions): 3499s try: 3499s if not all_errors: 3499s > raise exceptions[0] 3499s 3499s /usr/lib/python3.12/socket.py:853: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s address = ('localhost', 3306), timeout = 10, source_address = None 3499s 3499s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 3499s source_address=None, *, all_errors=False): 3499s """Connect to *address* and return the socket object. 3499s 3499s Convenience function. Connect to *address* (a 2-tuple ``(host, 3499s port)``) and return the socket object. Passing the optional 3499s *timeout* parameter will set the timeout on the socket instance 3499s before attempting to connect. If no *timeout* is supplied, the 3499s global default timeout setting returned by :func:`getdefaulttimeout` 3499s is used. If *source_address* is set it must be a tuple of (host, port) 3499s for the socket to bind as a source address before making the connection. 3499s A host of '' or port 0 tells the OS to use the default. When a connection 3499s cannot be created, raises the last error if *all_errors* is False, 3499s and an ExceptionGroup of all errors if *all_errors* is True. 3499s """ 3499s 3499s host, port = address 3499s exceptions = [] 3499s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 3499s af, socktype, proto, canonname, sa = res 3499s sock = None 3499s try: 3499s sock = socket(af, socktype, proto) 3499s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 3499s sock.settimeout(timeout) 3499s if source_address: 3499s sock.bind(source_address) 3499s > sock.connect(sa) 3499s E ConnectionRefusedError: [Errno 111] Connection refused 3499s 3499s /usr/lib/python3.12/socket.py:838: ConnectionRefusedError 3499s 3499s During handling of the above exception, another exception occurred: 3499s 3499s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3499s fn = > 3499s connection = None 3499s 3499s def _wrap_pool_connect(self, fn, connection): 3499s dialect = self.dialect 3499s try: 3499s > return fn() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def connect(self): 3499s """Return a DBAPI connection from the pool. 3499s 3499s The connection is instrumented such that when its 3499s ``close()`` method is called, the connection will be returned to 3499s the pool. 3499s 3499s """ 3499s > return _ConnectionFairy._checkout(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s pool = , threadconns = None 3499s fairy = None 3499s 3499s @classmethod 3499s def _checkout(cls, pool, threadconns=None, fairy=None): 3499s if not fairy: 3499s > fairy = _ConnectionRecord.checkout(pool) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s pool = 3499s 3499s @classmethod 3499s def checkout(cls, pool): 3499s > rec = pool._do_get() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def _do_get(self): 3499s > return self._create_connection() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def _create_connection(self): 3499s """Called by subclasses to create a new ConnectionRecord.""" 3499s 3499s > return _ConnectionRecord(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s pool = , connect = True 3499s 3499s def __init__(self, pool, connect=True): 3499s self.__pool = pool 3499s if connect: 3499s > self.__connect() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def __connect(self): 3499s pool = self.__pool 3499s 3499s # ensure any existing connection is removed, so that if 3499s # creator fails, this attribute stays None 3499s self.dbapi_connection = None 3499s try: 3499s self.starttime = time.time() 3499s self.dbapi_connection = connection = pool._invoke_creator(self) 3499s pool.logger.debug("Created new connection %r", connection) 3499s self.fresh = True 3499s except BaseException as e: 3499s > with util.safe_reraise(): 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s type_ = None, value = None, traceback = None 3499s 3499s def __exit__(self, type_, value, traceback): 3499s # see #2703 for notes 3499s if type_ is None: 3499s exc_type, exc_value, exc_tb = self._exc_info 3499s self._exc_info = None # remove potential circular references 3499s if not self.warn_only: 3499s > compat.raise_( 3499s exc_value, 3499s with_traceback=exc_tb, 3499s ) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s def raise_( 3499s exception, with_traceback=None, replace_context=None, from_=False 3499s ): 3499s r"""implement "raise" with cause support. 3499s 3499s :param exception: exception to raise 3499s :param with_traceback: will call exception.with_traceback() 3499s :param replace_context: an as-yet-unsupported feature. This is 3499s an exception object which we are "replacing", e.g., it's our 3499s "cause" but we don't want it printed. Basically just what 3499s ``__suppress_context__`` does but we don't want to suppress 3499s the enclosing context, if any. So for now we make it the 3499s cause. 3499s :param from\_: the cause. this actually sets the cause and doesn't 3499s hope to hide it someday. 3499s 3499s """ 3499s if with_traceback is not None: 3499s exception = exception.with_traceback(with_traceback) 3499s 3499s if from_ is not False: 3499s exception.__cause__ = from_ 3499s elif replace_context is not None: 3499s # no good solution here, we would like to have the exception 3499s # have only the context of replace_context.__context__ so that the 3499s # intermediary exception does not change, but we can't figure 3499s # that out. 3499s exception.__cause__ = replace_context 3499s 3499s try: 3499s > raise exception 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def __connect(self): 3499s pool = self.__pool 3499s 3499s # ensure any existing connection is removed, so that if 3499s # creator fails, this attribute stays None 3499s self.dbapi_connection = None 3499s try: 3499s self.starttime = time.time() 3499s > self.dbapi_connection = connection = pool._invoke_creator(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s connection_record = 3499s 3499s def connect(connection_record=None): 3499s if dialect._has_events: 3499s for fn in dialect.dispatch.do_connect: 3499s connection = fn(dialect, connection_record, cargs, cparams) 3499s if connection is not None: 3499s return connection 3499s > return dialect.connect(*cargs, **cparams) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s cargs = () 3499s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 3499s 3499s def connect(self, *cargs, **cparams): 3499s # inherits the docstring from interfaces.Dialect.connect 3499s > return self.dbapi.connect(*cargs, **cparams) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def __init__( 3499s self, 3499s *, 3499s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 3499s password="", 3499s host=None, 3499s database=None, 3499s unix_socket=None, 3499s port=0, 3499s charset="", 3499s collation=None, 3499s sql_mode=None, 3499s read_default_file=None, 3499s conv=None, 3499s use_unicode=True, 3499s client_flag=0, 3499s cursorclass=Cursor, 3499s init_command=None, 3499s connect_timeout=10, 3499s read_default_group=None, 3499s autocommit=False, 3499s local_infile=False, 3499s max_allowed_packet=16 * 1024 * 1024, 3499s defer_connect=False, 3499s auth_plugin_map=None, 3499s read_timeout=None, 3499s write_timeout=None, 3499s bind_address=None, 3499s binary_prefix=False, 3499s program_name=None, 3499s server_public_key=None, 3499s ssl=None, 3499s ssl_ca=None, 3499s ssl_cert=None, 3499s ssl_disabled=None, 3499s ssl_key=None, 3499s ssl_key_password=None, 3499s ssl_verify_cert=None, 3499s ssl_verify_identity=None, 3499s compress=None, # not supported 3499s named_pipe=None, # not supported 3499s passwd=None, # deprecated 3499s db=None, # deprecated 3499s ): 3499s if db is not None and database is None: 3499s # We will raise warning in 2022 or later. 3499s # See https://github.com/PyMySQL/PyMySQL/issues/939 3499s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 3499s database = db 3499s if passwd is not None and not password: 3499s # We will raise warning in 2022 or later. 3499s # See https://github.com/PyMySQL/PyMySQL/issues/939 3499s # warnings.warn( 3499s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 3499s # ) 3499s password = passwd 3499s 3499s if compress or named_pipe: 3499s raise NotImplementedError( 3499s "compress and named_pipe arguments are not supported" 3499s ) 3499s 3499s self._local_infile = bool(local_infile) 3499s if self._local_infile: 3499s client_flag |= CLIENT.LOCAL_FILES 3499s 3499s if read_default_group and not read_default_file: 3499s if sys.platform.startswith("win"): 3499s read_default_file = "c:\\my.ini" 3499s else: 3499s read_default_file = "/etc/my.cnf" 3499s 3499s if read_default_file: 3499s if not read_default_group: 3499s read_default_group = "client" 3499s 3499s cfg = Parser() 3499s cfg.read(os.path.expanduser(read_default_file)) 3499s 3499s def _config(key, arg): 3499s if arg: 3499s return arg 3499s try: 3499s return cfg.get(read_default_group, key) 3499s except Exception: 3499s return arg 3499s 3499s user = _config("user", user) 3499s password = _config("password", password) 3499s host = _config("host", host) 3499s database = _config("database", database) 3499s unix_socket = _config("socket", unix_socket) 3499s port = int(_config("port", port)) 3499s bind_address = _config("bind-address", bind_address) 3499s charset = _config("default-character-set", charset) 3499s if not ssl: 3499s ssl = {} 3499s if isinstance(ssl, dict): 3499s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 3499s value = _config("ssl-" + key, ssl.get(key)) 3499s if value: 3499s ssl[key] = value 3499s 3499s self.ssl = False 3499s if not ssl_disabled: 3499s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 3499s ssl = { 3499s "ca": ssl_ca, 3499s "check_hostname": bool(ssl_verify_identity), 3499s "verify_mode": ssl_verify_cert 3499s if ssl_verify_cert is not None 3499s else False, 3499s } 3499s if ssl_cert is not None: 3499s ssl["cert"] = ssl_cert 3499s if ssl_key is not None: 3499s ssl["key"] = ssl_key 3499s if ssl_key_password is not None: 3499s ssl["password"] = ssl_key_password 3499s if ssl: 3499s if not SSL_ENABLED: 3499s raise NotImplementedError("ssl module not found") 3499s self.ssl = True 3499s client_flag |= CLIENT.SSL 3499s self.ctx = self._create_ssl_ctx(ssl) 3499s 3499s self.host = host or "localhost" 3499s self.port = port or 3306 3499s if type(self.port) is not int: 3499s raise ValueError("port should be of type int") 3499s self.user = user or DEFAULT_USER 3499s self.password = password or b"" 3499s if isinstance(self.password, str): 3499s self.password = self.password.encode("latin1") 3499s self.db = database 3499s self.unix_socket = unix_socket 3499s self.bind_address = bind_address 3499s if not (0 < connect_timeout <= 31536000): 3499s raise ValueError("connect_timeout should be >0 and <=31536000") 3499s self.connect_timeout = connect_timeout or None 3499s if read_timeout is not None and read_timeout <= 0: 3499s raise ValueError("read_timeout should be > 0") 3499s self._read_timeout = read_timeout 3499s if write_timeout is not None and write_timeout <= 0: 3499s raise ValueError("write_timeout should be > 0") 3499s self._write_timeout = write_timeout 3499s 3499s self.charset = charset or DEFAULT_CHARSET 3499s self.collation = collation 3499s self.use_unicode = use_unicode 3499s 3499s self.encoding = charset_by_name(self.charset).encoding 3499s 3499s client_flag |= CLIENT.CAPABILITIES 3499s if self.db: 3499s client_flag |= CLIENT.CONNECT_WITH_DB 3499s 3499s self.client_flag = client_flag 3499s 3499s self.cursorclass = cursorclass 3499s 3499s self._result = None 3499s self._affected_rows = 0 3499s self.host_info = "Not connected" 3499s 3499s # specified autocommit mode. None means use server default. 3499s self.autocommit_mode = autocommit 3499s 3499s if conv is None: 3499s conv = converters.conversions 3499s 3499s # Need for MySQLdb compatibility. 3499s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 3499s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 3499s self.sql_mode = sql_mode 3499s self.init_command = init_command 3499s self.max_allowed_packet = max_allowed_packet 3499s self._auth_plugin_map = auth_plugin_map or {} 3499s self._binary_prefix = binary_prefix 3499s self.server_public_key = server_public_key 3499s 3499s self._connect_attrs = { 3499s "_client_name": "pymysql", 3499s "_client_version": VERSION_STRING, 3499s "_pid": str(os.getpid()), 3499s } 3499s 3499s if program_name: 3499s self._connect_attrs["program_name"] = program_name 3499s 3499s if defer_connect: 3499s self._sock = None 3499s else: 3499s > self.connect() 3499s 3499s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = , sock = None 3499s 3499s def connect(self, sock=None): 3499s self._closed = False 3499s try: 3499s if sock is None: 3499s if self.unix_socket: 3499s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3499s sock.settimeout(self.connect_timeout) 3499s sock.connect(self.unix_socket) 3499s self.host_info = "Localhost via UNIX socket" 3499s self._secure = True 3499s if DEBUG: 3499s print("connected using unix_socket") 3499s else: 3499s kwargs = {} 3499s if self.bind_address is not None: 3499s kwargs["source_address"] = (self.bind_address, 0) 3499s while True: 3499s try: 3499s sock = socket.create_connection( 3499s (self.host, self.port), self.connect_timeout, **kwargs 3499s ) 3499s break 3499s except OSError as e: 3499s if e.errno == errno.EINTR: 3499s continue 3499s raise 3499s self.host_info = "socket %s:%d" % (self.host, self.port) 3499s if DEBUG: 3499s print("connected using socket") 3499s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 3499s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 3499s sock.settimeout(None) 3499s 3499s self._sock = sock 3499s self._rfile = sock.makefile("rb") 3499s self._next_seq_id = 0 3499s 3499s self._get_server_information() 3499s self._request_authentication() 3499s 3499s # Send "SET NAMES" query on init for: 3499s # - Ensure charaset (and collation) is set to the server. 3499s # - collation_id in handshake packet may be ignored. 3499s # - If collation is not specified, we don't know what is server's 3499s # default collation for the charset. For example, default collation 3499s # of utf8mb4 is: 3499s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 3499s # - MySQL 8.0: utf8mb4_0900_ai_ci 3499s # 3499s # Reference: 3499s # - https://github.com/PyMySQL/PyMySQL/issues/1092 3499s # - https://github.com/wagtail/wagtail/issues/9477 3499s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 3499s self.set_character_set(self.charset, self.collation) 3499s 3499s if self.sql_mode is not None: 3499s c = self.cursor() 3499s c.execute("SET sql_mode=%s", (self.sql_mode,)) 3499s c.close() 3499s 3499s if self.init_command is not None: 3499s c = self.cursor() 3499s c.execute(self.init_command) 3499s c.close() 3499s 3499s if self.autocommit_mode is not None: 3499s self.autocommit(self.autocommit_mode) 3499s except BaseException as e: 3499s self._rfile = None 3499s if sock is not None: 3499s try: 3499s sock.close() 3499s except: # noqa 3499s pass 3499s 3499s if isinstance(e, (OSError, IOError)): 3499s exc = err.OperationalError( 3499s CR.CR_CONN_HOST_ERROR, 3499s f"Can't connect to MySQL server on {self.host!r} ({e})", 3499s ) 3499s # Keep original exception and traceback to investigate error. 3499s exc.original_exception = e 3499s exc.traceback = traceback.format_exc() 3499s if DEBUG: 3499s print(exc.traceback) 3499s > raise exc 3499s E pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3499s 3499s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 3499s 3499s The above exception was the direct cause of the following exception: 3499s 3499s conn = 'mysql_pymysql_conn', mode = 'replace', num_row_coef = 1 3499s test_frame1 = index A B C D 3499s 0 2000-01-03 00:00:00 0.980269 3.685731 -0.364217 -1...0-01-05 00:00:00 0.498581 0.731168 -0.537677 1.346270 3499s 3 2000-01-06 00:00:00 1.120202 1.567621 0.003641 0.675253 3499s request = > 3499s 3499s @pytest.mark.db 3499s @pytest.mark.parametrize("conn", all_connectable) 3499s @pytest.mark.parametrize("mode, num_row_coef", [("replace", 1), ("append", 2)]) 3499s def test_to_sql_exist(conn, mode, num_row_coef, test_frame1, request): 3499s > conn = request.getfixturevalue(conn) 3499s 3499s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:606: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = > 3499s argname = 'mysql_pymysql_conn' 3499s 3499s def getfixturevalue(self, argname: str) -> Any: 3499s """Dynamically run a named fixture function. 3499s 3499s Declaring fixtures via function argument is recommended where possible. 3499s But if you can only decide whether to use another fixture at test 3499s setup time, you may use this function to retrieve it inside a fixture 3499s or test function body. 3499s 3499s This method can be used during the test setup phase or the test run 3499s phase, but during the test teardown phase a fixture's value may not 3499s be available. 3499s 3499s :param argname: 3499s The fixture name. 3499s :raises pytest.FixtureLookupError: 3499s If the given fixture could not be found. 3499s """ 3499s > fixturedef = self._get_active_fixturedef(argname) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:585: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = > 3499s argname = 'mysql_pymysql_conn' 3499s 3499s def _get_active_fixturedef( 3499s self, argname: str 3499s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3499s try: 3499s return self._fixture_defs[argname] 3499s except KeyError: 3499s try: 3499s fixturedef = self._getnextfixturedef(argname) 3499s except FixtureLookupError: 3499s if argname == "request": 3499s cached_result = (self, [0], None) 3499s return PseudoFixtureDef(cached_result, Scope.Function) 3499s raise 3499s # Remove indent to prevent the python3 exception 3499s # from leaking into the call. 3499s > self._compute_fixture_value(fixturedef) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = > 3499s fixturedef = 3499s 3499s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3499s """Create a SubRequest based on "self" and call the execute method 3499s of the given FixtureDef object. 3499s 3499s This will force the FixtureDef object to throw away any previous 3499s results and compute a new fixture value, which will be stored into 3499s the FixtureDef object itself. 3499s """ 3499s # prepare a subrequest object before calling fixture function 3499s # (latter managed by fixturedef) 3499s argname = fixturedef.argname 3499s funcitem = self._pyfuncitem 3499s scope = fixturedef._scope 3499s try: 3499s callspec = funcitem.callspec 3499s except AttributeError: 3499s callspec = None 3499s if callspec is not None and argname in callspec.params: 3499s param = callspec.params[argname] 3499s param_index = callspec.indices[argname] 3499s # If a parametrize invocation set a scope it will override 3499s # the static scope defined with the fixture function. 3499s with suppress(KeyError): 3499s scope = callspec._arg2scope[argname] 3499s else: 3499s param = NOTSET 3499s param_index = 0 3499s has_params = fixturedef.params is not None 3499s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3499s if has_params and fixtures_not_supported: 3499s msg = ( 3499s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3499s "Node id: {nodeid}\n" 3499s "Function type: {typename}" 3499s ).format( 3499s name=funcitem.name, 3499s nodeid=funcitem.nodeid, 3499s typename=type(funcitem).__name__, 3499s ) 3499s fail(msg, pytrace=False) 3499s if has_params: 3499s frame = inspect.stack()[3] 3499s frameinfo = inspect.getframeinfo(frame[0]) 3499s source_path = absolutepath(frameinfo.filename) 3499s source_lineno = frameinfo.lineno 3499s try: 3499s source_path_str = str( 3499s source_path.relative_to(funcitem.config.rootpath) 3499s ) 3499s except ValueError: 3499s source_path_str = str(source_path) 3499s msg = ( 3499s "The requested fixture has no parameter defined for test:\n" 3499s " {}\n\n" 3499s "Requested fixture '{}' defined in:\n{}" 3499s "\n\nRequested here:\n{}:{}".format( 3499s funcitem.nodeid, 3499s fixturedef.argname, 3499s getlocation(fixturedef.func, funcitem.config.rootpath), 3499s source_path_str, 3499s source_lineno, 3499s ) 3499s ) 3499s fail(msg, pytrace=False) 3499s 3499s subrequest = SubRequest( 3499s self, scope, param, param_index, fixturedef, _ispytest=True 3499s ) 3499s 3499s # Check if a higher-level scoped fixture accesses a lower level one. 3499s subrequest._check_scope(argname, self._scope, scope) 3499s try: 3499s # Call the fixture function. 3499s > fixturedef.execute(request=subrequest) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s request = > 3499s 3499s def execute(self, request: SubRequest) -> FixtureValue: 3499s # Get required arguments and register our own finish() 3499s # with their finalization. 3499s for argname in self.argnames: 3499s > fixturedef = request._get_active_fixturedef(argname) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1045: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = > 3499s argname = 'mysql_pymysql_engine' 3499s 3499s def _get_active_fixturedef( 3499s self, argname: str 3499s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3499s try: 3499s return self._fixture_defs[argname] 3499s except KeyError: 3499s try: 3499s fixturedef = self._getnextfixturedef(argname) 3499s except FixtureLookupError: 3499s if argname == "request": 3499s cached_result = (self, [0], None) 3499s return PseudoFixtureDef(cached_result, Scope.Function) 3499s raise 3499s # Remove indent to prevent the python3 exception 3499s # from leaking into the call. 3499s > self._compute_fixture_value(fixturedef) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = > 3499s fixturedef = 3499s 3499s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3499s """Create a SubRequest based on "self" and call the execute method 3499s of the given FixtureDef object. 3499s 3499s This will force the FixtureDef object to throw away any previous 3499s results and compute a new fixture value, which will be stored into 3499s the FixtureDef object itself. 3499s """ 3499s # prepare a subrequest object before calling fixture function 3499s # (latter managed by fixturedef) 3499s argname = fixturedef.argname 3499s funcitem = self._pyfuncitem 3499s scope = fixturedef._scope 3499s try: 3499s callspec = funcitem.callspec 3499s except AttributeError: 3499s callspec = None 3499s if callspec is not None and argname in callspec.params: 3499s param = callspec.params[argname] 3499s param_index = callspec.indices[argname] 3499s # If a parametrize invocation set a scope it will override 3499s # the static scope defined with the fixture function. 3499s with suppress(KeyError): 3499s scope = callspec._arg2scope[argname] 3499s else: 3499s param = NOTSET 3499s param_index = 0 3499s has_params = fixturedef.params is not None 3499s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3499s if has_params and fixtures_not_supported: 3499s msg = ( 3499s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3499s "Node id: {nodeid}\n" 3499s "Function type: {typename}" 3499s ).format( 3499s name=funcitem.name, 3499s nodeid=funcitem.nodeid, 3499s typename=type(funcitem).__name__, 3499s ) 3499s fail(msg, pytrace=False) 3499s if has_params: 3499s frame = inspect.stack()[3] 3499s frameinfo = inspect.getframeinfo(frame[0]) 3499s source_path = absolutepath(frameinfo.filename) 3499s source_lineno = frameinfo.lineno 3499s try: 3499s source_path_str = str( 3499s source_path.relative_to(funcitem.config.rootpath) 3499s ) 3499s except ValueError: 3499s source_path_str = str(source_path) 3499s msg = ( 3499s "The requested fixture has no parameter defined for test:\n" 3499s " {}\n\n" 3499s "Requested fixture '{}' defined in:\n{}" 3499s "\n\nRequested here:\n{}:{}".format( 3499s funcitem.nodeid, 3499s fixturedef.argname, 3499s getlocation(fixturedef.func, funcitem.config.rootpath), 3499s source_path_str, 3499s source_lineno, 3499s ) 3499s ) 3499s fail(msg, pytrace=False) 3499s 3499s subrequest = SubRequest( 3499s self, scope, param, param_index, fixturedef, _ispytest=True 3499s ) 3499s 3499s # Check if a higher-level scoped fixture accesses a lower level one. 3499s subrequest._check_scope(argname, self._scope, scope) 3499s try: 3499s # Call the fixture function. 3499s > fixturedef.execute(request=subrequest) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s request = > 3499s 3499s def execute(self, request: SubRequest) -> FixtureValue: 3499s # Get required arguments and register our own finish() 3499s # with their finalization. 3499s for argname in self.argnames: 3499s fixturedef = request._get_active_fixturedef(argname) 3499s if argname != "request": 3499s # PseudoFixtureDef is only for "request". 3499s assert isinstance(fixturedef, FixtureDef) 3499s fixturedef.addfinalizer(functools.partial(self.finish, request=request)) 3499s 3499s my_cache_key = self.cache_key(request) 3499s if self.cached_result is not None: 3499s # note: comparison with `==` can fail (or be expensive) for e.g. 3499s # numpy arrays (#6497). 3499s cache_key = self.cached_result[1] 3499s if my_cache_key is cache_key: 3499s if self.cached_result[2] is not None: 3499s _, val, tb = self.cached_result[2] 3499s raise val.with_traceback(tb) 3499s else: 3499s result = self.cached_result[0] 3499s return result 3499s # We have a previous but differently parametrized fixture instance 3499s # so we need to tear it down before creating a new one. 3499s self.finish(request) 3499s assert self.cached_result is None 3499s 3499s ihook = request.node.ihook 3499s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1069: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s kwargs = {'fixturedef': , 'request': >} 3499s firstresult = True 3499s 3499s def __call__(self, **kwargs: object) -> Any: 3499s """Call the hook. 3499s 3499s Only accepts keyword arguments, which should match the hook 3499s specification. 3499s 3499s Returns the result(s) of calling all registered plugins, see 3499s :ref:`calling`. 3499s """ 3499s assert ( 3499s not self.is_historic() 3499s ), "Cannot directly call a historic hook - use call_historic instead." 3499s self._verify_all_args_are_provided(kwargs) 3499s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 3499s # Copy because plugins may register other plugins during iteration (#438). 3499s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 3499s 3499s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = <_pytest.config.PytestPluginManager object at 0xe9079168> 3499s hook_name = 'pytest_fixture_setup' 3499s methods = [>] 3499s kwargs = {'fixturedef': , 'request': >} 3499s firstresult = True 3499s 3499s def _hookexec( 3499s self, 3499s hook_name: str, 3499s methods: Sequence[HookImpl], 3499s kwargs: Mapping[str, object], 3499s firstresult: bool, 3499s ) -> object | list[object]: 3499s # called from all hookcaller instances. 3499s # enable_tracing will set its own wrapping function at self._inner_hookexec 3499s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 3499s 3499s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s fixturedef = 3499s request = > 3499s 3499s def pytest_fixture_setup( 3499s fixturedef: FixtureDef[FixtureValue], request: SubRequest 3499s ) -> FixtureValue: 3499s """Execution of fixture setup.""" 3499s kwargs = {} 3499s for argname in fixturedef.argnames: 3499s fixdef = request._get_active_fixturedef(argname) 3499s assert fixdef.cached_result is not None 3499s result, arg_cache_key, exc = fixdef.cached_result 3499s request._check_scope(argname, request._scope, fixdef._scope) 3499s kwargs[argname] = result 3499s 3499s fixturefunc = resolve_fixture_function(fixturedef, request) 3499s my_cache_key = fixturedef.cache_key(request) 3499s try: 3499s > result = call_fixture_func(fixturefunc, request, kwargs) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1123: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s fixturefunc = 3499s request = > 3499s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv'), 'types_data': [{'B... False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}]} 3499s 3499s def call_fixture_func( 3499s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 3499s ) -> FixtureValue: 3499s if is_generator(fixturefunc): 3499s fixturefunc = cast( 3499s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 3499s ) 3499s generator = fixturefunc(**kwargs) 3499s try: 3499s > fixture_result = next(generator) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:895: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s iris_path = PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv') 3499s types_data = [{'BoolCol': False, 'BoolColWithNull': False, 'DateCol': '2000-01-03 00:00:00', 'DateColWithTz': '2000-01-01 00:00:00-...: False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}] 3499s 3499s @pytest.fixture 3499s def mysql_pymysql_engine(iris_path, types_data): 3499s sqlalchemy = pytest.importorskip("sqlalchemy") 3499s pymysql = pytest.importorskip("pymysql") 3499s engine = sqlalchemy.create_engine( 3499s "mysql+pymysql://root@localhost:3306/pandas", 3499s connect_args={"client_flag": pymysql.constants.CLIENT.MULTI_STATEMENTS}, 3499s poolclass=sqlalchemy.pool.NullPool, 3499s ) 3499s > insp = sqlalchemy.inspect(engine) 3499s 3499s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:409: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s subject = Engine(mysql+pymysql://root@localhost:3306/pandas), raiseerr = True 3499s 3499s def inspect(subject, raiseerr=True): 3499s """Produce an inspection object for the given target. 3499s 3499s The returned value in some cases may be the 3499s same object as the one given, such as if a 3499s :class:`_orm.Mapper` object is passed. In other 3499s cases, it will be an instance of the registered 3499s inspection type for the given object, such as 3499s if an :class:`_engine.Engine` is passed, an 3499s :class:`_reflection.Inspector` object is returned. 3499s 3499s :param subject: the subject to be inspected. 3499s :param raiseerr: When ``True``, if the given subject 3499s does not 3499s correspond to a known SQLAlchemy inspected type, 3499s :class:`sqlalchemy.exc.NoInspectionAvailable` 3499s is raised. If ``False``, ``None`` is returned. 3499s 3499s """ 3499s type_ = type(subject) 3499s for cls in type_.__mro__: 3499s if cls in _registrars: 3499s reg = _registrars[cls] 3499s if reg is True: 3499s return subject 3499s > ret = reg(subject) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:64: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 3499s 3499s @inspection._inspects(Engine) 3499s def _engine_insp(bind): 3499s > return Inspector._construct(Inspector._init_engine, bind) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:182: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s init = 3499s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 3499s 3499s @classmethod 3499s def _construct(cls, init, bind): 3499s 3499s if hasattr(bind.dialect, "inspector"): 3499s cls = bind.dialect.inspector 3499s 3499s self = cls.__new__(cls) 3499s > init(self, bind) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:117: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 3499s 3499s def _init_engine(self, engine): 3499s self.bind = self.engine = engine 3499s > engine.connect().close() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:128: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3499s close_with_result = False 3499s 3499s def connect(self, close_with_result=False): 3499s """Return a new :class:`_engine.Connection` object. 3499s 3499s The :class:`_engine.Connection` object is a facade that uses a DBAPI 3499s connection internally in order to communicate with the database. This 3499s connection is procured from the connection-holding :class:`_pool.Pool` 3499s referenced by this :class:`_engine.Engine`. When the 3499s :meth:`_engine.Connection.close` method of the 3499s :class:`_engine.Connection` object 3499s is called, the underlying DBAPI connection is then returned to the 3499s connection pool, where it may be used again in a subsequent call to 3499s :meth:`_engine.Engine.connect`. 3499s 3499s """ 3499s 3499s > return self._connection_cls(self, close_with_result=close_with_result) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3325: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 3499s close_with_result = False, _branch_from = None, _execution_options = None 3499s _dispatch = None, _has_events = None, _allow_revalidate = True 3499s 3499s def __init__( 3499s self, 3499s engine, 3499s connection=None, 3499s close_with_result=False, 3499s _branch_from=None, 3499s _execution_options=None, 3499s _dispatch=None, 3499s _has_events=None, 3499s _allow_revalidate=True, 3499s ): 3499s """Construct a new Connection.""" 3499s self.engine = engine 3499s self.dialect = engine.dialect 3499s self.__branch_from = _branch_from 3499s 3499s if _branch_from: 3499s # branching is always "from" the root connection 3499s assert _branch_from.__branch_from is None 3499s self._dbapi_connection = connection 3499s self._execution_options = _execution_options 3499s self._echo = _branch_from._echo 3499s self.should_close_with_result = False 3499s self.dispatch = _dispatch 3499s self._has_events = _branch_from._has_events 3499s else: 3499s self._dbapi_connection = ( 3499s connection 3499s if connection is not None 3499s > else engine.raw_connection() 3499s ) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:96: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = Engine(mysql+pymysql://root@localhost:3306/pandas), _connection = None 3499s 3499s def raw_connection(self, _connection=None): 3499s """Return a "raw" DBAPI connection from the connection pool. 3499s 3499s The returned object is a proxied version of the DBAPI 3499s connection object used by the underlying driver in use. 3499s The object will have all the same behavior as the real DBAPI 3499s connection, except that its ``close()`` method will result in the 3499s connection being returned to the pool, rather than being closed 3499s for real. 3499s 3499s This method provides direct DBAPI connection access for 3499s special situations when the API provided by 3499s :class:`_engine.Connection` 3499s is not needed. When a :class:`_engine.Connection` object is already 3499s present, the DBAPI connection is available using 3499s the :attr:`_engine.Connection.connection` accessor. 3499s 3499s .. seealso:: 3499s 3499s :ref:`dbapi_connections` 3499s 3499s """ 3499s > return self._wrap_pool_connect(self.pool.connect, _connection) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3404: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3499s fn = > 3499s connection = None 3499s 3499s def _wrap_pool_connect(self, fn, connection): 3499s dialect = self.dialect 3499s try: 3499s return fn() 3499s except dialect.dbapi.Error as e: 3499s if connection is None: 3499s > Connection._handle_dbapi_exception_noconnection( 3499s e, dialect, self 3499s ) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3374: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s e = OperationalError(2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3499s dialect = 3499s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 3499s 3499s @classmethod 3499s def _handle_dbapi_exception_noconnection(cls, e, dialect, engine): 3499s exc_info = sys.exc_info() 3499s 3499s is_disconnect = dialect.is_disconnect(e, None, None) 3499s 3499s should_wrap = isinstance(e, dialect.dbapi.Error) 3499s 3499s if should_wrap: 3499s sqlalchemy_exception = exc.DBAPIError.instance( 3499s None, 3499s None, 3499s e, 3499s dialect.dbapi.Error, 3499s hide_parameters=engine.hide_parameters, 3499s connection_invalidated=is_disconnect, 3499s ) 3499s else: 3499s sqlalchemy_exception = None 3499s 3499s newraise = None 3499s 3499s if engine._has_events: 3499s ctx = ExceptionContextImpl( 3499s e, 3499s sqlalchemy_exception, 3499s engine, 3499s None, 3499s None, 3499s None, 3499s None, 3499s None, 3499s is_disconnect, 3499s True, 3499s ) 3499s for fn in engine.dispatch.handle_error: 3499s try: 3499s # handler returns an exception; 3499s # call next handler in a chain 3499s per_fn = fn(ctx) 3499s if per_fn is not None: 3499s ctx.chained_exception = newraise = per_fn 3499s except Exception as _raised: 3499s # handler raises an exception - stop processing 3499s newraise = _raised 3499s break 3499s 3499s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 3499s sqlalchemy_exception.connection_invalidated = ( 3499s is_disconnect 3499s ) = ctx.is_disconnect 3499s 3499s if newraise: 3499s util.raise_(newraise, with_traceback=exc_info[2], from_=e) 3499s elif should_wrap: 3499s > util.raise_( 3499s sqlalchemy_exception, with_traceback=exc_info[2], from_=e 3499s ) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2208: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s def raise_( 3499s exception, with_traceback=None, replace_context=None, from_=False 3499s ): 3499s r"""implement "raise" with cause support. 3499s 3499s :param exception: exception to raise 3499s :param with_traceback: will call exception.with_traceback() 3499s :param replace_context: an as-yet-unsupported feature. This is 3499s an exception object which we are "replacing", e.g., it's our 3499s "cause" but we don't want it printed. Basically just what 3499s ``__suppress_context__`` does but we don't want to suppress 3499s the enclosing context, if any. So for now we make it the 3499s cause. 3499s :param from\_: the cause. this actually sets the cause and doesn't 3499s hope to hide it someday. 3499s 3499s """ 3499s if with_traceback is not None: 3499s exception = exception.with_traceback(with_traceback) 3499s 3499s if from_ is not False: 3499s exception.__cause__ = from_ 3499s elif replace_context is not None: 3499s # no good solution here, we would like to have the exception 3499s # have only the context of replace_context.__context__ so that the 3499s # intermediary exception does not change, but we can't figure 3499s # that out. 3499s exception.__cause__ = replace_context 3499s 3499s try: 3499s > raise exception 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3499s fn = > 3499s connection = None 3499s 3499s def _wrap_pool_connect(self, fn, connection): 3499s dialect = self.dialect 3499s try: 3499s > return fn() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def connect(self): 3499s """Return a DBAPI connection from the pool. 3499s 3499s The connection is instrumented such that when its 3499s ``close()`` method is called, the connection will be returned to 3499s the pool. 3499s 3499s """ 3499s > return _ConnectionFairy._checkout(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s pool = , threadconns = None 3499s fairy = None 3499s 3499s @classmethod 3499s def _checkout(cls, pool, threadconns=None, fairy=None): 3499s if not fairy: 3499s > fairy = _ConnectionRecord.checkout(pool) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s pool = 3499s 3499s @classmethod 3499s def checkout(cls, pool): 3499s > rec = pool._do_get() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def _do_get(self): 3499s > return self._create_connection() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def _create_connection(self): 3499s """Called by subclasses to create a new ConnectionRecord.""" 3499s 3499s > return _ConnectionRecord(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s pool = , connect = True 3499s 3499s def __init__(self, pool, connect=True): 3499s self.__pool = pool 3499s if connect: 3499s > self.__connect() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def __connect(self): 3499s pool = self.__pool 3499s 3499s # ensure any existing connection is removed, so that if 3499s # creator fails, this attribute stays None 3499s self.dbapi_connection = None 3499s try: 3499s self.starttime = time.time() 3499s self.dbapi_connection = connection = pool._invoke_creator(self) 3499s pool.logger.debug("Created new connection %r", connection) 3499s self.fresh = True 3499s except BaseException as e: 3499s > with util.safe_reraise(): 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s type_ = None, value = None, traceback = None 3499s 3499s def __exit__(self, type_, value, traceback): 3499s # see #2703 for notes 3499s if type_ is None: 3499s exc_type, exc_value, exc_tb = self._exc_info 3499s self._exc_info = None # remove potential circular references 3499s if not self.warn_only: 3499s > compat.raise_( 3499s exc_value, 3499s with_traceback=exc_tb, 3499s ) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s def raise_( 3499s exception, with_traceback=None, replace_context=None, from_=False 3499s ): 3499s r"""implement "raise" with cause support. 3499s 3499s :param exception: exception to raise 3499s :param with_traceback: will call exception.with_traceback() 3499s :param replace_context: an as-yet-unsupported feature. This is 3499s an exception object which we are "replacing", e.g., it's our 3499s "cause" but we don't want it printed. Basically just what 3499s ``__suppress_context__`` does but we don't want to suppress 3499s the enclosing context, if any. So for now we make it the 3499s cause. 3499s :param from\_: the cause. this actually sets the cause and doesn't 3499s hope to hide it someday. 3499s 3499s """ 3499s if with_traceback is not None: 3499s exception = exception.with_traceback(with_traceback) 3499s 3499s if from_ is not False: 3499s exception.__cause__ = from_ 3499s elif replace_context is not None: 3499s # no good solution here, we would like to have the exception 3499s # have only the context of replace_context.__context__ so that the 3499s # intermediary exception does not change, but we can't figure 3499s # that out. 3499s exception.__cause__ = replace_context 3499s 3499s try: 3499s > raise exception 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def __connect(self): 3499s pool = self.__pool 3499s 3499s # ensure any existing connection is removed, so that if 3499s # creator fails, this attribute stays None 3499s self.dbapi_connection = None 3499s try: 3499s self.starttime = time.time() 3499s > self.dbapi_connection = connection = pool._invoke_creator(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s connection_record = 3499s 3499s def connect(connection_record=None): 3499s if dialect._has_events: 3499s for fn in dialect.dispatch.do_connect: 3499s connection = fn(dialect, connection_record, cargs, cparams) 3499s if connection is not None: 3499s return connection 3499s > return dialect.connect(*cargs, **cparams) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s cargs = () 3499s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 3499s 3499s def connect(self, *cargs, **cparams): 3499s # inherits the docstring from interfaces.Dialect.connect 3499s > return self.dbapi.connect(*cargs, **cparams) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def __init__( 3499s self, 3499s *, 3499s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 3499s password="", 3499s host=None, 3499s database=None, 3499s unix_socket=None, 3499s port=0, 3499s charset="", 3499s collation=None, 3499s sql_mode=None, 3499s read_default_file=None, 3499s conv=None, 3499s use_unicode=True, 3499s client_flag=0, 3499s cursorclass=Cursor, 3499s init_command=None, 3499s connect_timeout=10, 3499s read_default_group=None, 3499s autocommit=False, 3499s local_infile=False, 3499s max_allowed_packet=16 * 1024 * 1024, 3499s defer_connect=False, 3499s auth_plugin_map=None, 3499s read_timeout=None, 3499s write_timeout=None, 3499s bind_address=None, 3499s binary_prefix=False, 3499s program_name=None, 3499s server_public_key=None, 3499s ssl=None, 3499s ssl_ca=None, 3499s ssl_cert=None, 3499s ssl_disabled=None, 3499s ssl_key=None, 3499s ssl_key_password=None, 3499s ssl_verify_cert=None, 3499s ssl_verify_identity=None, 3499s compress=None, # not supported 3499s named_pipe=None, # not supported 3499s passwd=None, # deprecated 3499s db=None, # deprecated 3499s ): 3499s if db is not None and database is None: 3499s # We will raise warning in 2022 or later. 3499s # See https://github.com/PyMySQL/PyMySQL/issues/939 3499s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 3499s database = db 3499s if passwd is not None and not password: 3499s # We will raise warning in 2022 or later. 3499s # See https://github.com/PyMySQL/PyMySQL/issues/939 3499s # warnings.warn( 3499s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 3499s # ) 3499s password = passwd 3499s 3499s if compress or named_pipe: 3499s raise NotImplementedError( 3499s "compress and named_pipe arguments are not supported" 3499s ) 3499s 3499s self._local_infile = bool(local_infile) 3499s if self._local_infile: 3499s client_flag |= CLIENT.LOCAL_FILES 3499s 3499s if read_default_group and not read_default_file: 3499s if sys.platform.startswith("win"): 3499s read_default_file = "c:\\my.ini" 3499s else: 3499s read_default_file = "/etc/my.cnf" 3499s 3499s if read_default_file: 3499s if not read_default_group: 3499s read_default_group = "client" 3499s 3499s cfg = Parser() 3499s cfg.read(os.path.expanduser(read_default_file)) 3499s 3499s def _config(key, arg): 3499s if arg: 3499s return arg 3499s try: 3499s return cfg.get(read_default_group, key) 3499s except Exception: 3499s return arg 3499s 3499s user = _config("user", user) 3499s password = _config("password", password) 3499s host = _config("host", host) 3499s database = _config("database", database) 3499s unix_socket = _config("socket", unix_socket) 3499s port = int(_config("port", port)) 3499s bind_address = _config("bind-address", bind_address) 3499s charset = _config("default-character-set", charset) 3499s if not ssl: 3499s ssl = {} 3499s if isinstance(ssl, dict): 3499s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 3499s value = _config("ssl-" + key, ssl.get(key)) 3499s if value: 3499s ssl[key] = value 3499s 3499s self.ssl = False 3499s if not ssl_disabled: 3499s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 3499s ssl = { 3499s "ca": ssl_ca, 3499s "check_hostname": bool(ssl_verify_identity), 3499s "verify_mode": ssl_verify_cert 3499s if ssl_verify_cert is not None 3499s else False, 3499s } 3499s if ssl_cert is not None: 3499s ssl["cert"] = ssl_cert 3499s if ssl_key is not None: 3499s ssl["key"] = ssl_key 3499s if ssl_key_password is not None: 3499s ssl["password"] = ssl_key_password 3499s if ssl: 3499s if not SSL_ENABLED: 3499s raise NotImplementedError("ssl module not found") 3499s self.ssl = True 3499s client_flag |= CLIENT.SSL 3499s self.ctx = self._create_ssl_ctx(ssl) 3499s 3499s self.host = host or "localhost" 3499s self.port = port or 3306 3499s if type(self.port) is not int: 3499s raise ValueError("port should be of type int") 3499s self.user = user or DEFAULT_USER 3499s self.password = password or b"" 3499s if isinstance(self.password, str): 3499s self.password = self.password.encode("latin1") 3499s self.db = database 3499s self.unix_socket = unix_socket 3499s self.bind_address = bind_address 3499s if not (0 < connect_timeout <= 31536000): 3499s raise ValueError("connect_timeout should be >0 and <=31536000") 3499s self.connect_timeout = connect_timeout or None 3499s if read_timeout is not None and read_timeout <= 0: 3499s raise ValueError("read_timeout should be > 0") 3499s self._read_timeout = read_timeout 3499s if write_timeout is not None and write_timeout <= 0: 3499s raise ValueError("write_timeout should be > 0") 3499s self._write_timeout = write_timeout 3499s 3499s self.charset = charset or DEFAULT_CHARSET 3499s self.collation = collation 3499s self.use_unicode = use_unicode 3499s 3499s self.encoding = charset_by_name(self.charset).encoding 3499s 3499s client_flag |= CLIENT.CAPABILITIES 3499s if self.db: 3499s client_flag |= CLIENT.CONNECT_WITH_DB 3499s 3499s self.client_flag = client_flag 3499s 3499s self.cursorclass = cursorclass 3499s 3499s self._result = None 3499s self._affected_rows = 0 3499s self.host_info = "Not connected" 3499s 3499s # specified autocommit mode. None means use server default. 3499s self.autocommit_mode = autocommit 3499s 3499s if conv is None: 3499s conv = converters.conversions 3499s 3499s # Need for MySQLdb compatibility. 3499s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 3499s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 3499s self.sql_mode = sql_mode 3499s self.init_command = init_command 3499s self.max_allowed_packet = max_allowed_packet 3499s self._auth_plugin_map = auth_plugin_map or {} 3499s self._binary_prefix = binary_prefix 3499s self.server_public_key = server_public_key 3499s 3499s self._connect_attrs = { 3499s "_client_name": "pymysql", 3499s "_client_version": VERSION_STRING, 3499s "_pid": str(os.getpid()), 3499s } 3499s 3499s if program_name: 3499s self._connect_attrs["program_name"] = program_name 3499s 3499s if defer_connect: 3499s self._sock = None 3499s else: 3499s > self.connect() 3499s 3499s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = , sock = None 3499s 3499s def connect(self, sock=None): 3499s self._closed = False 3499s try: 3499s if sock is None: 3499s if self.unix_socket: 3499s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3499s sock.settimeout(self.connect_timeout) 3499s sock.connect(self.unix_socket) 3499s self.host_info = "Localhost via UNIX socket" 3499s self._secure = True 3499s if DEBUG: 3499s print("connected using unix_socket") 3499s else: 3499s kwargs = {} 3499s if self.bind_address is not None: 3499s kwargs["source_address"] = (self.bind_address, 0) 3499s while True: 3499s try: 3499s sock = socket.create_connection( 3499s (self.host, self.port), self.connect_timeout, **kwargs 3499s ) 3499s break 3499s except OSError as e: 3499s if e.errno == errno.EINTR: 3499s continue 3499s raise 3499s self.host_info = "socket %s:%d" % (self.host, self.port) 3499s if DEBUG: 3499s print("connected using socket") 3499s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 3499s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 3499s sock.settimeout(None) 3499s 3499s self._sock = sock 3499s self._rfile = sock.makefile("rb") 3499s self._next_seq_id = 0 3499s 3499s self._get_server_information() 3499s self._request_authentication() 3499s 3499s # Send "SET NAMES" query on init for: 3499s # - Ensure charaset (and collation) is set to the server. 3499s # - collation_id in handshake packet may be ignored. 3499s # - If collation is not specified, we don't know what is server's 3499s # default collation for the charset. For example, default collation 3499s # of utf8mb4 is: 3499s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 3499s # - MySQL 8.0: utf8mb4_0900_ai_ci 3499s # 3499s # Reference: 3499s # - https://github.com/PyMySQL/PyMySQL/issues/1092 3499s # - https://github.com/wagtail/wagtail/issues/9477 3499s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 3499s self.set_character_set(self.charset, self.collation) 3499s 3499s if self.sql_mode is not None: 3499s c = self.cursor() 3499s c.execute("SET sql_mode=%s", (self.sql_mode,)) 3499s c.close() 3499s 3499s if self.init_command is not None: 3499s c = self.cursor() 3499s c.execute(self.init_command) 3499s c.close() 3499s 3499s if self.autocommit_mode is not None: 3499s self.autocommit(self.autocommit_mode) 3499s except BaseException as e: 3499s self._rfile = None 3499s if sock is not None: 3499s try: 3499s sock.close() 3499s except: # noqa 3499s pass 3499s 3499s if isinstance(e, (OSError, IOError)): 3499s exc = err.OperationalError( 3499s CR.CR_CONN_HOST_ERROR, 3499s f"Can't connect to MySQL server on {self.host!r} ({e})", 3499s ) 3499s # Keep original exception and traceback to investigate error. 3499s exc.original_exception = e 3499s exc.traceback = traceback.format_exc() 3499s if DEBUG: 3499s print(exc.traceback) 3499s > raise exc 3499s E sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3499s E (Background on this error at: https://sqlalche.me/e/14/e3q8) 3499s 3499s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 3499s ___________ test_to_sql_exist[replace-1-postgresql_psycopg2_engine] ____________ 3499s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3499s fn = > 3499s connection = None 3499s 3499s def _wrap_pool_connect(self, fn, connection): 3499s dialect = self.dialect 3499s try: 3499s > return fn() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def connect(self): 3499s """Return a DBAPI connection from the pool. 3499s 3499s The connection is instrumented such that when its 3499s ``close()`` method is called, the connection will be returned to 3499s the pool. 3499s 3499s """ 3499s > return _ConnectionFairy._checkout(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s pool = , threadconns = None 3499s fairy = None 3499s 3499s @classmethod 3499s def _checkout(cls, pool, threadconns=None, fairy=None): 3499s if not fairy: 3499s > fairy = _ConnectionRecord.checkout(pool) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s pool = 3499s 3499s @classmethod 3499s def checkout(cls, pool): 3499s > rec = pool._do_get() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def _do_get(self): 3499s > return self._create_connection() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def _create_connection(self): 3499s """Called by subclasses to create a new ConnectionRecord.""" 3499s 3499s > return _ConnectionRecord(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s pool = , connect = True 3499s 3499s def __init__(self, pool, connect=True): 3499s self.__pool = pool 3499s if connect: 3499s > self.__connect() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def __connect(self): 3499s pool = self.__pool 3499s 3499s # ensure any existing connection is removed, so that if 3499s # creator fails, this attribute stays None 3499s self.dbapi_connection = None 3499s try: 3499s self.starttime = time.time() 3499s self.dbapi_connection = connection = pool._invoke_creator(self) 3499s pool.logger.debug("Created new connection %r", connection) 3499s self.fresh = True 3499s except BaseException as e: 3499s > with util.safe_reraise(): 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s type_ = None, value = None, traceback = None 3499s 3499s def __exit__(self, type_, value, traceback): 3499s # see #2703 for notes 3499s if type_ is None: 3499s exc_type, exc_value, exc_tb = self._exc_info 3499s self._exc_info = None # remove potential circular references 3499s if not self.warn_only: 3499s > compat.raise_( 3499s exc_value, 3499s with_traceback=exc_tb, 3499s ) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s def raise_( 3499s exception, with_traceback=None, replace_context=None, from_=False 3499s ): 3499s r"""implement "raise" with cause support. 3499s 3499s :param exception: exception to raise 3499s :param with_traceback: will call exception.with_traceback() 3499s :param replace_context: an as-yet-unsupported feature. This is 3499s an exception object which we are "replacing", e.g., it's our 3499s "cause" but we don't want it printed. Basically just what 3499s ``__suppress_context__`` does but we don't want to suppress 3499s the enclosing context, if any. So for now we make it the 3499s cause. 3499s :param from\_: the cause. this actually sets the cause and doesn't 3499s hope to hide it someday. 3499s 3499s """ 3499s if with_traceback is not None: 3499s exception = exception.with_traceback(with_traceback) 3499s 3499s if from_ is not False: 3499s exception.__cause__ = from_ 3499s elif replace_context is not None: 3499s # no good solution here, we would like to have the exception 3499s # have only the context of replace_context.__context__ so that the 3499s # intermediary exception does not change, but we can't figure 3499s # that out. 3499s exception.__cause__ = replace_context 3499s 3499s try: 3499s > raise exception 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def __connect(self): 3499s pool = self.__pool 3499s 3499s # ensure any existing connection is removed, so that if 3499s # creator fails, this attribute stays None 3499s self.dbapi_connection = None 3499s try: 3499s self.starttime = time.time() 3499s > self.dbapi_connection = connection = pool._invoke_creator(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s connection_record = 3499s 3499s def connect(connection_record=None): 3499s if dialect._has_events: 3499s for fn in dialect.dispatch.do_connect: 3499s connection = fn(dialect, connection_record, cargs, cparams) 3499s if connection is not None: 3499s return connection 3499s > return dialect.connect(*cargs, **cparams) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s cargs = () 3499s cparams = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3499s 3499s def connect(self, *cargs, **cparams): 3499s # inherits the docstring from interfaces.Dialect.connect 3499s > return self.dbapi.connect(*cargs, **cparams) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s dsn = 'host=localhost user=postgres password=postgres port=5432 dbname=pandas' 3499s connection_factory = None, cursor_factory = None 3499s kwargs = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3499s kwasync = {} 3499s 3499s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 3499s """ 3499s Create a new database connection. 3499s 3499s The connection parameters can be specified as a string: 3499s 3499s conn = psycopg2.connect("dbname=test user=postgres password=secret") 3499s 3499s or using a set of keyword arguments: 3499s 3499s conn = psycopg2.connect(database="test", user="postgres", password="secret") 3499s 3499s Or as a mix of both. The basic connection parameters are: 3499s 3499s - *dbname*: the database name 3499s - *database*: the database name (only as keyword argument) 3499s - *user*: user name used to authenticate 3499s - *password*: password used to authenticate 3499s - *host*: database host address (defaults to UNIX socket if not provided) 3499s - *port*: connection port number (defaults to 5432 if not provided) 3499s 3499s Using the *connection_factory* parameter a different class or connections 3499s factory can be specified. It should be a callable object taking a dsn 3499s argument. 3499s 3499s Using the *cursor_factory* parameter, a new default cursor factory will be 3499s used by cursor(). 3499s 3499s Using *async*=True an asynchronous connection will be created. *async_* is 3499s a valid alias (for Python versions where ``async`` is a keyword). 3499s 3499s Any other keyword parameter will be passed to the underlying client 3499s library: the list of supported parameters depends on the library version. 3499s 3499s """ 3499s kwasync = {} 3499s if 'async' in kwargs: 3499s kwasync['async'] = kwargs.pop('async') 3499s if 'async_' in kwargs: 3499s kwasync['async_'] = kwargs.pop('async_') 3499s 3499s dsn = _ext.make_dsn(dsn, **kwargs) 3499s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 3499s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 3499s E Is the server running on that host and accepting TCP/IP connections? 3499s 3499s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 3499s 3499s The above exception was the direct cause of the following exception: 3499s 3499s conn = 'postgresql_psycopg2_engine', mode = 'replace', num_row_coef = 1 3499s test_frame1 = index A B C D 3499s 0 2000-01-03 00:00:00 0.980269 3.685731 -0.364217 -1...0-01-05 00:00:00 0.498581 0.731168 -0.537677 1.346270 3499s 3 2000-01-06 00:00:00 1.120202 1.567621 0.003641 0.675253 3499s request = > 3499s 3499s @pytest.mark.db 3499s @pytest.mark.parametrize("conn", all_connectable) 3499s @pytest.mark.parametrize("mode, num_row_coef", [("replace", 1), ("append", 2)]) 3499s def test_to_sql_exist(conn, mode, num_row_coef, test_frame1, request): 3499s > conn = request.getfixturevalue(conn) 3499s 3499s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:606: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = > 3499s argname = 'postgresql_psycopg2_engine' 3499s 3499s def getfixturevalue(self, argname: str) -> Any: 3499s """Dynamically run a named fixture function. 3499s 3499s Declaring fixtures via function argument is recommended where possible. 3499s But if you can only decide whether to use another fixture at test 3499s setup time, you may use this function to retrieve it inside a fixture 3499s or test function body. 3499s 3499s This method can be used during the test setup phase or the test run 3499s phase, but during the test teardown phase a fixture's value may not 3499s be available. 3499s 3499s :param argname: 3499s The fixture name. 3499s :raises pytest.FixtureLookupError: 3499s If the given fixture could not be found. 3499s """ 3499s > fixturedef = self._get_active_fixturedef(argname) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:585: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = > 3499s argname = 'postgresql_psycopg2_engine' 3499s 3499s def _get_active_fixturedef( 3499s self, argname: str 3499s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3499s try: 3499s return self._fixture_defs[argname] 3499s except KeyError: 3499s try: 3499s fixturedef = self._getnextfixturedef(argname) 3499s except FixtureLookupError: 3499s if argname == "request": 3499s cached_result = (self, [0], None) 3499s return PseudoFixtureDef(cached_result, Scope.Function) 3499s raise 3499s # Remove indent to prevent the python3 exception 3499s # from leaking into the call. 3499s > self._compute_fixture_value(fixturedef) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = > 3499s fixturedef = 3499s 3499s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3499s """Create a SubRequest based on "self" and call the execute method 3499s of the given FixtureDef object. 3499s 3499s This will force the FixtureDef object to throw away any previous 3499s results and compute a new fixture value, which will be stored into 3499s the FixtureDef object itself. 3499s """ 3499s # prepare a subrequest object before calling fixture function 3499s # (latter managed by fixturedef) 3499s argname = fixturedef.argname 3499s funcitem = self._pyfuncitem 3499s scope = fixturedef._scope 3499s try: 3499s callspec = funcitem.callspec 3499s except AttributeError: 3499s callspec = None 3499s if callspec is not None and argname in callspec.params: 3499s param = callspec.params[argname] 3499s param_index = callspec.indices[argname] 3499s # If a parametrize invocation set a scope it will override 3499s # the static scope defined with the fixture function. 3499s with suppress(KeyError): 3499s scope = callspec._arg2scope[argname] 3499s else: 3499s param = NOTSET 3499s param_index = 0 3499s has_params = fixturedef.params is not None 3499s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3499s if has_params and fixtures_not_supported: 3499s msg = ( 3499s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3499s "Node id: {nodeid}\n" 3499s "Function type: {typename}" 3499s ).format( 3499s name=funcitem.name, 3499s nodeid=funcitem.nodeid, 3499s typename=type(funcitem).__name__, 3499s ) 3499s fail(msg, pytrace=False) 3499s if has_params: 3499s frame = inspect.stack()[3] 3499s frameinfo = inspect.getframeinfo(frame[0]) 3499s source_path = absolutepath(frameinfo.filename) 3499s source_lineno = frameinfo.lineno 3499s try: 3499s source_path_str = str( 3499s source_path.relative_to(funcitem.config.rootpath) 3499s ) 3499s except ValueError: 3499s source_path_str = str(source_path) 3499s msg = ( 3499s "The requested fixture has no parameter defined for test:\n" 3499s " {}\n\n" 3499s "Requested fixture '{}' defined in:\n{}" 3499s "\n\nRequested here:\n{}:{}".format( 3499s funcitem.nodeid, 3499s fixturedef.argname, 3499s getlocation(fixturedef.func, funcitem.config.rootpath), 3499s source_path_str, 3499s source_lineno, 3499s ) 3499s ) 3499s fail(msg, pytrace=False) 3499s 3499s subrequest = SubRequest( 3499s self, scope, param, param_index, fixturedef, _ispytest=True 3499s ) 3499s 3499s # Check if a higher-level scoped fixture accesses a lower level one. 3499s subrequest._check_scope(argname, self._scope, scope) 3499s try: 3499s # Call the fixture function. 3499s > fixturedef.execute(request=subrequest) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s request = > 3499s 3499s def execute(self, request: SubRequest) -> FixtureValue: 3499s # Get required arguments and register our own finish() 3499s # with their finalization. 3499s for argname in self.argnames: 3499s fixturedef = request._get_active_fixturedef(argname) 3499s if argname != "request": 3499s # PseudoFixtureDef is only for "request". 3499s assert isinstance(fixturedef, FixtureDef) 3499s fixturedef.addfinalizer(functools.partial(self.finish, request=request)) 3499s 3499s my_cache_key = self.cache_key(request) 3499s if self.cached_result is not None: 3499s # note: comparison with `==` can fail (or be expensive) for e.g. 3499s # numpy arrays (#6497). 3499s cache_key = self.cached_result[1] 3499s if my_cache_key is cache_key: 3499s if self.cached_result[2] is not None: 3499s _, val, tb = self.cached_result[2] 3499s raise val.with_traceback(tb) 3499s else: 3499s result = self.cached_result[0] 3499s return result 3499s # We have a previous but differently parametrized fixture instance 3499s # so we need to tear it down before creating a new one. 3499s self.finish(request) 3499s assert self.cached_result is None 3499s 3499s ihook = request.node.ihook 3499s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1069: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s kwargs = {'fixturedef': , 'request': >} 3499s firstresult = True 3499s 3499s def __call__(self, **kwargs: object) -> Any: 3499s """Call the hook. 3499s 3499s Only accepts keyword arguments, which should match the hook 3499s specification. 3499s 3499s Returns the result(s) of calling all registered plugins, see 3499s :ref:`calling`. 3499s """ 3499s assert ( 3499s not self.is_historic() 3499s ), "Cannot directly call a historic hook - use call_historic instead." 3499s self._verify_all_args_are_provided(kwargs) 3499s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 3499s # Copy because plugins may register other plugins during iteration (#438). 3499s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 3499s 3499s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = <_pytest.config.PytestPluginManager object at 0xe9079168> 3499s hook_name = 'pytest_fixture_setup' 3499s methods = [>] 3499s kwargs = {'fixturedef': , 'request': >} 3499s firstresult = True 3499s 3499s def _hookexec( 3499s self, 3499s hook_name: str, 3499s methods: Sequence[HookImpl], 3499s kwargs: Mapping[str, object], 3499s firstresult: bool, 3499s ) -> object | list[object]: 3499s # called from all hookcaller instances. 3499s # enable_tracing will set its own wrapping function at self._inner_hookexec 3499s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 3499s 3499s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s fixturedef = 3499s request = > 3499s 3499s def pytest_fixture_setup( 3499s fixturedef: FixtureDef[FixtureValue], request: SubRequest 3499s ) -> FixtureValue: 3499s """Execution of fixture setup.""" 3499s kwargs = {} 3499s for argname in fixturedef.argnames: 3499s fixdef = request._get_active_fixturedef(argname) 3499s assert fixdef.cached_result is not None 3499s result, arg_cache_key, exc = fixdef.cached_result 3499s request._check_scope(argname, request._scope, fixdef._scope) 3499s kwargs[argname] = result 3499s 3499s fixturefunc = resolve_fixture_function(fixturedef, request) 3499s my_cache_key = fixturedef.cache_key(request) 3499s try: 3499s > result = call_fixture_func(fixturefunc, request, kwargs) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1123: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s fixturefunc = 3499s request = > 3499s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv'), 'types_data': [{'B... False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}]} 3499s 3499s def call_fixture_func( 3499s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 3499s ) -> FixtureValue: 3499s if is_generator(fixturefunc): 3499s fixturefunc = cast( 3499s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 3499s ) 3499s generator = fixturefunc(**kwargs) 3499s try: 3499s > fixture_result = next(generator) 3499s 3499s /usr/lib/python3/dist-packages/_pytest/fixtures.py:895: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s iris_path = PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv') 3499s types_data = [{'BoolCol': False, 'BoolColWithNull': False, 'DateCol': '2000-01-03 00:00:00', 'DateColWithTz': '2000-01-01 00:00:00-...: False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}] 3499s 3499s @pytest.fixture 3499s def postgresql_psycopg2_engine(iris_path, types_data): 3499s sqlalchemy = pytest.importorskip("sqlalchemy") 3499s pytest.importorskip("psycopg2") 3499s engine = sqlalchemy.create_engine( 3499s "postgresql+psycopg2://postgres:postgres@localhost:5432/pandas", 3499s poolclass=sqlalchemy.pool.NullPool, 3499s ) 3499s > insp = sqlalchemy.inspect(engine) 3499s 3499s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:438: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s subject = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3499s raiseerr = True 3499s 3499s def inspect(subject, raiseerr=True): 3499s """Produce an inspection object for the given target. 3499s 3499s The returned value in some cases may be the 3499s same object as the one given, such as if a 3499s :class:`_orm.Mapper` object is passed. In other 3499s cases, it will be an instance of the registered 3499s inspection type for the given object, such as 3499s if an :class:`_engine.Engine` is passed, an 3499s :class:`_reflection.Inspector` object is returned. 3499s 3499s :param subject: the subject to be inspected. 3499s :param raiseerr: When ``True``, if the given subject 3499s does not 3499s correspond to a known SQLAlchemy inspected type, 3499s :class:`sqlalchemy.exc.NoInspectionAvailable` 3499s is raised. If ``False``, ``None`` is returned. 3499s 3499s """ 3499s type_ = type(subject) 3499s for cls in type_.__mro__: 3499s if cls in _registrars: 3499s reg = _registrars[cls] 3499s if reg is True: 3499s return subject 3499s > ret = reg(subject) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:64: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3499s 3499s @inspection._inspects(Engine) 3499s def _engine_insp(bind): 3499s > return Inspector._construct(Inspector._init_engine, bind) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:182: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s init = 3499s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3499s 3499s @classmethod 3499s def _construct(cls, init, bind): 3499s 3499s if hasattr(bind.dialect, "inspector"): 3499s cls = bind.dialect.inspector 3499s 3499s self = cls.__new__(cls) 3499s > init(self, bind) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:117: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3499s 3499s def _init_engine(self, engine): 3499s self.bind = self.engine = engine 3499s > engine.connect().close() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:128: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3499s close_with_result = False 3499s 3499s def connect(self, close_with_result=False): 3499s """Return a new :class:`_engine.Connection` object. 3499s 3499s The :class:`_engine.Connection` object is a facade that uses a DBAPI 3499s connection internally in order to communicate with the database. This 3499s connection is procured from the connection-holding :class:`_pool.Pool` 3499s referenced by this :class:`_engine.Engine`. When the 3499s :meth:`_engine.Connection.close` method of the 3499s :class:`_engine.Connection` object 3499s is called, the underlying DBAPI connection is then returned to the 3499s connection pool, where it may be used again in a subsequent call to 3499s :meth:`_engine.Engine.connect`. 3499s 3499s """ 3499s 3499s > return self._connection_cls(self, close_with_result=close_with_result) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3325: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3499s connection = None, close_with_result = False, _branch_from = None 3499s _execution_options = None, _dispatch = None, _has_events = None 3499s _allow_revalidate = True 3499s 3499s def __init__( 3499s self, 3499s engine, 3499s connection=None, 3499s close_with_result=False, 3499s _branch_from=None, 3499s _execution_options=None, 3499s _dispatch=None, 3499s _has_events=None, 3499s _allow_revalidate=True, 3499s ): 3499s """Construct a new Connection.""" 3499s self.engine = engine 3499s self.dialect = engine.dialect 3499s self.__branch_from = _branch_from 3499s 3499s if _branch_from: 3499s # branching is always "from" the root connection 3499s assert _branch_from.__branch_from is None 3499s self._dbapi_connection = connection 3499s self._execution_options = _execution_options 3499s self._echo = _branch_from._echo 3499s self.should_close_with_result = False 3499s self.dispatch = _dispatch 3499s self._has_events = _branch_from._has_events 3499s else: 3499s self._dbapi_connection = ( 3499s connection 3499s if connection is not None 3499s > else engine.raw_connection() 3499s ) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:96: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3499s _connection = None 3499s 3499s def raw_connection(self, _connection=None): 3499s """Return a "raw" DBAPI connection from the connection pool. 3499s 3499s The returned object is a proxied version of the DBAPI 3499s connection object used by the underlying driver in use. 3499s The object will have all the same behavior as the real DBAPI 3499s connection, except that its ``close()`` method will result in the 3499s connection being returned to the pool, rather than being closed 3499s for real. 3499s 3499s This method provides direct DBAPI connection access for 3499s special situations when the API provided by 3499s :class:`_engine.Connection` 3499s is not needed. When a :class:`_engine.Connection` object is already 3499s present, the DBAPI connection is available using 3499s the :attr:`_engine.Connection.connection` accessor. 3499s 3499s .. seealso:: 3499s 3499s :ref:`dbapi_connections` 3499s 3499s """ 3499s > return self._wrap_pool_connect(self.pool.connect, _connection) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3404: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3499s fn = > 3499s connection = None 3499s 3499s def _wrap_pool_connect(self, fn, connection): 3499s dialect = self.dialect 3499s try: 3499s return fn() 3499s except dialect.dbapi.Error as e: 3499s if connection is None: 3499s > Connection._handle_dbapi_exception_noconnection( 3499s e, dialect, self 3499s ) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3374: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s e = OperationalError('connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused\n\tIs the server running on that host and accepting TCP/IP connections?\n') 3499s dialect = 3499s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3499s 3499s @classmethod 3499s def _handle_dbapi_exception_noconnection(cls, e, dialect, engine): 3499s exc_info = sys.exc_info() 3499s 3499s is_disconnect = dialect.is_disconnect(e, None, None) 3499s 3499s should_wrap = isinstance(e, dialect.dbapi.Error) 3499s 3499s if should_wrap: 3499s sqlalchemy_exception = exc.DBAPIError.instance( 3499s None, 3499s None, 3499s e, 3499s dialect.dbapi.Error, 3499s hide_parameters=engine.hide_parameters, 3499s connection_invalidated=is_disconnect, 3499s ) 3499s else: 3499s sqlalchemy_exception = None 3499s 3499s newraise = None 3499s 3499s if engine._has_events: 3499s ctx = ExceptionContextImpl( 3499s e, 3499s sqlalchemy_exception, 3499s engine, 3499s None, 3499s None, 3499s None, 3499s None, 3499s None, 3499s is_disconnect, 3499s True, 3499s ) 3499s for fn in engine.dispatch.handle_error: 3499s try: 3499s # handler returns an exception; 3499s # call next handler in a chain 3499s per_fn = fn(ctx) 3499s if per_fn is not None: 3499s ctx.chained_exception = newraise = per_fn 3499s except Exception as _raised: 3499s # handler raises an exception - stop processing 3499s newraise = _raised 3499s break 3499s 3499s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 3499s sqlalchemy_exception.connection_invalidated = ( 3499s is_disconnect 3499s ) = ctx.is_disconnect 3499s 3499s if newraise: 3499s util.raise_(newraise, with_traceback=exc_info[2], from_=e) 3499s elif should_wrap: 3499s > util.raise_( 3499s sqlalchemy_exception, with_traceback=exc_info[2], from_=e 3499s ) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2208: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s def raise_( 3499s exception, with_traceback=None, replace_context=None, from_=False 3499s ): 3499s r"""implement "raise" with cause support. 3499s 3499s :param exception: exception to raise 3499s :param with_traceback: will call exception.with_traceback() 3499s :param replace_context: an as-yet-unsupported feature. This is 3499s an exception object which we are "replacing", e.g., it's our 3499s "cause" but we don't want it printed. Basically just what 3499s ``__suppress_context__`` does but we don't want to suppress 3499s the enclosing context, if any. So for now we make it the 3499s cause. 3499s :param from\_: the cause. this actually sets the cause and doesn't 3499s hope to hide it someday. 3499s 3499s """ 3499s if with_traceback is not None: 3499s exception = exception.with_traceback(with_traceback) 3499s 3499s if from_ is not False: 3499s exception.__cause__ = from_ 3499s elif replace_context is not None: 3499s # no good solution here, we would like to have the exception 3499s # have only the context of replace_context.__context__ so that the 3499s # intermediary exception does not change, but we can't figure 3499s # that out. 3499s exception.__cause__ = replace_context 3499s 3499s try: 3499s > raise exception 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3499s fn = > 3499s connection = None 3499s 3499s def _wrap_pool_connect(self, fn, connection): 3499s dialect = self.dialect 3499s try: 3499s > return fn() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def connect(self): 3499s """Return a DBAPI connection from the pool. 3499s 3499s The connection is instrumented such that when its 3499s ``close()`` method is called, the connection will be returned to 3499s the pool. 3499s 3499s """ 3499s > return _ConnectionFairy._checkout(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s pool = , threadconns = None 3499s fairy = None 3499s 3499s @classmethod 3499s def _checkout(cls, pool, threadconns=None, fairy=None): 3499s if not fairy: 3499s > fairy = _ConnectionRecord.checkout(pool) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s cls = 3499s pool = 3499s 3499s @classmethod 3499s def checkout(cls, pool): 3499s > rec = pool._do_get() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def _do_get(self): 3499s > return self._create_connection() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def _create_connection(self): 3499s """Called by subclasses to create a new ConnectionRecord.""" 3499s 3499s > return _ConnectionRecord(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s pool = , connect = True 3499s 3499s def __init__(self, pool, connect=True): 3499s self.__pool = pool 3499s if connect: 3499s > self.__connect() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def __connect(self): 3499s pool = self.__pool 3499s 3499s # ensure any existing connection is removed, so that if 3499s # creator fails, this attribute stays None 3499s self.dbapi_connection = None 3499s try: 3499s self.starttime = time.time() 3499s self.dbapi_connection = connection = pool._invoke_creator(self) 3499s pool.logger.debug("Created new connection %r", connection) 3499s self.fresh = True 3499s except BaseException as e: 3499s > with util.safe_reraise(): 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s type_ = None, value = None, traceback = None 3499s 3499s def __exit__(self, type_, value, traceback): 3499s # see #2703 for notes 3499s if type_ is None: 3499s exc_type, exc_value, exc_tb = self._exc_info 3499s self._exc_info = None # remove potential circular references 3499s if not self.warn_only: 3499s > compat.raise_( 3499s exc_value, 3499s with_traceback=exc_tb, 3499s ) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s def raise_( 3499s exception, with_traceback=None, replace_context=None, from_=False 3499s ): 3499s r"""implement "raise" with cause support. 3499s 3499s :param exception: exception to raise 3499s :param with_traceback: will call exception.with_traceback() 3499s :param replace_context: an as-yet-unsupported feature. This is 3499s an exception object which we are "replacing", e.g., it's our 3499s "cause" but we don't want it printed. Basically just what 3499s ``__suppress_context__`` does but we don't want to suppress 3499s the enclosing context, if any. So for now we make it the 3499s cause. 3499s :param from\_: the cause. this actually sets the cause and doesn't 3499s hope to hide it someday. 3499s 3499s """ 3499s if with_traceback is not None: 3499s exception = exception.with_traceback(with_traceback) 3499s 3499s if from_ is not False: 3499s exception.__cause__ = from_ 3499s elif replace_context is not None: 3499s # no good solution here, we would like to have the exception 3499s # have only the context of replace_context.__context__ so that the 3499s # intermediary exception does not change, but we can't figure 3499s # that out. 3499s exception.__cause__ = replace_context 3499s 3499s try: 3499s > raise exception 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def __connect(self): 3499s pool = self.__pool 3499s 3499s # ensure any existing connection is removed, so that if 3499s # creator fails, this attribute stays None 3499s self.dbapi_connection = None 3499s try: 3499s self.starttime = time.time() 3499s > self.dbapi_connection = connection = pool._invoke_creator(self) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s connection_record = 3499s 3499s def connect(connection_record=None): 3499s if dialect._has_events: 3499s for fn in dialect.dispatch.do_connect: 3499s connection = fn(dialect, connection_record, cargs, cparams) 3499s if connection is not None: 3499s return connection 3499s > return dialect.connect(*cargs, **cparams) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s cargs = () 3499s cparams = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3499s 3499s def connect(self, *cargs, **cparams): 3499s # inherits the docstring from interfaces.Dialect.connect 3499s > return self.dbapi.connect(*cargs, **cparams) 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s dsn = 'host=localhost user=postgres password=postgres port=5432 dbname=pandas' 3499s connection_factory = None, cursor_factory = None 3499s kwargs = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3499s kwasync = {} 3499s 3499s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 3499s """ 3499s Create a new database connection. 3499s 3499s The connection parameters can be specified as a string: 3499s 3499s conn = psycopg2.connect("dbname=test user=postgres password=secret") 3499s 3499s or using a set of keyword arguments: 3499s 3499s conn = psycopg2.connect(database="test", user="postgres", password="secret") 3499s 3499s Or as a mix of both. The basic connection parameters are: 3499s 3499s - *dbname*: the database name 3499s - *database*: the database name (only as keyword argument) 3499s - *user*: user name used to authenticate 3499s - *password*: password used to authenticate 3499s - *host*: database host address (defaults to UNIX socket if not provided) 3499s - *port*: connection port number (defaults to 5432 if not provided) 3499s 3499s Using the *connection_factory* parameter a different class or connections 3499s factory can be specified. It should be a callable object taking a dsn 3499s argument. 3499s 3499s Using the *cursor_factory* parameter, a new default cursor factory will be 3499s used by cursor(). 3499s 3499s Using *async*=True an asynchronous connection will be created. *async_* is 3499s a valid alias (for Python versions where ``async`` is a keyword). 3499s 3499s Any other keyword parameter will be passed to the underlying client 3499s library: the list of supported parameters depends on the library version. 3499s 3499s """ 3499s kwasync = {} 3499s if 'async' in kwargs: 3499s kwasync['async'] = kwargs.pop('async') 3499s if 'async_' in kwargs: 3499s kwasync['async_'] = kwargs.pop('async_') 3499s 3499s dsn = _ext.make_dsn(dsn, **kwargs) 3499s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 3499s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 3499s E Is the server running on that host and accepting TCP/IP connections? 3499s E 3499s E (Background on this error at: https://sqlalche.me/e/14/e3q8) 3499s 3499s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 3499s ____________ test_to_sql_exist[replace-1-postgresql_psycopg2_conn] _____________ 3499s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3499s fn = > 3499s connection = None 3499s 3499s def _wrap_pool_connect(self, fn, connection): 3499s dialect = self.dialect 3499s try: 3499s > return fn() 3499s 3499s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3499s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3499s 3499s self = 3499s 3499s def connect(self): 3499s """Return a DBAPI connection from the pool. 3499s 3499s The connection is instrumented such that when its 3499s ``close()`` method is called, the connection will be returned to 3499s the pool. 3499s 3499s """ 3499s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s dsn = 'host=localhost user=postgres password=postgres port=5432 dbname=pandas' 3500s connection_factory = None, cursor_factory = None 3500s kwargs = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s kwasync = {} 3500s 3500s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 3500s """ 3500s Create a new database connection. 3500s 3500s The connection parameters can be specified as a string: 3500s 3500s conn = psycopg2.connect("dbname=test user=postgres password=secret") 3500s 3500s or using a set of keyword arguments: 3500s 3500s conn = psycopg2.connect(database="test", user="postgres", password="secret") 3500s 3500s Or as a mix of both. The basic connection parameters are: 3500s 3500s - *dbname*: the database name 3500s - *database*: the database name (only as keyword argument) 3500s - *user*: user name used to authenticate 3500s - *password*: password used to authenticate 3500s - *host*: database host address (defaults to UNIX socket if not provided) 3500s - *port*: connection port number (defaults to 5432 if not provided) 3500s 3500s Using the *connection_factory* parameter a different class or connections 3500s factory can be specified. It should be a callable object taking a dsn 3500s argument. 3500s 3500s Using the *cursor_factory* parameter, a new default cursor factory will be 3500s used by cursor(). 3500s 3500s Using *async*=True an asynchronous connection will be created. *async_* is 3500s a valid alias (for Python versions where ``async`` is a keyword). 3500s 3500s Any other keyword parameter will be passed to the underlying client 3500s library: the list of supported parameters depends on the library version. 3500s 3500s """ 3500s kwasync = {} 3500s if 'async' in kwargs: 3500s kwasync['async'] = kwargs.pop('async') 3500s if 'async_' in kwargs: 3500s kwasync['async_'] = kwargs.pop('async_') 3500s 3500s dsn = _ext.make_dsn(dsn, **kwargs) 3500s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 3500s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 3500s E Is the server running on that host and accepting TCP/IP connections? 3500s 3500s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 3500s 3500s The above exception was the direct cause of the following exception: 3500s 3500s conn = 'postgresql_psycopg2_conn', mode = 'replace', num_row_coef = 1 3500s test_frame1 = index A B C D 3500s 0 2000-01-03 00:00:00 0.980269 3.685731 -0.364217 -1...0-01-05 00:00:00 0.498581 0.731168 -0.537677 1.346270 3500s 3 2000-01-06 00:00:00 1.120202 1.567621 0.003641 0.675253 3500s request = > 3500s 3500s @pytest.mark.db 3500s @pytest.mark.parametrize("conn", all_connectable) 3500s @pytest.mark.parametrize("mode, num_row_coef", [("replace", 1), ("append", 2)]) 3500s def test_to_sql_exist(conn, mode, num_row_coef, test_frame1, request): 3500s > conn = request.getfixturevalue(conn) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:606: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'postgresql_psycopg2_conn' 3500s 3500s def getfixturevalue(self, argname: str) -> Any: 3500s """Dynamically run a named fixture function. 3500s 3500s Declaring fixtures via function argument is recommended where possible. 3500s But if you can only decide whether to use another fixture at test 3500s setup time, you may use this function to retrieve it inside a fixture 3500s or test function body. 3500s 3500s This method can be used during the test setup phase or the test run 3500s phase, but during the test teardown phase a fixture's value may not 3500s be available. 3500s 3500s :param argname: 3500s The fixture name. 3500s :raises pytest.FixtureLookupError: 3500s If the given fixture could not be found. 3500s """ 3500s > fixturedef = self._get_active_fixturedef(argname) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:585: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'postgresql_psycopg2_conn' 3500s 3500s def _get_active_fixturedef( 3500s self, argname: str 3500s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3500s try: 3500s return self._fixture_defs[argname] 3500s except KeyError: 3500s try: 3500s fixturedef = self._getnextfixturedef(argname) 3500s except FixtureLookupError: 3500s if argname == "request": 3500s cached_result = (self, [0], None) 3500s return PseudoFixtureDef(cached_result, Scope.Function) 3500s raise 3500s # Remove indent to prevent the python3 exception 3500s # from leaking into the call. 3500s > self._compute_fixture_value(fixturedef) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s fixturedef = 3500s 3500s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3500s """Create a SubRequest based on "self" and call the execute method 3500s of the given FixtureDef object. 3500s 3500s This will force the FixtureDef object to throw away any previous 3500s results and compute a new fixture value, which will be stored into 3500s the FixtureDef object itself. 3500s """ 3500s # prepare a subrequest object before calling fixture function 3500s # (latter managed by fixturedef) 3500s argname = fixturedef.argname 3500s funcitem = self._pyfuncitem 3500s scope = fixturedef._scope 3500s try: 3500s callspec = funcitem.callspec 3500s except AttributeError: 3500s callspec = None 3500s if callspec is not None and argname in callspec.params: 3500s param = callspec.params[argname] 3500s param_index = callspec.indices[argname] 3500s # If a parametrize invocation set a scope it will override 3500s # the static scope defined with the fixture function. 3500s with suppress(KeyError): 3500s scope = callspec._arg2scope[argname] 3500s else: 3500s param = NOTSET 3500s param_index = 0 3500s has_params = fixturedef.params is not None 3500s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3500s if has_params and fixtures_not_supported: 3500s msg = ( 3500s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3500s "Node id: {nodeid}\n" 3500s "Function type: {typename}" 3500s ).format( 3500s name=funcitem.name, 3500s nodeid=funcitem.nodeid, 3500s typename=type(funcitem).__name__, 3500s ) 3500s fail(msg, pytrace=False) 3500s if has_params: 3500s frame = inspect.stack()[3] 3500s frameinfo = inspect.getframeinfo(frame[0]) 3500s source_path = absolutepath(frameinfo.filename) 3500s source_lineno = frameinfo.lineno 3500s try: 3500s source_path_str = str( 3500s source_path.relative_to(funcitem.config.rootpath) 3500s ) 3500s except ValueError: 3500s source_path_str = str(source_path) 3500s msg = ( 3500s "The requested fixture has no parameter defined for test:\n" 3500s " {}\n\n" 3500s "Requested fixture '{}' defined in:\n{}" 3500s "\n\nRequested here:\n{}:{}".format( 3500s funcitem.nodeid, 3500s fixturedef.argname, 3500s getlocation(fixturedef.func, funcitem.config.rootpath), 3500s source_path_str, 3500s source_lineno, 3500s ) 3500s ) 3500s fail(msg, pytrace=False) 3500s 3500s subrequest = SubRequest( 3500s self, scope, param, param_index, fixturedef, _ispytest=True 3500s ) 3500s 3500s # Check if a higher-level scoped fixture accesses a lower level one. 3500s subrequest._check_scope(argname, self._scope, scope) 3500s try: 3500s # Call the fixture function. 3500s > fixturedef.execute(request=subrequest) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s request = > 3500s 3500s def execute(self, request: SubRequest) -> FixtureValue: 3500s # Get required arguments and register our own finish() 3500s # with their finalization. 3500s for argname in self.argnames: 3500s > fixturedef = request._get_active_fixturedef(argname) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1045: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'postgresql_psycopg2_engine' 3500s 3500s def _get_active_fixturedef( 3500s self, argname: str 3500s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3500s try: 3500s return self._fixture_defs[argname] 3500s except KeyError: 3500s try: 3500s fixturedef = self._getnextfixturedef(argname) 3500s except FixtureLookupError: 3500s if argname == "request": 3500s cached_result = (self, [0], None) 3500s return PseudoFixtureDef(cached_result, Scope.Function) 3500s raise 3500s # Remove indent to prevent the python3 exception 3500s # from leaking into the call. 3500s > self._compute_fixture_value(fixturedef) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s fixturedef = 3500s 3500s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3500s """Create a SubRequest based on "self" and call the execute method 3500s of the given FixtureDef object. 3500s 3500s This will force the FixtureDef object to throw away any previous 3500s results and compute a new fixture value, which will be stored into 3500s the FixtureDef object itself. 3500s """ 3500s # prepare a subrequest object before calling fixture function 3500s # (latter managed by fixturedef) 3500s argname = fixturedef.argname 3500s funcitem = self._pyfuncitem 3500s scope = fixturedef._scope 3500s try: 3500s callspec = funcitem.callspec 3500s except AttributeError: 3500s callspec = None 3500s if callspec is not None and argname in callspec.params: 3500s param = callspec.params[argname] 3500s param_index = callspec.indices[argname] 3500s # If a parametrize invocation set a scope it will override 3500s # the static scope defined with the fixture function. 3500s with suppress(KeyError): 3500s scope = callspec._arg2scope[argname] 3500s else: 3500s param = NOTSET 3500s param_index = 0 3500s has_params = fixturedef.params is not None 3500s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3500s if has_params and fixtures_not_supported: 3500s msg = ( 3500s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3500s "Node id: {nodeid}\n" 3500s "Function type: {typename}" 3500s ).format( 3500s name=funcitem.name, 3500s nodeid=funcitem.nodeid, 3500s typename=type(funcitem).__name__, 3500s ) 3500s fail(msg, pytrace=False) 3500s if has_params: 3500s frame = inspect.stack()[3] 3500s frameinfo = inspect.getframeinfo(frame[0]) 3500s source_path = absolutepath(frameinfo.filename) 3500s source_lineno = frameinfo.lineno 3500s try: 3500s source_path_str = str( 3500s source_path.relative_to(funcitem.config.rootpath) 3500s ) 3500s except ValueError: 3500s source_path_str = str(source_path) 3500s msg = ( 3500s "The requested fixture has no parameter defined for test:\n" 3500s " {}\n\n" 3500s "Requested fixture '{}' defined in:\n{}" 3500s "\n\nRequested here:\n{}:{}".format( 3500s funcitem.nodeid, 3500s fixturedef.argname, 3500s getlocation(fixturedef.func, funcitem.config.rootpath), 3500s source_path_str, 3500s source_lineno, 3500s ) 3500s ) 3500s fail(msg, pytrace=False) 3500s 3500s subrequest = SubRequest( 3500s self, scope, param, param_index, fixturedef, _ispytest=True 3500s ) 3500s 3500s # Check if a higher-level scoped fixture accesses a lower level one. 3500s subrequest._check_scope(argname, self._scope, scope) 3500s try: 3500s # Call the fixture function. 3500s > fixturedef.execute(request=subrequest) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s request = > 3500s 3500s def execute(self, request: SubRequest) -> FixtureValue: 3500s # Get required arguments and register our own finish() 3500s # with their finalization. 3500s for argname in self.argnames: 3500s fixturedef = request._get_active_fixturedef(argname) 3500s if argname != "request": 3500s # PseudoFixtureDef is only for "request". 3500s assert isinstance(fixturedef, FixtureDef) 3500s fixturedef.addfinalizer(functools.partial(self.finish, request=request)) 3500s 3500s my_cache_key = self.cache_key(request) 3500s if self.cached_result is not None: 3500s # note: comparison with `==` can fail (or be expensive) for e.g. 3500s # numpy arrays (#6497). 3500s cache_key = self.cached_result[1] 3500s if my_cache_key is cache_key: 3500s if self.cached_result[2] is not None: 3500s _, val, tb = self.cached_result[2] 3500s raise val.with_traceback(tb) 3500s else: 3500s result = self.cached_result[0] 3500s return result 3500s # We have a previous but differently parametrized fixture instance 3500s # so we need to tear it down before creating a new one. 3500s self.finish(request) 3500s assert self.cached_result is None 3500s 3500s ihook = request.node.ihook 3500s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1069: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s kwargs = {'fixturedef': , 'request': >} 3500s firstresult = True 3500s 3500s def __call__(self, **kwargs: object) -> Any: 3500s """Call the hook. 3500s 3500s Only accepts keyword arguments, which should match the hook 3500s specification. 3500s 3500s Returns the result(s) of calling all registered plugins, see 3500s :ref:`calling`. 3500s """ 3500s assert ( 3500s not self.is_historic() 3500s ), "Cannot directly call a historic hook - use call_historic instead." 3500s self._verify_all_args_are_provided(kwargs) 3500s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 3500s # Copy because plugins may register other plugins during iteration (#438). 3500s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = <_pytest.config.PytestPluginManager object at 0xe9079168> 3500s hook_name = 'pytest_fixture_setup' 3500s methods = [>] 3500s kwargs = {'fixturedef': , 'request': >} 3500s firstresult = True 3500s 3500s def _hookexec( 3500s self, 3500s hook_name: str, 3500s methods: Sequence[HookImpl], 3500s kwargs: Mapping[str, object], 3500s firstresult: bool, 3500s ) -> object | list[object]: 3500s # called from all hookcaller instances. 3500s # enable_tracing will set its own wrapping function at self._inner_hookexec 3500s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturedef = 3500s request = > 3500s 3500s def pytest_fixture_setup( 3500s fixturedef: FixtureDef[FixtureValue], request: SubRequest 3500s ) -> FixtureValue: 3500s """Execution of fixture setup.""" 3500s kwargs = {} 3500s for argname in fixturedef.argnames: 3500s fixdef = request._get_active_fixturedef(argname) 3500s assert fixdef.cached_result is not None 3500s result, arg_cache_key, exc = fixdef.cached_result 3500s request._check_scope(argname, request._scope, fixdef._scope) 3500s kwargs[argname] = result 3500s 3500s fixturefunc = resolve_fixture_function(fixturedef, request) 3500s my_cache_key = fixturedef.cache_key(request) 3500s try: 3500s > result = call_fixture_func(fixturefunc, request, kwargs) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1123: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturefunc = 3500s request = > 3500s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv'), 'types_data': [{'B... False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}]} 3500s 3500s def call_fixture_func( 3500s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 3500s ) -> FixtureValue: 3500s if is_generator(fixturefunc): 3500s fixturefunc = cast( 3500s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 3500s ) 3500s generator = fixturefunc(**kwargs) 3500s try: 3500s > fixture_result = next(generator) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:895: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s iris_path = PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv') 3500s types_data = [{'BoolCol': False, 'BoolColWithNull': False, 'DateCol': '2000-01-03 00:00:00', 'DateColWithTz': '2000-01-01 00:00:00-...: False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}] 3500s 3500s @pytest.fixture 3500s def postgresql_psycopg2_engine(iris_path, types_data): 3500s sqlalchemy = pytest.importorskip("sqlalchemy") 3500s pytest.importorskip("psycopg2") 3500s engine = sqlalchemy.create_engine( 3500s "postgresql+psycopg2://postgres:postgres@localhost:5432/pandas", 3500s poolclass=sqlalchemy.pool.NullPool, 3500s ) 3500s > insp = sqlalchemy.inspect(engine) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:438: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s subject = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s raiseerr = True 3500s 3500s def inspect(subject, raiseerr=True): 3500s """Produce an inspection object for the given target. 3500s 3500s The returned value in some cases may be the 3500s same object as the one given, such as if a 3500s :class:`_orm.Mapper` object is passed. In other 3500s cases, it will be an instance of the registered 3500s inspection type for the given object, such as 3500s if an :class:`_engine.Engine` is passed, an 3500s :class:`_reflection.Inspector` object is returned. 3500s 3500s :param subject: the subject to be inspected. 3500s :param raiseerr: When ``True``, if the given subject 3500s does not 3500s correspond to a known SQLAlchemy inspected type, 3500s :class:`sqlalchemy.exc.NoInspectionAvailable` 3500s is raised. If ``False``, ``None`` is returned. 3500s 3500s """ 3500s type_ = type(subject) 3500s for cls in type_.__mro__: 3500s if cls in _registrars: 3500s reg = _registrars[cls] 3500s if reg is True: 3500s return subject 3500s > ret = reg(subject) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:64: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s @inspection._inspects(Engine) 3500s def _engine_insp(bind): 3500s > return Inspector._construct(Inspector._init_engine, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:182: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s init = 3500s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s @classmethod 3500s def _construct(cls, init, bind): 3500s 3500s if hasattr(bind.dialect, "inspector"): 3500s cls = bind.dialect.inspector 3500s 3500s self = cls.__new__(cls) 3500s > init(self, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:117: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s def _init_engine(self, engine): 3500s self.bind = self.engine = engine 3500s > engine.connect().close() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:128: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s close_with_result = False 3500s 3500s def connect(self, close_with_result=False): 3500s """Return a new :class:`_engine.Connection` object. 3500s 3500s The :class:`_engine.Connection` object is a facade that uses a DBAPI 3500s connection internally in order to communicate with the database. This 3500s connection is procured from the connection-holding :class:`_pool.Pool` 3500s referenced by this :class:`_engine.Engine`. When the 3500s :meth:`_engine.Connection.close` method of the 3500s :class:`_engine.Connection` object 3500s is called, the underlying DBAPI connection is then returned to the 3500s connection pool, where it may be used again in a subsequent call to 3500s :meth:`_engine.Engine.connect`. 3500s 3500s """ 3500s 3500s > return self._connection_cls(self, close_with_result=close_with_result) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3325: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s connection = None, close_with_result = False, _branch_from = None 3500s _execution_options = None, _dispatch = None, _has_events = None 3500s _allow_revalidate = True 3500s 3500s def __init__( 3500s self, 3500s engine, 3500s connection=None, 3500s close_with_result=False, 3500s _branch_from=None, 3500s _execution_options=None, 3500s _dispatch=None, 3500s _has_events=None, 3500s _allow_revalidate=True, 3500s ): 3500s """Construct a new Connection.""" 3500s self.engine = engine 3500s self.dialect = engine.dialect 3500s self.__branch_from = _branch_from 3500s 3500s if _branch_from: 3500s # branching is always "from" the root connection 3500s assert _branch_from.__branch_from is None 3500s self._dbapi_connection = connection 3500s self._execution_options = _execution_options 3500s self._echo = _branch_from._echo 3500s self.should_close_with_result = False 3500s self.dispatch = _dispatch 3500s self._has_events = _branch_from._has_events 3500s else: 3500s self._dbapi_connection = ( 3500s connection 3500s if connection is not None 3500s > else engine.raw_connection() 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:96: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s _connection = None 3500s 3500s def raw_connection(self, _connection=None): 3500s """Return a "raw" DBAPI connection from the connection pool. 3500s 3500s The returned object is a proxied version of the DBAPI 3500s connection object used by the underlying driver in use. 3500s The object will have all the same behavior as the real DBAPI 3500s connection, except that its ``close()`` method will result in the 3500s connection being returned to the pool, rather than being closed 3500s for real. 3500s 3500s This method provides direct DBAPI connection access for 3500s special situations when the API provided by 3500s :class:`_engine.Connection` 3500s is not needed. When a :class:`_engine.Connection` object is already 3500s present, the DBAPI connection is available using 3500s the :attr:`_engine.Connection.connection` accessor. 3500s 3500s .. seealso:: 3500s 3500s :ref:`dbapi_connections` 3500s 3500s """ 3500s > return self._wrap_pool_connect(self.pool.connect, _connection) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3404: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s return fn() 3500s except dialect.dbapi.Error as e: 3500s if connection is None: 3500s > Connection._handle_dbapi_exception_noconnection( 3500s e, dialect, self 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3374: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s e = OperationalError('connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused\n\tIs the server running on that host and accepting TCP/IP connections?\n') 3500s dialect = 3500s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s @classmethod 3500s def _handle_dbapi_exception_noconnection(cls, e, dialect, engine): 3500s exc_info = sys.exc_info() 3500s 3500s is_disconnect = dialect.is_disconnect(e, None, None) 3500s 3500s should_wrap = isinstance(e, dialect.dbapi.Error) 3500s 3500s if should_wrap: 3500s sqlalchemy_exception = exc.DBAPIError.instance( 3500s None, 3500s None, 3500s e, 3500s dialect.dbapi.Error, 3500s hide_parameters=engine.hide_parameters, 3500s connection_invalidated=is_disconnect, 3500s ) 3500s else: 3500s sqlalchemy_exception = None 3500s 3500s newraise = None 3500s 3500s if engine._has_events: 3500s ctx = ExceptionContextImpl( 3500s e, 3500s sqlalchemy_exception, 3500s engine, 3500s None, 3500s None, 3500s None, 3500s None, 3500s None, 3500s is_disconnect, 3500s True, 3500s ) 3500s for fn in engine.dispatch.handle_error: 3500s try: 3500s # handler returns an exception; 3500s # call next handler in a chain 3500s per_fn = fn(ctx) 3500s if per_fn is not None: 3500s ctx.chained_exception = newraise = per_fn 3500s except Exception as _raised: 3500s # handler raises an exception - stop processing 3500s newraise = _raised 3500s break 3500s 3500s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 3500s sqlalchemy_exception.connection_invalidated = ( 3500s is_disconnect 3500s ) = ctx.is_disconnect 3500s 3500s if newraise: 3500s util.raise_(newraise, with_traceback=exc_info[2], from_=e) 3500s elif should_wrap: 3500s > util.raise_( 3500s sqlalchemy_exception, with_traceback=exc_info[2], from_=e 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2208: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s dsn = 'host=localhost user=postgres password=postgres port=5432 dbname=pandas' 3500s connection_factory = None, cursor_factory = None 3500s kwargs = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s kwasync = {} 3500s 3500s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 3500s """ 3500s Create a new database connection. 3500s 3500s The connection parameters can be specified as a string: 3500s 3500s conn = psycopg2.connect("dbname=test user=postgres password=secret") 3500s 3500s or using a set of keyword arguments: 3500s 3500s conn = psycopg2.connect(database="test", user="postgres", password="secret") 3500s 3500s Or as a mix of both. The basic connection parameters are: 3500s 3500s - *dbname*: the database name 3500s - *database*: the database name (only as keyword argument) 3500s - *user*: user name used to authenticate 3500s - *password*: password used to authenticate 3500s - *host*: database host address (defaults to UNIX socket if not provided) 3500s - *port*: connection port number (defaults to 5432 if not provided) 3500s 3500s Using the *connection_factory* parameter a different class or connections 3500s factory can be specified. It should be a callable object taking a dsn 3500s argument. 3500s 3500s Using the *cursor_factory* parameter, a new default cursor factory will be 3500s used by cursor(). 3500s 3500s Using *async*=True an asynchronous connection will be created. *async_* is 3500s a valid alias (for Python versions where ``async`` is a keyword). 3500s 3500s Any other keyword parameter will be passed to the underlying client 3500s library: the list of supported parameters depends on the library version. 3500s 3500s """ 3500s kwasync = {} 3500s if 'async' in kwargs: 3500s kwasync['async'] = kwargs.pop('async') 3500s if 'async_' in kwargs: 3500s kwasync['async_'] = kwargs.pop('async_') 3500s 3500s dsn = _ext.make_dsn(dsn, **kwargs) 3500s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 3500s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 3500s E Is the server running on that host and accepting TCP/IP connections? 3500s E 3500s E (Background on this error at: https://sqlalche.me/e/14/e3q8) 3500s 3500s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 3500s _______________ test_to_sql_exist[append-2-mysql_pymysql_engine] _______________ 3500s self = , sock = None 3500s 3500s def connect(self, sock=None): 3500s self._closed = False 3500s try: 3500s if sock is None: 3500s if self.unix_socket: 3500s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3500s sock.settimeout(self.connect_timeout) 3500s sock.connect(self.unix_socket) 3500s self.host_info = "Localhost via UNIX socket" 3500s self._secure = True 3500s if DEBUG: 3500s print("connected using unix_socket") 3500s else: 3500s kwargs = {} 3500s if self.bind_address is not None: 3500s kwargs["source_address"] = (self.bind_address, 0) 3500s while True: 3500s try: 3500s > sock = socket.create_connection( 3500s (self.host, self.port), self.connect_timeout, **kwargs 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:649: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s address = ('localhost', 3306), timeout = 10, source_address = None 3500s 3500s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 3500s source_address=None, *, all_errors=False): 3500s """Connect to *address* and return the socket object. 3500s 3500s Convenience function. Connect to *address* (a 2-tuple ``(host, 3500s port)``) and return the socket object. Passing the optional 3500s *timeout* parameter will set the timeout on the socket instance 3500s before attempting to connect. If no *timeout* is supplied, the 3500s global default timeout setting returned by :func:`getdefaulttimeout` 3500s is used. If *source_address* is set it must be a tuple of (host, port) 3500s for the socket to bind as a source address before making the connection. 3500s A host of '' or port 0 tells the OS to use the default. When a connection 3500s cannot be created, raises the last error if *all_errors* is False, 3500s and an ExceptionGroup of all errors if *all_errors* is True. 3500s """ 3500s 3500s host, port = address 3500s exceptions = [] 3500s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 3500s af, socktype, proto, canonname, sa = res 3500s sock = None 3500s try: 3500s sock = socket(af, socktype, proto) 3500s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 3500s sock.settimeout(timeout) 3500s if source_address: 3500s sock.bind(source_address) 3500s sock.connect(sa) 3500s # Break explicitly a reference cycle 3500s exceptions.clear() 3500s return sock 3500s 3500s except error as exc: 3500s if not all_errors: 3500s exceptions.clear() # raise only the last error 3500s exceptions.append(exc) 3500s if sock is not None: 3500s sock.close() 3500s 3500s if len(exceptions): 3500s try: 3500s if not all_errors: 3500s > raise exceptions[0] 3500s 3500s /usr/lib/python3.12/socket.py:853: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s address = ('localhost', 3306), timeout = 10, source_address = None 3500s 3500s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 3500s source_address=None, *, all_errors=False): 3500s """Connect to *address* and return the socket object. 3500s 3500s Convenience function. Connect to *address* (a 2-tuple ``(host, 3500s port)``) and return the socket object. Passing the optional 3500s *timeout* parameter will set the timeout on the socket instance 3500s before attempting to connect. If no *timeout* is supplied, the 3500s global default timeout setting returned by :func:`getdefaulttimeout` 3500s is used. If *source_address* is set it must be a tuple of (host, port) 3500s for the socket to bind as a source address before making the connection. 3500s A host of '' or port 0 tells the OS to use the default. When a connection 3500s cannot be created, raises the last error if *all_errors* is False, 3500s and an ExceptionGroup of all errors if *all_errors* is True. 3500s """ 3500s 3500s host, port = address 3500s exceptions = [] 3500s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 3500s af, socktype, proto, canonname, sa = res 3500s sock = None 3500s try: 3500s sock = socket(af, socktype, proto) 3500s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 3500s sock.settimeout(timeout) 3500s if source_address: 3500s sock.bind(source_address) 3500s > sock.connect(sa) 3500s E ConnectionRefusedError: [Errno 111] Connection refused 3500s 3500s /usr/lib/python3.12/socket.py:838: ConnectionRefusedError 3500s 3500s During handling of the above exception, another exception occurred: 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __init__( 3500s self, 3500s *, 3500s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 3500s password="", 3500s host=None, 3500s database=None, 3500s unix_socket=None, 3500s port=0, 3500s charset="", 3500s collation=None, 3500s sql_mode=None, 3500s read_default_file=None, 3500s conv=None, 3500s use_unicode=True, 3500s client_flag=0, 3500s cursorclass=Cursor, 3500s init_command=None, 3500s connect_timeout=10, 3500s read_default_group=None, 3500s autocommit=False, 3500s local_infile=False, 3500s max_allowed_packet=16 * 1024 * 1024, 3500s defer_connect=False, 3500s auth_plugin_map=None, 3500s read_timeout=None, 3500s write_timeout=None, 3500s bind_address=None, 3500s binary_prefix=False, 3500s program_name=None, 3500s server_public_key=None, 3500s ssl=None, 3500s ssl_ca=None, 3500s ssl_cert=None, 3500s ssl_disabled=None, 3500s ssl_key=None, 3500s ssl_key_password=None, 3500s ssl_verify_cert=None, 3500s ssl_verify_identity=None, 3500s compress=None, # not supported 3500s named_pipe=None, # not supported 3500s passwd=None, # deprecated 3500s db=None, # deprecated 3500s ): 3500s if db is not None and database is None: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 3500s database = db 3500s if passwd is not None and not password: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn( 3500s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 3500s # ) 3500s password = passwd 3500s 3500s if compress or named_pipe: 3500s raise NotImplementedError( 3500s "compress and named_pipe arguments are not supported" 3500s ) 3500s 3500s self._local_infile = bool(local_infile) 3500s if self._local_infile: 3500s client_flag |= CLIENT.LOCAL_FILES 3500s 3500s if read_default_group and not read_default_file: 3500s if sys.platform.startswith("win"): 3500s read_default_file = "c:\\my.ini" 3500s else: 3500s read_default_file = "/etc/my.cnf" 3500s 3500s if read_default_file: 3500s if not read_default_group: 3500s read_default_group = "client" 3500s 3500s cfg = Parser() 3500s cfg.read(os.path.expanduser(read_default_file)) 3500s 3500s def _config(key, arg): 3500s if arg: 3500s return arg 3500s try: 3500s return cfg.get(read_default_group, key) 3500s except Exception: 3500s return arg 3500s 3500s user = _config("user", user) 3500s password = _config("password", password) 3500s host = _config("host", host) 3500s database = _config("database", database) 3500s unix_socket = _config("socket", unix_socket) 3500s port = int(_config("port", port)) 3500s bind_address = _config("bind-address", bind_address) 3500s charset = _config("default-character-set", charset) 3500s if not ssl: 3500s ssl = {} 3500s if isinstance(ssl, dict): 3500s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 3500s value = _config("ssl-" + key, ssl.get(key)) 3500s if value: 3500s ssl[key] = value 3500s 3500s self.ssl = False 3500s if not ssl_disabled: 3500s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 3500s ssl = { 3500s "ca": ssl_ca, 3500s "check_hostname": bool(ssl_verify_identity), 3500s "verify_mode": ssl_verify_cert 3500s if ssl_verify_cert is not None 3500s else False, 3500s } 3500s if ssl_cert is not None: 3500s ssl["cert"] = ssl_cert 3500s if ssl_key is not None: 3500s ssl["key"] = ssl_key 3500s if ssl_key_password is not None: 3500s ssl["password"] = ssl_key_password 3500s if ssl: 3500s if not SSL_ENABLED: 3500s raise NotImplementedError("ssl module not found") 3500s self.ssl = True 3500s client_flag |= CLIENT.SSL 3500s self.ctx = self._create_ssl_ctx(ssl) 3500s 3500s self.host = host or "localhost" 3500s self.port = port or 3306 3500s if type(self.port) is not int: 3500s raise ValueError("port should be of type int") 3500s self.user = user or DEFAULT_USER 3500s self.password = password or b"" 3500s if isinstance(self.password, str): 3500s self.password = self.password.encode("latin1") 3500s self.db = database 3500s self.unix_socket = unix_socket 3500s self.bind_address = bind_address 3500s if not (0 < connect_timeout <= 31536000): 3500s raise ValueError("connect_timeout should be >0 and <=31536000") 3500s self.connect_timeout = connect_timeout or None 3500s if read_timeout is not None and read_timeout <= 0: 3500s raise ValueError("read_timeout should be > 0") 3500s self._read_timeout = read_timeout 3500s if write_timeout is not None and write_timeout <= 0: 3500s raise ValueError("write_timeout should be > 0") 3500s self._write_timeout = write_timeout 3500s 3500s self.charset = charset or DEFAULT_CHARSET 3500s self.collation = collation 3500s self.use_unicode = use_unicode 3500s 3500s self.encoding = charset_by_name(self.charset).encoding 3500s 3500s client_flag |= CLIENT.CAPABILITIES 3500s if self.db: 3500s client_flag |= CLIENT.CONNECT_WITH_DB 3500s 3500s self.client_flag = client_flag 3500s 3500s self.cursorclass = cursorclass 3500s 3500s self._result = None 3500s self._affected_rows = 0 3500s self.host_info = "Not connected" 3500s 3500s # specified autocommit mode. None means use server default. 3500s self.autocommit_mode = autocommit 3500s 3500s if conv is None: 3500s conv = converters.conversions 3500s 3500s # Need for MySQLdb compatibility. 3500s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 3500s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 3500s self.sql_mode = sql_mode 3500s self.init_command = init_command 3500s self.max_allowed_packet = max_allowed_packet 3500s self._auth_plugin_map = auth_plugin_map or {} 3500s self._binary_prefix = binary_prefix 3500s self.server_public_key = server_public_key 3500s 3500s self._connect_attrs = { 3500s "_client_name": "pymysql", 3500s "_client_version": VERSION_STRING, 3500s "_pid": str(os.getpid()), 3500s } 3500s 3500s if program_name: 3500s self._connect_attrs["program_name"] = program_name 3500s 3500s if defer_connect: 3500s self._sock = None 3500s else: 3500s > self.connect() 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = , sock = None 3500s 3500s def connect(self, sock=None): 3500s self._closed = False 3500s try: 3500s if sock is None: 3500s if self.unix_socket: 3500s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3500s sock.settimeout(self.connect_timeout) 3500s sock.connect(self.unix_socket) 3500s self.host_info = "Localhost via UNIX socket" 3500s self._secure = True 3500s if DEBUG: 3500s print("connected using unix_socket") 3500s else: 3500s kwargs = {} 3500s if self.bind_address is not None: 3500s kwargs["source_address"] = (self.bind_address, 0) 3500s while True: 3500s try: 3500s sock = socket.create_connection( 3500s (self.host, self.port), self.connect_timeout, **kwargs 3500s ) 3500s break 3500s except OSError as e: 3500s if e.errno == errno.EINTR: 3500s continue 3500s raise 3500s self.host_info = "socket %s:%d" % (self.host, self.port) 3500s if DEBUG: 3500s print("connected using socket") 3500s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 3500s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 3500s sock.settimeout(None) 3500s 3500s self._sock = sock 3500s self._rfile = sock.makefile("rb") 3500s self._next_seq_id = 0 3500s 3500s self._get_server_information() 3500s self._request_authentication() 3500s 3500s # Send "SET NAMES" query on init for: 3500s # - Ensure charaset (and collation) is set to the server. 3500s # - collation_id in handshake packet may be ignored. 3500s # - If collation is not specified, we don't know what is server's 3500s # default collation for the charset. For example, default collation 3500s # of utf8mb4 is: 3500s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 3500s # - MySQL 8.0: utf8mb4_0900_ai_ci 3500s # 3500s # Reference: 3500s # - https://github.com/PyMySQL/PyMySQL/issues/1092 3500s # - https://github.com/wagtail/wagtail/issues/9477 3500s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 3500s self.set_character_set(self.charset, self.collation) 3500s 3500s if self.sql_mode is not None: 3500s c = self.cursor() 3500s c.execute("SET sql_mode=%s", (self.sql_mode,)) 3500s c.close() 3500s 3500s if self.init_command is not None: 3500s c = self.cursor() 3500s c.execute(self.init_command) 3500s c.close() 3500s 3500s if self.autocommit_mode is not None: 3500s self.autocommit(self.autocommit_mode) 3500s except BaseException as e: 3500s self._rfile = None 3500s if sock is not None: 3500s try: 3500s sock.close() 3500s except: # noqa 3500s pass 3500s 3500s if isinstance(e, (OSError, IOError)): 3500s exc = err.OperationalError( 3500s CR.CR_CONN_HOST_ERROR, 3500s f"Can't connect to MySQL server on {self.host!r} ({e})", 3500s ) 3500s # Keep original exception and traceback to investigate error. 3500s exc.original_exception = e 3500s exc.traceback = traceback.format_exc() 3500s if DEBUG: 3500s print(exc.traceback) 3500s > raise exc 3500s E pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 3500s 3500s The above exception was the direct cause of the following exception: 3500s 3500s conn = 'mysql_pymysql_engine', mode = 'append', num_row_coef = 2 3500s test_frame1 = index A B C D 3500s 0 2000-01-03 00:00:00 0.980269 3.685731 -0.364217 -1...0-01-05 00:00:00 0.498581 0.731168 -0.537677 1.346270 3500s 3 2000-01-06 00:00:00 1.120202 1.567621 0.003641 0.675253 3500s request = > 3500s 3500s @pytest.mark.db 3500s @pytest.mark.parametrize("conn", all_connectable) 3500s @pytest.mark.parametrize("mode, num_row_coef", [("replace", 1), ("append", 2)]) 3500s def test_to_sql_exist(conn, mode, num_row_coef, test_frame1, request): 3500s > conn = request.getfixturevalue(conn) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:606: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'mysql_pymysql_engine' 3500s 3500s def getfixturevalue(self, argname: str) -> Any: 3500s """Dynamically run a named fixture function. 3500s 3500s Declaring fixtures via function argument is recommended where possible. 3500s But if you can only decide whether to use another fixture at test 3500s setup time, you may use this function to retrieve it inside a fixture 3500s or test function body. 3500s 3500s This method can be used during the test setup phase or the test run 3500s phase, but during the test teardown phase a fixture's value may not 3500s be available. 3500s 3500s :param argname: 3500s The fixture name. 3500s :raises pytest.FixtureLookupError: 3500s If the given fixture could not be found. 3500s """ 3500s > fixturedef = self._get_active_fixturedef(argname) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:585: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'mysql_pymysql_engine' 3500s 3500s def _get_active_fixturedef( 3500s self, argname: str 3500s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3500s try: 3500s return self._fixture_defs[argname] 3500s except KeyError: 3500s try: 3500s fixturedef = self._getnextfixturedef(argname) 3500s except FixtureLookupError: 3500s if argname == "request": 3500s cached_result = (self, [0], None) 3500s return PseudoFixtureDef(cached_result, Scope.Function) 3500s raise 3500s # Remove indent to prevent the python3 exception 3500s # from leaking into the call. 3500s > self._compute_fixture_value(fixturedef) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s fixturedef = 3500s 3500s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3500s """Create a SubRequest based on "self" and call the execute method 3500s of the given FixtureDef object. 3500s 3500s This will force the FixtureDef object to throw away any previous 3500s results and compute a new fixture value, which will be stored into 3500s the FixtureDef object itself. 3500s """ 3500s # prepare a subrequest object before calling fixture function 3500s # (latter managed by fixturedef) 3500s argname = fixturedef.argname 3500s funcitem = self._pyfuncitem 3500s scope = fixturedef._scope 3500s try: 3500s callspec = funcitem.callspec 3500s except AttributeError: 3500s callspec = None 3500s if callspec is not None and argname in callspec.params: 3500s param = callspec.params[argname] 3500s param_index = callspec.indices[argname] 3500s # If a parametrize invocation set a scope it will override 3500s # the static scope defined with the fixture function. 3500s with suppress(KeyError): 3500s scope = callspec._arg2scope[argname] 3500s else: 3500s param = NOTSET 3500s param_index = 0 3500s has_params = fixturedef.params is not None 3500s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3500s if has_params and fixtures_not_supported: 3500s msg = ( 3500s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3500s "Node id: {nodeid}\n" 3500s "Function type: {typename}" 3500s ).format( 3500s name=funcitem.name, 3500s nodeid=funcitem.nodeid, 3500s typename=type(funcitem).__name__, 3500s ) 3500s fail(msg, pytrace=False) 3500s if has_params: 3500s frame = inspect.stack()[3] 3500s frameinfo = inspect.getframeinfo(frame[0]) 3500s source_path = absolutepath(frameinfo.filename) 3500s source_lineno = frameinfo.lineno 3500s try: 3500s source_path_str = str( 3500s source_path.relative_to(funcitem.config.rootpath) 3500s ) 3500s except ValueError: 3500s source_path_str = str(source_path) 3500s msg = ( 3500s "The requested fixture has no parameter defined for test:\n" 3500s " {}\n\n" 3500s "Requested fixture '{}' defined in:\n{}" 3500s "\n\nRequested here:\n{}:{}".format( 3500s funcitem.nodeid, 3500s fixturedef.argname, 3500s getlocation(fixturedef.func, funcitem.config.rootpath), 3500s source_path_str, 3500s source_lineno, 3500s ) 3500s ) 3500s fail(msg, pytrace=False) 3500s 3500s subrequest = SubRequest( 3500s self, scope, param, param_index, fixturedef, _ispytest=True 3500s ) 3500s 3500s # Check if a higher-level scoped fixture accesses a lower level one. 3500s subrequest._check_scope(argname, self._scope, scope) 3500s try: 3500s # Call the fixture function. 3500s > fixturedef.execute(request=subrequest) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s request = > 3500s 3500s def execute(self, request: SubRequest) -> FixtureValue: 3500s # Get required arguments and register our own finish() 3500s # with their finalization. 3500s for argname in self.argnames: 3500s fixturedef = request._get_active_fixturedef(argname) 3500s if argname != "request": 3500s # PseudoFixtureDef is only for "request". 3500s assert isinstance(fixturedef, FixtureDef) 3500s fixturedef.addfinalizer(functools.partial(self.finish, request=request)) 3500s 3500s my_cache_key = self.cache_key(request) 3500s if self.cached_result is not None: 3500s # note: comparison with `==` can fail (or be expensive) for e.g. 3500s # numpy arrays (#6497). 3500s cache_key = self.cached_result[1] 3500s if my_cache_key is cache_key: 3500s if self.cached_result[2] is not None: 3500s _, val, tb = self.cached_result[2] 3500s raise val.with_traceback(tb) 3500s else: 3500s result = self.cached_result[0] 3500s return result 3500s # We have a previous but differently parametrized fixture instance 3500s # so we need to tear it down before creating a new one. 3500s self.finish(request) 3500s assert self.cached_result is None 3500s 3500s ihook = request.node.ihook 3500s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1069: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s kwargs = {'fixturedef': , 'request': >} 3500s firstresult = True 3500s 3500s def __call__(self, **kwargs: object) -> Any: 3500s """Call the hook. 3500s 3500s Only accepts keyword arguments, which should match the hook 3500s specification. 3500s 3500s Returns the result(s) of calling all registered plugins, see 3500s :ref:`calling`. 3500s """ 3500s assert ( 3500s not self.is_historic() 3500s ), "Cannot directly call a historic hook - use call_historic instead." 3500s self._verify_all_args_are_provided(kwargs) 3500s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 3500s # Copy because plugins may register other plugins during iteration (#438). 3500s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = <_pytest.config.PytestPluginManager object at 0xe9079168> 3500s hook_name = 'pytest_fixture_setup' 3500s methods = [>] 3500s kwargs = {'fixturedef': , 'request': >} 3500s firstresult = True 3500s 3500s def _hookexec( 3500s self, 3500s hook_name: str, 3500s methods: Sequence[HookImpl], 3500s kwargs: Mapping[str, object], 3500s firstresult: bool, 3500s ) -> object | list[object]: 3500s # called from all hookcaller instances. 3500s # enable_tracing will set its own wrapping function at self._inner_hookexec 3500s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturedef = 3500s request = > 3500s 3500s def pytest_fixture_setup( 3500s fixturedef: FixtureDef[FixtureValue], request: SubRequest 3500s ) -> FixtureValue: 3500s """Execution of fixture setup.""" 3500s kwargs = {} 3500s for argname in fixturedef.argnames: 3500s fixdef = request._get_active_fixturedef(argname) 3500s assert fixdef.cached_result is not None 3500s result, arg_cache_key, exc = fixdef.cached_result 3500s request._check_scope(argname, request._scope, fixdef._scope) 3500s kwargs[argname] = result 3500s 3500s fixturefunc = resolve_fixture_function(fixturedef, request) 3500s my_cache_key = fixturedef.cache_key(request) 3500s try: 3500s > result = call_fixture_func(fixturefunc, request, kwargs) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1123: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturefunc = 3500s request = > 3500s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv'), 'types_data': [{'B... False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}]} 3500s 3500s def call_fixture_func( 3500s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 3500s ) -> FixtureValue: 3500s if is_generator(fixturefunc): 3500s fixturefunc = cast( 3500s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 3500s ) 3500s generator = fixturefunc(**kwargs) 3500s try: 3500s > fixture_result = next(generator) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:895: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s iris_path = PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv') 3500s types_data = [{'BoolCol': False, 'BoolColWithNull': False, 'DateCol': '2000-01-03 00:00:00', 'DateColWithTz': '2000-01-01 00:00:00-...: False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}] 3500s 3500s @pytest.fixture 3500s def mysql_pymysql_engine(iris_path, types_data): 3500s sqlalchemy = pytest.importorskip("sqlalchemy") 3500s pymysql = pytest.importorskip("pymysql") 3500s engine = sqlalchemy.create_engine( 3500s "mysql+pymysql://root@localhost:3306/pandas", 3500s connect_args={"client_flag": pymysql.constants.CLIENT.MULTI_STATEMENTS}, 3500s poolclass=sqlalchemy.pool.NullPool, 3500s ) 3500s > insp = sqlalchemy.inspect(engine) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:409: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s subject = Engine(mysql+pymysql://root@localhost:3306/pandas), raiseerr = True 3500s 3500s def inspect(subject, raiseerr=True): 3500s """Produce an inspection object for the given target. 3500s 3500s The returned value in some cases may be the 3500s same object as the one given, such as if a 3500s :class:`_orm.Mapper` object is passed. In other 3500s cases, it will be an instance of the registered 3500s inspection type for the given object, such as 3500s if an :class:`_engine.Engine` is passed, an 3500s :class:`_reflection.Inspector` object is returned. 3500s 3500s :param subject: the subject to be inspected. 3500s :param raiseerr: When ``True``, if the given subject 3500s does not 3500s correspond to a known SQLAlchemy inspected type, 3500s :class:`sqlalchemy.exc.NoInspectionAvailable` 3500s is raised. If ``False``, ``None`` is returned. 3500s 3500s """ 3500s type_ = type(subject) 3500s for cls in type_.__mro__: 3500s if cls in _registrars: 3500s reg = _registrars[cls] 3500s if reg is True: 3500s return subject 3500s > ret = reg(subject) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:64: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s @inspection._inspects(Engine) 3500s def _engine_insp(bind): 3500s > return Inspector._construct(Inspector._init_engine, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:182: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s init = 3500s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s @classmethod 3500s def _construct(cls, init, bind): 3500s 3500s if hasattr(bind.dialect, "inspector"): 3500s cls = bind.dialect.inspector 3500s 3500s self = cls.__new__(cls) 3500s > init(self, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:117: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s def _init_engine(self, engine): 3500s self.bind = self.engine = engine 3500s > engine.connect().close() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:128: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s close_with_result = False 3500s 3500s def connect(self, close_with_result=False): 3500s """Return a new :class:`_engine.Connection` object. 3500s 3500s The :class:`_engine.Connection` object is a facade that uses a DBAPI 3500s connection internally in order to communicate with the database. This 3500s connection is procured from the connection-holding :class:`_pool.Pool` 3500s referenced by this :class:`_engine.Engine`. When the 3500s :meth:`_engine.Connection.close` method of the 3500s :class:`_engine.Connection` object 3500s is called, the underlying DBAPI connection is then returned to the 3500s connection pool, where it may be used again in a subsequent call to 3500s :meth:`_engine.Engine.connect`. 3500s 3500s """ 3500s 3500s > return self._connection_cls(self, close_with_result=close_with_result) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3325: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 3500s close_with_result = False, _branch_from = None, _execution_options = None 3500s _dispatch = None, _has_events = None, _allow_revalidate = True 3500s 3500s def __init__( 3500s self, 3500s engine, 3500s connection=None, 3500s close_with_result=False, 3500s _branch_from=None, 3500s _execution_options=None, 3500s _dispatch=None, 3500s _has_events=None, 3500s _allow_revalidate=True, 3500s ): 3500s """Construct a new Connection.""" 3500s self.engine = engine 3500s self.dialect = engine.dialect 3500s self.__branch_from = _branch_from 3500s 3500s if _branch_from: 3500s # branching is always "from" the root connection 3500s assert _branch_from.__branch_from is None 3500s self._dbapi_connection = connection 3500s self._execution_options = _execution_options 3500s self._echo = _branch_from._echo 3500s self.should_close_with_result = False 3500s self.dispatch = _dispatch 3500s self._has_events = _branch_from._has_events 3500s else: 3500s self._dbapi_connection = ( 3500s connection 3500s if connection is not None 3500s > else engine.raw_connection() 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:96: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas), _connection = None 3500s 3500s def raw_connection(self, _connection=None): 3500s """Return a "raw" DBAPI connection from the connection pool. 3500s 3500s The returned object is a proxied version of the DBAPI 3500s connection object used by the underlying driver in use. 3500s The object will have all the same behavior as the real DBAPI 3500s connection, except that its ``close()`` method will result in the 3500s connection being returned to the pool, rather than being closed 3500s for real. 3500s 3500s This method provides direct DBAPI connection access for 3500s special situations when the API provided by 3500s :class:`_engine.Connection` 3500s is not needed. When a :class:`_engine.Connection` object is already 3500s present, the DBAPI connection is available using 3500s the :attr:`_engine.Connection.connection` accessor. 3500s 3500s .. seealso:: 3500s 3500s :ref:`dbapi_connections` 3500s 3500s """ 3500s > return self._wrap_pool_connect(self.pool.connect, _connection) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3404: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s return fn() 3500s except dialect.dbapi.Error as e: 3500s if connection is None: 3500s > Connection._handle_dbapi_exception_noconnection( 3500s e, dialect, self 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3374: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s e = OperationalError(2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3500s dialect = 3500s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s @classmethod 3500s def _handle_dbapi_exception_noconnection(cls, e, dialect, engine): 3500s exc_info = sys.exc_info() 3500s 3500s is_disconnect = dialect.is_disconnect(e, None, None) 3500s 3500s should_wrap = isinstance(e, dialect.dbapi.Error) 3500s 3500s if should_wrap: 3500s sqlalchemy_exception = exc.DBAPIError.instance( 3500s None, 3500s None, 3500s e, 3500s dialect.dbapi.Error, 3500s hide_parameters=engine.hide_parameters, 3500s connection_invalidated=is_disconnect, 3500s ) 3500s else: 3500s sqlalchemy_exception = None 3500s 3500s newraise = None 3500s 3500s if engine._has_events: 3500s ctx = ExceptionContextImpl( 3500s e, 3500s sqlalchemy_exception, 3500s engine, 3500s None, 3500s None, 3500s None, 3500s None, 3500s None, 3500s is_disconnect, 3500s True, 3500s ) 3500s for fn in engine.dispatch.handle_error: 3500s try: 3500s # handler returns an exception; 3500s # call next handler in a chain 3500s per_fn = fn(ctx) 3500s if per_fn is not None: 3500s ctx.chained_exception = newraise = per_fn 3500s except Exception as _raised: 3500s # handler raises an exception - stop processing 3500s newraise = _raised 3500s break 3500s 3500s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 3500s sqlalchemy_exception.connection_invalidated = ( 3500s is_disconnect 3500s ) = ctx.is_disconnect 3500s 3500s if newraise: 3500s util.raise_(newraise, with_traceback=exc_info[2], from_=e) 3500s elif should_wrap: 3500s > util.raise_( 3500s sqlalchemy_exception, with_traceback=exc_info[2], from_=e 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2208: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __init__( 3500s self, 3500s *, 3500s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 3500s password="", 3500s host=None, 3500s database=None, 3500s unix_socket=None, 3500s port=0, 3500s charset="", 3500s collation=None, 3500s sql_mode=None, 3500s read_default_file=None, 3500s conv=None, 3500s use_unicode=True, 3500s client_flag=0, 3500s cursorclass=Cursor, 3500s init_command=None, 3500s connect_timeout=10, 3500s read_default_group=None, 3500s autocommit=False, 3500s local_infile=False, 3500s max_allowed_packet=16 * 1024 * 1024, 3500s defer_connect=False, 3500s auth_plugin_map=None, 3500s read_timeout=None, 3500s write_timeout=None, 3500s bind_address=None, 3500s binary_prefix=False, 3500s program_name=None, 3500s server_public_key=None, 3500s ssl=None, 3500s ssl_ca=None, 3500s ssl_cert=None, 3500s ssl_disabled=None, 3500s ssl_key=None, 3500s ssl_key_password=None, 3500s ssl_verify_cert=None, 3500s ssl_verify_identity=None, 3500s compress=None, # not supported 3500s named_pipe=None, # not supported 3500s passwd=None, # deprecated 3500s db=None, # deprecated 3500s ): 3500s if db is not None and database is None: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 3500s database = db 3500s if passwd is not None and not password: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn( 3500s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 3500s # ) 3500s password = passwd 3500s 3500s if compress or named_pipe: 3500s raise NotImplementedError( 3500s "compress and named_pipe arguments are not supported" 3500s ) 3500s 3500s self._local_infile = bool(local_infile) 3500s if self._local_infile: 3500s client_flag |= CLIENT.LOCAL_FILES 3500s 3500s if read_default_group and not read_default_file: 3500s if sys.platform.startswith("win"): 3500s read_default_file = "c:\\my.ini" 3500s else: 3500s read_default_file = "/etc/my.cnf" 3500s 3500s if read_default_file: 3500s if not read_default_group: 3500s read_default_group = "client" 3500s 3500s cfg = Parser() 3500s cfg.read(os.path.expanduser(read_default_file)) 3500s 3500s def _config(key, arg): 3500s if arg: 3500s return arg 3500s try: 3500s return cfg.get(read_default_group, key) 3500s except Exception: 3500s return arg 3500s 3500s user = _config("user", user) 3500s password = _config("password", password) 3500s host = _config("host", host) 3500s database = _config("database", database) 3500s unix_socket = _config("socket", unix_socket) 3500s port = int(_config("port", port)) 3500s bind_address = _config("bind-address", bind_address) 3500s charset = _config("default-character-set", charset) 3500s if not ssl: 3500s ssl = {} 3500s if isinstance(ssl, dict): 3500s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 3500s value = _config("ssl-" + key, ssl.get(key)) 3500s if value: 3500s ssl[key] = value 3500s 3500s self.ssl = False 3500s if not ssl_disabled: 3500s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 3500s ssl = { 3500s "ca": ssl_ca, 3500s "check_hostname": bool(ssl_verify_identity), 3500s "verify_mode": ssl_verify_cert 3500s if ssl_verify_cert is not None 3500s else False, 3500s } 3500s if ssl_cert is not None: 3500s ssl["cert"] = ssl_cert 3500s if ssl_key is not None: 3500s ssl["key"] = ssl_key 3500s if ssl_key_password is not None: 3500s ssl["password"] = ssl_key_password 3500s if ssl: 3500s if not SSL_ENABLED: 3500s raise NotImplementedError("ssl module not found") 3500s self.ssl = True 3500s client_flag |= CLIENT.SSL 3500s self.ctx = self._create_ssl_ctx(ssl) 3500s 3500s self.host = host or "localhost" 3500s self.port = port or 3306 3500s if type(self.port) is not int: 3500s raise ValueError("port should be of type int") 3500s self.user = user or DEFAULT_USER 3500s self.password = password or b"" 3500s if isinstance(self.password, str): 3500s self.password = self.password.encode("latin1") 3500s self.db = database 3500s self.unix_socket = unix_socket 3500s self.bind_address = bind_address 3500s if not (0 < connect_timeout <= 31536000): 3500s raise ValueError("connect_timeout should be >0 and <=31536000") 3500s self.connect_timeout = connect_timeout or None 3500s if read_timeout is not None and read_timeout <= 0: 3500s raise ValueError("read_timeout should be > 0") 3500s self._read_timeout = read_timeout 3500s if write_timeout is not None and write_timeout <= 0: 3500s raise ValueError("write_timeout should be > 0") 3500s self._write_timeout = write_timeout 3500s 3500s self.charset = charset or DEFAULT_CHARSET 3500s self.collation = collation 3500s self.use_unicode = use_unicode 3500s 3500s self.encoding = charset_by_name(self.charset).encoding 3500s 3500s client_flag |= CLIENT.CAPABILITIES 3500s if self.db: 3500s client_flag |= CLIENT.CONNECT_WITH_DB 3500s 3500s self.client_flag = client_flag 3500s 3500s self.cursorclass = cursorclass 3500s 3500s self._result = None 3500s self._affected_rows = 0 3500s self.host_info = "Not connected" 3500s 3500s # specified autocommit mode. None means use server default. 3500s self.autocommit_mode = autocommit 3500s 3500s if conv is None: 3500s conv = converters.conversions 3500s 3500s # Need for MySQLdb compatibility. 3500s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 3500s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 3500s self.sql_mode = sql_mode 3500s self.init_command = init_command 3500s self.max_allowed_packet = max_allowed_packet 3500s self._auth_plugin_map = auth_plugin_map or {} 3500s self._binary_prefix = binary_prefix 3500s self.server_public_key = server_public_key 3500s 3500s self._connect_attrs = { 3500s "_client_name": "pymysql", 3500s "_client_version": VERSION_STRING, 3500s "_pid": str(os.getpid()), 3500s } 3500s 3500s if program_name: 3500s self._connect_attrs["program_name"] = program_name 3500s 3500s if defer_connect: 3500s self._sock = None 3500s else: 3500s > self.connect() 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = , sock = None 3500s 3500s def connect(self, sock=None): 3500s self._closed = False 3500s try: 3500s if sock is None: 3500s if self.unix_socket: 3500s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3500s sock.settimeout(self.connect_timeout) 3500s sock.connect(self.unix_socket) 3500s self.host_info = "Localhost via UNIX socket" 3500s self._secure = True 3500s if DEBUG: 3500s print("connected using unix_socket") 3500s else: 3500s kwargs = {} 3500s if self.bind_address is not None: 3500s kwargs["source_address"] = (self.bind_address, 0) 3500s while True: 3500s try: 3500s sock = socket.create_connection( 3500s (self.host, self.port), self.connect_timeout, **kwargs 3500s ) 3500s break 3500s except OSError as e: 3500s if e.errno == errno.EINTR: 3500s continue 3500s raise 3500s self.host_info = "socket %s:%d" % (self.host, self.port) 3500s if DEBUG: 3500s print("connected using socket") 3500s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 3500s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 3500s sock.settimeout(None) 3500s 3500s self._sock = sock 3500s self._rfile = sock.makefile("rb") 3500s self._next_seq_id = 0 3500s 3500s self._get_server_information() 3500s self._request_authentication() 3500s 3500s # Send "SET NAMES" query on init for: 3500s # - Ensure charaset (and collation) is set to the server. 3500s # - collation_id in handshake packet may be ignored. 3500s # - If collation is not specified, we don't know what is server's 3500s # default collation for the charset. For example, default collation 3500s # of utf8mb4 is: 3500s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 3500s # - MySQL 8.0: utf8mb4_0900_ai_ci 3500s # 3500s # Reference: 3500s # - https://github.com/PyMySQL/PyMySQL/issues/1092 3500s # - https://github.com/wagtail/wagtail/issues/9477 3500s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 3500s self.set_character_set(self.charset, self.collation) 3500s 3500s if self.sql_mode is not None: 3500s c = self.cursor() 3500s c.execute("SET sql_mode=%s", (self.sql_mode,)) 3500s c.close() 3500s 3500s if self.init_command is not None: 3500s c = self.cursor() 3500s c.execute(self.init_command) 3500s c.close() 3500s 3500s if self.autocommit_mode is not None: 3500s self.autocommit(self.autocommit_mode) 3500s except BaseException as e: 3500s self._rfile = None 3500s if sock is not None: 3500s try: 3500s sock.close() 3500s except: # noqa 3500s pass 3500s 3500s if isinstance(e, (OSError, IOError)): 3500s exc = err.OperationalError( 3500s CR.CR_CONN_HOST_ERROR, 3500s f"Can't connect to MySQL server on {self.host!r} ({e})", 3500s ) 3500s # Keep original exception and traceback to investigate error. 3500s exc.original_exception = e 3500s exc.traceback = traceback.format_exc() 3500s if DEBUG: 3500s print(exc.traceback) 3500s > raise exc 3500s E sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3500s E (Background on this error at: https://sqlalche.me/e/14/e3q8) 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 3500s ________________ test_to_sql_exist[append-2-mysql_pymysql_conn] ________________ 3500s self = , sock = None 3500s 3500s def connect(self, sock=None): 3500s self._closed = False 3500s try: 3500s if sock is None: 3500s if self.unix_socket: 3500s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3500s sock.settimeout(self.connect_timeout) 3500s sock.connect(self.unix_socket) 3500s self.host_info = "Localhost via UNIX socket" 3500s self._secure = True 3500s if DEBUG: 3500s print("connected using unix_socket") 3500s else: 3500s kwargs = {} 3500s if self.bind_address is not None: 3500s kwargs["source_address"] = (self.bind_address, 0) 3500s while True: 3500s try: 3500s > sock = socket.create_connection( 3500s (self.host, self.port), self.connect_timeout, **kwargs 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:649: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s address = ('localhost', 3306), timeout = 10, source_address = None 3500s 3500s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 3500s source_address=None, *, all_errors=False): 3500s """Connect to *address* and return the socket object. 3500s 3500s Convenience function. Connect to *address* (a 2-tuple ``(host, 3500s port)``) and return the socket object. Passing the optional 3500s *timeout* parameter will set the timeout on the socket instance 3500s before attempting to connect. If no *timeout* is supplied, the 3500s global default timeout setting returned by :func:`getdefaulttimeout` 3500s is used. If *source_address* is set it must be a tuple of (host, port) 3500s for the socket to bind as a source address before making the connection. 3500s A host of '' or port 0 tells the OS to use the default. When a connection 3500s cannot be created, raises the last error if *all_errors* is False, 3500s and an ExceptionGroup of all errors if *all_errors* is True. 3500s """ 3500s 3500s host, port = address 3500s exceptions = [] 3500s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 3500s af, socktype, proto, canonname, sa = res 3500s sock = None 3500s try: 3500s sock = socket(af, socktype, proto) 3500s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 3500s sock.settimeout(timeout) 3500s if source_address: 3500s sock.bind(source_address) 3500s sock.connect(sa) 3500s # Break explicitly a reference cycle 3500s exceptions.clear() 3500s return sock 3500s 3500s except error as exc: 3500s if not all_errors: 3500s exceptions.clear() # raise only the last error 3500s exceptions.append(exc) 3500s if sock is not None: 3500s sock.close() 3500s 3500s if len(exceptions): 3500s try: 3500s if not all_errors: 3500s > raise exceptions[0] 3500s 3500s /usr/lib/python3.12/socket.py:853: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s address = ('localhost', 3306), timeout = 10, source_address = None 3500s 3500s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 3500s source_address=None, *, all_errors=False): 3500s """Connect to *address* and return the socket object. 3500s 3500s Convenience function. Connect to *address* (a 2-tuple ``(host, 3500s port)``) and return the socket object. Passing the optional 3500s *timeout* parameter will set the timeout on the socket instance 3500s before attempting to connect. If no *timeout* is supplied, the 3500s global default timeout setting returned by :func:`getdefaulttimeout` 3500s is used. If *source_address* is set it must be a tuple of (host, port) 3500s for the socket to bind as a source address before making the connection. 3500s A host of '' or port 0 tells the OS to use the default. When a connection 3500s cannot be created, raises the last error if *all_errors* is False, 3500s and an ExceptionGroup of all errors if *all_errors* is True. 3500s """ 3500s 3500s host, port = address 3500s exceptions = [] 3500s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 3500s af, socktype, proto, canonname, sa = res 3500s sock = None 3500s try: 3500s sock = socket(af, socktype, proto) 3500s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 3500s sock.settimeout(timeout) 3500s if source_address: 3500s sock.bind(source_address) 3500s > sock.connect(sa) 3500s E ConnectionRefusedError: [Errno 111] Connection refused 3500s 3500s /usr/lib/python3.12/socket.py:838: ConnectionRefusedError 3500s 3500s During handling of the above exception, another exception occurred: 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __init__( 3500s self, 3500s *, 3500s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 3500s password="", 3500s host=None, 3500s database=None, 3500s unix_socket=None, 3500s port=0, 3500s charset="", 3500s collation=None, 3500s sql_mode=None, 3500s read_default_file=None, 3500s conv=None, 3500s use_unicode=True, 3500s client_flag=0, 3500s cursorclass=Cursor, 3500s init_command=None, 3500s connect_timeout=10, 3500s read_default_group=None, 3500s autocommit=False, 3500s local_infile=False, 3500s max_allowed_packet=16 * 1024 * 1024, 3500s defer_connect=False, 3500s auth_plugin_map=None, 3500s read_timeout=None, 3500s write_timeout=None, 3500s bind_address=None, 3500s binary_prefix=False, 3500s program_name=None, 3500s server_public_key=None, 3500s ssl=None, 3500s ssl_ca=None, 3500s ssl_cert=None, 3500s ssl_disabled=None, 3500s ssl_key=None, 3500s ssl_key_password=None, 3500s ssl_verify_cert=None, 3500s ssl_verify_identity=None, 3500s compress=None, # not supported 3500s named_pipe=None, # not supported 3500s passwd=None, # deprecated 3500s db=None, # deprecated 3500s ): 3500s if db is not None and database is None: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 3500s database = db 3500s if passwd is not None and not password: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn( 3500s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 3500s # ) 3500s password = passwd 3500s 3500s if compress or named_pipe: 3500s raise NotImplementedError( 3500s "compress and named_pipe arguments are not supported" 3500s ) 3500s 3500s self._local_infile = bool(local_infile) 3500s if self._local_infile: 3500s client_flag |= CLIENT.LOCAL_FILES 3500s 3500s if read_default_group and not read_default_file: 3500s if sys.platform.startswith("win"): 3500s read_default_file = "c:\\my.ini" 3500s else: 3500s read_default_file = "/etc/my.cnf" 3500s 3500s if read_default_file: 3500s if not read_default_group: 3500s read_default_group = "client" 3500s 3500s cfg = Parser() 3500s cfg.read(os.path.expanduser(read_default_file)) 3500s 3500s def _config(key, arg): 3500s if arg: 3500s return arg 3500s try: 3500s return cfg.get(read_default_group, key) 3500s except Exception: 3500s return arg 3500s 3500s user = _config("user", user) 3500s password = _config("password", password) 3500s host = _config("host", host) 3500s database = _config("database", database) 3500s unix_socket = _config("socket", unix_socket) 3500s port = int(_config("port", port)) 3500s bind_address = _config("bind-address", bind_address) 3500s charset = _config("default-character-set", charset) 3500s if not ssl: 3500s ssl = {} 3500s if isinstance(ssl, dict): 3500s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 3500s value = _config("ssl-" + key, ssl.get(key)) 3500s if value: 3500s ssl[key] = value 3500s 3500s self.ssl = False 3500s if not ssl_disabled: 3500s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 3500s ssl = { 3500s "ca": ssl_ca, 3500s "check_hostname": bool(ssl_verify_identity), 3500s "verify_mode": ssl_verify_cert 3500s if ssl_verify_cert is not None 3500s else False, 3500s } 3500s if ssl_cert is not None: 3500s ssl["cert"] = ssl_cert 3500s if ssl_key is not None: 3500s ssl["key"] = ssl_key 3500s if ssl_key_password is not None: 3500s ssl["password"] = ssl_key_password 3500s if ssl: 3500s if not SSL_ENABLED: 3500s raise NotImplementedError("ssl module not found") 3500s self.ssl = True 3500s client_flag |= CLIENT.SSL 3500s self.ctx = self._create_ssl_ctx(ssl) 3500s 3500s self.host = host or "localhost" 3500s self.port = port or 3306 3500s if type(self.port) is not int: 3500s raise ValueError("port should be of type int") 3500s self.user = user or DEFAULT_USER 3500s self.password = password or b"" 3500s if isinstance(self.password, str): 3500s self.password = self.password.encode("latin1") 3500s self.db = database 3500s self.unix_socket = unix_socket 3500s self.bind_address = bind_address 3500s if not (0 < connect_timeout <= 31536000): 3500s raise ValueError("connect_timeout should be >0 and <=31536000") 3500s self.connect_timeout = connect_timeout or None 3500s if read_timeout is not None and read_timeout <= 0: 3500s raise ValueError("read_timeout should be > 0") 3500s self._read_timeout = read_timeout 3500s if write_timeout is not None and write_timeout <= 0: 3500s raise ValueError("write_timeout should be > 0") 3500s self._write_timeout = write_timeout 3500s 3500s self.charset = charset or DEFAULT_CHARSET 3500s self.collation = collation 3500s self.use_unicode = use_unicode 3500s 3500s self.encoding = charset_by_name(self.charset).encoding 3500s 3500s client_flag |= CLIENT.CAPABILITIES 3500s if self.db: 3500s client_flag |= CLIENT.CONNECT_WITH_DB 3500s 3500s self.client_flag = client_flag 3500s 3500s self.cursorclass = cursorclass 3500s 3500s self._result = None 3500s self._affected_rows = 0 3500s self.host_info = "Not connected" 3500s 3500s # specified autocommit mode. None means use server default. 3500s self.autocommit_mode = autocommit 3500s 3500s if conv is None: 3500s conv = converters.conversions 3500s 3500s # Need for MySQLdb compatibility. 3500s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 3500s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 3500s self.sql_mode = sql_mode 3500s self.init_command = init_command 3500s self.max_allowed_packet = max_allowed_packet 3500s self._auth_plugin_map = auth_plugin_map or {} 3500s self._binary_prefix = binary_prefix 3500s self.server_public_key = server_public_key 3500s 3500s self._connect_attrs = { 3500s "_client_name": "pymysql", 3500s "_client_version": VERSION_STRING, 3500s "_pid": str(os.getpid()), 3500s } 3500s 3500s if program_name: 3500s self._connect_attrs["program_name"] = program_name 3500s 3500s if defer_connect: 3500s self._sock = None 3500s else: 3500s > self.connect() 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = , sock = None 3500s 3500s def connect(self, sock=None): 3500s self._closed = False 3500s try: 3500s if sock is None: 3500s if self.unix_socket: 3500s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3500s sock.settimeout(self.connect_timeout) 3500s sock.connect(self.unix_socket) 3500s self.host_info = "Localhost via UNIX socket" 3500s self._secure = True 3500s if DEBUG: 3500s print("connected using unix_socket") 3500s else: 3500s kwargs = {} 3500s if self.bind_address is not None: 3500s kwargs["source_address"] = (self.bind_address, 0) 3500s while True: 3500s try: 3500s sock = socket.create_connection( 3500s (self.host, self.port), self.connect_timeout, **kwargs 3500s ) 3500s break 3500s except OSError as e: 3500s if e.errno == errno.EINTR: 3500s continue 3500s raise 3500s self.host_info = "socket %s:%d" % (self.host, self.port) 3500s if DEBUG: 3500s print("connected using socket") 3500s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 3500s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 3500s sock.settimeout(None) 3500s 3500s self._sock = sock 3500s self._rfile = sock.makefile("rb") 3500s self._next_seq_id = 0 3500s 3500s self._get_server_information() 3500s self._request_authentication() 3500s 3500s # Send "SET NAMES" query on init for: 3500s # - Ensure charaset (and collation) is set to the server. 3500s # - collation_id in handshake packet may be ignored. 3500s # - If collation is not specified, we don't know what is server's 3500s # default collation for the charset. For example, default collation 3500s # of utf8mb4 is: 3500s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 3500s # - MySQL 8.0: utf8mb4_0900_ai_ci 3500s # 3500s # Reference: 3500s # - https://github.com/PyMySQL/PyMySQL/issues/1092 3500s # - https://github.com/wagtail/wagtail/issues/9477 3500s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 3500s self.set_character_set(self.charset, self.collation) 3500s 3500s if self.sql_mode is not None: 3500s c = self.cursor() 3500s c.execute("SET sql_mode=%s", (self.sql_mode,)) 3500s c.close() 3500s 3500s if self.init_command is not None: 3500s c = self.cursor() 3500s c.execute(self.init_command) 3500s c.close() 3500s 3500s if self.autocommit_mode is not None: 3500s self.autocommit(self.autocommit_mode) 3500s except BaseException as e: 3500s self._rfile = None 3500s if sock is not None: 3500s try: 3500s sock.close() 3500s except: # noqa 3500s pass 3500s 3500s if isinstance(e, (OSError, IOError)): 3500s exc = err.OperationalError( 3500s CR.CR_CONN_HOST_ERROR, 3500s f"Can't connect to MySQL server on {self.host!r} ({e})", 3500s ) 3500s # Keep original exception and traceback to investigate error. 3500s exc.original_exception = e 3500s exc.traceback = traceback.format_exc() 3500s if DEBUG: 3500s print(exc.traceback) 3500s > raise exc 3500s E pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 3500s 3500s The above exception was the direct cause of the following exception: 3500s 3500s conn = 'mysql_pymysql_conn', mode = 'append', num_row_coef = 2 3500s test_frame1 = index A B C D 3500s 0 2000-01-03 00:00:00 0.980269 3.685731 -0.364217 -1...0-01-05 00:00:00 0.498581 0.731168 -0.537677 1.346270 3500s 3 2000-01-06 00:00:00 1.120202 1.567621 0.003641 0.675253 3500s request = > 3500s 3500s @pytest.mark.db 3500s @pytest.mark.parametrize("conn", all_connectable) 3500s @pytest.mark.parametrize("mode, num_row_coef", [("replace", 1), ("append", 2)]) 3500s def test_to_sql_exist(conn, mode, num_row_coef, test_frame1, request): 3500s > conn = request.getfixturevalue(conn) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:606: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'mysql_pymysql_conn' 3500s 3500s def getfixturevalue(self, argname: str) -> Any: 3500s """Dynamically run a named fixture function. 3500s 3500s Declaring fixtures via function argument is recommended where possible. 3500s But if you can only decide whether to use another fixture at test 3500s setup time, you may use this function to retrieve it inside a fixture 3500s or test function body. 3500s 3500s This method can be used during the test setup phase or the test run 3500s phase, but during the test teardown phase a fixture's value may not 3500s be available. 3500s 3500s :param argname: 3500s The fixture name. 3500s :raises pytest.FixtureLookupError: 3500s If the given fixture could not be found. 3500s """ 3500s > fixturedef = self._get_active_fixturedef(argname) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:585: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'mysql_pymysql_conn' 3500s 3500s def _get_active_fixturedef( 3500s self, argname: str 3500s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3500s try: 3500s return self._fixture_defs[argname] 3500s except KeyError: 3500s try: 3500s fixturedef = self._getnextfixturedef(argname) 3500s except FixtureLookupError: 3500s if argname == "request": 3500s cached_result = (self, [0], None) 3500s return PseudoFixtureDef(cached_result, Scope.Function) 3500s raise 3500s # Remove indent to prevent the python3 exception 3500s # from leaking into the call. 3500s > self._compute_fixture_value(fixturedef) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s fixturedef = 3500s 3500s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3500s """Create a SubRequest based on "self" and call the execute method 3500s of the given FixtureDef object. 3500s 3500s This will force the FixtureDef object to throw away any previous 3500s results and compute a new fixture value, which will be stored into 3500s the FixtureDef object itself. 3500s """ 3500s # prepare a subrequest object before calling fixture function 3500s # (latter managed by fixturedef) 3500s argname = fixturedef.argname 3500s funcitem = self._pyfuncitem 3500s scope = fixturedef._scope 3500s try: 3500s callspec = funcitem.callspec 3500s except AttributeError: 3500s callspec = None 3500s if callspec is not None and argname in callspec.params: 3500s param = callspec.params[argname] 3500s param_index = callspec.indices[argname] 3500s # If a parametrize invocation set a scope it will override 3500s # the static scope defined with the fixture function. 3500s with suppress(KeyError): 3500s scope = callspec._arg2scope[argname] 3500s else: 3500s param = NOTSET 3500s param_index = 0 3500s has_params = fixturedef.params is not None 3500s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3500s if has_params and fixtures_not_supported: 3500s msg = ( 3500s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3500s "Node id: {nodeid}\n" 3500s "Function type: {typename}" 3500s ).format( 3500s name=funcitem.name, 3500s nodeid=funcitem.nodeid, 3500s typename=type(funcitem).__name__, 3500s ) 3500s fail(msg, pytrace=False) 3500s if has_params: 3500s frame = inspect.stack()[3] 3500s frameinfo = inspect.getframeinfo(frame[0]) 3500s source_path = absolutepath(frameinfo.filename) 3500s source_lineno = frameinfo.lineno 3500s try: 3500s source_path_str = str( 3500s source_path.relative_to(funcitem.config.rootpath) 3500s ) 3500s except ValueError: 3500s source_path_str = str(source_path) 3500s msg = ( 3500s "The requested fixture has no parameter defined for test:\n" 3500s " {}\n\n" 3500s "Requested fixture '{}' defined in:\n{}" 3500s "\n\nRequested here:\n{}:{}".format( 3500s funcitem.nodeid, 3500s fixturedef.argname, 3500s getlocation(fixturedef.func, funcitem.config.rootpath), 3500s source_path_str, 3500s source_lineno, 3500s ) 3500s ) 3500s fail(msg, pytrace=False) 3500s 3500s subrequest = SubRequest( 3500s self, scope, param, param_index, fixturedef, _ispytest=True 3500s ) 3500s 3500s # Check if a higher-level scoped fixture accesses a lower level one. 3500s subrequest._check_scope(argname, self._scope, scope) 3500s try: 3500s # Call the fixture function. 3500s > fixturedef.execute(request=subrequest) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s request = > 3500s 3500s def execute(self, request: SubRequest) -> FixtureValue: 3500s # Get required arguments and register our own finish() 3500s # with their finalization. 3500s for argname in self.argnames: 3500s > fixturedef = request._get_active_fixturedef(argname) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1045: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'mysql_pymysql_engine' 3500s 3500s def _get_active_fixturedef( 3500s self, argname: str 3500s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3500s try: 3500s return self._fixture_defs[argname] 3500s except KeyError: 3500s try: 3500s fixturedef = self._getnextfixturedef(argname) 3500s except FixtureLookupError: 3500s if argname == "request": 3500s cached_result = (self, [0], None) 3500s return PseudoFixtureDef(cached_result, Scope.Function) 3500s raise 3500s # Remove indent to prevent the python3 exception 3500s # from leaking into the call. 3500s > self._compute_fixture_value(fixturedef) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s fixturedef = 3500s 3500s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3500s """Create a SubRequest based on "self" and call the execute method 3500s of the given FixtureDef object. 3500s 3500s This will force the FixtureDef object to throw away any previous 3500s results and compute a new fixture value, which will be stored into 3500s the FixtureDef object itself. 3500s """ 3500s # prepare a subrequest object before calling fixture function 3500s # (latter managed by fixturedef) 3500s argname = fixturedef.argname 3500s funcitem = self._pyfuncitem 3500s scope = fixturedef._scope 3500s try: 3500s callspec = funcitem.callspec 3500s except AttributeError: 3500s callspec = None 3500s if callspec is not None and argname in callspec.params: 3500s param = callspec.params[argname] 3500s param_index = callspec.indices[argname] 3500s # If a parametrize invocation set a scope it will override 3500s # the static scope defined with the fixture function. 3500s with suppress(KeyError): 3500s scope = callspec._arg2scope[argname] 3500s else: 3500s param = NOTSET 3500s param_index = 0 3500s has_params = fixturedef.params is not None 3500s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3500s if has_params and fixtures_not_supported: 3500s msg = ( 3500s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3500s "Node id: {nodeid}\n" 3500s "Function type: {typename}" 3500s ).format( 3500s name=funcitem.name, 3500s nodeid=funcitem.nodeid, 3500s typename=type(funcitem).__name__, 3500s ) 3500s fail(msg, pytrace=False) 3500s if has_params: 3500s frame = inspect.stack()[3] 3500s frameinfo = inspect.getframeinfo(frame[0]) 3500s source_path = absolutepath(frameinfo.filename) 3500s source_lineno = frameinfo.lineno 3500s try: 3500s source_path_str = str( 3500s source_path.relative_to(funcitem.config.rootpath) 3500s ) 3500s except ValueError: 3500s source_path_str = str(source_path) 3500s msg = ( 3500s "The requested fixture has no parameter defined for test:\n" 3500s " {}\n\n" 3500s "Requested fixture '{}' defined in:\n{}" 3500s "\n\nRequested here:\n{}:{}".format( 3500s funcitem.nodeid, 3500s fixturedef.argname, 3500s getlocation(fixturedef.func, funcitem.config.rootpath), 3500s source_path_str, 3500s source_lineno, 3500s ) 3500s ) 3500s fail(msg, pytrace=False) 3500s 3500s subrequest = SubRequest( 3500s self, scope, param, param_index, fixturedef, _ispytest=True 3500s ) 3500s 3500s # Check if a higher-level scoped fixture accesses a lower level one. 3500s subrequest._check_scope(argname, self._scope, scope) 3500s try: 3500s # Call the fixture function. 3500s > fixturedef.execute(request=subrequest) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s request = > 3500s 3500s def execute(self, request: SubRequest) -> FixtureValue: 3500s # Get required arguments and register our own finish() 3500s # with their finalization. 3500s for argname in self.argnames: 3500s fixturedef = request._get_active_fixturedef(argname) 3500s if argname != "request": 3500s # PseudoFixtureDef is only for "request". 3500s assert isinstance(fixturedef, FixtureDef) 3500s fixturedef.addfinalizer(functools.partial(self.finish, request=request)) 3500s 3500s my_cache_key = self.cache_key(request) 3500s if self.cached_result is not None: 3500s # note: comparison with `==` can fail (or be expensive) for e.g. 3500s # numpy arrays (#6497). 3500s cache_key = self.cached_result[1] 3500s if my_cache_key is cache_key: 3500s if self.cached_result[2] is not None: 3500s _, val, tb = self.cached_result[2] 3500s raise val.with_traceback(tb) 3500s else: 3500s result = self.cached_result[0] 3500s return result 3500s # We have a previous but differently parametrized fixture instance 3500s # so we need to tear it down before creating a new one. 3500s self.finish(request) 3500s assert self.cached_result is None 3500s 3500s ihook = request.node.ihook 3500s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1069: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s kwargs = {'fixturedef': , 'request': >} 3500s firstresult = True 3500s 3500s def __call__(self, **kwargs: object) -> Any: 3500s """Call the hook. 3500s 3500s Only accepts keyword arguments, which should match the hook 3500s specification. 3500s 3500s Returns the result(s) of calling all registered plugins, see 3500s :ref:`calling`. 3500s """ 3500s assert ( 3500s not self.is_historic() 3500s ), "Cannot directly call a historic hook - use call_historic instead." 3500s self._verify_all_args_are_provided(kwargs) 3500s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 3500s # Copy because plugins may register other plugins during iteration (#438). 3500s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = <_pytest.config.PytestPluginManager object at 0xe9079168> 3500s hook_name = 'pytest_fixture_setup' 3500s methods = [>] 3500s kwargs = {'fixturedef': , 'request': >} 3500s firstresult = True 3500s 3500s def _hookexec( 3500s self, 3500s hook_name: str, 3500s methods: Sequence[HookImpl], 3500s kwargs: Mapping[str, object], 3500s firstresult: bool, 3500s ) -> object | list[object]: 3500s # called from all hookcaller instances. 3500s # enable_tracing will set its own wrapping function at self._inner_hookexec 3500s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturedef = 3500s request = > 3500s 3500s def pytest_fixture_setup( 3500s fixturedef: FixtureDef[FixtureValue], request: SubRequest 3500s ) -> FixtureValue: 3500s """Execution of fixture setup.""" 3500s kwargs = {} 3500s for argname in fixturedef.argnames: 3500s fixdef = request._get_active_fixturedef(argname) 3500s assert fixdef.cached_result is not None 3500s result, arg_cache_key, exc = fixdef.cached_result 3500s request._check_scope(argname, request._scope, fixdef._scope) 3500s kwargs[argname] = result 3500s 3500s fixturefunc = resolve_fixture_function(fixturedef, request) 3500s my_cache_key = fixturedef.cache_key(request) 3500s try: 3500s > result = call_fixture_func(fixturefunc, request, kwargs) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1123: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturefunc = 3500s request = > 3500s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv'), 'types_data': [{'B... False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}]} 3500s 3500s def call_fixture_func( 3500s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 3500s ) -> FixtureValue: 3500s if is_generator(fixturefunc): 3500s fixturefunc = cast( 3500s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 3500s ) 3500s generator = fixturefunc(**kwargs) 3500s try: 3500s > fixture_result = next(generator) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:895: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s iris_path = PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv') 3500s types_data = [{'BoolCol': False, 'BoolColWithNull': False, 'DateCol': '2000-01-03 00:00:00', 'DateColWithTz': '2000-01-01 00:00:00-...: False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}] 3500s 3500s @pytest.fixture 3500s def mysql_pymysql_engine(iris_path, types_data): 3500s sqlalchemy = pytest.importorskip("sqlalchemy") 3500s pymysql = pytest.importorskip("pymysql") 3500s engine = sqlalchemy.create_engine( 3500s "mysql+pymysql://root@localhost:3306/pandas", 3500s connect_args={"client_flag": pymysql.constants.CLIENT.MULTI_STATEMENTS}, 3500s poolclass=sqlalchemy.pool.NullPool, 3500s ) 3500s > insp = sqlalchemy.inspect(engine) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:409: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s subject = Engine(mysql+pymysql://root@localhost:3306/pandas), raiseerr = True 3500s 3500s def inspect(subject, raiseerr=True): 3500s """Produce an inspection object for the given target. 3500s 3500s The returned value in some cases may be the 3500s same object as the one given, such as if a 3500s :class:`_orm.Mapper` object is passed. In other 3500s cases, it will be an instance of the registered 3500s inspection type for the given object, such as 3500s if an :class:`_engine.Engine` is passed, an 3500s :class:`_reflection.Inspector` object is returned. 3500s 3500s :param subject: the subject to be inspected. 3500s :param raiseerr: When ``True``, if the given subject 3500s does not 3500s correspond to a known SQLAlchemy inspected type, 3500s :class:`sqlalchemy.exc.NoInspectionAvailable` 3500s is raised. If ``False``, ``None`` is returned. 3500s 3500s """ 3500s type_ = type(subject) 3500s for cls in type_.__mro__: 3500s if cls in _registrars: 3500s reg = _registrars[cls] 3500s if reg is True: 3500s return subject 3500s > ret = reg(subject) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:64: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s @inspection._inspects(Engine) 3500s def _engine_insp(bind): 3500s > return Inspector._construct(Inspector._init_engine, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:182: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s init = 3500s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s @classmethod 3500s def _construct(cls, init, bind): 3500s 3500s if hasattr(bind.dialect, "inspector"): 3500s cls = bind.dialect.inspector 3500s 3500s self = cls.__new__(cls) 3500s > init(self, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:117: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s def _init_engine(self, engine): 3500s self.bind = self.engine = engine 3500s > engine.connect().close() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:128: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s close_with_result = False 3500s 3500s def connect(self, close_with_result=False): 3500s """Return a new :class:`_engine.Connection` object. 3500s 3500s The :class:`_engine.Connection` object is a facade that uses a DBAPI 3500s connection internally in order to communicate with the database. This 3500s connection is procured from the connection-holding :class:`_pool.Pool` 3500s referenced by this :class:`_engine.Engine`. When the 3500s :meth:`_engine.Connection.close` method of the 3500s :class:`_engine.Connection` object 3500s is called, the underlying DBAPI connection is then returned to the 3500s connection pool, where it may be used again in a subsequent call to 3500s :meth:`_engine.Engine.connect`. 3500s 3500s """ 3500s 3500s > return self._connection_cls(self, close_with_result=close_with_result) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3325: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 3500s close_with_result = False, _branch_from = None, _execution_options = None 3500s _dispatch = None, _has_events = None, _allow_revalidate = True 3500s 3500s def __init__( 3500s self, 3500s engine, 3500s connection=None, 3500s close_with_result=False, 3500s _branch_from=None, 3500s _execution_options=None, 3500s _dispatch=None, 3500s _has_events=None, 3500s _allow_revalidate=True, 3500s ): 3500s """Construct a new Connection.""" 3500s self.engine = engine 3500s self.dialect = engine.dialect 3500s self.__branch_from = _branch_from 3500s 3500s if _branch_from: 3500s # branching is always "from" the root connection 3500s assert _branch_from.__branch_from is None 3500s self._dbapi_connection = connection 3500s self._execution_options = _execution_options 3500s self._echo = _branch_from._echo 3500s self.should_close_with_result = False 3500s self.dispatch = _dispatch 3500s self._has_events = _branch_from._has_events 3500s else: 3500s self._dbapi_connection = ( 3500s connection 3500s if connection is not None 3500s > else engine.raw_connection() 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:96: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas), _connection = None 3500s 3500s def raw_connection(self, _connection=None): 3500s """Return a "raw" DBAPI connection from the connection pool. 3500s 3500s The returned object is a proxied version of the DBAPI 3500s connection object used by the underlying driver in use. 3500s The object will have all the same behavior as the real DBAPI 3500s connection, except that its ``close()`` method will result in the 3500s connection being returned to the pool, rather than being closed 3500s for real. 3500s 3500s This method provides direct DBAPI connection access for 3500s special situations when the API provided by 3500s :class:`_engine.Connection` 3500s is not needed. When a :class:`_engine.Connection` object is already 3500s present, the DBAPI connection is available using 3500s the :attr:`_engine.Connection.connection` accessor. 3500s 3500s .. seealso:: 3500s 3500s :ref:`dbapi_connections` 3500s 3500s """ 3500s > return self._wrap_pool_connect(self.pool.connect, _connection) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3404: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s return fn() 3500s except dialect.dbapi.Error as e: 3500s if connection is None: 3500s > Connection._handle_dbapi_exception_noconnection( 3500s e, dialect, self 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3374: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s e = OperationalError(2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3500s dialect = 3500s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s @classmethod 3500s def _handle_dbapi_exception_noconnection(cls, e, dialect, engine): 3500s exc_info = sys.exc_info() 3500s 3500s is_disconnect = dialect.is_disconnect(e, None, None) 3500s 3500s should_wrap = isinstance(e, dialect.dbapi.Error) 3500s 3500s if should_wrap: 3500s sqlalchemy_exception = exc.DBAPIError.instance( 3500s None, 3500s None, 3500s e, 3500s dialect.dbapi.Error, 3500s hide_parameters=engine.hide_parameters, 3500s connection_invalidated=is_disconnect, 3500s ) 3500s else: 3500s sqlalchemy_exception = None 3500s 3500s newraise = None 3500s 3500s if engine._has_events: 3500s ctx = ExceptionContextImpl( 3500s e, 3500s sqlalchemy_exception, 3500s engine, 3500s None, 3500s None, 3500s None, 3500s None, 3500s None, 3500s is_disconnect, 3500s True, 3500s ) 3500s for fn in engine.dispatch.handle_error: 3500s try: 3500s # handler returns an exception; 3500s # call next handler in a chain 3500s per_fn = fn(ctx) 3500s if per_fn is not None: 3500s ctx.chained_exception = newraise = per_fn 3500s except Exception as _raised: 3500s # handler raises an exception - stop processing 3500s newraise = _raised 3500s break 3500s 3500s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 3500s sqlalchemy_exception.connection_invalidated = ( 3500s is_disconnect 3500s ) = ctx.is_disconnect 3500s 3500s if newraise: 3500s util.raise_(newraise, with_traceback=exc_info[2], from_=e) 3500s elif should_wrap: 3500s > util.raise_( 3500s sqlalchemy_exception, with_traceback=exc_info[2], from_=e 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2208: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __init__( 3500s self, 3500s *, 3500s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 3500s password="", 3500s host=None, 3500s database=None, 3500s unix_socket=None, 3500s port=0, 3500s charset="", 3500s collation=None, 3500s sql_mode=None, 3500s read_default_file=None, 3500s conv=None, 3500s use_unicode=True, 3500s client_flag=0, 3500s cursorclass=Cursor, 3500s init_command=None, 3500s connect_timeout=10, 3500s read_default_group=None, 3500s autocommit=False, 3500s local_infile=False, 3500s max_allowed_packet=16 * 1024 * 1024, 3500s defer_connect=False, 3500s auth_plugin_map=None, 3500s read_timeout=None, 3500s write_timeout=None, 3500s bind_address=None, 3500s binary_prefix=False, 3500s program_name=None, 3500s server_public_key=None, 3500s ssl=None, 3500s ssl_ca=None, 3500s ssl_cert=None, 3500s ssl_disabled=None, 3500s ssl_key=None, 3500s ssl_key_password=None, 3500s ssl_verify_cert=None, 3500s ssl_verify_identity=None, 3500s compress=None, # not supported 3500s named_pipe=None, # not supported 3500s passwd=None, # deprecated 3500s db=None, # deprecated 3500s ): 3500s if db is not None and database is None: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 3500s database = db 3500s if passwd is not None and not password: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn( 3500s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 3500s # ) 3500s password = passwd 3500s 3500s if compress or named_pipe: 3500s raise NotImplementedError( 3500s "compress and named_pipe arguments are not supported" 3500s ) 3500s 3500s self._local_infile = bool(local_infile) 3500s if self._local_infile: 3500s client_flag |= CLIENT.LOCAL_FILES 3500s 3500s if read_default_group and not read_default_file: 3500s if sys.platform.startswith("win"): 3500s read_default_file = "c:\\my.ini" 3500s else: 3500s read_default_file = "/etc/my.cnf" 3500s 3500s if read_default_file: 3500s if not read_default_group: 3500s read_default_group = "client" 3500s 3500s cfg = Parser() 3500s cfg.read(os.path.expanduser(read_default_file)) 3500s 3500s def _config(key, arg): 3500s if arg: 3500s return arg 3500s try: 3500s return cfg.get(read_default_group, key) 3500s except Exception: 3500s return arg 3500s 3500s user = _config("user", user) 3500s password = _config("password", password) 3500s host = _config("host", host) 3500s database = _config("database", database) 3500s unix_socket = _config("socket", unix_socket) 3500s port = int(_config("port", port)) 3500s bind_address = _config("bind-address", bind_address) 3500s charset = _config("default-character-set", charset) 3500s if not ssl: 3500s ssl = {} 3500s if isinstance(ssl, dict): 3500s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 3500s value = _config("ssl-" + key, ssl.get(key)) 3500s if value: 3500s ssl[key] = value 3500s 3500s self.ssl = False 3500s if not ssl_disabled: 3500s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 3500s ssl = { 3500s "ca": ssl_ca, 3500s "check_hostname": bool(ssl_verify_identity), 3500s "verify_mode": ssl_verify_cert 3500s if ssl_verify_cert is not None 3500s else False, 3500s } 3500s if ssl_cert is not None: 3500s ssl["cert"] = ssl_cert 3500s if ssl_key is not None: 3500s ssl["key"] = ssl_key 3500s if ssl_key_password is not None: 3500s ssl["password"] = ssl_key_password 3500s if ssl: 3500s if not SSL_ENABLED: 3500s raise NotImplementedError("ssl module not found") 3500s self.ssl = True 3500s client_flag |= CLIENT.SSL 3500s self.ctx = self._create_ssl_ctx(ssl) 3500s 3500s self.host = host or "localhost" 3500s self.port = port or 3306 3500s if type(self.port) is not int: 3500s raise ValueError("port should be of type int") 3500s self.user = user or DEFAULT_USER 3500s self.password = password or b"" 3500s if isinstance(self.password, str): 3500s self.password = self.password.encode("latin1") 3500s self.db = database 3500s self.unix_socket = unix_socket 3500s self.bind_address = bind_address 3500s if not (0 < connect_timeout <= 31536000): 3500s raise ValueError("connect_timeout should be >0 and <=31536000") 3500s self.connect_timeout = connect_timeout or None 3500s if read_timeout is not None and read_timeout <= 0: 3500s raise ValueError("read_timeout should be > 0") 3500s self._read_timeout = read_timeout 3500s if write_timeout is not None and write_timeout <= 0: 3500s raise ValueError("write_timeout should be > 0") 3500s self._write_timeout = write_timeout 3500s 3500s self.charset = charset or DEFAULT_CHARSET 3500s self.collation = collation 3500s self.use_unicode = use_unicode 3500s 3500s self.encoding = charset_by_name(self.charset).encoding 3500s 3500s client_flag |= CLIENT.CAPABILITIES 3500s if self.db: 3500s client_flag |= CLIENT.CONNECT_WITH_DB 3500s 3500s self.client_flag = client_flag 3500s 3500s self.cursorclass = cursorclass 3500s 3500s self._result = None 3500s self._affected_rows = 0 3500s self.host_info = "Not connected" 3500s 3500s # specified autocommit mode. None means use server default. 3500s self.autocommit_mode = autocommit 3500s 3500s if conv is None: 3500s conv = converters.conversions 3500s 3500s # Need for MySQLdb compatibility. 3500s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 3500s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 3500s self.sql_mode = sql_mode 3500s self.init_command = init_command 3500s self.max_allowed_packet = max_allowed_packet 3500s self._auth_plugin_map = auth_plugin_map or {} 3500s self._binary_prefix = binary_prefix 3500s self.server_public_key = server_public_key 3500s 3500s self._connect_attrs = { 3500s "_client_name": "pymysql", 3500s "_client_version": VERSION_STRING, 3500s "_pid": str(os.getpid()), 3500s } 3500s 3500s if program_name: 3500s self._connect_attrs["program_name"] = program_name 3500s 3500s if defer_connect: 3500s self._sock = None 3500s else: 3500s > self.connect() 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = , sock = None 3500s 3500s def connect(self, sock=None): 3500s self._closed = False 3500s try: 3500s if sock is None: 3500s if self.unix_socket: 3500s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3500s sock.settimeout(self.connect_timeout) 3500s sock.connect(self.unix_socket) 3500s self.host_info = "Localhost via UNIX socket" 3500s self._secure = True 3500s if DEBUG: 3500s print("connected using unix_socket") 3500s else: 3500s kwargs = {} 3500s if self.bind_address is not None: 3500s kwargs["source_address"] = (self.bind_address, 0) 3500s while True: 3500s try: 3500s sock = socket.create_connection( 3500s (self.host, self.port), self.connect_timeout, **kwargs 3500s ) 3500s break 3500s except OSError as e: 3500s if e.errno == errno.EINTR: 3500s continue 3500s raise 3500s self.host_info = "socket %s:%d" % (self.host, self.port) 3500s if DEBUG: 3500s print("connected using socket") 3500s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 3500s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 3500s sock.settimeout(None) 3500s 3500s self._sock = sock 3500s self._rfile = sock.makefile("rb") 3500s self._next_seq_id = 0 3500s 3500s self._get_server_information() 3500s self._request_authentication() 3500s 3500s # Send "SET NAMES" query on init for: 3500s # - Ensure charaset (and collation) is set to the server. 3500s # - collation_id in handshake packet may be ignored. 3500s # - If collation is not specified, we don't know what is server's 3500s # default collation for the charset. For example, default collation 3500s # of utf8mb4 is: 3500s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 3500s # - MySQL 8.0: utf8mb4_0900_ai_ci 3500s # 3500s # Reference: 3500s # - https://github.com/PyMySQL/PyMySQL/issues/1092 3500s # - https://github.com/wagtail/wagtail/issues/9477 3500s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 3500s self.set_character_set(self.charset, self.collation) 3500s 3500s if self.sql_mode is not None: 3500s c = self.cursor() 3500s c.execute("SET sql_mode=%s", (self.sql_mode,)) 3500s c.close() 3500s 3500s if self.init_command is not None: 3500s c = self.cursor() 3500s c.execute(self.init_command) 3500s c.close() 3500s 3500s if self.autocommit_mode is not None: 3500s self.autocommit(self.autocommit_mode) 3500s except BaseException as e: 3500s self._rfile = None 3500s if sock is not None: 3500s try: 3500s sock.close() 3500s except: # noqa 3500s pass 3500s 3500s if isinstance(e, (OSError, IOError)): 3500s exc = err.OperationalError( 3500s CR.CR_CONN_HOST_ERROR, 3500s f"Can't connect to MySQL server on {self.host!r} ({e})", 3500s ) 3500s # Keep original exception and traceback to investigate error. 3500s exc.original_exception = e 3500s exc.traceback = traceback.format_exc() 3500s if DEBUG: 3500s print(exc.traceback) 3500s > raise exc 3500s E sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3500s E (Background on this error at: https://sqlalche.me/e/14/e3q8) 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 3500s ____________ test_to_sql_exist[append-2-postgresql_psycopg2_engine] ____________ 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s dsn = 'host=localhost user=postgres password=postgres port=5432 dbname=pandas' 3500s connection_factory = None, cursor_factory = None 3500s kwargs = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s kwasync = {} 3500s 3500s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 3500s """ 3500s Create a new database connection. 3500s 3500s The connection parameters can be specified as a string: 3500s 3500s conn = psycopg2.connect("dbname=test user=postgres password=secret") 3500s 3500s or using a set of keyword arguments: 3500s 3500s conn = psycopg2.connect(database="test", user="postgres", password="secret") 3500s 3500s Or as a mix of both. The basic connection parameters are: 3500s 3500s - *dbname*: the database name 3500s - *database*: the database name (only as keyword argument) 3500s - *user*: user name used to authenticate 3500s - *password*: password used to authenticate 3500s - *host*: database host address (defaults to UNIX socket if not provided) 3500s - *port*: connection port number (defaults to 5432 if not provided) 3500s 3500s Using the *connection_factory* parameter a different class or connections 3500s factory can be specified. It should be a callable object taking a dsn 3500s argument. 3500s 3500s Using the *cursor_factory* parameter, a new default cursor factory will be 3500s used by cursor(). 3500s 3500s Using *async*=True an asynchronous connection will be created. *async_* is 3500s a valid alias (for Python versions where ``async`` is a keyword). 3500s 3500s Any other keyword parameter will be passed to the underlying client 3500s library: the list of supported parameters depends on the library version. 3500s 3500s """ 3500s kwasync = {} 3500s if 'async' in kwargs: 3500s kwasync['async'] = kwargs.pop('async') 3500s if 'async_' in kwargs: 3500s kwasync['async_'] = kwargs.pop('async_') 3500s 3500s dsn = _ext.make_dsn(dsn, **kwargs) 3500s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 3500s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 3500s E Is the server running on that host and accepting TCP/IP connections? 3500s 3500s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 3500s 3500s The above exception was the direct cause of the following exception: 3500s 3500s conn = 'postgresql_psycopg2_engine', mode = 'append', num_row_coef = 2 3500s test_frame1 = index A B C D 3500s 0 2000-01-03 00:00:00 0.980269 3.685731 -0.364217 -1...0-01-05 00:00:00 0.498581 0.731168 -0.537677 1.346270 3500s 3 2000-01-06 00:00:00 1.120202 1.567621 0.003641 0.675253 3500s request = > 3500s 3500s @pytest.mark.db 3500s @pytest.mark.parametrize("conn", all_connectable) 3500s @pytest.mark.parametrize("mode, num_row_coef", [("replace", 1), ("append", 2)]) 3500s def test_to_sql_exist(conn, mode, num_row_coef, test_frame1, request): 3500s > conn = request.getfixturevalue(conn) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:606: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'postgresql_psycopg2_engine' 3500s 3500s def getfixturevalue(self, argname: str) -> Any: 3500s """Dynamically run a named fixture function. 3500s 3500s Declaring fixtures via function argument is recommended where possible. 3500s But if you can only decide whether to use another fixture at test 3500s setup time, you may use this function to retrieve it inside a fixture 3500s or test function body. 3500s 3500s This method can be used during the test setup phase or the test run 3500s phase, but during the test teardown phase a fixture's value may not 3500s be available. 3500s 3500s :param argname: 3500s The fixture name. 3500s :raises pytest.FixtureLookupError: 3500s If the given fixture could not be found. 3500s """ 3500s > fixturedef = self._get_active_fixturedef(argname) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:585: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'postgresql_psycopg2_engine' 3500s 3500s def _get_active_fixturedef( 3500s self, argname: str 3500s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3500s try: 3500s return self._fixture_defs[argname] 3500s except KeyError: 3500s try: 3500s fixturedef = self._getnextfixturedef(argname) 3500s except FixtureLookupError: 3500s if argname == "request": 3500s cached_result = (self, [0], None) 3500s return PseudoFixtureDef(cached_result, Scope.Function) 3500s raise 3500s # Remove indent to prevent the python3 exception 3500s # from leaking into the call. 3500s > self._compute_fixture_value(fixturedef) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s fixturedef = 3500s 3500s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3500s """Create a SubRequest based on "self" and call the execute method 3500s of the given FixtureDef object. 3500s 3500s This will force the FixtureDef object to throw away any previous 3500s results and compute a new fixture value, which will be stored into 3500s the FixtureDef object itself. 3500s """ 3500s # prepare a subrequest object before calling fixture function 3500s # (latter managed by fixturedef) 3500s argname = fixturedef.argname 3500s funcitem = self._pyfuncitem 3500s scope = fixturedef._scope 3500s try: 3500s callspec = funcitem.callspec 3500s except AttributeError: 3500s callspec = None 3500s if callspec is not None and argname in callspec.params: 3500s param = callspec.params[argname] 3500s param_index = callspec.indices[argname] 3500s # If a parametrize invocation set a scope it will override 3500s # the static scope defined with the fixture function. 3500s with suppress(KeyError): 3500s scope = callspec._arg2scope[argname] 3500s else: 3500s param = NOTSET 3500s param_index = 0 3500s has_params = fixturedef.params is not None 3500s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3500s if has_params and fixtures_not_supported: 3500s msg = ( 3500s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3500s "Node id: {nodeid}\n" 3500s "Function type: {typename}" 3500s ).format( 3500s name=funcitem.name, 3500s nodeid=funcitem.nodeid, 3500s typename=type(funcitem).__name__, 3500s ) 3500s fail(msg, pytrace=False) 3500s if has_params: 3500s frame = inspect.stack()[3] 3500s frameinfo = inspect.getframeinfo(frame[0]) 3500s source_path = absolutepath(frameinfo.filename) 3500s source_lineno = frameinfo.lineno 3500s try: 3500s source_path_str = str( 3500s source_path.relative_to(funcitem.config.rootpath) 3500s ) 3500s except ValueError: 3500s source_path_str = str(source_path) 3500s msg = ( 3500s "The requested fixture has no parameter defined for test:\n" 3500s " {}\n\n" 3500s "Requested fixture '{}' defined in:\n{}" 3500s "\n\nRequested here:\n{}:{}".format( 3500s funcitem.nodeid, 3500s fixturedef.argname, 3500s getlocation(fixturedef.func, funcitem.config.rootpath), 3500s source_path_str, 3500s source_lineno, 3500s ) 3500s ) 3500s fail(msg, pytrace=False) 3500s 3500s subrequest = SubRequest( 3500s self, scope, param, param_index, fixturedef, _ispytest=True 3500s ) 3500s 3500s # Check if a higher-level scoped fixture accesses a lower level one. 3500s subrequest._check_scope(argname, self._scope, scope) 3500s try: 3500s # Call the fixture function. 3500s > fixturedef.execute(request=subrequest) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s request = > 3500s 3500s def execute(self, request: SubRequest) -> FixtureValue: 3500s # Get required arguments and register our own finish() 3500s # with their finalization. 3500s for argname in self.argnames: 3500s fixturedef = request._get_active_fixturedef(argname) 3500s if argname != "request": 3500s # PseudoFixtureDef is only for "request". 3500s assert isinstance(fixturedef, FixtureDef) 3500s fixturedef.addfinalizer(functools.partial(self.finish, request=request)) 3500s 3500s my_cache_key = self.cache_key(request) 3500s if self.cached_result is not None: 3500s # note: comparison with `==` can fail (or be expensive) for e.g. 3500s # numpy arrays (#6497). 3500s cache_key = self.cached_result[1] 3500s if my_cache_key is cache_key: 3500s if self.cached_result[2] is not None: 3500s _, val, tb = self.cached_result[2] 3500s raise val.with_traceback(tb) 3500s else: 3500s result = self.cached_result[0] 3500s return result 3500s # We have a previous but differently parametrized fixture instance 3500s # so we need to tear it down before creating a new one. 3500s self.finish(request) 3500s assert self.cached_result is None 3500s 3500s ihook = request.node.ihook 3500s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1069: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s kwargs = {'fixturedef': , 'request': >} 3500s firstresult = True 3500s 3500s def __call__(self, **kwargs: object) -> Any: 3500s """Call the hook. 3500s 3500s Only accepts keyword arguments, which should match the hook 3500s specification. 3500s 3500s Returns the result(s) of calling all registered plugins, see 3500s :ref:`calling`. 3500s """ 3500s assert ( 3500s not self.is_historic() 3500s ), "Cannot directly call a historic hook - use call_historic instead." 3500s self._verify_all_args_are_provided(kwargs) 3500s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 3500s # Copy because plugins may register other plugins during iteration (#438). 3500s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = <_pytest.config.PytestPluginManager object at 0xe9079168> 3500s hook_name = 'pytest_fixture_setup' 3500s methods = [>] 3500s kwargs = {'fixturedef': , 'request': >} 3500s firstresult = True 3500s 3500s def _hookexec( 3500s self, 3500s hook_name: str, 3500s methods: Sequence[HookImpl], 3500s kwargs: Mapping[str, object], 3500s firstresult: bool, 3500s ) -> object | list[object]: 3500s # called from all hookcaller instances. 3500s # enable_tracing will set its own wrapping function at self._inner_hookexec 3500s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturedef = 3500s request = > 3500s 3500s def pytest_fixture_setup( 3500s fixturedef: FixtureDef[FixtureValue], request: SubRequest 3500s ) -> FixtureValue: 3500s """Execution of fixture setup.""" 3500s kwargs = {} 3500s for argname in fixturedef.argnames: 3500s fixdef = request._get_active_fixturedef(argname) 3500s assert fixdef.cached_result is not None 3500s result, arg_cache_key, exc = fixdef.cached_result 3500s request._check_scope(argname, request._scope, fixdef._scope) 3500s kwargs[argname] = result 3500s 3500s fixturefunc = resolve_fixture_function(fixturedef, request) 3500s my_cache_key = fixturedef.cache_key(request) 3500s try: 3500s > result = call_fixture_func(fixturefunc, request, kwargs) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1123: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturefunc = 3500s request = > 3500s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv'), 'types_data': [{'B... False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}]} 3500s 3500s def call_fixture_func( 3500s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 3500s ) -> FixtureValue: 3500s if is_generator(fixturefunc): 3500s fixturefunc = cast( 3500s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 3500s ) 3500s generator = fixturefunc(**kwargs) 3500s try: 3500s > fixture_result = next(generator) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:895: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s iris_path = PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv') 3500s types_data = [{'BoolCol': False, 'BoolColWithNull': False, 'DateCol': '2000-01-03 00:00:00', 'DateColWithTz': '2000-01-01 00:00:00-...: False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}] 3500s 3500s @pytest.fixture 3500s def postgresql_psycopg2_engine(iris_path, types_data): 3500s sqlalchemy = pytest.importorskip("sqlalchemy") 3500s pytest.importorskip("psycopg2") 3500s engine = sqlalchemy.create_engine( 3500s "postgresql+psycopg2://postgres:postgres@localhost:5432/pandas", 3500s poolclass=sqlalchemy.pool.NullPool, 3500s ) 3500s > insp = sqlalchemy.inspect(engine) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:438: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s subject = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s raiseerr = True 3500s 3500s def inspect(subject, raiseerr=True): 3500s """Produce an inspection object for the given target. 3500s 3500s The returned value in some cases may be the 3500s same object as the one given, such as if a 3500s :class:`_orm.Mapper` object is passed. In other 3500s cases, it will be an instance of the registered 3500s inspection type for the given object, such as 3500s if an :class:`_engine.Engine` is passed, an 3500s :class:`_reflection.Inspector` object is returned. 3500s 3500s :param subject: the subject to be inspected. 3500s :param raiseerr: When ``True``, if the given subject 3500s does not 3500s correspond to a known SQLAlchemy inspected type, 3500s :class:`sqlalchemy.exc.NoInspectionAvailable` 3500s is raised. If ``False``, ``None`` is returned. 3500s 3500s """ 3500s type_ = type(subject) 3500s for cls in type_.__mro__: 3500s if cls in _registrars: 3500s reg = _registrars[cls] 3500s if reg is True: 3500s return subject 3500s > ret = reg(subject) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:64: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s @inspection._inspects(Engine) 3500s def _engine_insp(bind): 3500s > return Inspector._construct(Inspector._init_engine, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:182: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s init = 3500s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s @classmethod 3500s def _construct(cls, init, bind): 3500s 3500s if hasattr(bind.dialect, "inspector"): 3500s cls = bind.dialect.inspector 3500s 3500s self = cls.__new__(cls) 3500s > init(self, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:117: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s def _init_engine(self, engine): 3500s self.bind = self.engine = engine 3500s > engine.connect().close() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:128: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s close_with_result = False 3500s 3500s def connect(self, close_with_result=False): 3500s """Return a new :class:`_engine.Connection` object. 3500s 3500s The :class:`_engine.Connection` object is a facade that uses a DBAPI 3500s connection internally in order to communicate with the database. This 3500s connection is procured from the connection-holding :class:`_pool.Pool` 3500s referenced by this :class:`_engine.Engine`. When the 3500s :meth:`_engine.Connection.close` method of the 3500s :class:`_engine.Connection` object 3500s is called, the underlying DBAPI connection is then returned to the 3500s connection pool, where it may be used again in a subsequent call to 3500s :meth:`_engine.Engine.connect`. 3500s 3500s """ 3500s 3500s > return self._connection_cls(self, close_with_result=close_with_result) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3325: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s connection = None, close_with_result = False, _branch_from = None 3500s _execution_options = None, _dispatch = None, _has_events = None 3500s _allow_revalidate = True 3500s 3500s def __init__( 3500s self, 3500s engine, 3500s connection=None, 3500s close_with_result=False, 3500s _branch_from=None, 3500s _execution_options=None, 3500s _dispatch=None, 3500s _has_events=None, 3500s _allow_revalidate=True, 3500s ): 3500s """Construct a new Connection.""" 3500s self.engine = engine 3500s self.dialect = engine.dialect 3500s self.__branch_from = _branch_from 3500s 3500s if _branch_from: 3500s # branching is always "from" the root connection 3500s assert _branch_from.__branch_from is None 3500s self._dbapi_connection = connection 3500s self._execution_options = _execution_options 3500s self._echo = _branch_from._echo 3500s self.should_close_with_result = False 3500s self.dispatch = _dispatch 3500s self._has_events = _branch_from._has_events 3500s else: 3500s self._dbapi_connection = ( 3500s connection 3500s if connection is not None 3500s > else engine.raw_connection() 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:96: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s _connection = None 3500s 3500s def raw_connection(self, _connection=None): 3500s """Return a "raw" DBAPI connection from the connection pool. 3500s 3500s The returned object is a proxied version of the DBAPI 3500s connection object used by the underlying driver in use. 3500s The object will have all the same behavior as the real DBAPI 3500s connection, except that its ``close()`` method will result in the 3500s connection being returned to the pool, rather than being closed 3500s for real. 3500s 3500s This method provides direct DBAPI connection access for 3500s special situations when the API provided by 3500s :class:`_engine.Connection` 3500s is not needed. When a :class:`_engine.Connection` object is already 3500s present, the DBAPI connection is available using 3500s the :attr:`_engine.Connection.connection` accessor. 3500s 3500s .. seealso:: 3500s 3500s :ref:`dbapi_connections` 3500s 3500s """ 3500s > return self._wrap_pool_connect(self.pool.connect, _connection) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3404: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s return fn() 3500s except dialect.dbapi.Error as e: 3500s if connection is None: 3500s > Connection._handle_dbapi_exception_noconnection( 3500s e, dialect, self 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3374: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s e = OperationalError('connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused\n\tIs the server running on that host and accepting TCP/IP connections?\n') 3500s dialect = 3500s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s @classmethod 3500s def _handle_dbapi_exception_noconnection(cls, e, dialect, engine): 3500s exc_info = sys.exc_info() 3500s 3500s is_disconnect = dialect.is_disconnect(e, None, None) 3500s 3500s should_wrap = isinstance(e, dialect.dbapi.Error) 3500s 3500s if should_wrap: 3500s sqlalchemy_exception = exc.DBAPIError.instance( 3500s None, 3500s None, 3500s e, 3500s dialect.dbapi.Error, 3500s hide_parameters=engine.hide_parameters, 3500s connection_invalidated=is_disconnect, 3500s ) 3500s else: 3500s sqlalchemy_exception = None 3500s 3500s newraise = None 3500s 3500s if engine._has_events: 3500s ctx = ExceptionContextImpl( 3500s e, 3500s sqlalchemy_exception, 3500s engine, 3500s None, 3500s None, 3500s None, 3500s None, 3500s None, 3500s is_disconnect, 3500s True, 3500s ) 3500s for fn in engine.dispatch.handle_error: 3500s try: 3500s # handler returns an exception; 3500s # call next handler in a chain 3500s per_fn = fn(ctx) 3500s if per_fn is not None: 3500s ctx.chained_exception = newraise = per_fn 3500s except Exception as _raised: 3500s # handler raises an exception - stop processing 3500s newraise = _raised 3500s break 3500s 3500s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 3500s sqlalchemy_exception.connection_invalidated = ( 3500s is_disconnect 3500s ) = ctx.is_disconnect 3500s 3500s if newraise: 3500s util.raise_(newraise, with_traceback=exc_info[2], from_=e) 3500s elif should_wrap: 3500s > util.raise_( 3500s sqlalchemy_exception, with_traceback=exc_info[2], from_=e 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2208: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s dsn = 'host=localhost user=postgres password=postgres port=5432 dbname=pandas' 3500s connection_factory = None, cursor_factory = None 3500s kwargs = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s kwasync = {} 3500s 3500s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 3500s """ 3500s Create a new database connection. 3500s 3500s The connection parameters can be specified as a string: 3500s 3500s conn = psycopg2.connect("dbname=test user=postgres password=secret") 3500s 3500s or using a set of keyword arguments: 3500s 3500s conn = psycopg2.connect(database="test", user="postgres", password="secret") 3500s 3500s Or as a mix of both. The basic connection parameters are: 3500s 3500s - *dbname*: the database name 3500s - *database*: the database name (only as keyword argument) 3500s - *user*: user name used to authenticate 3500s - *password*: password used to authenticate 3500s - *host*: database host address (defaults to UNIX socket if not provided) 3500s - *port*: connection port number (defaults to 5432 if not provided) 3500s 3500s Using the *connection_factory* parameter a different class or connections 3500s factory can be specified. It should be a callable object taking a dsn 3500s argument. 3500s 3500s Using the *cursor_factory* parameter, a new default cursor factory will be 3500s used by cursor(). 3500s 3500s Using *async*=True an asynchronous connection will be created. *async_* is 3500s a valid alias (for Python versions where ``async`` is a keyword). 3500s 3500s Any other keyword parameter will be passed to the underlying client 3500s library: the list of supported parameters depends on the library version. 3500s 3500s """ 3500s kwasync = {} 3500s if 'async' in kwargs: 3500s kwasync['async'] = kwargs.pop('async') 3500s if 'async_' in kwargs: 3500s kwasync['async_'] = kwargs.pop('async_') 3500s 3500s dsn = _ext.make_dsn(dsn, **kwargs) 3500s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 3500s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 3500s E Is the server running on that host and accepting TCP/IP connections? 3500s E 3500s E (Background on this error at: https://sqlalche.me/e/14/e3q8) 3500s 3500s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 3500s _____________ test_to_sql_exist[append-2-postgresql_psycopg2_conn] _____________ 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s dsn = 'host=localhost user=postgres password=postgres port=5432 dbname=pandas' 3500s connection_factory = None, cursor_factory = None 3500s kwargs = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s kwasync = {} 3500s 3500s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 3500s """ 3500s Create a new database connection. 3500s 3500s The connection parameters can be specified as a string: 3500s 3500s conn = psycopg2.connect("dbname=test user=postgres password=secret") 3500s 3500s or using a set of keyword arguments: 3500s 3500s conn = psycopg2.connect(database="test", user="postgres", password="secret") 3500s 3500s Or as a mix of both. The basic connection parameters are: 3500s 3500s - *dbname*: the database name 3500s - *database*: the database name (only as keyword argument) 3500s - *user*: user name used to authenticate 3500s - *password*: password used to authenticate 3500s - *host*: database host address (defaults to UNIX socket if not provided) 3500s - *port*: connection port number (defaults to 5432 if not provided) 3500s 3500s Using the *connection_factory* parameter a different class or connections 3500s factory can be specified. It should be a callable object taking a dsn 3500s argument. 3500s 3500s Using the *cursor_factory* parameter, a new default cursor factory will be 3500s used by cursor(). 3500s 3500s Using *async*=True an asynchronous connection will be created. *async_* is 3500s a valid alias (for Python versions where ``async`` is a keyword). 3500s 3500s Any other keyword parameter will be passed to the underlying client 3500s library: the list of supported parameters depends on the library version. 3500s 3500s """ 3500s kwasync = {} 3500s if 'async' in kwargs: 3500s kwasync['async'] = kwargs.pop('async') 3500s if 'async_' in kwargs: 3500s kwasync['async_'] = kwargs.pop('async_') 3500s 3500s dsn = _ext.make_dsn(dsn, **kwargs) 3500s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 3500s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 3500s E Is the server running on that host and accepting TCP/IP connections? 3500s 3500s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 3500s 3500s The above exception was the direct cause of the following exception: 3500s 3500s conn = 'postgresql_psycopg2_conn', mode = 'append', num_row_coef = 2 3500s test_frame1 = index A B C D 3500s 0 2000-01-03 00:00:00 0.980269 3.685731 -0.364217 -1...0-01-05 00:00:00 0.498581 0.731168 -0.537677 1.346270 3500s 3 2000-01-06 00:00:00 1.120202 1.567621 0.003641 0.675253 3500s request = > 3500s 3500s @pytest.mark.db 3500s @pytest.mark.parametrize("conn", all_connectable) 3500s @pytest.mark.parametrize("mode, num_row_coef", [("replace", 1), ("append", 2)]) 3500s def test_to_sql_exist(conn, mode, num_row_coef, test_frame1, request): 3500s > conn = request.getfixturevalue(conn) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:606: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'postgresql_psycopg2_conn' 3500s 3500s def getfixturevalue(self, argname: str) -> Any: 3500s """Dynamically run a named fixture function. 3500s 3500s Declaring fixtures via function argument is recommended where possible. 3500s But if you can only decide whether to use another fixture at test 3500s setup time, you may use this function to retrieve it inside a fixture 3500s or test function body. 3500s 3500s This method can be used during the test setup phase or the test run 3500s phase, but during the test teardown phase a fixture's value may not 3500s be available. 3500s 3500s :param argname: 3500s The fixture name. 3500s :raises pytest.FixtureLookupError: 3500s If the given fixture could not be found. 3500s """ 3500s > fixturedef = self._get_active_fixturedef(argname) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:585: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'postgresql_psycopg2_conn' 3500s 3500s def _get_active_fixturedef( 3500s self, argname: str 3500s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3500s try: 3500s return self._fixture_defs[argname] 3500s except KeyError: 3500s try: 3500s fixturedef = self._getnextfixturedef(argname) 3500s except FixtureLookupError: 3500s if argname == "request": 3500s cached_result = (self, [0], None) 3500s return PseudoFixtureDef(cached_result, Scope.Function) 3500s raise 3500s # Remove indent to prevent the python3 exception 3500s # from leaking into the call. 3500s > self._compute_fixture_value(fixturedef) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s fixturedef = 3500s 3500s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3500s """Create a SubRequest based on "self" and call the execute method 3500s of the given FixtureDef object. 3500s 3500s This will force the FixtureDef object to throw away any previous 3500s results and compute a new fixture value, which will be stored into 3500s the FixtureDef object itself. 3500s """ 3500s # prepare a subrequest object before calling fixture function 3500s # (latter managed by fixturedef) 3500s argname = fixturedef.argname 3500s funcitem = self._pyfuncitem 3500s scope = fixturedef._scope 3500s try: 3500s callspec = funcitem.callspec 3500s except AttributeError: 3500s callspec = None 3500s if callspec is not None and argname in callspec.params: 3500s param = callspec.params[argname] 3500s param_index = callspec.indices[argname] 3500s # If a parametrize invocation set a scope it will override 3500s # the static scope defined with the fixture function. 3500s with suppress(KeyError): 3500s scope = callspec._arg2scope[argname] 3500s else: 3500s param = NOTSET 3500s param_index = 0 3500s has_params = fixturedef.params is not None 3500s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3500s if has_params and fixtures_not_supported: 3500s msg = ( 3500s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3500s "Node id: {nodeid}\n" 3500s "Function type: {typename}" 3500s ).format( 3500s name=funcitem.name, 3500s nodeid=funcitem.nodeid, 3500s typename=type(funcitem).__name__, 3500s ) 3500s fail(msg, pytrace=False) 3500s if has_params: 3500s frame = inspect.stack()[3] 3500s frameinfo = inspect.getframeinfo(frame[0]) 3500s source_path = absolutepath(frameinfo.filename) 3500s source_lineno = frameinfo.lineno 3500s try: 3500s source_path_str = str( 3500s source_path.relative_to(funcitem.config.rootpath) 3500s ) 3500s except ValueError: 3500s source_path_str = str(source_path) 3500s msg = ( 3500s "The requested fixture has no parameter defined for test:\n" 3500s " {}\n\n" 3500s "Requested fixture '{}' defined in:\n{}" 3500s "\n\nRequested here:\n{}:{}".format( 3500s funcitem.nodeid, 3500s fixturedef.argname, 3500s getlocation(fixturedef.func, funcitem.config.rootpath), 3500s source_path_str, 3500s source_lineno, 3500s ) 3500s ) 3500s fail(msg, pytrace=False) 3500s 3500s subrequest = SubRequest( 3500s self, scope, param, param_index, fixturedef, _ispytest=True 3500s ) 3500s 3500s # Check if a higher-level scoped fixture accesses a lower level one. 3500s subrequest._check_scope(argname, self._scope, scope) 3500s try: 3500s # Call the fixture function. 3500s > fixturedef.execute(request=subrequest) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s request = > 3500s 3500s def execute(self, request: SubRequest) -> FixtureValue: 3500s # Get required arguments and register our own finish() 3500s # with their finalization. 3500s for argname in self.argnames: 3500s > fixturedef = request._get_active_fixturedef(argname) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1045: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'postgresql_psycopg2_engine' 3500s 3500s def _get_active_fixturedef( 3500s self, argname: str 3500s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3500s try: 3500s return self._fixture_defs[argname] 3500s except KeyError: 3500s try: 3500s fixturedef = self._getnextfixturedef(argname) 3500s except FixtureLookupError: 3500s if argname == "request": 3500s cached_result = (self, [0], None) 3500s return PseudoFixtureDef(cached_result, Scope.Function) 3500s raise 3500s # Remove indent to prevent the python3 exception 3500s # from leaking into the call. 3500s > self._compute_fixture_value(fixturedef) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s fixturedef = 3500s 3500s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3500s """Create a SubRequest based on "self" and call the execute method 3500s of the given FixtureDef object. 3500s 3500s This will force the FixtureDef object to throw away any previous 3500s results and compute a new fixture value, which will be stored into 3500s the FixtureDef object itself. 3500s """ 3500s # prepare a subrequest object before calling fixture function 3500s # (latter managed by fixturedef) 3500s argname = fixturedef.argname 3500s funcitem = self._pyfuncitem 3500s scope = fixturedef._scope 3500s try: 3500s callspec = funcitem.callspec 3500s except AttributeError: 3500s callspec = None 3500s if callspec is not None and argname in callspec.params: 3500s param = callspec.params[argname] 3500s param_index = callspec.indices[argname] 3500s # If a parametrize invocation set a scope it will override 3500s # the static scope defined with the fixture function. 3500s with suppress(KeyError): 3500s scope = callspec._arg2scope[argname] 3500s else: 3500s param = NOTSET 3500s param_index = 0 3500s has_params = fixturedef.params is not None 3500s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3500s if has_params and fixtures_not_supported: 3500s msg = ( 3500s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3500s "Node id: {nodeid}\n" 3500s "Function type: {typename}" 3500s ).format( 3500s name=funcitem.name, 3500s nodeid=funcitem.nodeid, 3500s typename=type(funcitem).__name__, 3500s ) 3500s fail(msg, pytrace=False) 3500s if has_params: 3500s frame = inspect.stack()[3] 3500s frameinfo = inspect.getframeinfo(frame[0]) 3500s source_path = absolutepath(frameinfo.filename) 3500s source_lineno = frameinfo.lineno 3500s try: 3500s source_path_str = str( 3500s source_path.relative_to(funcitem.config.rootpath) 3500s ) 3500s except ValueError: 3500s source_path_str = str(source_path) 3500s msg = ( 3500s "The requested fixture has no parameter defined for test:\n" 3500s " {}\n\n" 3500s "Requested fixture '{}' defined in:\n{}" 3500s "\n\nRequested here:\n{}:{}".format( 3500s funcitem.nodeid, 3500s fixturedef.argname, 3500s getlocation(fixturedef.func, funcitem.config.rootpath), 3500s source_path_str, 3500s source_lineno, 3500s ) 3500s ) 3500s fail(msg, pytrace=False) 3500s 3500s subrequest = SubRequest( 3500s self, scope, param, param_index, fixturedef, _ispytest=True 3500s ) 3500s 3500s # Check if a higher-level scoped fixture accesses a lower level one. 3500s subrequest._check_scope(argname, self._scope, scope) 3500s try: 3500s # Call the fixture function. 3500s > fixturedef.execute(request=subrequest) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s request = > 3500s 3500s def execute(self, request: SubRequest) -> FixtureValue: 3500s # Get required arguments and register our own finish() 3500s # with their finalization. 3500s for argname in self.argnames: 3500s fixturedef = request._get_active_fixturedef(argname) 3500s if argname != "request": 3500s # PseudoFixtureDef is only for "request". 3500s assert isinstance(fixturedef, FixtureDef) 3500s fixturedef.addfinalizer(functools.partial(self.finish, request=request)) 3500s 3500s my_cache_key = self.cache_key(request) 3500s if self.cached_result is not None: 3500s # note: comparison with `==` can fail (or be expensive) for e.g. 3500s # numpy arrays (#6497). 3500s cache_key = self.cached_result[1] 3500s if my_cache_key is cache_key: 3500s if self.cached_result[2] is not None: 3500s _, val, tb = self.cached_result[2] 3500s raise val.with_traceback(tb) 3500s else: 3500s result = self.cached_result[0] 3500s return result 3500s # We have a previous but differently parametrized fixture instance 3500s # so we need to tear it down before creating a new one. 3500s self.finish(request) 3500s assert self.cached_result is None 3500s 3500s ihook = request.node.ihook 3500s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1069: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s kwargs = {'fixturedef': , 'request': >} 3500s firstresult = True 3500s 3500s def __call__(self, **kwargs: object) -> Any: 3500s """Call the hook. 3500s 3500s Only accepts keyword arguments, which should match the hook 3500s specification. 3500s 3500s Returns the result(s) of calling all registered plugins, see 3500s :ref:`calling`. 3500s """ 3500s assert ( 3500s not self.is_historic() 3500s ), "Cannot directly call a historic hook - use call_historic instead." 3500s self._verify_all_args_are_provided(kwargs) 3500s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 3500s # Copy because plugins may register other plugins during iteration (#438). 3500s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = <_pytest.config.PytestPluginManager object at 0xe9079168> 3500s hook_name = 'pytest_fixture_setup' 3500s methods = [>] 3500s kwargs = {'fixturedef': , 'request': >} 3500s firstresult = True 3500s 3500s def _hookexec( 3500s self, 3500s hook_name: str, 3500s methods: Sequence[HookImpl], 3500s kwargs: Mapping[str, object], 3500s firstresult: bool, 3500s ) -> object | list[object]: 3500s # called from all hookcaller instances. 3500s # enable_tracing will set its own wrapping function at self._inner_hookexec 3500s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturedef = 3500s request = > 3500s 3500s def pytest_fixture_setup( 3500s fixturedef: FixtureDef[FixtureValue], request: SubRequest 3500s ) -> FixtureValue: 3500s """Execution of fixture setup.""" 3500s kwargs = {} 3500s for argname in fixturedef.argnames: 3500s fixdef = request._get_active_fixturedef(argname) 3500s assert fixdef.cached_result is not None 3500s result, arg_cache_key, exc = fixdef.cached_result 3500s request._check_scope(argname, request._scope, fixdef._scope) 3500s kwargs[argname] = result 3500s 3500s fixturefunc = resolve_fixture_function(fixturedef, request) 3500s my_cache_key = fixturedef.cache_key(request) 3500s try: 3500s > result = call_fixture_func(fixturefunc, request, kwargs) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1123: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturefunc = 3500s request = > 3500s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv'), 'types_data': [{'B... False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}]} 3500s 3500s def call_fixture_func( 3500s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 3500s ) -> FixtureValue: 3500s if is_generator(fixturefunc): 3500s fixturefunc = cast( 3500s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 3500s ) 3500s generator = fixturefunc(**kwargs) 3500s try: 3500s > fixture_result = next(generator) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:895: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s iris_path = PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv') 3500s types_data = [{'BoolCol': False, 'BoolColWithNull': False, 'DateCol': '2000-01-03 00:00:00', 'DateColWithTz': '2000-01-01 00:00:00-...: False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}] 3500s 3500s @pytest.fixture 3500s def postgresql_psycopg2_engine(iris_path, types_data): 3500s sqlalchemy = pytest.importorskip("sqlalchemy") 3500s pytest.importorskip("psycopg2") 3500s engine = sqlalchemy.create_engine( 3500s "postgresql+psycopg2://postgres:postgres@localhost:5432/pandas", 3500s poolclass=sqlalchemy.pool.NullPool, 3500s ) 3500s > insp = sqlalchemy.inspect(engine) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:438: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s subject = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s raiseerr = True 3500s 3500s def inspect(subject, raiseerr=True): 3500s """Produce an inspection object for the given target. 3500s 3500s The returned value in some cases may be the 3500s same object as the one given, such as if a 3500s :class:`_orm.Mapper` object is passed. In other 3500s cases, it will be an instance of the registered 3500s inspection type for the given object, such as 3500s if an :class:`_engine.Engine` is passed, an 3500s :class:`_reflection.Inspector` object is returned. 3500s 3500s :param subject: the subject to be inspected. 3500s :param raiseerr: When ``True``, if the given subject 3500s does not 3500s correspond to a known SQLAlchemy inspected type, 3500s :class:`sqlalchemy.exc.NoInspectionAvailable` 3500s is raised. If ``False``, ``None`` is returned. 3500s 3500s """ 3500s type_ = type(subject) 3500s for cls in type_.__mro__: 3500s if cls in _registrars: 3500s reg = _registrars[cls] 3500s if reg is True: 3500s return subject 3500s > ret = reg(subject) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:64: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s @inspection._inspects(Engine) 3500s def _engine_insp(bind): 3500s > return Inspector._construct(Inspector._init_engine, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:182: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s init = 3500s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s @classmethod 3500s def _construct(cls, init, bind): 3500s 3500s if hasattr(bind.dialect, "inspector"): 3500s cls = bind.dialect.inspector 3500s 3500s self = cls.__new__(cls) 3500s > init(self, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:117: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s def _init_engine(self, engine): 3500s self.bind = self.engine = engine 3500s > engine.connect().close() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:128: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s close_with_result = False 3500s 3500s def connect(self, close_with_result=False): 3500s """Return a new :class:`_engine.Connection` object. 3500s 3500s The :class:`_engine.Connection` object is a facade that uses a DBAPI 3500s connection internally in order to communicate with the database. This 3500s connection is procured from the connection-holding :class:`_pool.Pool` 3500s referenced by this :class:`_engine.Engine`. When the 3500s :meth:`_engine.Connection.close` method of the 3500s :class:`_engine.Connection` object 3500s is called, the underlying DBAPI connection is then returned to the 3500s connection pool, where it may be used again in a subsequent call to 3500s :meth:`_engine.Engine.connect`. 3500s 3500s """ 3500s 3500s > return self._connection_cls(self, close_with_result=close_with_result) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3325: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s connection = None, close_with_result = False, _branch_from = None 3500s _execution_options = None, _dispatch = None, _has_events = None 3500s _allow_revalidate = True 3500s 3500s def __init__( 3500s self, 3500s engine, 3500s connection=None, 3500s close_with_result=False, 3500s _branch_from=None, 3500s _execution_options=None, 3500s _dispatch=None, 3500s _has_events=None, 3500s _allow_revalidate=True, 3500s ): 3500s """Construct a new Connection.""" 3500s self.engine = engine 3500s self.dialect = engine.dialect 3500s self.__branch_from = _branch_from 3500s 3500s if _branch_from: 3500s # branching is always "from" the root connection 3500s assert _branch_from.__branch_from is None 3500s self._dbapi_connection = connection 3500s self._execution_options = _execution_options 3500s self._echo = _branch_from._echo 3500s self.should_close_with_result = False 3500s self.dispatch = _dispatch 3500s self._has_events = _branch_from._has_events 3500s else: 3500s self._dbapi_connection = ( 3500s connection 3500s if connection is not None 3500s > else engine.raw_connection() 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:96: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s _connection = None 3500s 3500s def raw_connection(self, _connection=None): 3500s """Return a "raw" DBAPI connection from the connection pool. 3500s 3500s The returned object is a proxied version of the DBAPI 3500s connection object used by the underlying driver in use. 3500s The object will have all the same behavior as the real DBAPI 3500s connection, except that its ``close()`` method will result in the 3500s connection being returned to the pool, rather than being closed 3500s for real. 3500s 3500s This method provides direct DBAPI connection access for 3500s special situations when the API provided by 3500s :class:`_engine.Connection` 3500s is not needed. When a :class:`_engine.Connection` object is already 3500s present, the DBAPI connection is available using 3500s the :attr:`_engine.Connection.connection` accessor. 3500s 3500s .. seealso:: 3500s 3500s :ref:`dbapi_connections` 3500s 3500s """ 3500s > return self._wrap_pool_connect(self.pool.connect, _connection) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3404: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s return fn() 3500s except dialect.dbapi.Error as e: 3500s if connection is None: 3500s > Connection._handle_dbapi_exception_noconnection( 3500s e, dialect, self 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3374: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s e = OperationalError('connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused\n\tIs the server running on that host and accepting TCP/IP connections?\n') 3500s dialect = 3500s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s @classmethod 3500s def _handle_dbapi_exception_noconnection(cls, e, dialect, engine): 3500s exc_info = sys.exc_info() 3500s 3500s is_disconnect = dialect.is_disconnect(e, None, None) 3500s 3500s should_wrap = isinstance(e, dialect.dbapi.Error) 3500s 3500s if should_wrap: 3500s sqlalchemy_exception = exc.DBAPIError.instance( 3500s None, 3500s None, 3500s e, 3500s dialect.dbapi.Error, 3500s hide_parameters=engine.hide_parameters, 3500s connection_invalidated=is_disconnect, 3500s ) 3500s else: 3500s sqlalchemy_exception = None 3500s 3500s newraise = None 3500s 3500s if engine._has_events: 3500s ctx = ExceptionContextImpl( 3500s e, 3500s sqlalchemy_exception, 3500s engine, 3500s None, 3500s None, 3500s None, 3500s None, 3500s None, 3500s is_disconnect, 3500s True, 3500s ) 3500s for fn in engine.dispatch.handle_error: 3500s try: 3500s # handler returns an exception; 3500s # call next handler in a chain 3500s per_fn = fn(ctx) 3500s if per_fn is not None: 3500s ctx.chained_exception = newraise = per_fn 3500s except Exception as _raised: 3500s # handler raises an exception - stop processing 3500s newraise = _raised 3500s break 3500s 3500s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 3500s sqlalchemy_exception.connection_invalidated = ( 3500s is_disconnect 3500s ) = ctx.is_disconnect 3500s 3500s if newraise: 3500s util.raise_(newraise, with_traceback=exc_info[2], from_=e) 3500s elif should_wrap: 3500s > util.raise_( 3500s sqlalchemy_exception, with_traceback=exc_info[2], from_=e 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2208: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s dsn = 'host=localhost user=postgres password=postgres port=5432 dbname=pandas' 3500s connection_factory = None, cursor_factory = None 3500s kwargs = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s kwasync = {} 3500s 3500s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 3500s """ 3500s Create a new database connection. 3500s 3500s The connection parameters can be specified as a string: 3500s 3500s conn = psycopg2.connect("dbname=test user=postgres password=secret") 3500s 3500s or using a set of keyword arguments: 3500s 3500s conn = psycopg2.connect(database="test", user="postgres", password="secret") 3500s 3500s Or as a mix of both. The basic connection parameters are: 3500s 3500s - *dbname*: the database name 3500s - *database*: the database name (only as keyword argument) 3500s - *user*: user name used to authenticate 3500s - *password*: password used to authenticate 3500s - *host*: database host address (defaults to UNIX socket if not provided) 3500s - *port*: connection port number (defaults to 5432 if not provided) 3500s 3500s Using the *connection_factory* parameter a different class or connections 3500s factory can be specified. It should be a callable object taking a dsn 3500s argument. 3500s 3500s Using the *cursor_factory* parameter, a new default cursor factory will be 3500s used by cursor(). 3500s 3500s Using *async*=True an asynchronous connection will be created. *async_* is 3500s a valid alias (for Python versions where ``async`` is a keyword). 3500s 3500s Any other keyword parameter will be passed to the underlying client 3500s library: the list of supported parameters depends on the library version. 3500s 3500s """ 3500s kwasync = {} 3500s if 'async' in kwargs: 3500s kwasync['async'] = kwargs.pop('async') 3500s if 'async_' in kwargs: 3500s kwasync['async_'] = kwargs.pop('async_') 3500s 3500s dsn = _ext.make_dsn(dsn, **kwargs) 3500s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 3500s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 3500s E Is the server running on that host and accepting TCP/IP connections? 3500s E 3500s E (Background on this error at: https://sqlalche.me/e/14/e3q8) 3500s 3500s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 3500s _________________ test_to_sql_exist_fail[mysql_pymysql_engine] _________________ 3500s self = , sock = None 3500s 3500s def connect(self, sock=None): 3500s self._closed = False 3500s try: 3500s if sock is None: 3500s if self.unix_socket: 3500s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3500s sock.settimeout(self.connect_timeout) 3500s sock.connect(self.unix_socket) 3500s self.host_info = "Localhost via UNIX socket" 3500s self._secure = True 3500s if DEBUG: 3500s print("connected using unix_socket") 3500s else: 3500s kwargs = {} 3500s if self.bind_address is not None: 3500s kwargs["source_address"] = (self.bind_address, 0) 3500s while True: 3500s try: 3500s > sock = socket.create_connection( 3500s (self.host, self.port), self.connect_timeout, **kwargs 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:649: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s address = ('localhost', 3306), timeout = 10, source_address = None 3500s 3500s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 3500s source_address=None, *, all_errors=False): 3500s """Connect to *address* and return the socket object. 3500s 3500s Convenience function. Connect to *address* (a 2-tuple ``(host, 3500s port)``) and return the socket object. Passing the optional 3500s *timeout* parameter will set the timeout on the socket instance 3500s before attempting to connect. If no *timeout* is supplied, the 3500s global default timeout setting returned by :func:`getdefaulttimeout` 3500s is used. If *source_address* is set it must be a tuple of (host, port) 3500s for the socket to bind as a source address before making the connection. 3500s A host of '' or port 0 tells the OS to use the default. When a connection 3500s cannot be created, raises the last error if *all_errors* is False, 3500s and an ExceptionGroup of all errors if *all_errors* is True. 3500s """ 3500s 3500s host, port = address 3500s exceptions = [] 3500s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 3500s af, socktype, proto, canonname, sa = res 3500s sock = None 3500s try: 3500s sock = socket(af, socktype, proto) 3500s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 3500s sock.settimeout(timeout) 3500s if source_address: 3500s sock.bind(source_address) 3500s sock.connect(sa) 3500s # Break explicitly a reference cycle 3500s exceptions.clear() 3500s return sock 3500s 3500s except error as exc: 3500s if not all_errors: 3500s exceptions.clear() # raise only the last error 3500s exceptions.append(exc) 3500s if sock is not None: 3500s sock.close() 3500s 3500s if len(exceptions): 3500s try: 3500s if not all_errors: 3500s > raise exceptions[0] 3500s 3500s /usr/lib/python3.12/socket.py:853: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s address = ('localhost', 3306), timeout = 10, source_address = None 3500s 3500s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 3500s source_address=None, *, all_errors=False): 3500s """Connect to *address* and return the socket object. 3500s 3500s Convenience function. Connect to *address* (a 2-tuple ``(host, 3500s port)``) and return the socket object. Passing the optional 3500s *timeout* parameter will set the timeout on the socket instance 3500s before attempting to connect. If no *timeout* is supplied, the 3500s global default timeout setting returned by :func:`getdefaulttimeout` 3500s is used. If *source_address* is set it must be a tuple of (host, port) 3500s for the socket to bind as a source address before making the connection. 3500s A host of '' or port 0 tells the OS to use the default. When a connection 3500s cannot be created, raises the last error if *all_errors* is False, 3500s and an ExceptionGroup of all errors if *all_errors* is True. 3500s """ 3500s 3500s host, port = address 3500s exceptions = [] 3500s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 3500s af, socktype, proto, canonname, sa = res 3500s sock = None 3500s try: 3500s sock = socket(af, socktype, proto) 3500s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 3500s sock.settimeout(timeout) 3500s if source_address: 3500s sock.bind(source_address) 3500s > sock.connect(sa) 3500s E ConnectionRefusedError: [Errno 111] Connection refused 3500s 3500s /usr/lib/python3.12/socket.py:838: ConnectionRefusedError 3500s 3500s During handling of the above exception, another exception occurred: 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __init__( 3500s self, 3500s *, 3500s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 3500s password="", 3500s host=None, 3500s database=None, 3500s unix_socket=None, 3500s port=0, 3500s charset="", 3500s collation=None, 3500s sql_mode=None, 3500s read_default_file=None, 3500s conv=None, 3500s use_unicode=True, 3500s client_flag=0, 3500s cursorclass=Cursor, 3500s init_command=None, 3500s connect_timeout=10, 3500s read_default_group=None, 3500s autocommit=False, 3500s local_infile=False, 3500s max_allowed_packet=16 * 1024 * 1024, 3500s defer_connect=False, 3500s auth_plugin_map=None, 3500s read_timeout=None, 3500s write_timeout=None, 3500s bind_address=None, 3500s binary_prefix=False, 3500s program_name=None, 3500s server_public_key=None, 3500s ssl=None, 3500s ssl_ca=None, 3500s ssl_cert=None, 3500s ssl_disabled=None, 3500s ssl_key=None, 3500s ssl_key_password=None, 3500s ssl_verify_cert=None, 3500s ssl_verify_identity=None, 3500s compress=None, # not supported 3500s named_pipe=None, # not supported 3500s passwd=None, # deprecated 3500s db=None, # deprecated 3500s ): 3500s if db is not None and database is None: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 3500s database = db 3500s if passwd is not None and not password: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn( 3500s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 3500s # ) 3500s password = passwd 3500s 3500s if compress or named_pipe: 3500s raise NotImplementedError( 3500s "compress and named_pipe arguments are not supported" 3500s ) 3500s 3500s self._local_infile = bool(local_infile) 3500s if self._local_infile: 3500s client_flag |= CLIENT.LOCAL_FILES 3500s 3500s if read_default_group and not read_default_file: 3500s if sys.platform.startswith("win"): 3500s read_default_file = "c:\\my.ini" 3500s else: 3500s read_default_file = "/etc/my.cnf" 3500s 3500s if read_default_file: 3500s if not read_default_group: 3500s read_default_group = "client" 3500s 3500s cfg = Parser() 3500s cfg.read(os.path.expanduser(read_default_file)) 3500s 3500s def _config(key, arg): 3500s if arg: 3500s return arg 3500s try: 3500s return cfg.get(read_default_group, key) 3500s except Exception: 3500s return arg 3500s 3500s user = _config("user", user) 3500s password = _config("password", password) 3500s host = _config("host", host) 3500s database = _config("database", database) 3500s unix_socket = _config("socket", unix_socket) 3500s port = int(_config("port", port)) 3500s bind_address = _config("bind-address", bind_address) 3500s charset = _config("default-character-set", charset) 3500s if not ssl: 3500s ssl = {} 3500s if isinstance(ssl, dict): 3500s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 3500s value = _config("ssl-" + key, ssl.get(key)) 3500s if value: 3500s ssl[key] = value 3500s 3500s self.ssl = False 3500s if not ssl_disabled: 3500s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 3500s ssl = { 3500s "ca": ssl_ca, 3500s "check_hostname": bool(ssl_verify_identity), 3500s "verify_mode": ssl_verify_cert 3500s if ssl_verify_cert is not None 3500s else False, 3500s } 3500s if ssl_cert is not None: 3500s ssl["cert"] = ssl_cert 3500s if ssl_key is not None: 3500s ssl["key"] = ssl_key 3500s if ssl_key_password is not None: 3500s ssl["password"] = ssl_key_password 3500s if ssl: 3500s if not SSL_ENABLED: 3500s raise NotImplementedError("ssl module not found") 3500s self.ssl = True 3500s client_flag |= CLIENT.SSL 3500s self.ctx = self._create_ssl_ctx(ssl) 3500s 3500s self.host = host or "localhost" 3500s self.port = port or 3306 3500s if type(self.port) is not int: 3500s raise ValueError("port should be of type int") 3500s self.user = user or DEFAULT_USER 3500s self.password = password or b"" 3500s if isinstance(self.password, str): 3500s self.password = self.password.encode("latin1") 3500s self.db = database 3500s self.unix_socket = unix_socket 3500s self.bind_address = bind_address 3500s if not (0 < connect_timeout <= 31536000): 3500s raise ValueError("connect_timeout should be >0 and <=31536000") 3500s self.connect_timeout = connect_timeout or None 3500s if read_timeout is not None and read_timeout <= 0: 3500s raise ValueError("read_timeout should be > 0") 3500s self._read_timeout = read_timeout 3500s if write_timeout is not None and write_timeout <= 0: 3500s raise ValueError("write_timeout should be > 0") 3500s self._write_timeout = write_timeout 3500s 3500s self.charset = charset or DEFAULT_CHARSET 3500s self.collation = collation 3500s self.use_unicode = use_unicode 3500s 3500s self.encoding = charset_by_name(self.charset).encoding 3500s 3500s client_flag |= CLIENT.CAPABILITIES 3500s if self.db: 3500s client_flag |= CLIENT.CONNECT_WITH_DB 3500s 3500s self.client_flag = client_flag 3500s 3500s self.cursorclass = cursorclass 3500s 3500s self._result = None 3500s self._affected_rows = 0 3500s self.host_info = "Not connected" 3500s 3500s # specified autocommit mode. None means use server default. 3500s self.autocommit_mode = autocommit 3500s 3500s if conv is None: 3500s conv = converters.conversions 3500s 3500s # Need for MySQLdb compatibility. 3500s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 3500s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 3500s self.sql_mode = sql_mode 3500s self.init_command = init_command 3500s self.max_allowed_packet = max_allowed_packet 3500s self._auth_plugin_map = auth_plugin_map or {} 3500s self._binary_prefix = binary_prefix 3500s self.server_public_key = server_public_key 3500s 3500s self._connect_attrs = { 3500s "_client_name": "pymysql", 3500s "_client_version": VERSION_STRING, 3500s "_pid": str(os.getpid()), 3500s } 3500s 3500s if program_name: 3500s self._connect_attrs["program_name"] = program_name 3500s 3500s if defer_connect: 3500s self._sock = None 3500s else: 3500s > self.connect() 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = , sock = None 3500s 3500s def connect(self, sock=None): 3500s self._closed = False 3500s try: 3500s if sock is None: 3500s if self.unix_socket: 3500s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3500s sock.settimeout(self.connect_timeout) 3500s sock.connect(self.unix_socket) 3500s self.host_info = "Localhost via UNIX socket" 3500s self._secure = True 3500s if DEBUG: 3500s print("connected using unix_socket") 3500s else: 3500s kwargs = {} 3500s if self.bind_address is not None: 3500s kwargs["source_address"] = (self.bind_address, 0) 3500s while True: 3500s try: 3500s sock = socket.create_connection( 3500s (self.host, self.port), self.connect_timeout, **kwargs 3500s ) 3500s break 3500s except OSError as e: 3500s if e.errno == errno.EINTR: 3500s continue 3500s raise 3500s self.host_info = "socket %s:%d" % (self.host, self.port) 3500s if DEBUG: 3500s print("connected using socket") 3500s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 3500s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 3500s sock.settimeout(None) 3500s 3500s self._sock = sock 3500s self._rfile = sock.makefile("rb") 3500s self._next_seq_id = 0 3500s 3500s self._get_server_information() 3500s self._request_authentication() 3500s 3500s # Send "SET NAMES" query on init for: 3500s # - Ensure charaset (and collation) is set to the server. 3500s # - collation_id in handshake packet may be ignored. 3500s # - If collation is not specified, we don't know what is server's 3500s # default collation for the charset. For example, default collation 3500s # of utf8mb4 is: 3500s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 3500s # - MySQL 8.0: utf8mb4_0900_ai_ci 3500s # 3500s # Reference: 3500s # - https://github.com/PyMySQL/PyMySQL/issues/1092 3500s # - https://github.com/wagtail/wagtail/issues/9477 3500s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 3500s self.set_character_set(self.charset, self.collation) 3500s 3500s if self.sql_mode is not None: 3500s c = self.cursor() 3500s c.execute("SET sql_mode=%s", (self.sql_mode,)) 3500s c.close() 3500s 3500s if self.init_command is not None: 3500s c = self.cursor() 3500s c.execute(self.init_command) 3500s c.close() 3500s 3500s if self.autocommit_mode is not None: 3500s self.autocommit(self.autocommit_mode) 3500s except BaseException as e: 3500s self._rfile = None 3500s if sock is not None: 3500s try: 3500s sock.close() 3500s except: # noqa 3500s pass 3500s 3500s if isinstance(e, (OSError, IOError)): 3500s exc = err.OperationalError( 3500s CR.CR_CONN_HOST_ERROR, 3500s f"Can't connect to MySQL server on {self.host!r} ({e})", 3500s ) 3500s # Keep original exception and traceback to investigate error. 3500s exc.original_exception = e 3500s exc.traceback = traceback.format_exc() 3500s if DEBUG: 3500s print(exc.traceback) 3500s > raise exc 3500s E pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 3500s 3500s The above exception was the direct cause of the following exception: 3500s 3500s conn = 'mysql_pymysql_engine' 3500s test_frame1 = index A B C D 3500s 0 2000-01-03 00:00:00 0.980269 3.685731 -0.364217 -1...0-01-05 00:00:00 0.498581 0.731168 -0.537677 1.346270 3500s 3 2000-01-06 00:00:00 1.120202 1.567621 0.003641 0.675253 3500s request = > 3500s 3500s @pytest.mark.db 3500s @pytest.mark.parametrize("conn", all_connectable) 3500s def test_to_sql_exist_fail(conn, test_frame1, request): 3500s > conn = request.getfixturevalue(conn) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:617: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'mysql_pymysql_engine' 3500s 3500s def getfixturevalue(self, argname: str) -> Any: 3500s """Dynamically run a named fixture function. 3500s 3500s Declaring fixtures via function argument is recommended where possible. 3500s But if you can only decide whether to use another fixture at test 3500s setup time, you may use this function to retrieve it inside a fixture 3500s or test function body. 3500s 3500s This method can be used during the test setup phase or the test run 3500s phase, but during the test teardown phase a fixture's value may not 3500s be available. 3500s 3500s :param argname: 3500s The fixture name. 3500s :raises pytest.FixtureLookupError: 3500s If the given fixture could not be found. 3500s """ 3500s > fixturedef = self._get_active_fixturedef(argname) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:585: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'mysql_pymysql_engine' 3500s 3500s def _get_active_fixturedef( 3500s self, argname: str 3500s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3500s try: 3500s return self._fixture_defs[argname] 3500s except KeyError: 3500s try: 3500s fixturedef = self._getnextfixturedef(argname) 3500s except FixtureLookupError: 3500s if argname == "request": 3500s cached_result = (self, [0], None) 3500s return PseudoFixtureDef(cached_result, Scope.Function) 3500s raise 3500s # Remove indent to prevent the python3 exception 3500s # from leaking into the call. 3500s > self._compute_fixture_value(fixturedef) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s fixturedef = 3500s 3500s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3500s """Create a SubRequest based on "self" and call the execute method 3500s of the given FixtureDef object. 3500s 3500s This will force the FixtureDef object to throw away any previous 3500s results and compute a new fixture value, which will be stored into 3500s the FixtureDef object itself. 3500s """ 3500s # prepare a subrequest object before calling fixture function 3500s # (latter managed by fixturedef) 3500s argname = fixturedef.argname 3500s funcitem = self._pyfuncitem 3500s scope = fixturedef._scope 3500s try: 3500s callspec = funcitem.callspec 3500s except AttributeError: 3500s callspec = None 3500s if callspec is not None and argname in callspec.params: 3500s param = callspec.params[argname] 3500s param_index = callspec.indices[argname] 3500s # If a parametrize invocation set a scope it will override 3500s # the static scope defined with the fixture function. 3500s with suppress(KeyError): 3500s scope = callspec._arg2scope[argname] 3500s else: 3500s param = NOTSET 3500s param_index = 0 3500s has_params = fixturedef.params is not None 3500s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3500s if has_params and fixtures_not_supported: 3500s msg = ( 3500s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3500s "Node id: {nodeid}\n" 3500s "Function type: {typename}" 3500s ).format( 3500s name=funcitem.name, 3500s nodeid=funcitem.nodeid, 3500s typename=type(funcitem).__name__, 3500s ) 3500s fail(msg, pytrace=False) 3500s if has_params: 3500s frame = inspect.stack()[3] 3500s frameinfo = inspect.getframeinfo(frame[0]) 3500s source_path = absolutepath(frameinfo.filename) 3500s source_lineno = frameinfo.lineno 3500s try: 3500s source_path_str = str( 3500s source_path.relative_to(funcitem.config.rootpath) 3500s ) 3500s except ValueError: 3500s source_path_str = str(source_path) 3500s msg = ( 3500s "The requested fixture has no parameter defined for test:\n" 3500s " {}\n\n" 3500s "Requested fixture '{}' defined in:\n{}" 3500s "\n\nRequested here:\n{}:{}".format( 3500s funcitem.nodeid, 3500s fixturedef.argname, 3500s getlocation(fixturedef.func, funcitem.config.rootpath), 3500s source_path_str, 3500s source_lineno, 3500s ) 3500s ) 3500s fail(msg, pytrace=False) 3500s 3500s subrequest = SubRequest( 3500s self, scope, param, param_index, fixturedef, _ispytest=True 3500s ) 3500s 3500s # Check if a higher-level scoped fixture accesses a lower level one. 3500s subrequest._check_scope(argname, self._scope, scope) 3500s try: 3500s # Call the fixture function. 3500s > fixturedef.execute(request=subrequest) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s request = > 3500s 3500s def execute(self, request: SubRequest) -> FixtureValue: 3500s # Get required arguments and register our own finish() 3500s # with their finalization. 3500s for argname in self.argnames: 3500s fixturedef = request._get_active_fixturedef(argname) 3500s if argname != "request": 3500s # PseudoFixtureDef is only for "request". 3500s assert isinstance(fixturedef, FixtureDef) 3500s fixturedef.addfinalizer(functools.partial(self.finish, request=request)) 3500s 3500s my_cache_key = self.cache_key(request) 3500s if self.cached_result is not None: 3500s # note: comparison with `==` can fail (or be expensive) for e.g. 3500s # numpy arrays (#6497). 3500s cache_key = self.cached_result[1] 3500s if my_cache_key is cache_key: 3500s if self.cached_result[2] is not None: 3500s _, val, tb = self.cached_result[2] 3500s raise val.with_traceback(tb) 3500s else: 3500s result = self.cached_result[0] 3500s return result 3500s # We have a previous but differently parametrized fixture instance 3500s # so we need to tear it down before creating a new one. 3500s self.finish(request) 3500s assert self.cached_result is None 3500s 3500s ihook = request.node.ihook 3500s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1069: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s kwargs = {'fixturedef': , 'request': >} 3500s firstresult = True 3500s 3500s def __call__(self, **kwargs: object) -> Any: 3500s """Call the hook. 3500s 3500s Only accepts keyword arguments, which should match the hook 3500s specification. 3500s 3500s Returns the result(s) of calling all registered plugins, see 3500s :ref:`calling`. 3500s """ 3500s assert ( 3500s not self.is_historic() 3500s ), "Cannot directly call a historic hook - use call_historic instead." 3500s self._verify_all_args_are_provided(kwargs) 3500s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 3500s # Copy because plugins may register other plugins during iteration (#438). 3500s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = <_pytest.config.PytestPluginManager object at 0xe9079168> 3500s hook_name = 'pytest_fixture_setup' 3500s methods = [>] 3500s kwargs = {'fixturedef': , 'request': >} 3500s firstresult = True 3500s 3500s def _hookexec( 3500s self, 3500s hook_name: str, 3500s methods: Sequence[HookImpl], 3500s kwargs: Mapping[str, object], 3500s firstresult: bool, 3500s ) -> object | list[object]: 3500s # called from all hookcaller instances. 3500s # enable_tracing will set its own wrapping function at self._inner_hookexec 3500s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturedef = 3500s request = > 3500s 3500s def pytest_fixture_setup( 3500s fixturedef: FixtureDef[FixtureValue], request: SubRequest 3500s ) -> FixtureValue: 3500s """Execution of fixture setup.""" 3500s kwargs = {} 3500s for argname in fixturedef.argnames: 3500s fixdef = request._get_active_fixturedef(argname) 3500s assert fixdef.cached_result is not None 3500s result, arg_cache_key, exc = fixdef.cached_result 3500s request._check_scope(argname, request._scope, fixdef._scope) 3500s kwargs[argname] = result 3500s 3500s fixturefunc = resolve_fixture_function(fixturedef, request) 3500s my_cache_key = fixturedef.cache_key(request) 3500s try: 3500s > result = call_fixture_func(fixturefunc, request, kwargs) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1123: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturefunc = 3500s request = > 3500s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv'), 'types_data': [{'B... False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}]} 3500s 3500s def call_fixture_func( 3500s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 3500s ) -> FixtureValue: 3500s if is_generator(fixturefunc): 3500s fixturefunc = cast( 3500s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 3500s ) 3500s generator = fixturefunc(**kwargs) 3500s try: 3500s > fixture_result = next(generator) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:895: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s iris_path = PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv') 3500s types_data = [{'BoolCol': False, 'BoolColWithNull': False, 'DateCol': '2000-01-03 00:00:00', 'DateColWithTz': '2000-01-01 00:00:00-...: False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}] 3500s 3500s @pytest.fixture 3500s def mysql_pymysql_engine(iris_path, types_data): 3500s sqlalchemy = pytest.importorskip("sqlalchemy") 3500s pymysql = pytest.importorskip("pymysql") 3500s engine = sqlalchemy.create_engine( 3500s "mysql+pymysql://root@localhost:3306/pandas", 3500s connect_args={"client_flag": pymysql.constants.CLIENT.MULTI_STATEMENTS}, 3500s poolclass=sqlalchemy.pool.NullPool, 3500s ) 3500s > insp = sqlalchemy.inspect(engine) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:409: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s subject = Engine(mysql+pymysql://root@localhost:3306/pandas), raiseerr = True 3500s 3500s def inspect(subject, raiseerr=True): 3500s """Produce an inspection object for the given target. 3500s 3500s The returned value in some cases may be the 3500s same object as the one given, such as if a 3500s :class:`_orm.Mapper` object is passed. In other 3500s cases, it will be an instance of the registered 3500s inspection type for the given object, such as 3500s if an :class:`_engine.Engine` is passed, an 3500s :class:`_reflection.Inspector` object is returned. 3500s 3500s :param subject: the subject to be inspected. 3500s :param raiseerr: When ``True``, if the given subject 3500s does not 3500s correspond to a known SQLAlchemy inspected type, 3500s :class:`sqlalchemy.exc.NoInspectionAvailable` 3500s is raised. If ``False``, ``None`` is returned. 3500s 3500s """ 3500s type_ = type(subject) 3500s for cls in type_.__mro__: 3500s if cls in _registrars: 3500s reg = _registrars[cls] 3500s if reg is True: 3500s return subject 3500s > ret = reg(subject) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:64: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s @inspection._inspects(Engine) 3500s def _engine_insp(bind): 3500s > return Inspector._construct(Inspector._init_engine, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:182: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s init = 3500s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s @classmethod 3500s def _construct(cls, init, bind): 3500s 3500s if hasattr(bind.dialect, "inspector"): 3500s cls = bind.dialect.inspector 3500s 3500s self = cls.__new__(cls) 3500s > init(self, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:117: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s def _init_engine(self, engine): 3500s self.bind = self.engine = engine 3500s > engine.connect().close() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:128: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s close_with_result = False 3500s 3500s def connect(self, close_with_result=False): 3500s """Return a new :class:`_engine.Connection` object. 3500s 3500s The :class:`_engine.Connection` object is a facade that uses a DBAPI 3500s connection internally in order to communicate with the database. This 3500s connection is procured from the connection-holding :class:`_pool.Pool` 3500s referenced by this :class:`_engine.Engine`. When the 3500s :meth:`_engine.Connection.close` method of the 3500s :class:`_engine.Connection` object 3500s is called, the underlying DBAPI connection is then returned to the 3500s connection pool, where it may be used again in a subsequent call to 3500s :meth:`_engine.Engine.connect`. 3500s 3500s """ 3500s 3500s > return self._connection_cls(self, close_with_result=close_with_result) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3325: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 3500s close_with_result = False, _branch_from = None, _execution_options = None 3500s _dispatch = None, _has_events = None, _allow_revalidate = True 3500s 3500s def __init__( 3500s self, 3500s engine, 3500s connection=None, 3500s close_with_result=False, 3500s _branch_from=None, 3500s _execution_options=None, 3500s _dispatch=None, 3500s _has_events=None, 3500s _allow_revalidate=True, 3500s ): 3500s """Construct a new Connection.""" 3500s self.engine = engine 3500s self.dialect = engine.dialect 3500s self.__branch_from = _branch_from 3500s 3500s if _branch_from: 3500s # branching is always "from" the root connection 3500s assert _branch_from.__branch_from is None 3500s self._dbapi_connection = connection 3500s self._execution_options = _execution_options 3500s self._echo = _branch_from._echo 3500s self.should_close_with_result = False 3500s self.dispatch = _dispatch 3500s self._has_events = _branch_from._has_events 3500s else: 3500s self._dbapi_connection = ( 3500s connection 3500s if connection is not None 3500s > else engine.raw_connection() 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:96: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas), _connection = None 3500s 3500s def raw_connection(self, _connection=None): 3500s """Return a "raw" DBAPI connection from the connection pool. 3500s 3500s The returned object is a proxied version of the DBAPI 3500s connection object used by the underlying driver in use. 3500s The object will have all the same behavior as the real DBAPI 3500s connection, except that its ``close()`` method will result in the 3500s connection being returned to the pool, rather than being closed 3500s for real. 3500s 3500s This method provides direct DBAPI connection access for 3500s special situations when the API provided by 3500s :class:`_engine.Connection` 3500s is not needed. When a :class:`_engine.Connection` object is already 3500s present, the DBAPI connection is available using 3500s the :attr:`_engine.Connection.connection` accessor. 3500s 3500s .. seealso:: 3500s 3500s :ref:`dbapi_connections` 3500s 3500s """ 3500s > return self._wrap_pool_connect(self.pool.connect, _connection) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3404: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s return fn() 3500s except dialect.dbapi.Error as e: 3500s if connection is None: 3500s > Connection._handle_dbapi_exception_noconnection( 3500s e, dialect, self 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3374: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s e = OperationalError(2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3500s dialect = 3500s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s @classmethod 3500s def _handle_dbapi_exception_noconnection(cls, e, dialect, engine): 3500s exc_info = sys.exc_info() 3500s 3500s is_disconnect = dialect.is_disconnect(e, None, None) 3500s 3500s should_wrap = isinstance(e, dialect.dbapi.Error) 3500s 3500s if should_wrap: 3500s sqlalchemy_exception = exc.DBAPIError.instance( 3500s None, 3500s None, 3500s e, 3500s dialect.dbapi.Error, 3500s hide_parameters=engine.hide_parameters, 3500s connection_invalidated=is_disconnect, 3500s ) 3500s else: 3500s sqlalchemy_exception = None 3500s 3500s newraise = None 3500s 3500s if engine._has_events: 3500s ctx = ExceptionContextImpl( 3500s e, 3500s sqlalchemy_exception, 3500s engine, 3500s None, 3500s None, 3500s None, 3500s None, 3500s None, 3500s is_disconnect, 3500s True, 3500s ) 3500s for fn in engine.dispatch.handle_error: 3500s try: 3500s # handler returns an exception; 3500s # call next handler in a chain 3500s per_fn = fn(ctx) 3500s if per_fn is not None: 3500s ctx.chained_exception = newraise = per_fn 3500s except Exception as _raised: 3500s # handler raises an exception - stop processing 3500s newraise = _raised 3500s break 3500s 3500s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 3500s sqlalchemy_exception.connection_invalidated = ( 3500s is_disconnect 3500s ) = ctx.is_disconnect 3500s 3500s if newraise: 3500s util.raise_(newraise, with_traceback=exc_info[2], from_=e) 3500s elif should_wrap: 3500s > util.raise_( 3500s sqlalchemy_exception, with_traceback=exc_info[2], from_=e 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2208: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __init__( 3500s self, 3500s *, 3500s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 3500s password="", 3500s host=None, 3500s database=None, 3500s unix_socket=None, 3500s port=0, 3500s charset="", 3500s collation=None, 3500s sql_mode=None, 3500s read_default_file=None, 3500s conv=None, 3500s use_unicode=True, 3500s client_flag=0, 3500s cursorclass=Cursor, 3500s init_command=None, 3500s connect_timeout=10, 3500s read_default_group=None, 3500s autocommit=False, 3500s local_infile=False, 3500s max_allowed_packet=16 * 1024 * 1024, 3500s defer_connect=False, 3500s auth_plugin_map=None, 3500s read_timeout=None, 3500s write_timeout=None, 3500s bind_address=None, 3500s binary_prefix=False, 3500s program_name=None, 3500s server_public_key=None, 3500s ssl=None, 3500s ssl_ca=None, 3500s ssl_cert=None, 3500s ssl_disabled=None, 3500s ssl_key=None, 3500s ssl_key_password=None, 3500s ssl_verify_cert=None, 3500s ssl_verify_identity=None, 3500s compress=None, # not supported 3500s named_pipe=None, # not supported 3500s passwd=None, # deprecated 3500s db=None, # deprecated 3500s ): 3500s if db is not None and database is None: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 3500s database = db 3500s if passwd is not None and not password: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn( 3500s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 3500s # ) 3500s password = passwd 3500s 3500s if compress or named_pipe: 3500s raise NotImplementedError( 3500s "compress and named_pipe arguments are not supported" 3500s ) 3500s 3500s self._local_infile = bool(local_infile) 3500s if self._local_infile: 3500s client_flag |= CLIENT.LOCAL_FILES 3500s 3500s if read_default_group and not read_default_file: 3500s if sys.platform.startswith("win"): 3500s read_default_file = "c:\\my.ini" 3500s else: 3500s read_default_file = "/etc/my.cnf" 3500s 3500s if read_default_file: 3500s if not read_default_group: 3500s read_default_group = "client" 3500s 3500s cfg = Parser() 3500s cfg.read(os.path.expanduser(read_default_file)) 3500s 3500s def _config(key, arg): 3500s if arg: 3500s return arg 3500s try: 3500s return cfg.get(read_default_group, key) 3500s except Exception: 3500s return arg 3500s 3500s user = _config("user", user) 3500s password = _config("password", password) 3500s host = _config("host", host) 3500s database = _config("database", database) 3500s unix_socket = _config("socket", unix_socket) 3500s port = int(_config("port", port)) 3500s bind_address = _config("bind-address", bind_address) 3500s charset = _config("default-character-set", charset) 3500s if not ssl: 3500s ssl = {} 3500s if isinstance(ssl, dict): 3500s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 3500s value = _config("ssl-" + key, ssl.get(key)) 3500s if value: 3500s ssl[key] = value 3500s 3500s self.ssl = False 3500s if not ssl_disabled: 3500s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 3500s ssl = { 3500s "ca": ssl_ca, 3500s "check_hostname": bool(ssl_verify_identity), 3500s "verify_mode": ssl_verify_cert 3500s if ssl_verify_cert is not None 3500s else False, 3500s } 3500s if ssl_cert is not None: 3500s ssl["cert"] = ssl_cert 3500s if ssl_key is not None: 3500s ssl["key"] = ssl_key 3500s if ssl_key_password is not None: 3500s ssl["password"] = ssl_key_password 3500s if ssl: 3500s if not SSL_ENABLED: 3500s raise NotImplementedError("ssl module not found") 3500s self.ssl = True 3500s client_flag |= CLIENT.SSL 3500s self.ctx = self._create_ssl_ctx(ssl) 3500s 3500s self.host = host or "localhost" 3500s self.port = port or 3306 3500s if type(self.port) is not int: 3500s raise ValueError("port should be of type int") 3500s self.user = user or DEFAULT_USER 3500s self.password = password or b"" 3500s if isinstance(self.password, str): 3500s self.password = self.password.encode("latin1") 3500s self.db = database 3500s self.unix_socket = unix_socket 3500s self.bind_address = bind_address 3500s if not (0 < connect_timeout <= 31536000): 3500s raise ValueError("connect_timeout should be >0 and <=31536000") 3500s self.connect_timeout = connect_timeout or None 3500s if read_timeout is not None and read_timeout <= 0: 3500s raise ValueError("read_timeout should be > 0") 3500s self._read_timeout = read_timeout 3500s if write_timeout is not None and write_timeout <= 0: 3500s raise ValueError("write_timeout should be > 0") 3500s self._write_timeout = write_timeout 3500s 3500s self.charset = charset or DEFAULT_CHARSET 3500s self.collation = collation 3500s self.use_unicode = use_unicode 3500s 3500s self.encoding = charset_by_name(self.charset).encoding 3500s 3500s client_flag |= CLIENT.CAPABILITIES 3500s if self.db: 3500s client_flag |= CLIENT.CONNECT_WITH_DB 3500s 3500s self.client_flag = client_flag 3500s 3500s self.cursorclass = cursorclass 3500s 3500s self._result = None 3500s self._affected_rows = 0 3500s self.host_info = "Not connected" 3500s 3500s # specified autocommit mode. None means use server default. 3500s self.autocommit_mode = autocommit 3500s 3500s if conv is None: 3500s conv = converters.conversions 3500s 3500s # Need for MySQLdb compatibility. 3500s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 3500s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 3500s self.sql_mode = sql_mode 3500s self.init_command = init_command 3500s self.max_allowed_packet = max_allowed_packet 3500s self._auth_plugin_map = auth_plugin_map or {} 3500s self._binary_prefix = binary_prefix 3500s self.server_public_key = server_public_key 3500s 3500s self._connect_attrs = { 3500s "_client_name": "pymysql", 3500s "_client_version": VERSION_STRING, 3500s "_pid": str(os.getpid()), 3500s } 3500s 3500s if program_name: 3500s self._connect_attrs["program_name"] = program_name 3500s 3500s if defer_connect: 3500s self._sock = None 3500s else: 3500s > self.connect() 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = , sock = None 3500s 3500s def connect(self, sock=None): 3500s self._closed = False 3500s try: 3500s if sock is None: 3500s if self.unix_socket: 3500s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3500s sock.settimeout(self.connect_timeout) 3500s sock.connect(self.unix_socket) 3500s self.host_info = "Localhost via UNIX socket" 3500s self._secure = True 3500s if DEBUG: 3500s print("connected using unix_socket") 3500s else: 3500s kwargs = {} 3500s if self.bind_address is not None: 3500s kwargs["source_address"] = (self.bind_address, 0) 3500s while True: 3500s try: 3500s sock = socket.create_connection( 3500s (self.host, self.port), self.connect_timeout, **kwargs 3500s ) 3500s break 3500s except OSError as e: 3500s if e.errno == errno.EINTR: 3500s continue 3500s raise 3500s self.host_info = "socket %s:%d" % (self.host, self.port) 3500s if DEBUG: 3500s print("connected using socket") 3500s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 3500s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 3500s sock.settimeout(None) 3500s 3500s self._sock = sock 3500s self._rfile = sock.makefile("rb") 3500s self._next_seq_id = 0 3500s 3500s self._get_server_information() 3500s self._request_authentication() 3500s 3500s # Send "SET NAMES" query on init for: 3500s # - Ensure charaset (and collation) is set to the server. 3500s # - collation_id in handshake packet may be ignored. 3500s # - If collation is not specified, we don't know what is server's 3500s # default collation for the charset. For example, default collation 3500s # of utf8mb4 is: 3500s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 3500s # - MySQL 8.0: utf8mb4_0900_ai_ci 3500s # 3500s # Reference: 3500s # - https://github.com/PyMySQL/PyMySQL/issues/1092 3500s # - https://github.com/wagtail/wagtail/issues/9477 3500s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 3500s self.set_character_set(self.charset, self.collation) 3500s 3500s if self.sql_mode is not None: 3500s c = self.cursor() 3500s c.execute("SET sql_mode=%s", (self.sql_mode,)) 3500s c.close() 3500s 3500s if self.init_command is not None: 3500s c = self.cursor() 3500s c.execute(self.init_command) 3500s c.close() 3500s 3500s if self.autocommit_mode is not None: 3500s self.autocommit(self.autocommit_mode) 3500s except BaseException as e: 3500s self._rfile = None 3500s if sock is not None: 3500s try: 3500s sock.close() 3500s except: # noqa 3500s pass 3500s 3500s if isinstance(e, (OSError, IOError)): 3500s exc = err.OperationalError( 3500s CR.CR_CONN_HOST_ERROR, 3500s f"Can't connect to MySQL server on {self.host!r} ({e})", 3500s ) 3500s # Keep original exception and traceback to investigate error. 3500s exc.original_exception = e 3500s exc.traceback = traceback.format_exc() 3500s if DEBUG: 3500s print(exc.traceback) 3500s > raise exc 3500s E sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3500s E (Background on this error at: https://sqlalche.me/e/14/e3q8) 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 3500s __________________ test_to_sql_exist_fail[mysql_pymysql_conn] __________________ 3500s self = , sock = None 3500s 3500s def connect(self, sock=None): 3500s self._closed = False 3500s try: 3500s if sock is None: 3500s if self.unix_socket: 3500s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3500s sock.settimeout(self.connect_timeout) 3500s sock.connect(self.unix_socket) 3500s self.host_info = "Localhost via UNIX socket" 3500s self._secure = True 3500s if DEBUG: 3500s print("connected using unix_socket") 3500s else: 3500s kwargs = {} 3500s if self.bind_address is not None: 3500s kwargs["source_address"] = (self.bind_address, 0) 3500s while True: 3500s try: 3500s > sock = socket.create_connection( 3500s (self.host, self.port), self.connect_timeout, **kwargs 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:649: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s address = ('localhost', 3306), timeout = 10, source_address = None 3500s 3500s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 3500s source_address=None, *, all_errors=False): 3500s """Connect to *address* and return the socket object. 3500s 3500s Convenience function. Connect to *address* (a 2-tuple ``(host, 3500s port)``) and return the socket object. Passing the optional 3500s *timeout* parameter will set the timeout on the socket instance 3500s before attempting to connect. If no *timeout* is supplied, the 3500s global default timeout setting returned by :func:`getdefaulttimeout` 3500s is used. If *source_address* is set it must be a tuple of (host, port) 3500s for the socket to bind as a source address before making the connection. 3500s A host of '' or port 0 tells the OS to use the default. When a connection 3500s cannot be created, raises the last error if *all_errors* is False, 3500s and an ExceptionGroup of all errors if *all_errors* is True. 3500s """ 3500s 3500s host, port = address 3500s exceptions = [] 3500s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 3500s af, socktype, proto, canonname, sa = res 3500s sock = None 3500s try: 3500s sock = socket(af, socktype, proto) 3500s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 3500s sock.settimeout(timeout) 3500s if source_address: 3500s sock.bind(source_address) 3500s sock.connect(sa) 3500s # Break explicitly a reference cycle 3500s exceptions.clear() 3500s return sock 3500s 3500s except error as exc: 3500s if not all_errors: 3500s exceptions.clear() # raise only the last error 3500s exceptions.append(exc) 3500s if sock is not None: 3500s sock.close() 3500s 3500s if len(exceptions): 3500s try: 3500s if not all_errors: 3500s > raise exceptions[0] 3500s 3500s /usr/lib/python3.12/socket.py:853: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s address = ('localhost', 3306), timeout = 10, source_address = None 3500s 3500s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 3500s source_address=None, *, all_errors=False): 3500s """Connect to *address* and return the socket object. 3500s 3500s Convenience function. Connect to *address* (a 2-tuple ``(host, 3500s port)``) and return the socket object. Passing the optional 3500s *timeout* parameter will set the timeout on the socket instance 3500s before attempting to connect. If no *timeout* is supplied, the 3500s global default timeout setting returned by :func:`getdefaulttimeout` 3500s is used. If *source_address* is set it must be a tuple of (host, port) 3500s for the socket to bind as a source address before making the connection. 3500s A host of '' or port 0 tells the OS to use the default. When a connection 3500s cannot be created, raises the last error if *all_errors* is False, 3500s and an ExceptionGroup of all errors if *all_errors* is True. 3500s """ 3500s 3500s host, port = address 3500s exceptions = [] 3500s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 3500s af, socktype, proto, canonname, sa = res 3500s sock = None 3500s try: 3500s sock = socket(af, socktype, proto) 3500s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 3500s sock.settimeout(timeout) 3500s if source_address: 3500s sock.bind(source_address) 3500s > sock.connect(sa) 3500s E ConnectionRefusedError: [Errno 111] Connection refused 3500s 3500s /usr/lib/python3.12/socket.py:838: ConnectionRefusedError 3500s 3500s During handling of the above exception, another exception occurred: 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __init__( 3500s self, 3500s *, 3500s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 3500s password="", 3500s host=None, 3500s database=None, 3500s unix_socket=None, 3500s port=0, 3500s charset="", 3500s collation=None, 3500s sql_mode=None, 3500s read_default_file=None, 3500s conv=None, 3500s use_unicode=True, 3500s client_flag=0, 3500s cursorclass=Cursor, 3500s init_command=None, 3500s connect_timeout=10, 3500s read_default_group=None, 3500s autocommit=False, 3500s local_infile=False, 3500s max_allowed_packet=16 * 1024 * 1024, 3500s defer_connect=False, 3500s auth_plugin_map=None, 3500s read_timeout=None, 3500s write_timeout=None, 3500s bind_address=None, 3500s binary_prefix=False, 3500s program_name=None, 3500s server_public_key=None, 3500s ssl=None, 3500s ssl_ca=None, 3500s ssl_cert=None, 3500s ssl_disabled=None, 3500s ssl_key=None, 3500s ssl_key_password=None, 3500s ssl_verify_cert=None, 3500s ssl_verify_identity=None, 3500s compress=None, # not supported 3500s named_pipe=None, # not supported 3500s passwd=None, # deprecated 3500s db=None, # deprecated 3500s ): 3500s if db is not None and database is None: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 3500s database = db 3500s if passwd is not None and not password: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn( 3500s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 3500s # ) 3500s password = passwd 3500s 3500s if compress or named_pipe: 3500s raise NotImplementedError( 3500s "compress and named_pipe arguments are not supported" 3500s ) 3500s 3500s self._local_infile = bool(local_infile) 3500s if self._local_infile: 3500s client_flag |= CLIENT.LOCAL_FILES 3500s 3500s if read_default_group and not read_default_file: 3500s if sys.platform.startswith("win"): 3500s read_default_file = "c:\\my.ini" 3500s else: 3500s read_default_file = "/etc/my.cnf" 3500s 3500s if read_default_file: 3500s if not read_default_group: 3500s read_default_group = "client" 3500s 3500s cfg = Parser() 3500s cfg.read(os.path.expanduser(read_default_file)) 3500s 3500s def _config(key, arg): 3500s if arg: 3500s return arg 3500s try: 3500s return cfg.get(read_default_group, key) 3500s except Exception: 3500s return arg 3500s 3500s user = _config("user", user) 3500s password = _config("password", password) 3500s host = _config("host", host) 3500s database = _config("database", database) 3500s unix_socket = _config("socket", unix_socket) 3500s port = int(_config("port", port)) 3500s bind_address = _config("bind-address", bind_address) 3500s charset = _config("default-character-set", charset) 3500s if not ssl: 3500s ssl = {} 3500s if isinstance(ssl, dict): 3500s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 3500s value = _config("ssl-" + key, ssl.get(key)) 3500s if value: 3500s ssl[key] = value 3500s 3500s self.ssl = False 3500s if not ssl_disabled: 3500s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 3500s ssl = { 3500s "ca": ssl_ca, 3500s "check_hostname": bool(ssl_verify_identity), 3500s "verify_mode": ssl_verify_cert 3500s if ssl_verify_cert is not None 3500s else False, 3500s } 3500s if ssl_cert is not None: 3500s ssl["cert"] = ssl_cert 3500s if ssl_key is not None: 3500s ssl["key"] = ssl_key 3500s if ssl_key_password is not None: 3500s ssl["password"] = ssl_key_password 3500s if ssl: 3500s if not SSL_ENABLED: 3500s raise NotImplementedError("ssl module not found") 3500s self.ssl = True 3500s client_flag |= CLIENT.SSL 3500s self.ctx = self._create_ssl_ctx(ssl) 3500s 3500s self.host = host or "localhost" 3500s self.port = port or 3306 3500s if type(self.port) is not int: 3500s raise ValueError("port should be of type int") 3500s self.user = user or DEFAULT_USER 3500s self.password = password or b"" 3500s if isinstance(self.password, str): 3500s self.password = self.password.encode("latin1") 3500s self.db = database 3500s self.unix_socket = unix_socket 3500s self.bind_address = bind_address 3500s if not (0 < connect_timeout <= 31536000): 3500s raise ValueError("connect_timeout should be >0 and <=31536000") 3500s self.connect_timeout = connect_timeout or None 3500s if read_timeout is not None and read_timeout <= 0: 3500s raise ValueError("read_timeout should be > 0") 3500s self._read_timeout = read_timeout 3500s if write_timeout is not None and write_timeout <= 0: 3500s raise ValueError("write_timeout should be > 0") 3500s self._write_timeout = write_timeout 3500s 3500s self.charset = charset or DEFAULT_CHARSET 3500s self.collation = collation 3500s self.use_unicode = use_unicode 3500s 3500s self.encoding = charset_by_name(self.charset).encoding 3500s 3500s client_flag |= CLIENT.CAPABILITIES 3500s if self.db: 3500s client_flag |= CLIENT.CONNECT_WITH_DB 3500s 3500s self.client_flag = client_flag 3500s 3500s self.cursorclass = cursorclass 3500s 3500s self._result = None 3500s self._affected_rows = 0 3500s self.host_info = "Not connected" 3500s 3500s # specified autocommit mode. None means use server default. 3500s self.autocommit_mode = autocommit 3500s 3500s if conv is None: 3500s conv = converters.conversions 3500s 3500s # Need for MySQLdb compatibility. 3500s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 3500s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 3500s self.sql_mode = sql_mode 3500s self.init_command = init_command 3500s self.max_allowed_packet = max_allowed_packet 3500s self._auth_plugin_map = auth_plugin_map or {} 3500s self._binary_prefix = binary_prefix 3500s self.server_public_key = server_public_key 3500s 3500s self._connect_attrs = { 3500s "_client_name": "pymysql", 3500s "_client_version": VERSION_STRING, 3500s "_pid": str(os.getpid()), 3500s } 3500s 3500s if program_name: 3500s self._connect_attrs["program_name"] = program_name 3500s 3500s if defer_connect: 3500s self._sock = None 3500s else: 3500s > self.connect() 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = , sock = None 3500s 3500s def connect(self, sock=None): 3500s self._closed = False 3500s try: 3500s if sock is None: 3500s if self.unix_socket: 3500s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3500s sock.settimeout(self.connect_timeout) 3500s sock.connect(self.unix_socket) 3500s self.host_info = "Localhost via UNIX socket" 3500s self._secure = True 3500s if DEBUG: 3500s print("connected using unix_socket") 3500s else: 3500s kwargs = {} 3500s if self.bind_address is not None: 3500s kwargs["source_address"] = (self.bind_address, 0) 3500s while True: 3500s try: 3500s sock = socket.create_connection( 3500s (self.host, self.port), self.connect_timeout, **kwargs 3500s ) 3500s break 3500s except OSError as e: 3500s if e.errno == errno.EINTR: 3500s continue 3500s raise 3500s self.host_info = "socket %s:%d" % (self.host, self.port) 3500s if DEBUG: 3500s print("connected using socket") 3500s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 3500s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 3500s sock.settimeout(None) 3500s 3500s self._sock = sock 3500s self._rfile = sock.makefile("rb") 3500s self._next_seq_id = 0 3500s 3500s self._get_server_information() 3500s self._request_authentication() 3500s 3500s # Send "SET NAMES" query on init for: 3500s # - Ensure charaset (and collation) is set to the server. 3500s # - collation_id in handshake packet may be ignored. 3500s # - If collation is not specified, we don't know what is server's 3500s # default collation for the charset. For example, default collation 3500s # of utf8mb4 is: 3500s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 3500s # - MySQL 8.0: utf8mb4_0900_ai_ci 3500s # 3500s # Reference: 3500s # - https://github.com/PyMySQL/PyMySQL/issues/1092 3500s # - https://github.com/wagtail/wagtail/issues/9477 3500s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 3500s self.set_character_set(self.charset, self.collation) 3500s 3500s if self.sql_mode is not None: 3500s c = self.cursor() 3500s c.execute("SET sql_mode=%s", (self.sql_mode,)) 3500s c.close() 3500s 3500s if self.init_command is not None: 3500s c = self.cursor() 3500s c.execute(self.init_command) 3500s c.close() 3500s 3500s if self.autocommit_mode is not None: 3500s self.autocommit(self.autocommit_mode) 3500s except BaseException as e: 3500s self._rfile = None 3500s if sock is not None: 3500s try: 3500s sock.close() 3500s except: # noqa 3500s pass 3500s 3500s if isinstance(e, (OSError, IOError)): 3500s exc = err.OperationalError( 3500s CR.CR_CONN_HOST_ERROR, 3500s f"Can't connect to MySQL server on {self.host!r} ({e})", 3500s ) 3500s # Keep original exception and traceback to investigate error. 3500s exc.original_exception = e 3500s exc.traceback = traceback.format_exc() 3500s if DEBUG: 3500s print(exc.traceback) 3500s > raise exc 3500s E pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 3500s 3500s The above exception was the direct cause of the following exception: 3500s 3500s conn = 'mysql_pymysql_conn' 3500s test_frame1 = index A B C D 3500s 0 2000-01-03 00:00:00 0.980269 3.685731 -0.364217 -1...0-01-05 00:00:00 0.498581 0.731168 -0.537677 1.346270 3500s 3 2000-01-06 00:00:00 1.120202 1.567621 0.003641 0.675253 3500s request = > 3500s 3500s @pytest.mark.db 3500s @pytest.mark.parametrize("conn", all_connectable) 3500s def test_to_sql_exist_fail(conn, test_frame1, request): 3500s > conn = request.getfixturevalue(conn) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:617: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'mysql_pymysql_conn' 3500s 3500s def getfixturevalue(self, argname: str) -> Any: 3500s """Dynamically run a named fixture function. 3500s 3500s Declaring fixtures via function argument is recommended where possible. 3500s But if you can only decide whether to use another fixture at test 3500s setup time, you may use this function to retrieve it inside a fixture 3500s or test function body. 3500s 3500s This method can be used during the test setup phase or the test run 3500s phase, but during the test teardown phase a fixture's value may not 3500s be available. 3500s 3500s :param argname: 3500s The fixture name. 3500s :raises pytest.FixtureLookupError: 3500s If the given fixture could not be found. 3500s """ 3500s > fixturedef = self._get_active_fixturedef(argname) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:585: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'mysql_pymysql_conn' 3500s 3500s def _get_active_fixturedef( 3500s self, argname: str 3500s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3500s try: 3500s return self._fixture_defs[argname] 3500s except KeyError: 3500s try: 3500s fixturedef = self._getnextfixturedef(argname) 3500s except FixtureLookupError: 3500s if argname == "request": 3500s cached_result = (self, [0], None) 3500s return PseudoFixtureDef(cached_result, Scope.Function) 3500s raise 3500s # Remove indent to prevent the python3 exception 3500s # from leaking into the call. 3500s > self._compute_fixture_value(fixturedef) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s fixturedef = 3500s 3500s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3500s """Create a SubRequest based on "self" and call the execute method 3500s of the given FixtureDef object. 3500s 3500s This will force the FixtureDef object to throw away any previous 3500s results and compute a new fixture value, which will be stored into 3500s the FixtureDef object itself. 3500s """ 3500s # prepare a subrequest object before calling fixture function 3500s # (latter managed by fixturedef) 3500s argname = fixturedef.argname 3500s funcitem = self._pyfuncitem 3500s scope = fixturedef._scope 3500s try: 3500s callspec = funcitem.callspec 3500s except AttributeError: 3500s callspec = None 3500s if callspec is not None and argname in callspec.params: 3500s param = callspec.params[argname] 3500s param_index = callspec.indices[argname] 3500s # If a parametrize invocation set a scope it will override 3500s # the static scope defined with the fixture function. 3500s with suppress(KeyError): 3500s scope = callspec._arg2scope[argname] 3500s else: 3500s param = NOTSET 3500s param_index = 0 3500s has_params = fixturedef.params is not None 3500s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3500s if has_params and fixtures_not_supported: 3500s msg = ( 3500s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3500s "Node id: {nodeid}\n" 3500s "Function type: {typename}" 3500s ).format( 3500s name=funcitem.name, 3500s nodeid=funcitem.nodeid, 3500s typename=type(funcitem).__name__, 3500s ) 3500s fail(msg, pytrace=False) 3500s if has_params: 3500s frame = inspect.stack()[3] 3500s frameinfo = inspect.getframeinfo(frame[0]) 3500s source_path = absolutepath(frameinfo.filename) 3500s source_lineno = frameinfo.lineno 3500s try: 3500s source_path_str = str( 3500s source_path.relative_to(funcitem.config.rootpath) 3500s ) 3500s except ValueError: 3500s source_path_str = str(source_path) 3500s msg = ( 3500s "The requested fixture has no parameter defined for test:\n" 3500s " {}\n\n" 3500s "Requested fixture '{}' defined in:\n{}" 3500s "\n\nRequested here:\n{}:{}".format( 3500s funcitem.nodeid, 3500s fixturedef.argname, 3500s getlocation(fixturedef.func, funcitem.config.rootpath), 3500s source_path_str, 3500s source_lineno, 3500s ) 3500s ) 3500s fail(msg, pytrace=False) 3500s 3500s subrequest = SubRequest( 3500s self, scope, param, param_index, fixturedef, _ispytest=True 3500s ) 3500s 3500s # Check if a higher-level scoped fixture accesses a lower level one. 3500s subrequest._check_scope(argname, self._scope, scope) 3500s try: 3500s # Call the fixture function. 3500s > fixturedef.execute(request=subrequest) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s request = > 3500s 3500s def execute(self, request: SubRequest) -> FixtureValue: 3500s # Get required arguments and register our own finish() 3500s # with their finalization. 3500s for argname in self.argnames: 3500s > fixturedef = request._get_active_fixturedef(argname) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1045: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'mysql_pymysql_engine' 3500s 3500s def _get_active_fixturedef( 3500s self, argname: str 3500s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3500s try: 3500s return self._fixture_defs[argname] 3500s except KeyError: 3500s try: 3500s fixturedef = self._getnextfixturedef(argname) 3500s except FixtureLookupError: 3500s if argname == "request": 3500s cached_result = (self, [0], None) 3500s return PseudoFixtureDef(cached_result, Scope.Function) 3500s raise 3500s # Remove indent to prevent the python3 exception 3500s # from leaking into the call. 3500s > self._compute_fixture_value(fixturedef) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s fixturedef = 3500s 3500s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3500s """Create a SubRequest based on "self" and call the execute method 3500s of the given FixtureDef object. 3500s 3500s This will force the FixtureDef object to throw away any previous 3500s results and compute a new fixture value, which will be stored into 3500s the FixtureDef object itself. 3500s """ 3500s # prepare a subrequest object before calling fixture function 3500s # (latter managed by fixturedef) 3500s argname = fixturedef.argname 3500s funcitem = self._pyfuncitem 3500s scope = fixturedef._scope 3500s try: 3500s callspec = funcitem.callspec 3500s except AttributeError: 3500s callspec = None 3500s if callspec is not None and argname in callspec.params: 3500s param = callspec.params[argname] 3500s param_index = callspec.indices[argname] 3500s # If a parametrize invocation set a scope it will override 3500s # the static scope defined with the fixture function. 3500s with suppress(KeyError): 3500s scope = callspec._arg2scope[argname] 3500s else: 3500s param = NOTSET 3500s param_index = 0 3500s has_params = fixturedef.params is not None 3500s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3500s if has_params and fixtures_not_supported: 3500s msg = ( 3500s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3500s "Node id: {nodeid}\n" 3500s "Function type: {typename}" 3500s ).format( 3500s name=funcitem.name, 3500s nodeid=funcitem.nodeid, 3500s typename=type(funcitem).__name__, 3500s ) 3500s fail(msg, pytrace=False) 3500s if has_params: 3500s frame = inspect.stack()[3] 3500s frameinfo = inspect.getframeinfo(frame[0]) 3500s source_path = absolutepath(frameinfo.filename) 3500s source_lineno = frameinfo.lineno 3500s try: 3500s source_path_str = str( 3500s source_path.relative_to(funcitem.config.rootpath) 3500s ) 3500s except ValueError: 3500s source_path_str = str(source_path) 3500s msg = ( 3500s "The requested fixture has no parameter defined for test:\n" 3500s " {}\n\n" 3500s "Requested fixture '{}' defined in:\n{}" 3500s "\n\nRequested here:\n{}:{}".format( 3500s funcitem.nodeid, 3500s fixturedef.argname, 3500s getlocation(fixturedef.func, funcitem.config.rootpath), 3500s source_path_str, 3500s source_lineno, 3500s ) 3500s ) 3500s fail(msg, pytrace=False) 3500s 3500s subrequest = SubRequest( 3500s self, scope, param, param_index, fixturedef, _ispytest=True 3500s ) 3500s 3500s # Check if a higher-level scoped fixture accesses a lower level one. 3500s subrequest._check_scope(argname, self._scope, scope) 3500s try: 3500s # Call the fixture function. 3500s > fixturedef.execute(request=subrequest) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s request = > 3500s 3500s def execute(self, request: SubRequest) -> FixtureValue: 3500s # Get required arguments and register our own finish() 3500s # with their finalization. 3500s for argname in self.argnames: 3500s fixturedef = request._get_active_fixturedef(argname) 3500s if argname != "request": 3500s # PseudoFixtureDef is only for "request". 3500s assert isinstance(fixturedef, FixtureDef) 3500s fixturedef.addfinalizer(functools.partial(self.finish, request=request)) 3500s 3500s my_cache_key = self.cache_key(request) 3500s if self.cached_result is not None: 3500s # note: comparison with `==` can fail (or be expensive) for e.g. 3500s # numpy arrays (#6497). 3500s cache_key = self.cached_result[1] 3500s if my_cache_key is cache_key: 3500s if self.cached_result[2] is not None: 3500s _, val, tb = self.cached_result[2] 3500s raise val.with_traceback(tb) 3500s else: 3500s result = self.cached_result[0] 3500s return result 3500s # We have a previous but differently parametrized fixture instance 3500s # so we need to tear it down before creating a new one. 3500s self.finish(request) 3500s assert self.cached_result is None 3500s 3500s ihook = request.node.ihook 3500s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1069: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s kwargs = {'fixturedef': , 'request': >} 3500s firstresult = True 3500s 3500s def __call__(self, **kwargs: object) -> Any: 3500s """Call the hook. 3500s 3500s Only accepts keyword arguments, which should match the hook 3500s specification. 3500s 3500s Returns the result(s) of calling all registered plugins, see 3500s :ref:`calling`. 3500s """ 3500s assert ( 3500s not self.is_historic() 3500s ), "Cannot directly call a historic hook - use call_historic instead." 3500s self._verify_all_args_are_provided(kwargs) 3500s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 3500s # Copy because plugins may register other plugins during iteration (#438). 3500s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = <_pytest.config.PytestPluginManager object at 0xe9079168> 3500s hook_name = 'pytest_fixture_setup' 3500s methods = [>] 3500s kwargs = {'fixturedef': , 'request': >} 3500s firstresult = True 3500s 3500s def _hookexec( 3500s self, 3500s hook_name: str, 3500s methods: Sequence[HookImpl], 3500s kwargs: Mapping[str, object], 3500s firstresult: bool, 3500s ) -> object | list[object]: 3500s # called from all hookcaller instances. 3500s # enable_tracing will set its own wrapping function at self._inner_hookexec 3500s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturedef = 3500s request = > 3500s 3500s def pytest_fixture_setup( 3500s fixturedef: FixtureDef[FixtureValue], request: SubRequest 3500s ) -> FixtureValue: 3500s """Execution of fixture setup.""" 3500s kwargs = {} 3500s for argname in fixturedef.argnames: 3500s fixdef = request._get_active_fixturedef(argname) 3500s assert fixdef.cached_result is not None 3500s result, arg_cache_key, exc = fixdef.cached_result 3500s request._check_scope(argname, request._scope, fixdef._scope) 3500s kwargs[argname] = result 3500s 3500s fixturefunc = resolve_fixture_function(fixturedef, request) 3500s my_cache_key = fixturedef.cache_key(request) 3500s try: 3500s > result = call_fixture_func(fixturefunc, request, kwargs) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1123: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturefunc = 3500s request = > 3500s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv'), 'types_data': [{'B... False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}]} 3500s 3500s def call_fixture_func( 3500s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 3500s ) -> FixtureValue: 3500s if is_generator(fixturefunc): 3500s fixturefunc = cast( 3500s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 3500s ) 3500s generator = fixturefunc(**kwargs) 3500s try: 3500s > fixture_result = next(generator) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:895: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s iris_path = PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv') 3500s types_data = [{'BoolCol': False, 'BoolColWithNull': False, 'DateCol': '2000-01-03 00:00:00', 'DateColWithTz': '2000-01-01 00:00:00-...: False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}] 3500s 3500s @pytest.fixture 3500s def mysql_pymysql_engine(iris_path, types_data): 3500s sqlalchemy = pytest.importorskip("sqlalchemy") 3500s pymysql = pytest.importorskip("pymysql") 3500s engine = sqlalchemy.create_engine( 3500s "mysql+pymysql://root@localhost:3306/pandas", 3500s connect_args={"client_flag": pymysql.constants.CLIENT.MULTI_STATEMENTS}, 3500s poolclass=sqlalchemy.pool.NullPool, 3500s ) 3500s > insp = sqlalchemy.inspect(engine) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:409: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s subject = Engine(mysql+pymysql://root@localhost:3306/pandas), raiseerr = True 3500s 3500s def inspect(subject, raiseerr=True): 3500s """Produce an inspection object for the given target. 3500s 3500s The returned value in some cases may be the 3500s same object as the one given, such as if a 3500s :class:`_orm.Mapper` object is passed. In other 3500s cases, it will be an instance of the registered 3500s inspection type for the given object, such as 3500s if an :class:`_engine.Engine` is passed, an 3500s :class:`_reflection.Inspector` object is returned. 3500s 3500s :param subject: the subject to be inspected. 3500s :param raiseerr: When ``True``, if the given subject 3500s does not 3500s correspond to a known SQLAlchemy inspected type, 3500s :class:`sqlalchemy.exc.NoInspectionAvailable` 3500s is raised. If ``False``, ``None`` is returned. 3500s 3500s """ 3500s type_ = type(subject) 3500s for cls in type_.__mro__: 3500s if cls in _registrars: 3500s reg = _registrars[cls] 3500s if reg is True: 3500s return subject 3500s > ret = reg(subject) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:64: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s @inspection._inspects(Engine) 3500s def _engine_insp(bind): 3500s > return Inspector._construct(Inspector._init_engine, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:182: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s init = 3500s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s @classmethod 3500s def _construct(cls, init, bind): 3500s 3500s if hasattr(bind.dialect, "inspector"): 3500s cls = bind.dialect.inspector 3500s 3500s self = cls.__new__(cls) 3500s > init(self, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:117: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s def _init_engine(self, engine): 3500s self.bind = self.engine = engine 3500s > engine.connect().close() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:128: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s close_with_result = False 3500s 3500s def connect(self, close_with_result=False): 3500s """Return a new :class:`_engine.Connection` object. 3500s 3500s The :class:`_engine.Connection` object is a facade that uses a DBAPI 3500s connection internally in order to communicate with the database. This 3500s connection is procured from the connection-holding :class:`_pool.Pool` 3500s referenced by this :class:`_engine.Engine`. When the 3500s :meth:`_engine.Connection.close` method of the 3500s :class:`_engine.Connection` object 3500s is called, the underlying DBAPI connection is then returned to the 3500s connection pool, where it may be used again in a subsequent call to 3500s :meth:`_engine.Engine.connect`. 3500s 3500s """ 3500s 3500s > return self._connection_cls(self, close_with_result=close_with_result) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3325: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 3500s close_with_result = False, _branch_from = None, _execution_options = None 3500s _dispatch = None, _has_events = None, _allow_revalidate = True 3500s 3500s def __init__( 3500s self, 3500s engine, 3500s connection=None, 3500s close_with_result=False, 3500s _branch_from=None, 3500s _execution_options=None, 3500s _dispatch=None, 3500s _has_events=None, 3500s _allow_revalidate=True, 3500s ): 3500s """Construct a new Connection.""" 3500s self.engine = engine 3500s self.dialect = engine.dialect 3500s self.__branch_from = _branch_from 3500s 3500s if _branch_from: 3500s # branching is always "from" the root connection 3500s assert _branch_from.__branch_from is None 3500s self._dbapi_connection = connection 3500s self._execution_options = _execution_options 3500s self._echo = _branch_from._echo 3500s self.should_close_with_result = False 3500s self.dispatch = _dispatch 3500s self._has_events = _branch_from._has_events 3500s else: 3500s self._dbapi_connection = ( 3500s connection 3500s if connection is not None 3500s > else engine.raw_connection() 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:96: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas), _connection = None 3500s 3500s def raw_connection(self, _connection=None): 3500s """Return a "raw" DBAPI connection from the connection pool. 3500s 3500s The returned object is a proxied version of the DBAPI 3500s connection object used by the underlying driver in use. 3500s The object will have all the same behavior as the real DBAPI 3500s connection, except that its ``close()`` method will result in the 3500s connection being returned to the pool, rather than being closed 3500s for real. 3500s 3500s This method provides direct DBAPI connection access for 3500s special situations when the API provided by 3500s :class:`_engine.Connection` 3500s is not needed. When a :class:`_engine.Connection` object is already 3500s present, the DBAPI connection is available using 3500s the :attr:`_engine.Connection.connection` accessor. 3500s 3500s .. seealso:: 3500s 3500s :ref:`dbapi_connections` 3500s 3500s """ 3500s > return self._wrap_pool_connect(self.pool.connect, _connection) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3404: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s return fn() 3500s except dialect.dbapi.Error as e: 3500s if connection is None: 3500s > Connection._handle_dbapi_exception_noconnection( 3500s e, dialect, self 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3374: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s e = OperationalError(2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3500s dialect = 3500s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s @classmethod 3500s def _handle_dbapi_exception_noconnection(cls, e, dialect, engine): 3500s exc_info = sys.exc_info() 3500s 3500s is_disconnect = dialect.is_disconnect(e, None, None) 3500s 3500s should_wrap = isinstance(e, dialect.dbapi.Error) 3500s 3500s if should_wrap: 3500s sqlalchemy_exception = exc.DBAPIError.instance( 3500s None, 3500s None, 3500s e, 3500s dialect.dbapi.Error, 3500s hide_parameters=engine.hide_parameters, 3500s connection_invalidated=is_disconnect, 3500s ) 3500s else: 3500s sqlalchemy_exception = None 3500s 3500s newraise = None 3500s 3500s if engine._has_events: 3500s ctx = ExceptionContextImpl( 3500s e, 3500s sqlalchemy_exception, 3500s engine, 3500s None, 3500s None, 3500s None, 3500s None, 3500s None, 3500s is_disconnect, 3500s True, 3500s ) 3500s for fn in engine.dispatch.handle_error: 3500s try: 3500s # handler returns an exception; 3500s # call next handler in a chain 3500s per_fn = fn(ctx) 3500s if per_fn is not None: 3500s ctx.chained_exception = newraise = per_fn 3500s except Exception as _raised: 3500s # handler raises an exception - stop processing 3500s newraise = _raised 3500s break 3500s 3500s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 3500s sqlalchemy_exception.connection_invalidated = ( 3500s is_disconnect 3500s ) = ctx.is_disconnect 3500s 3500s if newraise: 3500s util.raise_(newraise, with_traceback=exc_info[2], from_=e) 3500s elif should_wrap: 3500s > util.raise_( 3500s sqlalchemy_exception, with_traceback=exc_info[2], from_=e 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2208: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __init__( 3500s self, 3500s *, 3500s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 3500s password="", 3500s host=None, 3500s database=None, 3500s unix_socket=None, 3500s port=0, 3500s charset="", 3500s collation=None, 3500s sql_mode=None, 3500s read_default_file=None, 3500s conv=None, 3500s use_unicode=True, 3500s client_flag=0, 3500s cursorclass=Cursor, 3500s init_command=None, 3500s connect_timeout=10, 3500s read_default_group=None, 3500s autocommit=False, 3500s local_infile=False, 3500s max_allowed_packet=16 * 1024 * 1024, 3500s defer_connect=False, 3500s auth_plugin_map=None, 3500s read_timeout=None, 3500s write_timeout=None, 3500s bind_address=None, 3500s binary_prefix=False, 3500s program_name=None, 3500s server_public_key=None, 3500s ssl=None, 3500s ssl_ca=None, 3500s ssl_cert=None, 3500s ssl_disabled=None, 3500s ssl_key=None, 3500s ssl_key_password=None, 3500s ssl_verify_cert=None, 3500s ssl_verify_identity=None, 3500s compress=None, # not supported 3500s named_pipe=None, # not supported 3500s passwd=None, # deprecated 3500s db=None, # deprecated 3500s ): 3500s if db is not None and database is None: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 3500s database = db 3500s if passwd is not None and not password: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn( 3500s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 3500s # ) 3500s password = passwd 3500s 3500s if compress or named_pipe: 3500s raise NotImplementedError( 3500s "compress and named_pipe arguments are not supported" 3500s ) 3500s 3500s self._local_infile = bool(local_infile) 3500s if self._local_infile: 3500s client_flag |= CLIENT.LOCAL_FILES 3500s 3500s if read_default_group and not read_default_file: 3500s if sys.platform.startswith("win"): 3500s read_default_file = "c:\\my.ini" 3500s else: 3500s read_default_file = "/etc/my.cnf" 3500s 3500s if read_default_file: 3500s if not read_default_group: 3500s read_default_group = "client" 3500s 3500s cfg = Parser() 3500s cfg.read(os.path.expanduser(read_default_file)) 3500s 3500s def _config(key, arg): 3500s if arg: 3500s return arg 3500s try: 3500s return cfg.get(read_default_group, key) 3500s except Exception: 3500s return arg 3500s 3500s user = _config("user", user) 3500s password = _config("password", password) 3500s host = _config("host", host) 3500s database = _config("database", database) 3500s unix_socket = _config("socket", unix_socket) 3500s port = int(_config("port", port)) 3500s bind_address = _config("bind-address", bind_address) 3500s charset = _config("default-character-set", charset) 3500s if not ssl: 3500s ssl = {} 3500s if isinstance(ssl, dict): 3500s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 3500s value = _config("ssl-" + key, ssl.get(key)) 3500s if value: 3500s ssl[key] = value 3500s 3500s self.ssl = False 3500s if not ssl_disabled: 3500s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 3500s ssl = { 3500s "ca": ssl_ca, 3500s "check_hostname": bool(ssl_verify_identity), 3500s "verify_mode": ssl_verify_cert 3500s if ssl_verify_cert is not None 3500s else False, 3500s } 3500s if ssl_cert is not None: 3500s ssl["cert"] = ssl_cert 3500s if ssl_key is not None: 3500s ssl["key"] = ssl_key 3500s if ssl_key_password is not None: 3500s ssl["password"] = ssl_key_password 3500s if ssl: 3500s if not SSL_ENABLED: 3500s raise NotImplementedError("ssl module not found") 3500s self.ssl = True 3500s client_flag |= CLIENT.SSL 3500s self.ctx = self._create_ssl_ctx(ssl) 3500s 3500s self.host = host or "localhost" 3500s self.port = port or 3306 3500s if type(self.port) is not int: 3500s raise ValueError("port should be of type int") 3500s self.user = user or DEFAULT_USER 3500s self.password = password or b"" 3500s if isinstance(self.password, str): 3500s self.password = self.password.encode("latin1") 3500s self.db = database 3500s self.unix_socket = unix_socket 3500s self.bind_address = bind_address 3500s if not (0 < connect_timeout <= 31536000): 3500s raise ValueError("connect_timeout should be >0 and <=31536000") 3500s self.connect_timeout = connect_timeout or None 3500s if read_timeout is not None and read_timeout <= 0: 3500s raise ValueError("read_timeout should be > 0") 3500s self._read_timeout = read_timeout 3500s if write_timeout is not None and write_timeout <= 0: 3500s raise ValueError("write_timeout should be > 0") 3500s self._write_timeout = write_timeout 3500s 3500s self.charset = charset or DEFAULT_CHARSET 3500s self.collation = collation 3500s self.use_unicode = use_unicode 3500s 3500s self.encoding = charset_by_name(self.charset).encoding 3500s 3500s client_flag |= CLIENT.CAPABILITIES 3500s if self.db: 3500s client_flag |= CLIENT.CONNECT_WITH_DB 3500s 3500s self.client_flag = client_flag 3500s 3500s self.cursorclass = cursorclass 3500s 3500s self._result = None 3500s self._affected_rows = 0 3500s self.host_info = "Not connected" 3500s 3500s # specified autocommit mode. None means use server default. 3500s self.autocommit_mode = autocommit 3500s 3500s if conv is None: 3500s conv = converters.conversions 3500s 3500s # Need for MySQLdb compatibility. 3500s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 3500s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 3500s self.sql_mode = sql_mode 3500s self.init_command = init_command 3500s self.max_allowed_packet = max_allowed_packet 3500s self._auth_plugin_map = auth_plugin_map or {} 3500s self._binary_prefix = binary_prefix 3500s self.server_public_key = server_public_key 3500s 3500s self._connect_attrs = { 3500s "_client_name": "pymysql", 3500s "_client_version": VERSION_STRING, 3500s "_pid": str(os.getpid()), 3500s } 3500s 3500s if program_name: 3500s self._connect_attrs["program_name"] = program_name 3500s 3500s if defer_connect: 3500s self._sock = None 3500s else: 3500s > self.connect() 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = , sock = None 3500s 3500s def connect(self, sock=None): 3500s self._closed = False 3500s try: 3500s if sock is None: 3500s if self.unix_socket: 3500s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3500s sock.settimeout(self.connect_timeout) 3500s sock.connect(self.unix_socket) 3500s self.host_info = "Localhost via UNIX socket" 3500s self._secure = True 3500s if DEBUG: 3500s print("connected using unix_socket") 3500s else: 3500s kwargs = {} 3500s if self.bind_address is not None: 3500s kwargs["source_address"] = (self.bind_address, 0) 3500s while True: 3500s try: 3500s sock = socket.create_connection( 3500s (self.host, self.port), self.connect_timeout, **kwargs 3500s ) 3500s break 3500s except OSError as e: 3500s if e.errno == errno.EINTR: 3500s continue 3500s raise 3500s self.host_info = "socket %s:%d" % (self.host, self.port) 3500s if DEBUG: 3500s print("connected using socket") 3500s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 3500s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 3500s sock.settimeout(None) 3500s 3500s self._sock = sock 3500s self._rfile = sock.makefile("rb") 3500s self._next_seq_id = 0 3500s 3500s self._get_server_information() 3500s self._request_authentication() 3500s 3500s # Send "SET NAMES" query on init for: 3500s # - Ensure charaset (and collation) is set to the server. 3500s # - collation_id in handshake packet may be ignored. 3500s # - If collation is not specified, we don't know what is server's 3500s # default collation for the charset. For example, default collation 3500s # of utf8mb4 is: 3500s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 3500s # - MySQL 8.0: utf8mb4_0900_ai_ci 3500s # 3500s # Reference: 3500s # - https://github.com/PyMySQL/PyMySQL/issues/1092 3500s # - https://github.com/wagtail/wagtail/issues/9477 3500s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 3500s self.set_character_set(self.charset, self.collation) 3500s 3500s if self.sql_mode is not None: 3500s c = self.cursor() 3500s c.execute("SET sql_mode=%s", (self.sql_mode,)) 3500s c.close() 3500s 3500s if self.init_command is not None: 3500s c = self.cursor() 3500s c.execute(self.init_command) 3500s c.close() 3500s 3500s if self.autocommit_mode is not None: 3500s self.autocommit(self.autocommit_mode) 3500s except BaseException as e: 3500s self._rfile = None 3500s if sock is not None: 3500s try: 3500s sock.close() 3500s except: # noqa 3500s pass 3500s 3500s if isinstance(e, (OSError, IOError)): 3500s exc = err.OperationalError( 3500s CR.CR_CONN_HOST_ERROR, 3500s f"Can't connect to MySQL server on {self.host!r} ({e})", 3500s ) 3500s # Keep original exception and traceback to investigate error. 3500s exc.original_exception = e 3500s exc.traceback = traceback.format_exc() 3500s if DEBUG: 3500s print(exc.traceback) 3500s > raise exc 3500s E sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3500s E (Background on this error at: https://sqlalche.me/e/14/e3q8) 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 3500s ______________ test_to_sql_exist_fail[postgresql_psycopg2_engine] ______________ 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s dsn = 'host=localhost user=postgres password=postgres port=5432 dbname=pandas' 3500s connection_factory = None, cursor_factory = None 3500s kwargs = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s kwasync = {} 3500s 3500s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 3500s """ 3500s Create a new database connection. 3500s 3500s The connection parameters can be specified as a string: 3500s 3500s conn = psycopg2.connect("dbname=test user=postgres password=secret") 3500s 3500s or using a set of keyword arguments: 3500s 3500s conn = psycopg2.connect(database="test", user="postgres", password="secret") 3500s 3500s Or as a mix of both. The basic connection parameters are: 3500s 3500s - *dbname*: the database name 3500s - *database*: the database name (only as keyword argument) 3500s - *user*: user name used to authenticate 3500s - *password*: password used to authenticate 3500s - *host*: database host address (defaults to UNIX socket if not provided) 3500s - *port*: connection port number (defaults to 5432 if not provided) 3500s 3500s Using the *connection_factory* parameter a different class or connections 3500s factory can be specified. It should be a callable object taking a dsn 3500s argument. 3500s 3500s Using the *cursor_factory* parameter, a new default cursor factory will be 3500s used by cursor(). 3500s 3500s Using *async*=True an asynchronous connection will be created. *async_* is 3500s a valid alias (for Python versions where ``async`` is a keyword). 3500s 3500s Any other keyword parameter will be passed to the underlying client 3500s library: the list of supported parameters depends on the library version. 3500s 3500s """ 3500s kwasync = {} 3500s if 'async' in kwargs: 3500s kwasync['async'] = kwargs.pop('async') 3500s if 'async_' in kwargs: 3500s kwasync['async_'] = kwargs.pop('async_') 3500s 3500s dsn = _ext.make_dsn(dsn, **kwargs) 3500s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 3500s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 3500s E Is the server running on that host and accepting TCP/IP connections? 3500s 3500s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 3500s 3500s The above exception was the direct cause of the following exception: 3500s 3500s conn = 'postgresql_psycopg2_engine' 3500s test_frame1 = index A B C D 3500s 0 2000-01-03 00:00:00 0.980269 3.685731 -0.364217 -1...0-01-05 00:00:00 0.498581 0.731168 -0.537677 1.346270 3500s 3 2000-01-06 00:00:00 1.120202 1.567621 0.003641 0.675253 3500s request = > 3500s 3500s @pytest.mark.db 3500s @pytest.mark.parametrize("conn", all_connectable) 3500s def test_to_sql_exist_fail(conn, test_frame1, request): 3500s > conn = request.getfixturevalue(conn) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:617: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'postgresql_psycopg2_engine' 3500s 3500s def getfixturevalue(self, argname: str) -> Any: 3500s """Dynamically run a named fixture function. 3500s 3500s Declaring fixtures via function argument is recommended where possible. 3500s But if you can only decide whether to use another fixture at test 3500s setup time, you may use this function to retrieve it inside a fixture 3500s or test function body. 3500s 3500s This method can be used during the test setup phase or the test run 3500s phase, but during the test teardown phase a fixture's value may not 3500s be available. 3500s 3500s :param argname: 3500s The fixture name. 3500s :raises pytest.FixtureLookupError: 3500s If the given fixture could not be found. 3500s """ 3500s > fixturedef = self._get_active_fixturedef(argname) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:585: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'postgresql_psycopg2_engine' 3500s 3500s def _get_active_fixturedef( 3500s self, argname: str 3500s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3500s try: 3500s return self._fixture_defs[argname] 3500s except KeyError: 3500s try: 3500s fixturedef = self._getnextfixturedef(argname) 3500s except FixtureLookupError: 3500s if argname == "request": 3500s cached_result = (self, [0], None) 3500s return PseudoFixtureDef(cached_result, Scope.Function) 3500s raise 3500s # Remove indent to prevent the python3 exception 3500s # from leaking into the call. 3500s > self._compute_fixture_value(fixturedef) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s fixturedef = 3500s 3500s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3500s """Create a SubRequest based on "self" and call the execute method 3500s of the given FixtureDef object. 3500s 3500s This will force the FixtureDef object to throw away any previous 3500s results and compute a new fixture value, which will be stored into 3500s the FixtureDef object itself. 3500s """ 3500s # prepare a subrequest object before calling fixture function 3500s # (latter managed by fixturedef) 3500s argname = fixturedef.argname 3500s funcitem = self._pyfuncitem 3500s scope = fixturedef._scope 3500s try: 3500s callspec = funcitem.callspec 3500s except AttributeError: 3500s callspec = None 3500s if callspec is not None and argname in callspec.params: 3500s param = callspec.params[argname] 3500s param_index = callspec.indices[argname] 3500s # If a parametrize invocation set a scope it will override 3500s # the static scope defined with the fixture function. 3500s with suppress(KeyError): 3500s scope = callspec._arg2scope[argname] 3500s else: 3500s param = NOTSET 3500s param_index = 0 3500s has_params = fixturedef.params is not None 3500s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3500s if has_params and fixtures_not_supported: 3500s msg = ( 3500s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3500s "Node id: {nodeid}\n" 3500s "Function type: {typename}" 3500s ).format( 3500s name=funcitem.name, 3500s nodeid=funcitem.nodeid, 3500s typename=type(funcitem).__name__, 3500s ) 3500s fail(msg, pytrace=False) 3500s if has_params: 3500s frame = inspect.stack()[3] 3500s frameinfo = inspect.getframeinfo(frame[0]) 3500s source_path = absolutepath(frameinfo.filename) 3500s source_lineno = frameinfo.lineno 3500s try: 3500s source_path_str = str( 3500s source_path.relative_to(funcitem.config.rootpath) 3500s ) 3500s except ValueError: 3500s source_path_str = str(source_path) 3500s msg = ( 3500s "The requested fixture has no parameter defined for test:\n" 3500s " {}\n\n" 3500s "Requested fixture '{}' defined in:\n{}" 3500s "\n\nRequested here:\n{}:{}".format( 3500s funcitem.nodeid, 3500s fixturedef.argname, 3500s getlocation(fixturedef.func, funcitem.config.rootpath), 3500s source_path_str, 3500s source_lineno, 3500s ) 3500s ) 3500s fail(msg, pytrace=False) 3500s 3500s subrequest = SubRequest( 3500s self, scope, param, param_index, fixturedef, _ispytest=True 3500s ) 3500s 3500s # Check if a higher-level scoped fixture accesses a lower level one. 3500s subrequest._check_scope(argname, self._scope, scope) 3500s try: 3500s # Call the fixture function. 3500s > fixturedef.execute(request=subrequest) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s request = > 3500s 3500s def execute(self, request: SubRequest) -> FixtureValue: 3500s # Get required arguments and register our own finish() 3500s # with their finalization. 3500s for argname in self.argnames: 3500s fixturedef = request._get_active_fixturedef(argname) 3500s if argname != "request": 3500s # PseudoFixtureDef is only for "request". 3500s assert isinstance(fixturedef, FixtureDef) 3500s fixturedef.addfinalizer(functools.partial(self.finish, request=request)) 3500s 3500s my_cache_key = self.cache_key(request) 3500s if self.cached_result is not None: 3500s # note: comparison with `==` can fail (or be expensive) for e.g. 3500s # numpy arrays (#6497). 3500s cache_key = self.cached_result[1] 3500s if my_cache_key is cache_key: 3500s if self.cached_result[2] is not None: 3500s _, val, tb = self.cached_result[2] 3500s raise val.with_traceback(tb) 3500s else: 3500s result = self.cached_result[0] 3500s return result 3500s # We have a previous but differently parametrized fixture instance 3500s # so we need to tear it down before creating a new one. 3500s self.finish(request) 3500s assert self.cached_result is None 3500s 3500s ihook = request.node.ihook 3500s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1069: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s kwargs = {'fixturedef': , 'request': >} 3500s firstresult = True 3500s 3500s def __call__(self, **kwargs: object) -> Any: 3500s """Call the hook. 3500s 3500s Only accepts keyword arguments, which should match the hook 3500s specification. 3500s 3500s Returns the result(s) of calling all registered plugins, see 3500s :ref:`calling`. 3500s """ 3500s assert ( 3500s not self.is_historic() 3500s ), "Cannot directly call a historic hook - use call_historic instead." 3500s self._verify_all_args_are_provided(kwargs) 3500s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 3500s # Copy because plugins may register other plugins during iteration (#438). 3500s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = <_pytest.config.PytestPluginManager object at 0xe9079168> 3500s hook_name = 'pytest_fixture_setup' 3500s methods = [>] 3500s kwargs = {'fixturedef': , 'request': >} 3500s firstresult = True 3500s 3500s def _hookexec( 3500s self, 3500s hook_name: str, 3500s methods: Sequence[HookImpl], 3500s kwargs: Mapping[str, object], 3500s firstresult: bool, 3500s ) -> object | list[object]: 3500s # called from all hookcaller instances. 3500s # enable_tracing will set its own wrapping function at self._inner_hookexec 3500s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturedef = 3500s request = > 3500s 3500s def pytest_fixture_setup( 3500s fixturedef: FixtureDef[FixtureValue], request: SubRequest 3500s ) -> FixtureValue: 3500s """Execution of fixture setup.""" 3500s kwargs = {} 3500s for argname in fixturedef.argnames: 3500s fixdef = request._get_active_fixturedef(argname) 3500s assert fixdef.cached_result is not None 3500s result, arg_cache_key, exc = fixdef.cached_result 3500s request._check_scope(argname, request._scope, fixdef._scope) 3500s kwargs[argname] = result 3500s 3500s fixturefunc = resolve_fixture_function(fixturedef, request) 3500s my_cache_key = fixturedef.cache_key(request) 3500s try: 3500s > result = call_fixture_func(fixturefunc, request, kwargs) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1123: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturefunc = 3500s request = > 3500s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv'), 'types_data': [{'B... False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}]} 3500s 3500s def call_fixture_func( 3500s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 3500s ) -> FixtureValue: 3500s if is_generator(fixturefunc): 3500s fixturefunc = cast( 3500s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 3500s ) 3500s generator = fixturefunc(**kwargs) 3500s try: 3500s > fixture_result = next(generator) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:895: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s iris_path = PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv') 3500s types_data = [{'BoolCol': False, 'BoolColWithNull': False, 'DateCol': '2000-01-03 00:00:00', 'DateColWithTz': '2000-01-01 00:00:00-...: False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}] 3500s 3500s @pytest.fixture 3500s def postgresql_psycopg2_engine(iris_path, types_data): 3500s sqlalchemy = pytest.importorskip("sqlalchemy") 3500s pytest.importorskip("psycopg2") 3500s engine = sqlalchemy.create_engine( 3500s "postgresql+psycopg2://postgres:postgres@localhost:5432/pandas", 3500s poolclass=sqlalchemy.pool.NullPool, 3500s ) 3500s > insp = sqlalchemy.inspect(engine) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:438: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s subject = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s raiseerr = True 3500s 3500s def inspect(subject, raiseerr=True): 3500s """Produce an inspection object for the given target. 3500s 3500s The returned value in some cases may be the 3500s same object as the one given, such as if a 3500s :class:`_orm.Mapper` object is passed. In other 3500s cases, it will be an instance of the registered 3500s inspection type for the given object, such as 3500s if an :class:`_engine.Engine` is passed, an 3500s :class:`_reflection.Inspector` object is returned. 3500s 3500s :param subject: the subject to be inspected. 3500s :param raiseerr: When ``True``, if the given subject 3500s does not 3500s correspond to a known SQLAlchemy inspected type, 3500s :class:`sqlalchemy.exc.NoInspectionAvailable` 3500s is raised. If ``False``, ``None`` is returned. 3500s 3500s """ 3500s type_ = type(subject) 3500s for cls in type_.__mro__: 3500s if cls in _registrars: 3500s reg = _registrars[cls] 3500s if reg is True: 3500s return subject 3500s > ret = reg(subject) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:64: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s @inspection._inspects(Engine) 3500s def _engine_insp(bind): 3500s > return Inspector._construct(Inspector._init_engine, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:182: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s init = 3500s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s @classmethod 3500s def _construct(cls, init, bind): 3500s 3500s if hasattr(bind.dialect, "inspector"): 3500s cls = bind.dialect.inspector 3500s 3500s self = cls.__new__(cls) 3500s > init(self, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:117: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s def _init_engine(self, engine): 3500s self.bind = self.engine = engine 3500s > engine.connect().close() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:128: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s close_with_result = False 3500s 3500s def connect(self, close_with_result=False): 3500s """Return a new :class:`_engine.Connection` object. 3500s 3500s The :class:`_engine.Connection` object is a facade that uses a DBAPI 3500s connection internally in order to communicate with the database. This 3500s connection is procured from the connection-holding :class:`_pool.Pool` 3500s referenced by this :class:`_engine.Engine`. When the 3500s :meth:`_engine.Connection.close` method of the 3500s :class:`_engine.Connection` object 3500s is called, the underlying DBAPI connection is then returned to the 3500s connection pool, where it may be used again in a subsequent call to 3500s :meth:`_engine.Engine.connect`. 3500s 3500s """ 3500s 3500s > return self._connection_cls(self, close_with_result=close_with_result) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3325: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s connection = None, close_with_result = False, _branch_from = None 3500s _execution_options = None, _dispatch = None, _has_events = None 3500s _allow_revalidate = True 3500s 3500s def __init__( 3500s self, 3500s engine, 3500s connection=None, 3500s close_with_result=False, 3500s _branch_from=None, 3500s _execution_options=None, 3500s _dispatch=None, 3500s _has_events=None, 3500s _allow_revalidate=True, 3500s ): 3500s """Construct a new Connection.""" 3500s self.engine = engine 3500s self.dialect = engine.dialect 3500s self.__branch_from = _branch_from 3500s 3500s if _branch_from: 3500s # branching is always "from" the root connection 3500s assert _branch_from.__branch_from is None 3500s self._dbapi_connection = connection 3500s self._execution_options = _execution_options 3500s self._echo = _branch_from._echo 3500s self.should_close_with_result = False 3500s self.dispatch = _dispatch 3500s self._has_events = _branch_from._has_events 3500s else: 3500s self._dbapi_connection = ( 3500s connection 3500s if connection is not None 3500s > else engine.raw_connection() 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:96: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s _connection = None 3500s 3500s def raw_connection(self, _connection=None): 3500s """Return a "raw" DBAPI connection from the connection pool. 3500s 3500s The returned object is a proxied version of the DBAPI 3500s connection object used by the underlying driver in use. 3500s The object will have all the same behavior as the real DBAPI 3500s connection, except that its ``close()`` method will result in the 3500s connection being returned to the pool, rather than being closed 3500s for real. 3500s 3500s This method provides direct DBAPI connection access for 3500s special situations when the API provided by 3500s :class:`_engine.Connection` 3500s is not needed. When a :class:`_engine.Connection` object is already 3500s present, the DBAPI connection is available using 3500s the :attr:`_engine.Connection.connection` accessor. 3500s 3500s .. seealso:: 3500s 3500s :ref:`dbapi_connections` 3500s 3500s """ 3500s > return self._wrap_pool_connect(self.pool.connect, _connection) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3404: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s return fn() 3500s except dialect.dbapi.Error as e: 3500s if connection is None: 3500s > Connection._handle_dbapi_exception_noconnection( 3500s e, dialect, self 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3374: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s e = OperationalError('connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused\n\tIs the server running on that host and accepting TCP/IP connections?\n') 3500s dialect = 3500s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s @classmethod 3500s def _handle_dbapi_exception_noconnection(cls, e, dialect, engine): 3500s exc_info = sys.exc_info() 3500s 3500s is_disconnect = dialect.is_disconnect(e, None, None) 3500s 3500s should_wrap = isinstance(e, dialect.dbapi.Error) 3500s 3500s if should_wrap: 3500s sqlalchemy_exception = exc.DBAPIError.instance( 3500s None, 3500s None, 3500s e, 3500s dialect.dbapi.Error, 3500s hide_parameters=engine.hide_parameters, 3500s connection_invalidated=is_disconnect, 3500s ) 3500s else: 3500s sqlalchemy_exception = None 3500s 3500s newraise = None 3500s 3500s if engine._has_events: 3500s ctx = ExceptionContextImpl( 3500s e, 3500s sqlalchemy_exception, 3500s engine, 3500s None, 3500s None, 3500s None, 3500s None, 3500s None, 3500s is_disconnect, 3500s True, 3500s ) 3500s for fn in engine.dispatch.handle_error: 3500s try: 3500s # handler returns an exception; 3500s # call next handler in a chain 3500s per_fn = fn(ctx) 3500s if per_fn is not None: 3500s ctx.chained_exception = newraise = per_fn 3500s except Exception as _raised: 3500s # handler raises an exception - stop processing 3500s newraise = _raised 3500s break 3500s 3500s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 3500s sqlalchemy_exception.connection_invalidated = ( 3500s is_disconnect 3500s ) = ctx.is_disconnect 3500s 3500s if newraise: 3500s util.raise_(newraise, with_traceback=exc_info[2], from_=e) 3500s elif should_wrap: 3500s > util.raise_( 3500s sqlalchemy_exception, with_traceback=exc_info[2], from_=e 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2208: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s dsn = 'host=localhost user=postgres password=postgres port=5432 dbname=pandas' 3500s connection_factory = None, cursor_factory = None 3500s kwargs = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s kwasync = {} 3500s 3500s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 3500s """ 3500s Create a new database connection. 3500s 3500s The connection parameters can be specified as a string: 3500s 3500s conn = psycopg2.connect("dbname=test user=postgres password=secret") 3500s 3500s or using a set of keyword arguments: 3500s 3500s conn = psycopg2.connect(database="test", user="postgres", password="secret") 3500s 3500s Or as a mix of both. The basic connection parameters are: 3500s 3500s - *dbname*: the database name 3500s - *database*: the database name (only as keyword argument) 3500s - *user*: user name used to authenticate 3500s - *password*: password used to authenticate 3500s - *host*: database host address (defaults to UNIX socket if not provided) 3500s - *port*: connection port number (defaults to 5432 if not provided) 3500s 3500s Using the *connection_factory* parameter a different class or connections 3500s factory can be specified. It should be a callable object taking a dsn 3500s argument. 3500s 3500s Using the *cursor_factory* parameter, a new default cursor factory will be 3500s used by cursor(). 3500s 3500s Using *async*=True an asynchronous connection will be created. *async_* is 3500s a valid alias (for Python versions where ``async`` is a keyword). 3500s 3500s Any other keyword parameter will be passed to the underlying client 3500s library: the list of supported parameters depends on the library version. 3500s 3500s """ 3500s kwasync = {} 3500s if 'async' in kwargs: 3500s kwasync['async'] = kwargs.pop('async') 3500s if 'async_' in kwargs: 3500s kwasync['async_'] = kwargs.pop('async_') 3500s 3500s dsn = _ext.make_dsn(dsn, **kwargs) 3500s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 3500s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 3500s E Is the server running on that host and accepting TCP/IP connections? 3500s E 3500s E (Background on this error at: https://sqlalche.me/e/14/e3q8) 3500s 3500s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 3500s _______________ test_to_sql_exist_fail[postgresql_psycopg2_conn] _______________ 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s dsn = 'host=localhost user=postgres password=postgres port=5432 dbname=pandas' 3500s connection_factory = None, cursor_factory = None 3500s kwargs = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s kwasync = {} 3500s 3500s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 3500s """ 3500s Create a new database connection. 3500s 3500s The connection parameters can be specified as a string: 3500s 3500s conn = psycopg2.connect("dbname=test user=postgres password=secret") 3500s 3500s or using a set of keyword arguments: 3500s 3500s conn = psycopg2.connect(database="test", user="postgres", password="secret") 3500s 3500s Or as a mix of both. The basic connection parameters are: 3500s 3500s - *dbname*: the database name 3500s - *database*: the database name (only as keyword argument) 3500s - *user*: user name used to authenticate 3500s - *password*: password used to authenticate 3500s - *host*: database host address (defaults to UNIX socket if not provided) 3500s - *port*: connection port number (defaults to 5432 if not provided) 3500s 3500s Using the *connection_factory* parameter a different class or connections 3500s factory can be specified. It should be a callable object taking a dsn 3500s argument. 3500s 3500s Using the *cursor_factory* parameter, a new default cursor factory will be 3500s used by cursor(). 3500s 3500s Using *async*=True an asynchronous connection will be created. *async_* is 3500s a valid alias (for Python versions where ``async`` is a keyword). 3500s 3500s Any other keyword parameter will be passed to the underlying client 3500s library: the list of supported parameters depends on the library version. 3500s 3500s """ 3500s kwasync = {} 3500s if 'async' in kwargs: 3500s kwasync['async'] = kwargs.pop('async') 3500s if 'async_' in kwargs: 3500s kwasync['async_'] = kwargs.pop('async_') 3500s 3500s dsn = _ext.make_dsn(dsn, **kwargs) 3500s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 3500s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 3500s E Is the server running on that host and accepting TCP/IP connections? 3500s 3500s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 3500s 3500s The above exception was the direct cause of the following exception: 3500s 3500s conn = 'postgresql_psycopg2_conn' 3500s test_frame1 = index A B C D 3500s 0 2000-01-03 00:00:00 0.980269 3.685731 -0.364217 -1...0-01-05 00:00:00 0.498581 0.731168 -0.537677 1.346270 3500s 3 2000-01-06 00:00:00 1.120202 1.567621 0.003641 0.675253 3500s request = > 3500s 3500s @pytest.mark.db 3500s @pytest.mark.parametrize("conn", all_connectable) 3500s def test_to_sql_exist_fail(conn, test_frame1, request): 3500s > conn = request.getfixturevalue(conn) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:617: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'postgresql_psycopg2_conn' 3500s 3500s def getfixturevalue(self, argname: str) -> Any: 3500s """Dynamically run a named fixture function. 3500s 3500s Declaring fixtures via function argument is recommended where possible. 3500s But if you can only decide whether to use another fixture at test 3500s setup time, you may use this function to retrieve it inside a fixture 3500s or test function body. 3500s 3500s This method can be used during the test setup phase or the test run 3500s phase, but during the test teardown phase a fixture's value may not 3500s be available. 3500s 3500s :param argname: 3500s The fixture name. 3500s :raises pytest.FixtureLookupError: 3500s If the given fixture could not be found. 3500s """ 3500s > fixturedef = self._get_active_fixturedef(argname) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:585: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'postgresql_psycopg2_conn' 3500s 3500s def _get_active_fixturedef( 3500s self, argname: str 3500s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3500s try: 3500s return self._fixture_defs[argname] 3500s except KeyError: 3500s try: 3500s fixturedef = self._getnextfixturedef(argname) 3500s except FixtureLookupError: 3500s if argname == "request": 3500s cached_result = (self, [0], None) 3500s return PseudoFixtureDef(cached_result, Scope.Function) 3500s raise 3500s # Remove indent to prevent the python3 exception 3500s # from leaking into the call. 3500s > self._compute_fixture_value(fixturedef) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s fixturedef = 3500s 3500s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3500s """Create a SubRequest based on "self" and call the execute method 3500s of the given FixtureDef object. 3500s 3500s This will force the FixtureDef object to throw away any previous 3500s results and compute a new fixture value, which will be stored into 3500s the FixtureDef object itself. 3500s """ 3500s # prepare a subrequest object before calling fixture function 3500s # (latter managed by fixturedef) 3500s argname = fixturedef.argname 3500s funcitem = self._pyfuncitem 3500s scope = fixturedef._scope 3500s try: 3500s callspec = funcitem.callspec 3500s except AttributeError: 3500s callspec = None 3500s if callspec is not None and argname in callspec.params: 3500s param = callspec.params[argname] 3500s param_index = callspec.indices[argname] 3500s # If a parametrize invocation set a scope it will override 3500s # the static scope defined with the fixture function. 3500s with suppress(KeyError): 3500s scope = callspec._arg2scope[argname] 3500s else: 3500s param = NOTSET 3500s param_index = 0 3500s has_params = fixturedef.params is not None 3500s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3500s if has_params and fixtures_not_supported: 3500s msg = ( 3500s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3500s "Node id: {nodeid}\n" 3500s "Function type: {typename}" 3500s ).format( 3500s name=funcitem.name, 3500s nodeid=funcitem.nodeid, 3500s typename=type(funcitem).__name__, 3500s ) 3500s fail(msg, pytrace=False) 3500s if has_params: 3500s frame = inspect.stack()[3] 3500s frameinfo = inspect.getframeinfo(frame[0]) 3500s source_path = absolutepath(frameinfo.filename) 3500s source_lineno = frameinfo.lineno 3500s try: 3500s source_path_str = str( 3500s source_path.relative_to(funcitem.config.rootpath) 3500s ) 3500s except ValueError: 3500s source_path_str = str(source_path) 3500s msg = ( 3500s "The requested fixture has no parameter defined for test:\n" 3500s " {}\n\n" 3500s "Requested fixture '{}' defined in:\n{}" 3500s "\n\nRequested here:\n{}:{}".format( 3500s funcitem.nodeid, 3500s fixturedef.argname, 3500s getlocation(fixturedef.func, funcitem.config.rootpath), 3500s source_path_str, 3500s source_lineno, 3500s ) 3500s ) 3500s fail(msg, pytrace=False) 3500s 3500s subrequest = SubRequest( 3500s self, scope, param, param_index, fixturedef, _ispytest=True 3500s ) 3500s 3500s # Check if a higher-level scoped fixture accesses a lower level one. 3500s subrequest._check_scope(argname, self._scope, scope) 3500s try: 3500s # Call the fixture function. 3500s > fixturedef.execute(request=subrequest) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s request = > 3500s 3500s def execute(self, request: SubRequest) -> FixtureValue: 3500s # Get required arguments and register our own finish() 3500s # with their finalization. 3500s for argname in self.argnames: 3500s > fixturedef = request._get_active_fixturedef(argname) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1045: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'postgresql_psycopg2_engine' 3500s 3500s def _get_active_fixturedef( 3500s self, argname: str 3500s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3500s try: 3500s return self._fixture_defs[argname] 3500s except KeyError: 3500s try: 3500s fixturedef = self._getnextfixturedef(argname) 3500s except FixtureLookupError: 3500s if argname == "request": 3500s cached_result = (self, [0], None) 3500s return PseudoFixtureDef(cached_result, Scope.Function) 3500s raise 3500s # Remove indent to prevent the python3 exception 3500s # from leaking into the call. 3500s > self._compute_fixture_value(fixturedef) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s fixturedef = 3500s 3500s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3500s """Create a SubRequest based on "self" and call the execute method 3500s of the given FixtureDef object. 3500s 3500s This will force the FixtureDef object to throw away any previous 3500s results and compute a new fixture value, which will be stored into 3500s the FixtureDef object itself. 3500s """ 3500s # prepare a subrequest object before calling fixture function 3500s # (latter managed by fixturedef) 3500s argname = fixturedef.argname 3500s funcitem = self._pyfuncitem 3500s scope = fixturedef._scope 3500s try: 3500s callspec = funcitem.callspec 3500s except AttributeError: 3500s callspec = None 3500s if callspec is not None and argname in callspec.params: 3500s param = callspec.params[argname] 3500s param_index = callspec.indices[argname] 3500s # If a parametrize invocation set a scope it will override 3500s # the static scope defined with the fixture function. 3500s with suppress(KeyError): 3500s scope = callspec._arg2scope[argname] 3500s else: 3500s param = NOTSET 3500s param_index = 0 3500s has_params = fixturedef.params is not None 3500s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3500s if has_params and fixtures_not_supported: 3500s msg = ( 3500s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3500s "Node id: {nodeid}\n" 3500s "Function type: {typename}" 3500s ).format( 3500s name=funcitem.name, 3500s nodeid=funcitem.nodeid, 3500s typename=type(funcitem).__name__, 3500s ) 3500s fail(msg, pytrace=False) 3500s if has_params: 3500s frame = inspect.stack()[3] 3500s frameinfo = inspect.getframeinfo(frame[0]) 3500s source_path = absolutepath(frameinfo.filename) 3500s source_lineno = frameinfo.lineno 3500s try: 3500s source_path_str = str( 3500s source_path.relative_to(funcitem.config.rootpath) 3500s ) 3500s except ValueError: 3500s source_path_str = str(source_path) 3500s msg = ( 3500s "The requested fixture has no parameter defined for test:\n" 3500s " {}\n\n" 3500s "Requested fixture '{}' defined in:\n{}" 3500s "\n\nRequested here:\n{}:{}".format( 3500s funcitem.nodeid, 3500s fixturedef.argname, 3500s getlocation(fixturedef.func, funcitem.config.rootpath), 3500s source_path_str, 3500s source_lineno, 3500s ) 3500s ) 3500s fail(msg, pytrace=False) 3500s 3500s subrequest = SubRequest( 3500s self, scope, param, param_index, fixturedef, _ispytest=True 3500s ) 3500s 3500s # Check if a higher-level scoped fixture accesses a lower level one. 3500s subrequest._check_scope(argname, self._scope, scope) 3500s try: 3500s # Call the fixture function. 3500s > fixturedef.execute(request=subrequest) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s request = > 3500s 3500s def execute(self, request: SubRequest) -> FixtureValue: 3500s # Get required arguments and register our own finish() 3500s # with their finalization. 3500s for argname in self.argnames: 3500s fixturedef = request._get_active_fixturedef(argname) 3500s if argname != "request": 3500s # PseudoFixtureDef is only for "request". 3500s assert isinstance(fixturedef, FixtureDef) 3500s fixturedef.addfinalizer(functools.partial(self.finish, request=request)) 3500s 3500s my_cache_key = self.cache_key(request) 3500s if self.cached_result is not None: 3500s # note: comparison with `==` can fail (or be expensive) for e.g. 3500s # numpy arrays (#6497). 3500s cache_key = self.cached_result[1] 3500s if my_cache_key is cache_key: 3500s if self.cached_result[2] is not None: 3500s _, val, tb = self.cached_result[2] 3500s raise val.with_traceback(tb) 3500s else: 3500s result = self.cached_result[0] 3500s return result 3500s # We have a previous but differently parametrized fixture instance 3500s # so we need to tear it down before creating a new one. 3500s self.finish(request) 3500s assert self.cached_result is None 3500s 3500s ihook = request.node.ihook 3500s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1069: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s kwargs = {'fixturedef': , 'request': >} 3500s firstresult = True 3500s 3500s def __call__(self, **kwargs: object) -> Any: 3500s """Call the hook. 3500s 3500s Only accepts keyword arguments, which should match the hook 3500s specification. 3500s 3500s Returns the result(s) of calling all registered plugins, see 3500s :ref:`calling`. 3500s """ 3500s assert ( 3500s not self.is_historic() 3500s ), "Cannot directly call a historic hook - use call_historic instead." 3500s self._verify_all_args_are_provided(kwargs) 3500s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 3500s # Copy because plugins may register other plugins during iteration (#438). 3500s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = <_pytest.config.PytestPluginManager object at 0xe9079168> 3500s hook_name = 'pytest_fixture_setup' 3500s methods = [>] 3500s kwargs = {'fixturedef': , 'request': >} 3500s firstresult = True 3500s 3500s def _hookexec( 3500s self, 3500s hook_name: str, 3500s methods: Sequence[HookImpl], 3500s kwargs: Mapping[str, object], 3500s firstresult: bool, 3500s ) -> object | list[object]: 3500s # called from all hookcaller instances. 3500s # enable_tracing will set its own wrapping function at self._inner_hookexec 3500s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturedef = 3500s request = > 3500s 3500s def pytest_fixture_setup( 3500s fixturedef: FixtureDef[FixtureValue], request: SubRequest 3500s ) -> FixtureValue: 3500s """Execution of fixture setup.""" 3500s kwargs = {} 3500s for argname in fixturedef.argnames: 3500s fixdef = request._get_active_fixturedef(argname) 3500s assert fixdef.cached_result is not None 3500s result, arg_cache_key, exc = fixdef.cached_result 3500s request._check_scope(argname, request._scope, fixdef._scope) 3500s kwargs[argname] = result 3500s 3500s fixturefunc = resolve_fixture_function(fixturedef, request) 3500s my_cache_key = fixturedef.cache_key(request) 3500s try: 3500s > result = call_fixture_func(fixturefunc, request, kwargs) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1123: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturefunc = 3500s request = > 3500s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv'), 'types_data': [{'B... False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}]} 3500s 3500s def call_fixture_func( 3500s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 3500s ) -> FixtureValue: 3500s if is_generator(fixturefunc): 3500s fixturefunc = cast( 3500s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 3500s ) 3500s generator = fixturefunc(**kwargs) 3500s try: 3500s > fixture_result = next(generator) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:895: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s iris_path = PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv') 3500s types_data = [{'BoolCol': False, 'BoolColWithNull': False, 'DateCol': '2000-01-03 00:00:00', 'DateColWithTz': '2000-01-01 00:00:00-...: False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}] 3500s 3500s @pytest.fixture 3500s def postgresql_psycopg2_engine(iris_path, types_data): 3500s sqlalchemy = pytest.importorskip("sqlalchemy") 3500s pytest.importorskip("psycopg2") 3500s engine = sqlalchemy.create_engine( 3500s "postgresql+psycopg2://postgres:postgres@localhost:5432/pandas", 3500s poolclass=sqlalchemy.pool.NullPool, 3500s ) 3500s > insp = sqlalchemy.inspect(engine) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:438: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s subject = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s raiseerr = True 3500s 3500s def inspect(subject, raiseerr=True): 3500s """Produce an inspection object for the given target. 3500s 3500s The returned value in some cases may be the 3500s same object as the one given, such as if a 3500s :class:`_orm.Mapper` object is passed. In other 3500s cases, it will be an instance of the registered 3500s inspection type for the given object, such as 3500s if an :class:`_engine.Engine` is passed, an 3500s :class:`_reflection.Inspector` object is returned. 3500s 3500s :param subject: the subject to be inspected. 3500s :param raiseerr: When ``True``, if the given subject 3500s does not 3500s correspond to a known SQLAlchemy inspected type, 3500s :class:`sqlalchemy.exc.NoInspectionAvailable` 3500s is raised. If ``False``, ``None`` is returned. 3500s 3500s """ 3500s type_ = type(subject) 3500s for cls in type_.__mro__: 3500s if cls in _registrars: 3500s reg = _registrars[cls] 3500s if reg is True: 3500s return subject 3500s > ret = reg(subject) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:64: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s @inspection._inspects(Engine) 3500s def _engine_insp(bind): 3500s > return Inspector._construct(Inspector._init_engine, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:182: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s init = 3500s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s @classmethod 3500s def _construct(cls, init, bind): 3500s 3500s if hasattr(bind.dialect, "inspector"): 3500s cls = bind.dialect.inspector 3500s 3500s self = cls.__new__(cls) 3500s > init(self, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:117: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s def _init_engine(self, engine): 3500s self.bind = self.engine = engine 3500s > engine.connect().close() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:128: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s close_with_result = False 3500s 3500s def connect(self, close_with_result=False): 3500s """Return a new :class:`_engine.Connection` object. 3500s 3500s The :class:`_engine.Connection` object is a facade that uses a DBAPI 3500s connection internally in order to communicate with the database. This 3500s connection is procured from the connection-holding :class:`_pool.Pool` 3500s referenced by this :class:`_engine.Engine`. When the 3500s :meth:`_engine.Connection.close` method of the 3500s :class:`_engine.Connection` object 3500s is called, the underlying DBAPI connection is then returned to the 3500s connection pool, where it may be used again in a subsequent call to 3500s :meth:`_engine.Engine.connect`. 3500s 3500s """ 3500s 3500s > return self._connection_cls(self, close_with_result=close_with_result) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3325: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s connection = None, close_with_result = False, _branch_from = None 3500s _execution_options = None, _dispatch = None, _has_events = None 3500s _allow_revalidate = True 3500s 3500s def __init__( 3500s self, 3500s engine, 3500s connection=None, 3500s close_with_result=False, 3500s _branch_from=None, 3500s _execution_options=None, 3500s _dispatch=None, 3500s _has_events=None, 3500s _allow_revalidate=True, 3500s ): 3500s """Construct a new Connection.""" 3500s self.engine = engine 3500s self.dialect = engine.dialect 3500s self.__branch_from = _branch_from 3500s 3500s if _branch_from: 3500s # branching is always "from" the root connection 3500s assert _branch_from.__branch_from is None 3500s self._dbapi_connection = connection 3500s self._execution_options = _execution_options 3500s self._echo = _branch_from._echo 3500s self.should_close_with_result = False 3500s self.dispatch = _dispatch 3500s self._has_events = _branch_from._has_events 3500s else: 3500s self._dbapi_connection = ( 3500s connection 3500s if connection is not None 3500s > else engine.raw_connection() 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:96: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s _connection = None 3500s 3500s def raw_connection(self, _connection=None): 3500s """Return a "raw" DBAPI connection from the connection pool. 3500s 3500s The returned object is a proxied version of the DBAPI 3500s connection object used by the underlying driver in use. 3500s The object will have all the same behavior as the real DBAPI 3500s connection, except that its ``close()`` method will result in the 3500s connection being returned to the pool, rather than being closed 3500s for real. 3500s 3500s This method provides direct DBAPI connection access for 3500s special situations when the API provided by 3500s :class:`_engine.Connection` 3500s is not needed. When a :class:`_engine.Connection` object is already 3500s present, the DBAPI connection is available using 3500s the :attr:`_engine.Connection.connection` accessor. 3500s 3500s .. seealso:: 3500s 3500s :ref:`dbapi_connections` 3500s 3500s """ 3500s > return self._wrap_pool_connect(self.pool.connect, _connection) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3404: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s return fn() 3500s except dialect.dbapi.Error as e: 3500s if connection is None: 3500s > Connection._handle_dbapi_exception_noconnection( 3500s e, dialect, self 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3374: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s e = OperationalError('connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused\n\tIs the server running on that host and accepting TCP/IP connections?\n') 3500s dialect = 3500s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s @classmethod 3500s def _handle_dbapi_exception_noconnection(cls, e, dialect, engine): 3500s exc_info = sys.exc_info() 3500s 3500s is_disconnect = dialect.is_disconnect(e, None, None) 3500s 3500s should_wrap = isinstance(e, dialect.dbapi.Error) 3500s 3500s if should_wrap: 3500s sqlalchemy_exception = exc.DBAPIError.instance( 3500s None, 3500s None, 3500s e, 3500s dialect.dbapi.Error, 3500s hide_parameters=engine.hide_parameters, 3500s connection_invalidated=is_disconnect, 3500s ) 3500s else: 3500s sqlalchemy_exception = None 3500s 3500s newraise = None 3500s 3500s if engine._has_events: 3500s ctx = ExceptionContextImpl( 3500s e, 3500s sqlalchemy_exception, 3500s engine, 3500s None, 3500s None, 3500s None, 3500s None, 3500s None, 3500s is_disconnect, 3500s True, 3500s ) 3500s for fn in engine.dispatch.handle_error: 3500s try: 3500s # handler returns an exception; 3500s # call next handler in a chain 3500s per_fn = fn(ctx) 3500s if per_fn is not None: 3500s ctx.chained_exception = newraise = per_fn 3500s except Exception as _raised: 3500s # handler raises an exception - stop processing 3500s newraise = _raised 3500s break 3500s 3500s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 3500s sqlalchemy_exception.connection_invalidated = ( 3500s is_disconnect 3500s ) = ctx.is_disconnect 3500s 3500s if newraise: 3500s util.raise_(newraise, with_traceback=exc_info[2], from_=e) 3500s elif should_wrap: 3500s > util.raise_( 3500s sqlalchemy_exception, with_traceback=exc_info[2], from_=e 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2208: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s dsn = 'host=localhost user=postgres password=postgres port=5432 dbname=pandas' 3500s connection_factory = None, cursor_factory = None 3500s kwargs = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s kwasync = {} 3500s 3500s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 3500s """ 3500s Create a new database connection. 3500s 3500s The connection parameters can be specified as a string: 3500s 3500s conn = psycopg2.connect("dbname=test user=postgres password=secret") 3500s 3500s or using a set of keyword arguments: 3500s 3500s conn = psycopg2.connect(database="test", user="postgres", password="secret") 3500s 3500s Or as a mix of both. The basic connection parameters are: 3500s 3500s - *dbname*: the database name 3500s - *database*: the database name (only as keyword argument) 3500s - *user*: user name used to authenticate 3500s - *password*: password used to authenticate 3500s - *host*: database host address (defaults to UNIX socket if not provided) 3500s - *port*: connection port number (defaults to 5432 if not provided) 3500s 3500s Using the *connection_factory* parameter a different class or connections 3500s factory can be specified. It should be a callable object taking a dsn 3500s argument. 3500s 3500s Using the *cursor_factory* parameter, a new default cursor factory will be 3500s used by cursor(). 3500s 3500s Using *async*=True an asynchronous connection will be created. *async_* is 3500s a valid alias (for Python versions where ``async`` is a keyword). 3500s 3500s Any other keyword parameter will be passed to the underlying client 3500s library: the list of supported parameters depends on the library version. 3500s 3500s """ 3500s kwasync = {} 3500s if 'async' in kwargs: 3500s kwasync['async'] = kwargs.pop('async') 3500s if 'async_' in kwargs: 3500s kwasync['async_'] = kwargs.pop('async_') 3500s 3500s dsn = _ext.make_dsn(dsn, **kwargs) 3500s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 3500s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 3500s E Is the server running on that host and accepting TCP/IP connections? 3500s E 3500s E (Background on this error at: https://sqlalche.me/e/14/e3q8) 3500s 3500s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 3500s __________________ test_read_iris_query[mysql_pymysql_engine] __________________ 3500s self = , sock = None 3500s 3500s def connect(self, sock=None): 3500s self._closed = False 3500s try: 3500s if sock is None: 3500s if self.unix_socket: 3500s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3500s sock.settimeout(self.connect_timeout) 3500s sock.connect(self.unix_socket) 3500s self.host_info = "Localhost via UNIX socket" 3500s self._secure = True 3500s if DEBUG: 3500s print("connected using unix_socket") 3500s else: 3500s kwargs = {} 3500s if self.bind_address is not None: 3500s kwargs["source_address"] = (self.bind_address, 0) 3500s while True: 3500s try: 3500s > sock = socket.create_connection( 3500s (self.host, self.port), self.connect_timeout, **kwargs 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:649: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s address = ('localhost', 3306), timeout = 10, source_address = None 3500s 3500s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 3500s source_address=None, *, all_errors=False): 3500s """Connect to *address* and return the socket object. 3500s 3500s Convenience function. Connect to *address* (a 2-tuple ``(host, 3500s port)``) and return the socket object. Passing the optional 3500s *timeout* parameter will set the timeout on the socket instance 3500s before attempting to connect. If no *timeout* is supplied, the 3500s global default timeout setting returned by :func:`getdefaulttimeout` 3500s is used. If *source_address* is set it must be a tuple of (host, port) 3500s for the socket to bind as a source address before making the connection. 3500s A host of '' or port 0 tells the OS to use the default. When a connection 3500s cannot be created, raises the last error if *all_errors* is False, 3500s and an ExceptionGroup of all errors if *all_errors* is True. 3500s """ 3500s 3500s host, port = address 3500s exceptions = [] 3500s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 3500s af, socktype, proto, canonname, sa = res 3500s sock = None 3500s try: 3500s sock = socket(af, socktype, proto) 3500s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 3500s sock.settimeout(timeout) 3500s if source_address: 3500s sock.bind(source_address) 3500s sock.connect(sa) 3500s # Break explicitly a reference cycle 3500s exceptions.clear() 3500s return sock 3500s 3500s except error as exc: 3500s if not all_errors: 3500s exceptions.clear() # raise only the last error 3500s exceptions.append(exc) 3500s if sock is not None: 3500s sock.close() 3500s 3500s if len(exceptions): 3500s try: 3500s if not all_errors: 3500s > raise exceptions[0] 3500s 3500s /usr/lib/python3.12/socket.py:853: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s address = ('localhost', 3306), timeout = 10, source_address = None 3500s 3500s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 3500s source_address=None, *, all_errors=False): 3500s """Connect to *address* and return the socket object. 3500s 3500s Convenience function. Connect to *address* (a 2-tuple ``(host, 3500s port)``) and return the socket object. Passing the optional 3500s *timeout* parameter will set the timeout on the socket instance 3500s before attempting to connect. If no *timeout* is supplied, the 3500s global default timeout setting returned by :func:`getdefaulttimeout` 3500s is used. If *source_address* is set it must be a tuple of (host, port) 3500s for the socket to bind as a source address before making the connection. 3500s A host of '' or port 0 tells the OS to use the default. When a connection 3500s cannot be created, raises the last error if *all_errors* is False, 3500s and an ExceptionGroup of all errors if *all_errors* is True. 3500s """ 3500s 3500s host, port = address 3500s exceptions = [] 3500s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 3500s af, socktype, proto, canonname, sa = res 3500s sock = None 3500s try: 3500s sock = socket(af, socktype, proto) 3500s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 3500s sock.settimeout(timeout) 3500s if source_address: 3500s sock.bind(source_address) 3500s > sock.connect(sa) 3500s E ConnectionRefusedError: [Errno 111] Connection refused 3500s 3500s /usr/lib/python3.12/socket.py:838: ConnectionRefusedError 3500s 3500s During handling of the above exception, another exception occurred: 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __init__( 3500s self, 3500s *, 3500s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 3500s password="", 3500s host=None, 3500s database=None, 3500s unix_socket=None, 3500s port=0, 3500s charset="", 3500s collation=None, 3500s sql_mode=None, 3500s read_default_file=None, 3500s conv=None, 3500s use_unicode=True, 3500s client_flag=0, 3500s cursorclass=Cursor, 3500s init_command=None, 3500s connect_timeout=10, 3500s read_default_group=None, 3500s autocommit=False, 3500s local_infile=False, 3500s max_allowed_packet=16 * 1024 * 1024, 3500s defer_connect=False, 3500s auth_plugin_map=None, 3500s read_timeout=None, 3500s write_timeout=None, 3500s bind_address=None, 3500s binary_prefix=False, 3500s program_name=None, 3500s server_public_key=None, 3500s ssl=None, 3500s ssl_ca=None, 3500s ssl_cert=None, 3500s ssl_disabled=None, 3500s ssl_key=None, 3500s ssl_key_password=None, 3500s ssl_verify_cert=None, 3500s ssl_verify_identity=None, 3500s compress=None, # not supported 3500s named_pipe=None, # not supported 3500s passwd=None, # deprecated 3500s db=None, # deprecated 3500s ): 3500s if db is not None and database is None: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 3500s database = db 3500s if passwd is not None and not password: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn( 3500s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 3500s # ) 3500s password = passwd 3500s 3500s if compress or named_pipe: 3500s raise NotImplementedError( 3500s "compress and named_pipe arguments are not supported" 3500s ) 3500s 3500s self._local_infile = bool(local_infile) 3500s if self._local_infile: 3500s client_flag |= CLIENT.LOCAL_FILES 3500s 3500s if read_default_group and not read_default_file: 3500s if sys.platform.startswith("win"): 3500s read_default_file = "c:\\my.ini" 3500s else: 3500s read_default_file = "/etc/my.cnf" 3500s 3500s if read_default_file: 3500s if not read_default_group: 3500s read_default_group = "client" 3500s 3500s cfg = Parser() 3500s cfg.read(os.path.expanduser(read_default_file)) 3500s 3500s def _config(key, arg): 3500s if arg: 3500s return arg 3500s try: 3500s return cfg.get(read_default_group, key) 3500s except Exception: 3500s return arg 3500s 3500s user = _config("user", user) 3500s password = _config("password", password) 3500s host = _config("host", host) 3500s database = _config("database", database) 3500s unix_socket = _config("socket", unix_socket) 3500s port = int(_config("port", port)) 3500s bind_address = _config("bind-address", bind_address) 3500s charset = _config("default-character-set", charset) 3500s if not ssl: 3500s ssl = {} 3500s if isinstance(ssl, dict): 3500s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 3500s value = _config("ssl-" + key, ssl.get(key)) 3500s if value: 3500s ssl[key] = value 3500s 3500s self.ssl = False 3500s if not ssl_disabled: 3500s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 3500s ssl = { 3500s "ca": ssl_ca, 3500s "check_hostname": bool(ssl_verify_identity), 3500s "verify_mode": ssl_verify_cert 3500s if ssl_verify_cert is not None 3500s else False, 3500s } 3500s if ssl_cert is not None: 3500s ssl["cert"] = ssl_cert 3500s if ssl_key is not None: 3500s ssl["key"] = ssl_key 3500s if ssl_key_password is not None: 3500s ssl["password"] = ssl_key_password 3500s if ssl: 3500s if not SSL_ENABLED: 3500s raise NotImplementedError("ssl module not found") 3500s self.ssl = True 3500s client_flag |= CLIENT.SSL 3500s self.ctx = self._create_ssl_ctx(ssl) 3500s 3500s self.host = host or "localhost" 3500s self.port = port or 3306 3500s if type(self.port) is not int: 3500s raise ValueError("port should be of type int") 3500s self.user = user or DEFAULT_USER 3500s self.password = password or b"" 3500s if isinstance(self.password, str): 3500s self.password = self.password.encode("latin1") 3500s self.db = database 3500s self.unix_socket = unix_socket 3500s self.bind_address = bind_address 3500s if not (0 < connect_timeout <= 31536000): 3500s raise ValueError("connect_timeout should be >0 and <=31536000") 3500s self.connect_timeout = connect_timeout or None 3500s if read_timeout is not None and read_timeout <= 0: 3500s raise ValueError("read_timeout should be > 0") 3500s self._read_timeout = read_timeout 3500s if write_timeout is not None and write_timeout <= 0: 3500s raise ValueError("write_timeout should be > 0") 3500s self._write_timeout = write_timeout 3500s 3500s self.charset = charset or DEFAULT_CHARSET 3500s self.collation = collation 3500s self.use_unicode = use_unicode 3500s 3500s self.encoding = charset_by_name(self.charset).encoding 3500s 3500s client_flag |= CLIENT.CAPABILITIES 3500s if self.db: 3500s client_flag |= CLIENT.CONNECT_WITH_DB 3500s 3500s self.client_flag = client_flag 3500s 3500s self.cursorclass = cursorclass 3500s 3500s self._result = None 3500s self._affected_rows = 0 3500s self.host_info = "Not connected" 3500s 3500s # specified autocommit mode. None means use server default. 3500s self.autocommit_mode = autocommit 3500s 3500s if conv is None: 3500s conv = converters.conversions 3500s 3500s # Need for MySQLdb compatibility. 3500s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 3500s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 3500s self.sql_mode = sql_mode 3500s self.init_command = init_command 3500s self.max_allowed_packet = max_allowed_packet 3500s self._auth_plugin_map = auth_plugin_map or {} 3500s self._binary_prefix = binary_prefix 3500s self.server_public_key = server_public_key 3500s 3500s self._connect_attrs = { 3500s "_client_name": "pymysql", 3500s "_client_version": VERSION_STRING, 3500s "_pid": str(os.getpid()), 3500s } 3500s 3500s if program_name: 3500s self._connect_attrs["program_name"] = program_name 3500s 3500s if defer_connect: 3500s self._sock = None 3500s else: 3500s > self.connect() 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = , sock = None 3500s 3500s def connect(self, sock=None): 3500s self._closed = False 3500s try: 3500s if sock is None: 3500s if self.unix_socket: 3500s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3500s sock.settimeout(self.connect_timeout) 3500s sock.connect(self.unix_socket) 3500s self.host_info = "Localhost via UNIX socket" 3500s self._secure = True 3500s if DEBUG: 3500s print("connected using unix_socket") 3500s else: 3500s kwargs = {} 3500s if self.bind_address is not None: 3500s kwargs["source_address"] = (self.bind_address, 0) 3500s while True: 3500s try: 3500s sock = socket.create_connection( 3500s (self.host, self.port), self.connect_timeout, **kwargs 3500s ) 3500s break 3500s except OSError as e: 3500s if e.errno == errno.EINTR: 3500s continue 3500s raise 3500s self.host_info = "socket %s:%d" % (self.host, self.port) 3500s if DEBUG: 3500s print("connected using socket") 3500s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 3500s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 3500s sock.settimeout(None) 3500s 3500s self._sock = sock 3500s self._rfile = sock.makefile("rb") 3500s self._next_seq_id = 0 3500s 3500s self._get_server_information() 3500s self._request_authentication() 3500s 3500s # Send "SET NAMES" query on init for: 3500s # - Ensure charaset (and collation) is set to the server. 3500s # - collation_id in handshake packet may be ignored. 3500s # - If collation is not specified, we don't know what is server's 3500s # default collation for the charset. For example, default collation 3500s # of utf8mb4 is: 3500s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 3500s # - MySQL 8.0: utf8mb4_0900_ai_ci 3500s # 3500s # Reference: 3500s # - https://github.com/PyMySQL/PyMySQL/issues/1092 3500s # - https://github.com/wagtail/wagtail/issues/9477 3500s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 3500s self.set_character_set(self.charset, self.collation) 3500s 3500s if self.sql_mode is not None: 3500s c = self.cursor() 3500s c.execute("SET sql_mode=%s", (self.sql_mode,)) 3500s c.close() 3500s 3500s if self.init_command is not None: 3500s c = self.cursor() 3500s c.execute(self.init_command) 3500s c.close() 3500s 3500s if self.autocommit_mode is not None: 3500s self.autocommit(self.autocommit_mode) 3500s except BaseException as e: 3500s self._rfile = None 3500s if sock is not None: 3500s try: 3500s sock.close() 3500s except: # noqa 3500s pass 3500s 3500s if isinstance(e, (OSError, IOError)): 3500s exc = err.OperationalError( 3500s CR.CR_CONN_HOST_ERROR, 3500s f"Can't connect to MySQL server on {self.host!r} ({e})", 3500s ) 3500s # Keep original exception and traceback to investigate error. 3500s exc.original_exception = e 3500s exc.traceback = traceback.format_exc() 3500s if DEBUG: 3500s print(exc.traceback) 3500s > raise exc 3500s E pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 3500s 3500s The above exception was the direct cause of the following exception: 3500s 3500s conn = 'mysql_pymysql_engine' 3500s request = > 3500s 3500s @pytest.mark.db 3500s @pytest.mark.parametrize("conn", all_connectable_iris) 3500s def test_read_iris_query(conn, request): 3500s > conn = request.getfixturevalue(conn) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:630: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'mysql_pymysql_engine' 3500s 3500s def getfixturevalue(self, argname: str) -> Any: 3500s """Dynamically run a named fixture function. 3500s 3500s Declaring fixtures via function argument is recommended where possible. 3500s But if you can only decide whether to use another fixture at test 3500s setup time, you may use this function to retrieve it inside a fixture 3500s or test function body. 3500s 3500s This method can be used during the test setup phase or the test run 3500s phase, but during the test teardown phase a fixture's value may not 3500s be available. 3500s 3500s :param argname: 3500s The fixture name. 3500s :raises pytest.FixtureLookupError: 3500s If the given fixture could not be found. 3500s """ 3500s > fixturedef = self._get_active_fixturedef(argname) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:585: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'mysql_pymysql_engine' 3500s 3500s def _get_active_fixturedef( 3500s self, argname: str 3500s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3500s try: 3500s return self._fixture_defs[argname] 3500s except KeyError: 3500s try: 3500s fixturedef = self._getnextfixturedef(argname) 3500s except FixtureLookupError: 3500s if argname == "request": 3500s cached_result = (self, [0], None) 3500s return PseudoFixtureDef(cached_result, Scope.Function) 3500s raise 3500s # Remove indent to prevent the python3 exception 3500s # from leaking into the call. 3500s > self._compute_fixture_value(fixturedef) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s fixturedef = 3500s 3500s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3500s """Create a SubRequest based on "self" and call the execute method 3500s of the given FixtureDef object. 3500s 3500s This will force the FixtureDef object to throw away any previous 3500s results and compute a new fixture value, which will be stored into 3500s the FixtureDef object itself. 3500s """ 3500s # prepare a subrequest object before calling fixture function 3500s # (latter managed by fixturedef) 3500s argname = fixturedef.argname 3500s funcitem = self._pyfuncitem 3500s scope = fixturedef._scope 3500s try: 3500s callspec = funcitem.callspec 3500s except AttributeError: 3500s callspec = None 3500s if callspec is not None and argname in callspec.params: 3500s param = callspec.params[argname] 3500s param_index = callspec.indices[argname] 3500s # If a parametrize invocation set a scope it will override 3500s # the static scope defined with the fixture function. 3500s with suppress(KeyError): 3500s scope = callspec._arg2scope[argname] 3500s else: 3500s param = NOTSET 3500s param_index = 0 3500s has_params = fixturedef.params is not None 3500s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3500s if has_params and fixtures_not_supported: 3500s msg = ( 3500s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3500s "Node id: {nodeid}\n" 3500s "Function type: {typename}" 3500s ).format( 3500s name=funcitem.name, 3500s nodeid=funcitem.nodeid, 3500s typename=type(funcitem).__name__, 3500s ) 3500s fail(msg, pytrace=False) 3500s if has_params: 3500s frame = inspect.stack()[3] 3500s frameinfo = inspect.getframeinfo(frame[0]) 3500s source_path = absolutepath(frameinfo.filename) 3500s source_lineno = frameinfo.lineno 3500s try: 3500s source_path_str = str( 3500s source_path.relative_to(funcitem.config.rootpath) 3500s ) 3500s except ValueError: 3500s source_path_str = str(source_path) 3500s msg = ( 3500s "The requested fixture has no parameter defined for test:\n" 3500s " {}\n\n" 3500s "Requested fixture '{}' defined in:\n{}" 3500s "\n\nRequested here:\n{}:{}".format( 3500s funcitem.nodeid, 3500s fixturedef.argname, 3500s getlocation(fixturedef.func, funcitem.config.rootpath), 3500s source_path_str, 3500s source_lineno, 3500s ) 3500s ) 3500s fail(msg, pytrace=False) 3500s 3500s subrequest = SubRequest( 3500s self, scope, param, param_index, fixturedef, _ispytest=True 3500s ) 3500s 3500s # Check if a higher-level scoped fixture accesses a lower level one. 3500s subrequest._check_scope(argname, self._scope, scope) 3500s try: 3500s # Call the fixture function. 3500s > fixturedef.execute(request=subrequest) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s request = > 3500s 3500s def execute(self, request: SubRequest) -> FixtureValue: 3500s # Get required arguments and register our own finish() 3500s # with their finalization. 3500s for argname in self.argnames: 3500s fixturedef = request._get_active_fixturedef(argname) 3500s if argname != "request": 3500s # PseudoFixtureDef is only for "request". 3500s assert isinstance(fixturedef, FixtureDef) 3500s fixturedef.addfinalizer(functools.partial(self.finish, request=request)) 3500s 3500s my_cache_key = self.cache_key(request) 3500s if self.cached_result is not None: 3500s # note: comparison with `==` can fail (or be expensive) for e.g. 3500s # numpy arrays (#6497). 3500s cache_key = self.cached_result[1] 3500s if my_cache_key is cache_key: 3500s if self.cached_result[2] is not None: 3500s _, val, tb = self.cached_result[2] 3500s raise val.with_traceback(tb) 3500s else: 3500s result = self.cached_result[0] 3500s return result 3500s # We have a previous but differently parametrized fixture instance 3500s # so we need to tear it down before creating a new one. 3500s self.finish(request) 3500s assert self.cached_result is None 3500s 3500s ihook = request.node.ihook 3500s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1069: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s kwargs = {'fixturedef': , 'request': >} 3500s firstresult = True 3500s 3500s def __call__(self, **kwargs: object) -> Any: 3500s """Call the hook. 3500s 3500s Only accepts keyword arguments, which should match the hook 3500s specification. 3500s 3500s Returns the result(s) of calling all registered plugins, see 3500s :ref:`calling`. 3500s """ 3500s assert ( 3500s not self.is_historic() 3500s ), "Cannot directly call a historic hook - use call_historic instead." 3500s self._verify_all_args_are_provided(kwargs) 3500s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 3500s # Copy because plugins may register other plugins during iteration (#438). 3500s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = <_pytest.config.PytestPluginManager object at 0xe9079168> 3500s hook_name = 'pytest_fixture_setup' 3500s methods = [>] 3500s kwargs = {'fixturedef': , 'request': >} 3500s firstresult = True 3500s 3500s def _hookexec( 3500s self, 3500s hook_name: str, 3500s methods: Sequence[HookImpl], 3500s kwargs: Mapping[str, object], 3500s firstresult: bool, 3500s ) -> object | list[object]: 3500s # called from all hookcaller instances. 3500s # enable_tracing will set its own wrapping function at self._inner_hookexec 3500s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturedef = 3500s request = > 3500s 3500s def pytest_fixture_setup( 3500s fixturedef: FixtureDef[FixtureValue], request: SubRequest 3500s ) -> FixtureValue: 3500s """Execution of fixture setup.""" 3500s kwargs = {} 3500s for argname in fixturedef.argnames: 3500s fixdef = request._get_active_fixturedef(argname) 3500s assert fixdef.cached_result is not None 3500s result, arg_cache_key, exc = fixdef.cached_result 3500s request._check_scope(argname, request._scope, fixdef._scope) 3500s kwargs[argname] = result 3500s 3500s fixturefunc = resolve_fixture_function(fixturedef, request) 3500s my_cache_key = fixturedef.cache_key(request) 3500s try: 3500s > result = call_fixture_func(fixturefunc, request, kwargs) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1123: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturefunc = 3500s request = > 3500s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv'), 'types_data': [{'B... False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}]} 3500s 3500s def call_fixture_func( 3500s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 3500s ) -> FixtureValue: 3500s if is_generator(fixturefunc): 3500s fixturefunc = cast( 3500s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 3500s ) 3500s generator = fixturefunc(**kwargs) 3500s try: 3500s > fixture_result = next(generator) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:895: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s iris_path = PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv') 3500s types_data = [{'BoolCol': False, 'BoolColWithNull': False, 'DateCol': '2000-01-03 00:00:00', 'DateColWithTz': '2000-01-01 00:00:00-...: False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}] 3500s 3500s @pytest.fixture 3500s def mysql_pymysql_engine(iris_path, types_data): 3500s sqlalchemy = pytest.importorskip("sqlalchemy") 3500s pymysql = pytest.importorskip("pymysql") 3500s engine = sqlalchemy.create_engine( 3500s "mysql+pymysql://root@localhost:3306/pandas", 3500s connect_args={"client_flag": pymysql.constants.CLIENT.MULTI_STATEMENTS}, 3500s poolclass=sqlalchemy.pool.NullPool, 3500s ) 3500s > insp = sqlalchemy.inspect(engine) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:409: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s subject = Engine(mysql+pymysql://root@localhost:3306/pandas), raiseerr = True 3500s 3500s def inspect(subject, raiseerr=True): 3500s """Produce an inspection object for the given target. 3500s 3500s The returned value in some cases may be the 3500s same object as the one given, such as if a 3500s :class:`_orm.Mapper` object is passed. In other 3500s cases, it will be an instance of the registered 3500s inspection type for the given object, such as 3500s if an :class:`_engine.Engine` is passed, an 3500s :class:`_reflection.Inspector` object is returned. 3500s 3500s :param subject: the subject to be inspected. 3500s :param raiseerr: When ``True``, if the given subject 3500s does not 3500s correspond to a known SQLAlchemy inspected type, 3500s :class:`sqlalchemy.exc.NoInspectionAvailable` 3500s is raised. If ``False``, ``None`` is returned. 3500s 3500s """ 3500s type_ = type(subject) 3500s for cls in type_.__mro__: 3500s if cls in _registrars: 3500s reg = _registrars[cls] 3500s if reg is True: 3500s return subject 3500s > ret = reg(subject) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:64: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s @inspection._inspects(Engine) 3500s def _engine_insp(bind): 3500s > return Inspector._construct(Inspector._init_engine, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:182: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s init = 3500s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s @classmethod 3500s def _construct(cls, init, bind): 3500s 3500s if hasattr(bind.dialect, "inspector"): 3500s cls = bind.dialect.inspector 3500s 3500s self = cls.__new__(cls) 3500s > init(self, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:117: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s def _init_engine(self, engine): 3500s self.bind = self.engine = engine 3500s > engine.connect().close() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:128: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s close_with_result = False 3500s 3500s def connect(self, close_with_result=False): 3500s """Return a new :class:`_engine.Connection` object. 3500s 3500s The :class:`_engine.Connection` object is a facade that uses a DBAPI 3500s connection internally in order to communicate with the database. This 3500s connection is procured from the connection-holding :class:`_pool.Pool` 3500s referenced by this :class:`_engine.Engine`. When the 3500s :meth:`_engine.Connection.close` method of the 3500s :class:`_engine.Connection` object 3500s is called, the underlying DBAPI connection is then returned to the 3500s connection pool, where it may be used again in a subsequent call to 3500s :meth:`_engine.Engine.connect`. 3500s 3500s """ 3500s 3500s > return self._connection_cls(self, close_with_result=close_with_result) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3325: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 3500s close_with_result = False, _branch_from = None, _execution_options = None 3500s _dispatch = None, _has_events = None, _allow_revalidate = True 3500s 3500s def __init__( 3500s self, 3500s engine, 3500s connection=None, 3500s close_with_result=False, 3500s _branch_from=None, 3500s _execution_options=None, 3500s _dispatch=None, 3500s _has_events=None, 3500s _allow_revalidate=True, 3500s ): 3500s """Construct a new Connection.""" 3500s self.engine = engine 3500s self.dialect = engine.dialect 3500s self.__branch_from = _branch_from 3500s 3500s if _branch_from: 3500s # branching is always "from" the root connection 3500s assert _branch_from.__branch_from is None 3500s self._dbapi_connection = connection 3500s self._execution_options = _execution_options 3500s self._echo = _branch_from._echo 3500s self.should_close_with_result = False 3500s self.dispatch = _dispatch 3500s self._has_events = _branch_from._has_events 3500s else: 3500s self._dbapi_connection = ( 3500s connection 3500s if connection is not None 3500s > else engine.raw_connection() 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:96: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas), _connection = None 3500s 3500s def raw_connection(self, _connection=None): 3500s """Return a "raw" DBAPI connection from the connection pool. 3500s 3500s The returned object is a proxied version of the DBAPI 3500s connection object used by the underlying driver in use. 3500s The object will have all the same behavior as the real DBAPI 3500s connection, except that its ``close()`` method will result in the 3500s connection being returned to the pool, rather than being closed 3500s for real. 3500s 3500s This method provides direct DBAPI connection access for 3500s special situations when the API provided by 3500s :class:`_engine.Connection` 3500s is not needed. When a :class:`_engine.Connection` object is already 3500s present, the DBAPI connection is available using 3500s the :attr:`_engine.Connection.connection` accessor. 3500s 3500s .. seealso:: 3500s 3500s :ref:`dbapi_connections` 3500s 3500s """ 3500s > return self._wrap_pool_connect(self.pool.connect, _connection) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3404: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s return fn() 3500s except dialect.dbapi.Error as e: 3500s if connection is None: 3500s > Connection._handle_dbapi_exception_noconnection( 3500s e, dialect, self 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3374: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s e = OperationalError(2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3500s dialect = 3500s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s @classmethod 3500s def _handle_dbapi_exception_noconnection(cls, e, dialect, engine): 3500s exc_info = sys.exc_info() 3500s 3500s is_disconnect = dialect.is_disconnect(e, None, None) 3500s 3500s should_wrap = isinstance(e, dialect.dbapi.Error) 3500s 3500s if should_wrap: 3500s sqlalchemy_exception = exc.DBAPIError.instance( 3500s None, 3500s None, 3500s e, 3500s dialect.dbapi.Error, 3500s hide_parameters=engine.hide_parameters, 3500s connection_invalidated=is_disconnect, 3500s ) 3500s else: 3500s sqlalchemy_exception = None 3500s 3500s newraise = None 3500s 3500s if engine._has_events: 3500s ctx = ExceptionContextImpl( 3500s e, 3500s sqlalchemy_exception, 3500s engine, 3500s None, 3500s None, 3500s None, 3500s None, 3500s None, 3500s is_disconnect, 3500s True, 3500s ) 3500s for fn in engine.dispatch.handle_error: 3500s try: 3500s # handler returns an exception; 3500s # call next handler in a chain 3500s per_fn = fn(ctx) 3500s if per_fn is not None: 3500s ctx.chained_exception = newraise = per_fn 3500s except Exception as _raised: 3500s # handler raises an exception - stop processing 3500s newraise = _raised 3500s break 3500s 3500s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 3500s sqlalchemy_exception.connection_invalidated = ( 3500s is_disconnect 3500s ) = ctx.is_disconnect 3500s 3500s if newraise: 3500s util.raise_(newraise, with_traceback=exc_info[2], from_=e) 3500s elif should_wrap: 3500s > util.raise_( 3500s sqlalchemy_exception, with_traceback=exc_info[2], from_=e 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2208: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __init__( 3500s self, 3500s *, 3500s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 3500s password="", 3500s host=None, 3500s database=None, 3500s unix_socket=None, 3500s port=0, 3500s charset="", 3500s collation=None, 3500s sql_mode=None, 3500s read_default_file=None, 3500s conv=None, 3500s use_unicode=True, 3500s client_flag=0, 3500s cursorclass=Cursor, 3500s init_command=None, 3500s connect_timeout=10, 3500s read_default_group=None, 3500s autocommit=False, 3500s local_infile=False, 3500s max_allowed_packet=16 * 1024 * 1024, 3500s defer_connect=False, 3500s auth_plugin_map=None, 3500s read_timeout=None, 3500s write_timeout=None, 3500s bind_address=None, 3500s binary_prefix=False, 3500s program_name=None, 3500s server_public_key=None, 3500s ssl=None, 3500s ssl_ca=None, 3500s ssl_cert=None, 3500s ssl_disabled=None, 3500s ssl_key=None, 3500s ssl_key_password=None, 3500s ssl_verify_cert=None, 3500s ssl_verify_identity=None, 3500s compress=None, # not supported 3500s named_pipe=None, # not supported 3500s passwd=None, # deprecated 3500s db=None, # deprecated 3500s ): 3500s if db is not None and database is None: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 3500s database = db 3500s if passwd is not None and not password: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn( 3500s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 3500s # ) 3500s password = passwd 3500s 3500s if compress or named_pipe: 3500s raise NotImplementedError( 3500s "compress and named_pipe arguments are not supported" 3500s ) 3500s 3500s self._local_infile = bool(local_infile) 3500s if self._local_infile: 3500s client_flag |= CLIENT.LOCAL_FILES 3500s 3500s if read_default_group and not read_default_file: 3500s if sys.platform.startswith("win"): 3500s read_default_file = "c:\\my.ini" 3500s else: 3500s read_default_file = "/etc/my.cnf" 3500s 3500s if read_default_file: 3500s if not read_default_group: 3500s read_default_group = "client" 3500s 3500s cfg = Parser() 3500s cfg.read(os.path.expanduser(read_default_file)) 3500s 3500s def _config(key, arg): 3500s if arg: 3500s return arg 3500s try: 3500s return cfg.get(read_default_group, key) 3500s except Exception: 3500s return arg 3500s 3500s user = _config("user", user) 3500s password = _config("password", password) 3500s host = _config("host", host) 3500s database = _config("database", database) 3500s unix_socket = _config("socket", unix_socket) 3500s port = int(_config("port", port)) 3500s bind_address = _config("bind-address", bind_address) 3500s charset = _config("default-character-set", charset) 3500s if not ssl: 3500s ssl = {} 3500s if isinstance(ssl, dict): 3500s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 3500s value = _config("ssl-" + key, ssl.get(key)) 3500s if value: 3500s ssl[key] = value 3500s 3500s self.ssl = False 3500s if not ssl_disabled: 3500s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 3500s ssl = { 3500s "ca": ssl_ca, 3500s "check_hostname": bool(ssl_verify_identity), 3500s "verify_mode": ssl_verify_cert 3500s if ssl_verify_cert is not None 3500s else False, 3500s } 3500s if ssl_cert is not None: 3500s ssl["cert"] = ssl_cert 3500s if ssl_key is not None: 3500s ssl["key"] = ssl_key 3500s if ssl_key_password is not None: 3500s ssl["password"] = ssl_key_password 3500s if ssl: 3500s if not SSL_ENABLED: 3500s raise NotImplementedError("ssl module not found") 3500s self.ssl = True 3500s client_flag |= CLIENT.SSL 3500s self.ctx = self._create_ssl_ctx(ssl) 3500s 3500s self.host = host or "localhost" 3500s self.port = port or 3306 3500s if type(self.port) is not int: 3500s raise ValueError("port should be of type int") 3500s self.user = user or DEFAULT_USER 3500s self.password = password or b"" 3500s if isinstance(self.password, str): 3500s self.password = self.password.encode("latin1") 3500s self.db = database 3500s self.unix_socket = unix_socket 3500s self.bind_address = bind_address 3500s if not (0 < connect_timeout <= 31536000): 3500s raise ValueError("connect_timeout should be >0 and <=31536000") 3500s self.connect_timeout = connect_timeout or None 3500s if read_timeout is not None and read_timeout <= 0: 3500s raise ValueError("read_timeout should be > 0") 3500s self._read_timeout = read_timeout 3500s if write_timeout is not None and write_timeout <= 0: 3500s raise ValueError("write_timeout should be > 0") 3500s self._write_timeout = write_timeout 3500s 3500s self.charset = charset or DEFAULT_CHARSET 3500s self.collation = collation 3500s self.use_unicode = use_unicode 3500s 3500s self.encoding = charset_by_name(self.charset).encoding 3500s 3500s client_flag |= CLIENT.CAPABILITIES 3500s if self.db: 3500s client_flag |= CLIENT.CONNECT_WITH_DB 3500s 3500s self.client_flag = client_flag 3500s 3500s self.cursorclass = cursorclass 3500s 3500s self._result = None 3500s self._affected_rows = 0 3500s self.host_info = "Not connected" 3500s 3500s # specified autocommit mode. None means use server default. 3500s self.autocommit_mode = autocommit 3500s 3500s if conv is None: 3500s conv = converters.conversions 3500s 3500s # Need for MySQLdb compatibility. 3500s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 3500s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 3500s self.sql_mode = sql_mode 3500s self.init_command = init_command 3500s self.max_allowed_packet = max_allowed_packet 3500s self._auth_plugin_map = auth_plugin_map or {} 3500s self._binary_prefix = binary_prefix 3500s self.server_public_key = server_public_key 3500s 3500s self._connect_attrs = { 3500s "_client_name": "pymysql", 3500s "_client_version": VERSION_STRING, 3500s "_pid": str(os.getpid()), 3500s } 3500s 3500s if program_name: 3500s self._connect_attrs["program_name"] = program_name 3500s 3500s if defer_connect: 3500s self._sock = None 3500s else: 3500s > self.connect() 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = , sock = None 3500s 3500s def connect(self, sock=None): 3500s self._closed = False 3500s try: 3500s if sock is None: 3500s if self.unix_socket: 3500s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3500s sock.settimeout(self.connect_timeout) 3500s sock.connect(self.unix_socket) 3500s self.host_info = "Localhost via UNIX socket" 3500s self._secure = True 3500s if DEBUG: 3500s print("connected using unix_socket") 3500s else: 3500s kwargs = {} 3500s if self.bind_address is not None: 3500s kwargs["source_address"] = (self.bind_address, 0) 3500s while True: 3500s try: 3500s sock = socket.create_connection( 3500s (self.host, self.port), self.connect_timeout, **kwargs 3500s ) 3500s break 3500s except OSError as e: 3500s if e.errno == errno.EINTR: 3500s continue 3500s raise 3500s self.host_info = "socket %s:%d" % (self.host, self.port) 3500s if DEBUG: 3500s print("connected using socket") 3500s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 3500s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 3500s sock.settimeout(None) 3500s 3500s self._sock = sock 3500s self._rfile = sock.makefile("rb") 3500s self._next_seq_id = 0 3500s 3500s self._get_server_information() 3500s self._request_authentication() 3500s 3500s # Send "SET NAMES" query on init for: 3500s # - Ensure charaset (and collation) is set to the server. 3500s # - collation_id in handshake packet may be ignored. 3500s # - If collation is not specified, we don't know what is server's 3500s # default collation for the charset. For example, default collation 3500s # of utf8mb4 is: 3500s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 3500s # - MySQL 8.0: utf8mb4_0900_ai_ci 3500s # 3500s # Reference: 3500s # - https://github.com/PyMySQL/PyMySQL/issues/1092 3500s # - https://github.com/wagtail/wagtail/issues/9477 3500s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 3500s self.set_character_set(self.charset, self.collation) 3500s 3500s if self.sql_mode is not None: 3500s c = self.cursor() 3500s c.execute("SET sql_mode=%s", (self.sql_mode,)) 3500s c.close() 3500s 3500s if self.init_command is not None: 3500s c = self.cursor() 3500s c.execute(self.init_command) 3500s c.close() 3500s 3500s if self.autocommit_mode is not None: 3500s self.autocommit(self.autocommit_mode) 3500s except BaseException as e: 3500s self._rfile = None 3500s if sock is not None: 3500s try: 3500s sock.close() 3500s except: # noqa 3500s pass 3500s 3500s if isinstance(e, (OSError, IOError)): 3500s exc = err.OperationalError( 3500s CR.CR_CONN_HOST_ERROR, 3500s f"Can't connect to MySQL server on {self.host!r} ({e})", 3500s ) 3500s # Keep original exception and traceback to investigate error. 3500s exc.original_exception = e 3500s exc.traceback = traceback.format_exc() 3500s if DEBUG: 3500s print(exc.traceback) 3500s > raise exc 3500s E sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3500s E (Background on this error at: https://sqlalche.me/e/14/e3q8) 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 3500s ___________________ test_read_iris_query[mysql_pymysql_conn] ___________________ 3500s self = , sock = None 3500s 3500s def connect(self, sock=None): 3500s self._closed = False 3500s try: 3500s if sock is None: 3500s if self.unix_socket: 3500s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3500s sock.settimeout(self.connect_timeout) 3500s sock.connect(self.unix_socket) 3500s self.host_info = "Localhost via UNIX socket" 3500s self._secure = True 3500s if DEBUG: 3500s print("connected using unix_socket") 3500s else: 3500s kwargs = {} 3500s if self.bind_address is not None: 3500s kwargs["source_address"] = (self.bind_address, 0) 3500s while True: 3500s try: 3500s > sock = socket.create_connection( 3500s (self.host, self.port), self.connect_timeout, **kwargs 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:649: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s address = ('localhost', 3306), timeout = 10, source_address = None 3500s 3500s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 3500s source_address=None, *, all_errors=False): 3500s """Connect to *address* and return the socket object. 3500s 3500s Convenience function. Connect to *address* (a 2-tuple ``(host, 3500s port)``) and return the socket object. Passing the optional 3500s *timeout* parameter will set the timeout on the socket instance 3500s before attempting to connect. If no *timeout* is supplied, the 3500s global default timeout setting returned by :func:`getdefaulttimeout` 3500s is used. If *source_address* is set it must be a tuple of (host, port) 3500s for the socket to bind as a source address before making the connection. 3500s A host of '' or port 0 tells the OS to use the default. When a connection 3500s cannot be created, raises the last error if *all_errors* is False, 3500s and an ExceptionGroup of all errors if *all_errors* is True. 3500s """ 3500s 3500s host, port = address 3500s exceptions = [] 3500s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 3500s af, socktype, proto, canonname, sa = res 3500s sock = None 3500s try: 3500s sock = socket(af, socktype, proto) 3500s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 3500s sock.settimeout(timeout) 3500s if source_address: 3500s sock.bind(source_address) 3500s sock.connect(sa) 3500s # Break explicitly a reference cycle 3500s exceptions.clear() 3500s return sock 3500s 3500s except error as exc: 3500s if not all_errors: 3500s exceptions.clear() # raise only the last error 3500s exceptions.append(exc) 3500s if sock is not None: 3500s sock.close() 3500s 3500s if len(exceptions): 3500s try: 3500s if not all_errors: 3500s > raise exceptions[0] 3500s 3500s /usr/lib/python3.12/socket.py:853: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s address = ('localhost', 3306), timeout = 10, source_address = None 3500s 3500s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 3500s source_address=None, *, all_errors=False): 3500s """Connect to *address* and return the socket object. 3500s 3500s Convenience function. Connect to *address* (a 2-tuple ``(host, 3500s port)``) and return the socket object. Passing the optional 3500s *timeout* parameter will set the timeout on the socket instance 3500s before attempting to connect. If no *timeout* is supplied, the 3500s global default timeout setting returned by :func:`getdefaulttimeout` 3500s is used. If *source_address* is set it must be a tuple of (host, port) 3500s for the socket to bind as a source address before making the connection. 3500s A host of '' or port 0 tells the OS to use the default. When a connection 3500s cannot be created, raises the last error if *all_errors* is False, 3500s and an ExceptionGroup of all errors if *all_errors* is True. 3500s """ 3500s 3500s host, port = address 3500s exceptions = [] 3500s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 3500s af, socktype, proto, canonname, sa = res 3500s sock = None 3500s try: 3500s sock = socket(af, socktype, proto) 3500s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 3500s sock.settimeout(timeout) 3500s if source_address: 3500s sock.bind(source_address) 3500s > sock.connect(sa) 3500s E ConnectionRefusedError: [Errno 111] Connection refused 3500s 3500s /usr/lib/python3.12/socket.py:838: ConnectionRefusedError 3500s 3500s During handling of the above exception, another exception occurred: 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __init__( 3500s self, 3500s *, 3500s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 3500s password="", 3500s host=None, 3500s database=None, 3500s unix_socket=None, 3500s port=0, 3500s charset="", 3500s collation=None, 3500s sql_mode=None, 3500s read_default_file=None, 3500s conv=None, 3500s use_unicode=True, 3500s client_flag=0, 3500s cursorclass=Cursor, 3500s init_command=None, 3500s connect_timeout=10, 3500s read_default_group=None, 3500s autocommit=False, 3500s local_infile=False, 3500s max_allowed_packet=16 * 1024 * 1024, 3500s defer_connect=False, 3500s auth_plugin_map=None, 3500s read_timeout=None, 3500s write_timeout=None, 3500s bind_address=None, 3500s binary_prefix=False, 3500s program_name=None, 3500s server_public_key=None, 3500s ssl=None, 3500s ssl_ca=None, 3500s ssl_cert=None, 3500s ssl_disabled=None, 3500s ssl_key=None, 3500s ssl_key_password=None, 3500s ssl_verify_cert=None, 3500s ssl_verify_identity=None, 3500s compress=None, # not supported 3500s named_pipe=None, # not supported 3500s passwd=None, # deprecated 3500s db=None, # deprecated 3500s ): 3500s if db is not None and database is None: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 3500s database = db 3500s if passwd is not None and not password: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn( 3500s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 3500s # ) 3500s password = passwd 3500s 3500s if compress or named_pipe: 3500s raise NotImplementedError( 3500s "compress and named_pipe arguments are not supported" 3500s ) 3500s 3500s self._local_infile = bool(local_infile) 3500s if self._local_infile: 3500s client_flag |= CLIENT.LOCAL_FILES 3500s 3500s if read_default_group and not read_default_file: 3500s if sys.platform.startswith("win"): 3500s read_default_file = "c:\\my.ini" 3500s else: 3500s read_default_file = "/etc/my.cnf" 3500s 3500s if read_default_file: 3500s if not read_default_group: 3500s read_default_group = "client" 3500s 3500s cfg = Parser() 3500s cfg.read(os.path.expanduser(read_default_file)) 3500s 3500s def _config(key, arg): 3500s if arg: 3500s return arg 3500s try: 3500s return cfg.get(read_default_group, key) 3500s except Exception: 3500s return arg 3500s 3500s user = _config("user", user) 3500s password = _config("password", password) 3500s host = _config("host", host) 3500s database = _config("database", database) 3500s unix_socket = _config("socket", unix_socket) 3500s port = int(_config("port", port)) 3500s bind_address = _config("bind-address", bind_address) 3500s charset = _config("default-character-set", charset) 3500s if not ssl: 3500s ssl = {} 3500s if isinstance(ssl, dict): 3500s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 3500s value = _config("ssl-" + key, ssl.get(key)) 3500s if value: 3500s ssl[key] = value 3500s 3500s self.ssl = False 3500s if not ssl_disabled: 3500s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 3500s ssl = { 3500s "ca": ssl_ca, 3500s "check_hostname": bool(ssl_verify_identity), 3500s "verify_mode": ssl_verify_cert 3500s if ssl_verify_cert is not None 3500s else False, 3500s } 3500s if ssl_cert is not None: 3500s ssl["cert"] = ssl_cert 3500s if ssl_key is not None: 3500s ssl["key"] = ssl_key 3500s if ssl_key_password is not None: 3500s ssl["password"] = ssl_key_password 3500s if ssl: 3500s if not SSL_ENABLED: 3500s raise NotImplementedError("ssl module not found") 3500s self.ssl = True 3500s client_flag |= CLIENT.SSL 3500s self.ctx = self._create_ssl_ctx(ssl) 3500s 3500s self.host = host or "localhost" 3500s self.port = port or 3306 3500s if type(self.port) is not int: 3500s raise ValueError("port should be of type int") 3500s self.user = user or DEFAULT_USER 3500s self.password = password or b"" 3500s if isinstance(self.password, str): 3500s self.password = self.password.encode("latin1") 3500s self.db = database 3500s self.unix_socket = unix_socket 3500s self.bind_address = bind_address 3500s if not (0 < connect_timeout <= 31536000): 3500s raise ValueError("connect_timeout should be >0 and <=31536000") 3500s self.connect_timeout = connect_timeout or None 3500s if read_timeout is not None and read_timeout <= 0: 3500s raise ValueError("read_timeout should be > 0") 3500s self._read_timeout = read_timeout 3500s if write_timeout is not None and write_timeout <= 0: 3500s raise ValueError("write_timeout should be > 0") 3500s self._write_timeout = write_timeout 3500s 3500s self.charset = charset or DEFAULT_CHARSET 3500s self.collation = collation 3500s self.use_unicode = use_unicode 3500s 3500s self.encoding = charset_by_name(self.charset).encoding 3500s 3500s client_flag |= CLIENT.CAPABILITIES 3500s if self.db: 3500s client_flag |= CLIENT.CONNECT_WITH_DB 3500s 3500s self.client_flag = client_flag 3500s 3500s self.cursorclass = cursorclass 3500s 3500s self._result = None 3500s self._affected_rows = 0 3500s self.host_info = "Not connected" 3500s 3500s # specified autocommit mode. None means use server default. 3500s self.autocommit_mode = autocommit 3500s 3500s if conv is None: 3500s conv = converters.conversions 3500s 3500s # Need for MySQLdb compatibility. 3500s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 3500s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 3500s self.sql_mode = sql_mode 3500s self.init_command = init_command 3500s self.max_allowed_packet = max_allowed_packet 3500s self._auth_plugin_map = auth_plugin_map or {} 3500s self._binary_prefix = binary_prefix 3500s self.server_public_key = server_public_key 3500s 3500s self._connect_attrs = { 3500s "_client_name": "pymysql", 3500s "_client_version": VERSION_STRING, 3500s "_pid": str(os.getpid()), 3500s } 3500s 3500s if program_name: 3500s self._connect_attrs["program_name"] = program_name 3500s 3500s if defer_connect: 3500s self._sock = None 3500s else: 3500s > self.connect() 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = , sock = None 3500s 3500s def connect(self, sock=None): 3500s self._closed = False 3500s try: 3500s if sock is None: 3500s if self.unix_socket: 3500s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3500s sock.settimeout(self.connect_timeout) 3500s sock.connect(self.unix_socket) 3500s self.host_info = "Localhost via UNIX socket" 3500s self._secure = True 3500s if DEBUG: 3500s print("connected using unix_socket") 3500s else: 3500s kwargs = {} 3500s if self.bind_address is not None: 3500s kwargs["source_address"] = (self.bind_address, 0) 3500s while True: 3500s try: 3500s sock = socket.create_connection( 3500s (self.host, self.port), self.connect_timeout, **kwargs 3500s ) 3500s break 3500s except OSError as e: 3500s if e.errno == errno.EINTR: 3500s continue 3500s raise 3500s self.host_info = "socket %s:%d" % (self.host, self.port) 3500s if DEBUG: 3500s print("connected using socket") 3500s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 3500s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 3500s sock.settimeout(None) 3500s 3500s self._sock = sock 3500s self._rfile = sock.makefile("rb") 3500s self._next_seq_id = 0 3500s 3500s self._get_server_information() 3500s self._request_authentication() 3500s 3500s # Send "SET NAMES" query on init for: 3500s # - Ensure charaset (and collation) is set to the server. 3500s # - collation_id in handshake packet may be ignored. 3500s # - If collation is not specified, we don't know what is server's 3500s # default collation for the charset. For example, default collation 3500s # of utf8mb4 is: 3500s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 3500s # - MySQL 8.0: utf8mb4_0900_ai_ci 3500s # 3500s # Reference: 3500s # - https://github.com/PyMySQL/PyMySQL/issues/1092 3500s # - https://github.com/wagtail/wagtail/issues/9477 3500s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 3500s self.set_character_set(self.charset, self.collation) 3500s 3500s if self.sql_mode is not None: 3500s c = self.cursor() 3500s c.execute("SET sql_mode=%s", (self.sql_mode,)) 3500s c.close() 3500s 3500s if self.init_command is not None: 3500s c = self.cursor() 3500s c.execute(self.init_command) 3500s c.close() 3500s 3500s if self.autocommit_mode is not None: 3500s self.autocommit(self.autocommit_mode) 3500s except BaseException as e: 3500s self._rfile = None 3500s if sock is not None: 3500s try: 3500s sock.close() 3500s except: # noqa 3500s pass 3500s 3500s if isinstance(e, (OSError, IOError)): 3500s exc = err.OperationalError( 3500s CR.CR_CONN_HOST_ERROR, 3500s f"Can't connect to MySQL server on {self.host!r} ({e})", 3500s ) 3500s # Keep original exception and traceback to investigate error. 3500s exc.original_exception = e 3500s exc.traceback = traceback.format_exc() 3500s if DEBUG: 3500s print(exc.traceback) 3500s > raise exc 3500s E pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 3500s 3500s The above exception was the direct cause of the following exception: 3500s 3500s conn = 'mysql_pymysql_conn' 3500s request = > 3500s 3500s @pytest.mark.db 3500s @pytest.mark.parametrize("conn", all_connectable_iris) 3500s def test_read_iris_query(conn, request): 3500s > conn = request.getfixturevalue(conn) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:630: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'mysql_pymysql_conn' 3500s 3500s def getfixturevalue(self, argname: str) -> Any: 3500s """Dynamically run a named fixture function. 3500s 3500s Declaring fixtures via function argument is recommended where possible. 3500s But if you can only decide whether to use another fixture at test 3500s setup time, you may use this function to retrieve it inside a fixture 3500s or test function body. 3500s 3500s This method can be used during the test setup phase or the test run 3500s phase, but during the test teardown phase a fixture's value may not 3500s be available. 3500s 3500s :param argname: 3500s The fixture name. 3500s :raises pytest.FixtureLookupError: 3500s If the given fixture could not be found. 3500s """ 3500s > fixturedef = self._get_active_fixturedef(argname) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:585: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'mysql_pymysql_conn' 3500s 3500s def _get_active_fixturedef( 3500s self, argname: str 3500s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3500s try: 3500s return self._fixture_defs[argname] 3500s except KeyError: 3500s try: 3500s fixturedef = self._getnextfixturedef(argname) 3500s except FixtureLookupError: 3500s if argname == "request": 3500s cached_result = (self, [0], None) 3500s return PseudoFixtureDef(cached_result, Scope.Function) 3500s raise 3500s # Remove indent to prevent the python3 exception 3500s # from leaking into the call. 3500s > self._compute_fixture_value(fixturedef) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s fixturedef = 3500s 3500s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3500s """Create a SubRequest based on "self" and call the execute method 3500s of the given FixtureDef object. 3500s 3500s This will force the FixtureDef object to throw away any previous 3500s results and compute a new fixture value, which will be stored into 3500s the FixtureDef object itself. 3500s """ 3500s # prepare a subrequest object before calling fixture function 3500s # (latter managed by fixturedef) 3500s argname = fixturedef.argname 3500s funcitem = self._pyfuncitem 3500s scope = fixturedef._scope 3500s try: 3500s callspec = funcitem.callspec 3500s except AttributeError: 3500s callspec = None 3500s if callspec is not None and argname in callspec.params: 3500s param = callspec.params[argname] 3500s param_index = callspec.indices[argname] 3500s # If a parametrize invocation set a scope it will override 3500s # the static scope defined with the fixture function. 3500s with suppress(KeyError): 3500s scope = callspec._arg2scope[argname] 3500s else: 3500s param = NOTSET 3500s param_index = 0 3500s has_params = fixturedef.params is not None 3500s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3500s if has_params and fixtures_not_supported: 3500s msg = ( 3500s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3500s "Node id: {nodeid}\n" 3500s "Function type: {typename}" 3500s ).format( 3500s name=funcitem.name, 3500s nodeid=funcitem.nodeid, 3500s typename=type(funcitem).__name__, 3500s ) 3500s fail(msg, pytrace=False) 3500s if has_params: 3500s frame = inspect.stack()[3] 3500s frameinfo = inspect.getframeinfo(frame[0]) 3500s source_path = absolutepath(frameinfo.filename) 3500s source_lineno = frameinfo.lineno 3500s try: 3500s source_path_str = str( 3500s source_path.relative_to(funcitem.config.rootpath) 3500s ) 3500s except ValueError: 3500s source_path_str = str(source_path) 3500s msg = ( 3500s "The requested fixture has no parameter defined for test:\n" 3500s " {}\n\n" 3500s "Requested fixture '{}' defined in:\n{}" 3500s "\n\nRequested here:\n{}:{}".format( 3500s funcitem.nodeid, 3500s fixturedef.argname, 3500s getlocation(fixturedef.func, funcitem.config.rootpath), 3500s source_path_str, 3500s source_lineno, 3500s ) 3500s ) 3500s fail(msg, pytrace=False) 3500s 3500s subrequest = SubRequest( 3500s self, scope, param, param_index, fixturedef, _ispytest=True 3500s ) 3500s 3500s # Check if a higher-level scoped fixture accesses a lower level one. 3500s subrequest._check_scope(argname, self._scope, scope) 3500s try: 3500s # Call the fixture function. 3500s > fixturedef.execute(request=subrequest) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s request = > 3500s 3500s def execute(self, request: SubRequest) -> FixtureValue: 3500s # Get required arguments and register our own finish() 3500s # with their finalization. 3500s for argname in self.argnames: 3500s > fixturedef = request._get_active_fixturedef(argname) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1045: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'mysql_pymysql_engine' 3500s 3500s def _get_active_fixturedef( 3500s self, argname: str 3500s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3500s try: 3500s return self._fixture_defs[argname] 3500s except KeyError: 3500s try: 3500s fixturedef = self._getnextfixturedef(argname) 3500s except FixtureLookupError: 3500s if argname == "request": 3500s cached_result = (self, [0], None) 3500s return PseudoFixtureDef(cached_result, Scope.Function) 3500s raise 3500s # Remove indent to prevent the python3 exception 3500s # from leaking into the call. 3500s > self._compute_fixture_value(fixturedef) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s fixturedef = 3500s 3500s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3500s """Create a SubRequest based on "self" and call the execute method 3500s of the given FixtureDef object. 3500s 3500s This will force the FixtureDef object to throw away any previous 3500s results and compute a new fixture value, which will be stored into 3500s the FixtureDef object itself. 3500s """ 3500s # prepare a subrequest object before calling fixture function 3500s # (latter managed by fixturedef) 3500s argname = fixturedef.argname 3500s funcitem = self._pyfuncitem 3500s scope = fixturedef._scope 3500s try: 3500s callspec = funcitem.callspec 3500s except AttributeError: 3500s callspec = None 3500s if callspec is not None and argname in callspec.params: 3500s param = callspec.params[argname] 3500s param_index = callspec.indices[argname] 3500s # If a parametrize invocation set a scope it will override 3500s # the static scope defined with the fixture function. 3500s with suppress(KeyError): 3500s scope = callspec._arg2scope[argname] 3500s else: 3500s param = NOTSET 3500s param_index = 0 3500s has_params = fixturedef.params is not None 3500s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3500s if has_params and fixtures_not_supported: 3500s msg = ( 3500s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3500s "Node id: {nodeid}\n" 3500s "Function type: {typename}" 3500s ).format( 3500s name=funcitem.name, 3500s nodeid=funcitem.nodeid, 3500s typename=type(funcitem).__name__, 3500s ) 3500s fail(msg, pytrace=False) 3500s if has_params: 3500s frame = inspect.stack()[3] 3500s frameinfo = inspect.getframeinfo(frame[0]) 3500s source_path = absolutepath(frameinfo.filename) 3500s source_lineno = frameinfo.lineno 3500s try: 3500s source_path_str = str( 3500s source_path.relative_to(funcitem.config.rootpath) 3500s ) 3500s except ValueError: 3500s source_path_str = str(source_path) 3500s msg = ( 3500s "The requested fixture has no parameter defined for test:\n" 3500s " {}\n\n" 3500s "Requested fixture '{}' defined in:\n{}" 3500s "\n\nRequested here:\n{}:{}".format( 3500s funcitem.nodeid, 3500s fixturedef.argname, 3500s getlocation(fixturedef.func, funcitem.config.rootpath), 3500s source_path_str, 3500s source_lineno, 3500s ) 3500s ) 3500s fail(msg, pytrace=False) 3500s 3500s subrequest = SubRequest( 3500s self, scope, param, param_index, fixturedef, _ispytest=True 3500s ) 3500s 3500s # Check if a higher-level scoped fixture accesses a lower level one. 3500s subrequest._check_scope(argname, self._scope, scope) 3500s try: 3500s # Call the fixture function. 3500s > fixturedef.execute(request=subrequest) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s request = > 3500s 3500s def execute(self, request: SubRequest) -> FixtureValue: 3500s # Get required arguments and register our own finish() 3500s # with their finalization. 3500s for argname in self.argnames: 3500s fixturedef = request._get_active_fixturedef(argname) 3500s if argname != "request": 3500s # PseudoFixtureDef is only for "request". 3500s assert isinstance(fixturedef, FixtureDef) 3500s fixturedef.addfinalizer(functools.partial(self.finish, request=request)) 3500s 3500s my_cache_key = self.cache_key(request) 3500s if self.cached_result is not None: 3500s # note: comparison with `==` can fail (or be expensive) for e.g. 3500s # numpy arrays (#6497). 3500s cache_key = self.cached_result[1] 3500s if my_cache_key is cache_key: 3500s if self.cached_result[2] is not None: 3500s _, val, tb = self.cached_result[2] 3500s raise val.with_traceback(tb) 3500s else: 3500s result = self.cached_result[0] 3500s return result 3500s # We have a previous but differently parametrized fixture instance 3500s # so we need to tear it down before creating a new one. 3500s self.finish(request) 3500s assert self.cached_result is None 3500s 3500s ihook = request.node.ihook 3500s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1069: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s kwargs = {'fixturedef': , 'request': >} 3500s firstresult = True 3500s 3500s def __call__(self, **kwargs: object) -> Any: 3500s """Call the hook. 3500s 3500s Only accepts keyword arguments, which should match the hook 3500s specification. 3500s 3500s Returns the result(s) of calling all registered plugins, see 3500s :ref:`calling`. 3500s """ 3500s assert ( 3500s not self.is_historic() 3500s ), "Cannot directly call a historic hook - use call_historic instead." 3500s self._verify_all_args_are_provided(kwargs) 3500s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 3500s # Copy because plugins may register other plugins during iteration (#438). 3500s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = <_pytest.config.PytestPluginManager object at 0xe9079168> 3500s hook_name = 'pytest_fixture_setup' 3500s methods = [>] 3500s kwargs = {'fixturedef': , 'request': >} 3500s firstresult = True 3500s 3500s def _hookexec( 3500s self, 3500s hook_name: str, 3500s methods: Sequence[HookImpl], 3500s kwargs: Mapping[str, object], 3500s firstresult: bool, 3500s ) -> object | list[object]: 3500s # called from all hookcaller instances. 3500s # enable_tracing will set its own wrapping function at self._inner_hookexec 3500s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturedef = 3500s request = > 3500s 3500s def pytest_fixture_setup( 3500s fixturedef: FixtureDef[FixtureValue], request: SubRequest 3500s ) -> FixtureValue: 3500s """Execution of fixture setup.""" 3500s kwargs = {} 3500s for argname in fixturedef.argnames: 3500s fixdef = request._get_active_fixturedef(argname) 3500s assert fixdef.cached_result is not None 3500s result, arg_cache_key, exc = fixdef.cached_result 3500s request._check_scope(argname, request._scope, fixdef._scope) 3500s kwargs[argname] = result 3500s 3500s fixturefunc = resolve_fixture_function(fixturedef, request) 3500s my_cache_key = fixturedef.cache_key(request) 3500s try: 3500s > result = call_fixture_func(fixturefunc, request, kwargs) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1123: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturefunc = 3500s request = > 3500s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv'), 'types_data': [{'B... False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}]} 3500s 3500s def call_fixture_func( 3500s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 3500s ) -> FixtureValue: 3500s if is_generator(fixturefunc): 3500s fixturefunc = cast( 3500s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 3500s ) 3500s generator = fixturefunc(**kwargs) 3500s try: 3500s > fixture_result = next(generator) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:895: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s iris_path = PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv') 3500s types_data = [{'BoolCol': False, 'BoolColWithNull': False, 'DateCol': '2000-01-03 00:00:00', 'DateColWithTz': '2000-01-01 00:00:00-...: False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}] 3500s 3500s @pytest.fixture 3500s def mysql_pymysql_engine(iris_path, types_data): 3500s sqlalchemy = pytest.importorskip("sqlalchemy") 3500s pymysql = pytest.importorskip("pymysql") 3500s engine = sqlalchemy.create_engine( 3500s "mysql+pymysql://root@localhost:3306/pandas", 3500s connect_args={"client_flag": pymysql.constants.CLIENT.MULTI_STATEMENTS}, 3500s poolclass=sqlalchemy.pool.NullPool, 3500s ) 3500s > insp = sqlalchemy.inspect(engine) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:409: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s subject = Engine(mysql+pymysql://root@localhost:3306/pandas), raiseerr = True 3500s 3500s def inspect(subject, raiseerr=True): 3500s """Produce an inspection object for the given target. 3500s 3500s The returned value in some cases may be the 3500s same object as the one given, such as if a 3500s :class:`_orm.Mapper` object is passed. In other 3500s cases, it will be an instance of the registered 3500s inspection type for the given object, such as 3500s if an :class:`_engine.Engine` is passed, an 3500s :class:`_reflection.Inspector` object is returned. 3500s 3500s :param subject: the subject to be inspected. 3500s :param raiseerr: When ``True``, if the given subject 3500s does not 3500s correspond to a known SQLAlchemy inspected type, 3500s :class:`sqlalchemy.exc.NoInspectionAvailable` 3500s is raised. If ``False``, ``None`` is returned. 3500s 3500s """ 3500s type_ = type(subject) 3500s for cls in type_.__mro__: 3500s if cls in _registrars: 3500s reg = _registrars[cls] 3500s if reg is True: 3500s return subject 3500s > ret = reg(subject) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:64: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s @inspection._inspects(Engine) 3500s def _engine_insp(bind): 3500s > return Inspector._construct(Inspector._init_engine, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:182: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s init = 3500s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s @classmethod 3500s def _construct(cls, init, bind): 3500s 3500s if hasattr(bind.dialect, "inspector"): 3500s cls = bind.dialect.inspector 3500s 3500s self = cls.__new__(cls) 3500s > init(self, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:117: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s def _init_engine(self, engine): 3500s self.bind = self.engine = engine 3500s > engine.connect().close() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:128: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s close_with_result = False 3500s 3500s def connect(self, close_with_result=False): 3500s """Return a new :class:`_engine.Connection` object. 3500s 3500s The :class:`_engine.Connection` object is a facade that uses a DBAPI 3500s connection internally in order to communicate with the database. This 3500s connection is procured from the connection-holding :class:`_pool.Pool` 3500s referenced by this :class:`_engine.Engine`. When the 3500s :meth:`_engine.Connection.close` method of the 3500s :class:`_engine.Connection` object 3500s is called, the underlying DBAPI connection is then returned to the 3500s connection pool, where it may be used again in a subsequent call to 3500s :meth:`_engine.Engine.connect`. 3500s 3500s """ 3500s 3500s > return self._connection_cls(self, close_with_result=close_with_result) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3325: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 3500s close_with_result = False, _branch_from = None, _execution_options = None 3500s _dispatch = None, _has_events = None, _allow_revalidate = True 3500s 3500s def __init__( 3500s self, 3500s engine, 3500s connection=None, 3500s close_with_result=False, 3500s _branch_from=None, 3500s _execution_options=None, 3500s _dispatch=None, 3500s _has_events=None, 3500s _allow_revalidate=True, 3500s ): 3500s """Construct a new Connection.""" 3500s self.engine = engine 3500s self.dialect = engine.dialect 3500s self.__branch_from = _branch_from 3500s 3500s if _branch_from: 3500s # branching is always "from" the root connection 3500s assert _branch_from.__branch_from is None 3500s self._dbapi_connection = connection 3500s self._execution_options = _execution_options 3500s self._echo = _branch_from._echo 3500s self.should_close_with_result = False 3500s self.dispatch = _dispatch 3500s self._has_events = _branch_from._has_events 3500s else: 3500s self._dbapi_connection = ( 3500s connection 3500s if connection is not None 3500s > else engine.raw_connection() 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:96: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas), _connection = None 3500s 3500s def raw_connection(self, _connection=None): 3500s """Return a "raw" DBAPI connection from the connection pool. 3500s 3500s The returned object is a proxied version of the DBAPI 3500s connection object used by the underlying driver in use. 3500s The object will have all the same behavior as the real DBAPI 3500s connection, except that its ``close()`` method will result in the 3500s connection being returned to the pool, rather than being closed 3500s for real. 3500s 3500s This method provides direct DBAPI connection access for 3500s special situations when the API provided by 3500s :class:`_engine.Connection` 3500s is not needed. When a :class:`_engine.Connection` object is already 3500s present, the DBAPI connection is available using 3500s the :attr:`_engine.Connection.connection` accessor. 3500s 3500s .. seealso:: 3500s 3500s :ref:`dbapi_connections` 3500s 3500s """ 3500s > return self._wrap_pool_connect(self.pool.connect, _connection) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3404: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s return fn() 3500s except dialect.dbapi.Error as e: 3500s if connection is None: 3500s > Connection._handle_dbapi_exception_noconnection( 3500s e, dialect, self 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3374: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s e = OperationalError(2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3500s dialect = 3500s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s @classmethod 3500s def _handle_dbapi_exception_noconnection(cls, e, dialect, engine): 3500s exc_info = sys.exc_info() 3500s 3500s is_disconnect = dialect.is_disconnect(e, None, None) 3500s 3500s should_wrap = isinstance(e, dialect.dbapi.Error) 3500s 3500s if should_wrap: 3500s sqlalchemy_exception = exc.DBAPIError.instance( 3500s None, 3500s None, 3500s e, 3500s dialect.dbapi.Error, 3500s hide_parameters=engine.hide_parameters, 3500s connection_invalidated=is_disconnect, 3500s ) 3500s else: 3500s sqlalchemy_exception = None 3500s 3500s newraise = None 3500s 3500s if engine._has_events: 3500s ctx = ExceptionContextImpl( 3500s e, 3500s sqlalchemy_exception, 3500s engine, 3500s None, 3500s None, 3500s None, 3500s None, 3500s None, 3500s is_disconnect, 3500s True, 3500s ) 3500s for fn in engine.dispatch.handle_error: 3500s try: 3500s # handler returns an exception; 3500s # call next handler in a chain 3500s per_fn = fn(ctx) 3500s if per_fn is not None: 3500s ctx.chained_exception = newraise = per_fn 3500s except Exception as _raised: 3500s # handler raises an exception - stop processing 3500s newraise = _raised 3500s break 3500s 3500s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 3500s sqlalchemy_exception.connection_invalidated = ( 3500s is_disconnect 3500s ) = ctx.is_disconnect 3500s 3500s if newraise: 3500s util.raise_(newraise, with_traceback=exc_info[2], from_=e) 3500s elif should_wrap: 3500s > util.raise_( 3500s sqlalchemy_exception, with_traceback=exc_info[2], from_=e 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2208: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __init__( 3500s self, 3500s *, 3500s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 3500s password="", 3500s host=None, 3500s database=None, 3500s unix_socket=None, 3500s port=0, 3500s charset="", 3500s collation=None, 3500s sql_mode=None, 3500s read_default_file=None, 3500s conv=None, 3500s use_unicode=True, 3500s client_flag=0, 3500s cursorclass=Cursor, 3500s init_command=None, 3500s connect_timeout=10, 3500s read_default_group=None, 3500s autocommit=False, 3500s local_infile=False, 3500s max_allowed_packet=16 * 1024 * 1024, 3500s defer_connect=False, 3500s auth_plugin_map=None, 3500s read_timeout=None, 3500s write_timeout=None, 3500s bind_address=None, 3500s binary_prefix=False, 3500s program_name=None, 3500s server_public_key=None, 3500s ssl=None, 3500s ssl_ca=None, 3500s ssl_cert=None, 3500s ssl_disabled=None, 3500s ssl_key=None, 3500s ssl_key_password=None, 3500s ssl_verify_cert=None, 3500s ssl_verify_identity=None, 3500s compress=None, # not supported 3500s named_pipe=None, # not supported 3500s passwd=None, # deprecated 3500s db=None, # deprecated 3500s ): 3500s if db is not None and database is None: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 3500s database = db 3500s if passwd is not None and not password: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn( 3500s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 3500s # ) 3500s password = passwd 3500s 3500s if compress or named_pipe: 3500s raise NotImplementedError( 3500s "compress and named_pipe arguments are not supported" 3500s ) 3500s 3500s self._local_infile = bool(local_infile) 3500s if self._local_infile: 3500s client_flag |= CLIENT.LOCAL_FILES 3500s 3500s if read_default_group and not read_default_file: 3500s if sys.platform.startswith("win"): 3500s read_default_file = "c:\\my.ini" 3500s else: 3500s read_default_file = "/etc/my.cnf" 3500s 3500s if read_default_file: 3500s if not read_default_group: 3500s read_default_group = "client" 3500s 3500s cfg = Parser() 3500s cfg.read(os.path.expanduser(read_default_file)) 3500s 3500s def _config(key, arg): 3500s if arg: 3500s return arg 3500s try: 3500s return cfg.get(read_default_group, key) 3500s except Exception: 3500s return arg 3500s 3500s user = _config("user", user) 3500s password = _config("password", password) 3500s host = _config("host", host) 3500s database = _config("database", database) 3500s unix_socket = _config("socket", unix_socket) 3500s port = int(_config("port", port)) 3500s bind_address = _config("bind-address", bind_address) 3500s charset = _config("default-character-set", charset) 3500s if not ssl: 3500s ssl = {} 3500s if isinstance(ssl, dict): 3500s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 3500s value = _config("ssl-" + key, ssl.get(key)) 3500s if value: 3500s ssl[key] = value 3500s 3500s self.ssl = False 3500s if not ssl_disabled: 3500s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 3500s ssl = { 3500s "ca": ssl_ca, 3500s "check_hostname": bool(ssl_verify_identity), 3500s "verify_mode": ssl_verify_cert 3500s if ssl_verify_cert is not None 3500s else False, 3500s } 3500s if ssl_cert is not None: 3500s ssl["cert"] = ssl_cert 3500s if ssl_key is not None: 3500s ssl["key"] = ssl_key 3500s if ssl_key_password is not None: 3500s ssl["password"] = ssl_key_password 3500s if ssl: 3500s if not SSL_ENABLED: 3500s raise NotImplementedError("ssl module not found") 3500s self.ssl = True 3500s client_flag |= CLIENT.SSL 3500s self.ctx = self._create_ssl_ctx(ssl) 3500s 3500s self.host = host or "localhost" 3500s self.port = port or 3306 3500s if type(self.port) is not int: 3500s raise ValueError("port should be of type int") 3500s self.user = user or DEFAULT_USER 3500s self.password = password or b"" 3500s if isinstance(self.password, str): 3500s self.password = self.password.encode("latin1") 3500s self.db = database 3500s self.unix_socket = unix_socket 3500s self.bind_address = bind_address 3500s if not (0 < connect_timeout <= 31536000): 3500s raise ValueError("connect_timeout should be >0 and <=31536000") 3500s self.connect_timeout = connect_timeout or None 3500s if read_timeout is not None and read_timeout <= 0: 3500s raise ValueError("read_timeout should be > 0") 3500s self._read_timeout = read_timeout 3500s if write_timeout is not None and write_timeout <= 0: 3500s raise ValueError("write_timeout should be > 0") 3500s self._write_timeout = write_timeout 3500s 3500s self.charset = charset or DEFAULT_CHARSET 3500s self.collation = collation 3500s self.use_unicode = use_unicode 3500s 3500s self.encoding = charset_by_name(self.charset).encoding 3500s 3500s client_flag |= CLIENT.CAPABILITIES 3500s if self.db: 3500s client_flag |= CLIENT.CONNECT_WITH_DB 3500s 3500s self.client_flag = client_flag 3500s 3500s self.cursorclass = cursorclass 3500s 3500s self._result = None 3500s self._affected_rows = 0 3500s self.host_info = "Not connected" 3500s 3500s # specified autocommit mode. None means use server default. 3500s self.autocommit_mode = autocommit 3500s 3500s if conv is None: 3500s conv = converters.conversions 3500s 3500s # Need for MySQLdb compatibility. 3500s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 3500s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 3500s self.sql_mode = sql_mode 3500s self.init_command = init_command 3500s self.max_allowed_packet = max_allowed_packet 3500s self._auth_plugin_map = auth_plugin_map or {} 3500s self._binary_prefix = binary_prefix 3500s self.server_public_key = server_public_key 3500s 3500s self._connect_attrs = { 3500s "_client_name": "pymysql", 3500s "_client_version": VERSION_STRING, 3500s "_pid": str(os.getpid()), 3500s } 3500s 3500s if program_name: 3500s self._connect_attrs["program_name"] = program_name 3500s 3500s if defer_connect: 3500s self._sock = None 3500s else: 3500s > self.connect() 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = , sock = None 3500s 3500s def connect(self, sock=None): 3500s self._closed = False 3500s try: 3500s if sock is None: 3500s if self.unix_socket: 3500s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3500s sock.settimeout(self.connect_timeout) 3500s sock.connect(self.unix_socket) 3500s self.host_info = "Localhost via UNIX socket" 3500s self._secure = True 3500s if DEBUG: 3500s print("connected using unix_socket") 3500s else: 3500s kwargs = {} 3500s if self.bind_address is not None: 3500s kwargs["source_address"] = (self.bind_address, 0) 3500s while True: 3500s try: 3500s sock = socket.create_connection( 3500s (self.host, self.port), self.connect_timeout, **kwargs 3500s ) 3500s break 3500s except OSError as e: 3500s if e.errno == errno.EINTR: 3500s continue 3500s raise 3500s self.host_info = "socket %s:%d" % (self.host, self.port) 3500s if DEBUG: 3500s print("connected using socket") 3500s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 3500s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 3500s sock.settimeout(None) 3500s 3500s self._sock = sock 3500s self._rfile = sock.makefile("rb") 3500s self._next_seq_id = 0 3500s 3500s self._get_server_information() 3500s self._request_authentication() 3500s 3500s # Send "SET NAMES" query on init for: 3500s # - Ensure charaset (and collation) is set to the server. 3500s # - collation_id in handshake packet may be ignored. 3500s # - If collation is not specified, we don't know what is server's 3500s # default collation for the charset. For example, default collation 3500s # of utf8mb4 is: 3500s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 3500s # - MySQL 8.0: utf8mb4_0900_ai_ci 3500s # 3500s # Reference: 3500s # - https://github.com/PyMySQL/PyMySQL/issues/1092 3500s # - https://github.com/wagtail/wagtail/issues/9477 3500s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 3500s self.set_character_set(self.charset, self.collation) 3500s 3500s if self.sql_mode is not None: 3500s c = self.cursor() 3500s c.execute("SET sql_mode=%s", (self.sql_mode,)) 3500s c.close() 3500s 3500s if self.init_command is not None: 3500s c = self.cursor() 3500s c.execute(self.init_command) 3500s c.close() 3500s 3500s if self.autocommit_mode is not None: 3500s self.autocommit(self.autocommit_mode) 3500s except BaseException as e: 3500s self._rfile = None 3500s if sock is not None: 3500s try: 3500s sock.close() 3500s except: # noqa 3500s pass 3500s 3500s if isinstance(e, (OSError, IOError)): 3500s exc = err.OperationalError( 3500s CR.CR_CONN_HOST_ERROR, 3500s f"Can't connect to MySQL server on {self.host!r} ({e})", 3500s ) 3500s # Keep original exception and traceback to investigate error. 3500s exc.original_exception = e 3500s exc.traceback = traceback.format_exc() 3500s if DEBUG: 3500s print(exc.traceback) 3500s > raise exc 3500s E sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3500s E (Background on this error at: https://sqlalche.me/e/14/e3q8) 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 3500s _______________ test_read_iris_query[postgresql_psycopg2_engine] _______________ 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s dsn = 'host=localhost user=postgres password=postgres port=5432 dbname=pandas' 3500s connection_factory = None, cursor_factory = None 3500s kwargs = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s kwasync = {} 3500s 3500s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 3500s """ 3500s Create a new database connection. 3500s 3500s The connection parameters can be specified as a string: 3500s 3500s conn = psycopg2.connect("dbname=test user=postgres password=secret") 3500s 3500s or using a set of keyword arguments: 3500s 3500s conn = psycopg2.connect(database="test", user="postgres", password="secret") 3500s 3500s Or as a mix of both. The basic connection parameters are: 3500s 3500s - *dbname*: the database name 3500s - *database*: the database name (only as keyword argument) 3500s - *user*: user name used to authenticate 3500s - *password*: password used to authenticate 3500s - *host*: database host address (defaults to UNIX socket if not provided) 3500s - *port*: connection port number (defaults to 5432 if not provided) 3500s 3500s Using the *connection_factory* parameter a different class or connections 3500s factory can be specified. It should be a callable object taking a dsn 3500s argument. 3500s 3500s Using the *cursor_factory* parameter, a new default cursor factory will be 3500s used by cursor(). 3500s 3500s Using *async*=True an asynchronous connection will be created. *async_* is 3500s a valid alias (for Python versions where ``async`` is a keyword). 3500s 3500s Any other keyword parameter will be passed to the underlying client 3500s library: the list of supported parameters depends on the library version. 3500s 3500s """ 3500s kwasync = {} 3500s if 'async' in kwargs: 3500s kwasync['async'] = kwargs.pop('async') 3500s if 'async_' in kwargs: 3500s kwasync['async_'] = kwargs.pop('async_') 3500s 3500s dsn = _ext.make_dsn(dsn, **kwargs) 3500s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 3500s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 3500s E Is the server running on that host and accepting TCP/IP connections? 3500s 3500s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 3500s 3500s The above exception was the direct cause of the following exception: 3500s 3500s conn = 'postgresql_psycopg2_engine' 3500s request = > 3500s 3500s @pytest.mark.db 3500s @pytest.mark.parametrize("conn", all_connectable_iris) 3500s def test_read_iris_query(conn, request): 3500s > conn = request.getfixturevalue(conn) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:630: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'postgresql_psycopg2_engine' 3500s 3500s def getfixturevalue(self, argname: str) -> Any: 3500s """Dynamically run a named fixture function. 3500s 3500s Declaring fixtures via function argument is recommended where possible. 3500s But if you can only decide whether to use another fixture at test 3500s setup time, you may use this function to retrieve it inside a fixture 3500s or test function body. 3500s 3500s This method can be used during the test setup phase or the test run 3500s phase, but during the test teardown phase a fixture's value may not 3500s be available. 3500s 3500s :param argname: 3500s The fixture name. 3500s :raises pytest.FixtureLookupError: 3500s If the given fixture could not be found. 3500s """ 3500s > fixturedef = self._get_active_fixturedef(argname) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:585: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'postgresql_psycopg2_engine' 3500s 3500s def _get_active_fixturedef( 3500s self, argname: str 3500s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3500s try: 3500s return self._fixture_defs[argname] 3500s except KeyError: 3500s try: 3500s fixturedef = self._getnextfixturedef(argname) 3500s except FixtureLookupError: 3500s if argname == "request": 3500s cached_result = (self, [0], None) 3500s return PseudoFixtureDef(cached_result, Scope.Function) 3500s raise 3500s # Remove indent to prevent the python3 exception 3500s # from leaking into the call. 3500s > self._compute_fixture_value(fixturedef) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s fixturedef = 3500s 3500s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3500s """Create a SubRequest based on "self" and call the execute method 3500s of the given FixtureDef object. 3500s 3500s This will force the FixtureDef object to throw away any previous 3500s results and compute a new fixture value, which will be stored into 3500s the FixtureDef object itself. 3500s """ 3500s # prepare a subrequest object before calling fixture function 3500s # (latter managed by fixturedef) 3500s argname = fixturedef.argname 3500s funcitem = self._pyfuncitem 3500s scope = fixturedef._scope 3500s try: 3500s callspec = funcitem.callspec 3500s except AttributeError: 3500s callspec = None 3500s if callspec is not None and argname in callspec.params: 3500s param = callspec.params[argname] 3500s param_index = callspec.indices[argname] 3500s # If a parametrize invocation set a scope it will override 3500s # the static scope defined with the fixture function. 3500s with suppress(KeyError): 3500s scope = callspec._arg2scope[argname] 3500s else: 3500s param = NOTSET 3500s param_index = 0 3500s has_params = fixturedef.params is not None 3500s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3500s if has_params and fixtures_not_supported: 3500s msg = ( 3500s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3500s "Node id: {nodeid}\n" 3500s "Function type: {typename}" 3500s ).format( 3500s name=funcitem.name, 3500s nodeid=funcitem.nodeid, 3500s typename=type(funcitem).__name__, 3500s ) 3500s fail(msg, pytrace=False) 3500s if has_params: 3500s frame = inspect.stack()[3] 3500s frameinfo = inspect.getframeinfo(frame[0]) 3500s source_path = absolutepath(frameinfo.filename) 3500s source_lineno = frameinfo.lineno 3500s try: 3500s source_path_str = str( 3500s source_path.relative_to(funcitem.config.rootpath) 3500s ) 3500s except ValueError: 3500s source_path_str = str(source_path) 3500s msg = ( 3500s "The requested fixture has no parameter defined for test:\n" 3500s " {}\n\n" 3500s "Requested fixture '{}' defined in:\n{}" 3500s "\n\nRequested here:\n{}:{}".format( 3500s funcitem.nodeid, 3500s fixturedef.argname, 3500s getlocation(fixturedef.func, funcitem.config.rootpath), 3500s source_path_str, 3500s source_lineno, 3500s ) 3500s ) 3500s fail(msg, pytrace=False) 3500s 3500s subrequest = SubRequest( 3500s self, scope, param, param_index, fixturedef, _ispytest=True 3500s ) 3500s 3500s # Check if a higher-level scoped fixture accesses a lower level one. 3500s subrequest._check_scope(argname, self._scope, scope) 3500s try: 3500s # Call the fixture function. 3500s > fixturedef.execute(request=subrequest) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s request = > 3500s 3500s def execute(self, request: SubRequest) -> FixtureValue: 3500s # Get required arguments and register our own finish() 3500s # with their finalization. 3500s for argname in self.argnames: 3500s fixturedef = request._get_active_fixturedef(argname) 3500s if argname != "request": 3500s # PseudoFixtureDef is only for "request". 3500s assert isinstance(fixturedef, FixtureDef) 3500s fixturedef.addfinalizer(functools.partial(self.finish, request=request)) 3500s 3500s my_cache_key = self.cache_key(request) 3500s if self.cached_result is not None: 3500s # note: comparison with `==` can fail (or be expensive) for e.g. 3500s # numpy arrays (#6497). 3500s cache_key = self.cached_result[1] 3500s if my_cache_key is cache_key: 3500s if self.cached_result[2] is not None: 3500s _, val, tb = self.cached_result[2] 3500s raise val.with_traceback(tb) 3500s else: 3500s result = self.cached_result[0] 3500s return result 3500s # We have a previous but differently parametrized fixture instance 3500s # so we need to tear it down before creating a new one. 3500s self.finish(request) 3500s assert self.cached_result is None 3500s 3500s ihook = request.node.ihook 3500s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1069: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s kwargs = {'fixturedef': , 'request': >} 3500s firstresult = True 3500s 3500s def __call__(self, **kwargs: object) -> Any: 3500s """Call the hook. 3500s 3500s Only accepts keyword arguments, which should match the hook 3500s specification. 3500s 3500s Returns the result(s) of calling all registered plugins, see 3500s :ref:`calling`. 3500s """ 3500s assert ( 3500s not self.is_historic() 3500s ), "Cannot directly call a historic hook - use call_historic instead." 3500s self._verify_all_args_are_provided(kwargs) 3500s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 3500s # Copy because plugins may register other plugins during iteration (#438). 3500s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = <_pytest.config.PytestPluginManager object at 0xe9079168> 3500s hook_name = 'pytest_fixture_setup' 3500s methods = [>] 3500s kwargs = {'fixturedef': , 'request': >} 3500s firstresult = True 3500s 3500s def _hookexec( 3500s self, 3500s hook_name: str, 3500s methods: Sequence[HookImpl], 3500s kwargs: Mapping[str, object], 3500s firstresult: bool, 3500s ) -> object | list[object]: 3500s # called from all hookcaller instances. 3500s # enable_tracing will set its own wrapping function at self._inner_hookexec 3500s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturedef = 3500s request = > 3500s 3500s def pytest_fixture_setup( 3500s fixturedef: FixtureDef[FixtureValue], request: SubRequest 3500s ) -> FixtureValue: 3500s """Execution of fixture setup.""" 3500s kwargs = {} 3500s for argname in fixturedef.argnames: 3500s fixdef = request._get_active_fixturedef(argname) 3500s assert fixdef.cached_result is not None 3500s result, arg_cache_key, exc = fixdef.cached_result 3500s request._check_scope(argname, request._scope, fixdef._scope) 3500s kwargs[argname] = result 3500s 3500s fixturefunc = resolve_fixture_function(fixturedef, request) 3500s my_cache_key = fixturedef.cache_key(request) 3500s try: 3500s > result = call_fixture_func(fixturefunc, request, kwargs) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1123: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturefunc = 3500s request = > 3500s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv'), 'types_data': [{'B... False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}]} 3500s 3500s def call_fixture_func( 3500s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 3500s ) -> FixtureValue: 3500s if is_generator(fixturefunc): 3500s fixturefunc = cast( 3500s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 3500s ) 3500s generator = fixturefunc(**kwargs) 3500s try: 3500s > fixture_result = next(generator) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:895: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s iris_path = PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv') 3500s types_data = [{'BoolCol': False, 'BoolColWithNull': False, 'DateCol': '2000-01-03 00:00:00', 'DateColWithTz': '2000-01-01 00:00:00-...: False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}] 3500s 3500s @pytest.fixture 3500s def postgresql_psycopg2_engine(iris_path, types_data): 3500s sqlalchemy = pytest.importorskip("sqlalchemy") 3500s pytest.importorskip("psycopg2") 3500s engine = sqlalchemy.create_engine( 3500s "postgresql+psycopg2://postgres:postgres@localhost:5432/pandas", 3500s poolclass=sqlalchemy.pool.NullPool, 3500s ) 3500s > insp = sqlalchemy.inspect(engine) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:438: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s subject = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s raiseerr = True 3500s 3500s def inspect(subject, raiseerr=True): 3500s """Produce an inspection object for the given target. 3500s 3500s The returned value in some cases may be the 3500s same object as the one given, such as if a 3500s :class:`_orm.Mapper` object is passed. In other 3500s cases, it will be an instance of the registered 3500s inspection type for the given object, such as 3500s if an :class:`_engine.Engine` is passed, an 3500s :class:`_reflection.Inspector` object is returned. 3500s 3500s :param subject: the subject to be inspected. 3500s :param raiseerr: When ``True``, if the given subject 3500s does not 3500s correspond to a known SQLAlchemy inspected type, 3500s :class:`sqlalchemy.exc.NoInspectionAvailable` 3500s is raised. If ``False``, ``None`` is returned. 3500s 3500s """ 3500s type_ = type(subject) 3500s for cls in type_.__mro__: 3500s if cls in _registrars: 3500s reg = _registrars[cls] 3500s if reg is True: 3500s return subject 3500s > ret = reg(subject) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:64: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s @inspection._inspects(Engine) 3500s def _engine_insp(bind): 3500s > return Inspector._construct(Inspector._init_engine, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:182: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s init = 3500s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s @classmethod 3500s def _construct(cls, init, bind): 3500s 3500s if hasattr(bind.dialect, "inspector"): 3500s cls = bind.dialect.inspector 3500s 3500s self = cls.__new__(cls) 3500s > init(self, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:117: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s def _init_engine(self, engine): 3500s self.bind = self.engine = engine 3500s > engine.connect().close() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:128: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s close_with_result = False 3500s 3500s def connect(self, close_with_result=False): 3500s """Return a new :class:`_engine.Connection` object. 3500s 3500s The :class:`_engine.Connection` object is a facade that uses a DBAPI 3500s connection internally in order to communicate with the database. This 3500s connection is procured from the connection-holding :class:`_pool.Pool` 3500s referenced by this :class:`_engine.Engine`. When the 3500s :meth:`_engine.Connection.close` method of the 3500s :class:`_engine.Connection` object 3500s is called, the underlying DBAPI connection is then returned to the 3500s connection pool, where it may be used again in a subsequent call to 3500s :meth:`_engine.Engine.connect`. 3500s 3500s """ 3500s 3500s > return self._connection_cls(self, close_with_result=close_with_result) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3325: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s connection = None, close_with_result = False, _branch_from = None 3500s _execution_options = None, _dispatch = None, _has_events = None 3500s _allow_revalidate = True 3500s 3500s def __init__( 3500s self, 3500s engine, 3500s connection=None, 3500s close_with_result=False, 3500s _branch_from=None, 3500s _execution_options=None, 3500s _dispatch=None, 3500s _has_events=None, 3500s _allow_revalidate=True, 3500s ): 3500s """Construct a new Connection.""" 3500s self.engine = engine 3500s self.dialect = engine.dialect 3500s self.__branch_from = _branch_from 3500s 3500s if _branch_from: 3500s # branching is always "from" the root connection 3500s assert _branch_from.__branch_from is None 3500s self._dbapi_connection = connection 3500s self._execution_options = _execution_options 3500s self._echo = _branch_from._echo 3500s self.should_close_with_result = False 3500s self.dispatch = _dispatch 3500s self._has_events = _branch_from._has_events 3500s else: 3500s self._dbapi_connection = ( 3500s connection 3500s if connection is not None 3500s > else engine.raw_connection() 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:96: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s _connection = None 3500s 3500s def raw_connection(self, _connection=None): 3500s """Return a "raw" DBAPI connection from the connection pool. 3500s 3500s The returned object is a proxied version of the DBAPI 3500s connection object used by the underlying driver in use. 3500s The object will have all the same behavior as the real DBAPI 3500s connection, except that its ``close()`` method will result in the 3500s connection being returned to the pool, rather than being closed 3500s for real. 3500s 3500s This method provides direct DBAPI connection access for 3500s special situations when the API provided by 3500s :class:`_engine.Connection` 3500s is not needed. When a :class:`_engine.Connection` object is already 3500s present, the DBAPI connection is available using 3500s the :attr:`_engine.Connection.connection` accessor. 3500s 3500s .. seealso:: 3500s 3500s :ref:`dbapi_connections` 3500s 3500s """ 3500s > return self._wrap_pool_connect(self.pool.connect, _connection) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3404: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s return fn() 3500s except dialect.dbapi.Error as e: 3500s if connection is None: 3500s > Connection._handle_dbapi_exception_noconnection( 3500s e, dialect, self 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3374: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s e = OperationalError('connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused\n\tIs the server running on that host and accepting TCP/IP connections?\n') 3500s dialect = 3500s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s @classmethod 3500s def _handle_dbapi_exception_noconnection(cls, e, dialect, engine): 3500s exc_info = sys.exc_info() 3500s 3500s is_disconnect = dialect.is_disconnect(e, None, None) 3500s 3500s should_wrap = isinstance(e, dialect.dbapi.Error) 3500s 3500s if should_wrap: 3500s sqlalchemy_exception = exc.DBAPIError.instance( 3500s None, 3500s None, 3500s e, 3500s dialect.dbapi.Error, 3500s hide_parameters=engine.hide_parameters, 3500s connection_invalidated=is_disconnect, 3500s ) 3500s else: 3500s sqlalchemy_exception = None 3500s 3500s newraise = None 3500s 3500s if engine._has_events: 3500s ctx = ExceptionContextImpl( 3500s e, 3500s sqlalchemy_exception, 3500s engine, 3500s None, 3500s None, 3500s None, 3500s None, 3500s None, 3500s is_disconnect, 3500s True, 3500s ) 3500s for fn in engine.dispatch.handle_error: 3500s try: 3500s # handler returns an exception; 3500s # call next handler in a chain 3500s per_fn = fn(ctx) 3500s if per_fn is not None: 3500s ctx.chained_exception = newraise = per_fn 3500s except Exception as _raised: 3500s # handler raises an exception - stop processing 3500s newraise = _raised 3500s break 3500s 3500s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 3500s sqlalchemy_exception.connection_invalidated = ( 3500s is_disconnect 3500s ) = ctx.is_disconnect 3500s 3500s if newraise: 3500s util.raise_(newraise, with_traceback=exc_info[2], from_=e) 3500s elif should_wrap: 3500s > util.raise_( 3500s sqlalchemy_exception, with_traceback=exc_info[2], from_=e 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2208: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s dsn = 'host=localhost user=postgres password=postgres port=5432 dbname=pandas' 3500s connection_factory = None, cursor_factory = None 3500s kwargs = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s kwasync = {} 3500s 3500s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 3500s """ 3500s Create a new database connection. 3500s 3500s The connection parameters can be specified as a string: 3500s 3500s conn = psycopg2.connect("dbname=test user=postgres password=secret") 3500s 3500s or using a set of keyword arguments: 3500s 3500s conn = psycopg2.connect(database="test", user="postgres", password="secret") 3500s 3500s Or as a mix of both. The basic connection parameters are: 3500s 3500s - *dbname*: the database name 3500s - *database*: the database name (only as keyword argument) 3500s - *user*: user name used to authenticate 3500s - *password*: password used to authenticate 3500s - *host*: database host address (defaults to UNIX socket if not provided) 3500s - *port*: connection port number (defaults to 5432 if not provided) 3500s 3500s Using the *connection_factory* parameter a different class or connections 3500s factory can be specified. It should be a callable object taking a dsn 3500s argument. 3500s 3500s Using the *cursor_factory* parameter, a new default cursor factory will be 3500s used by cursor(). 3500s 3500s Using *async*=True an asynchronous connection will be created. *async_* is 3500s a valid alias (for Python versions where ``async`` is a keyword). 3500s 3500s Any other keyword parameter will be passed to the underlying client 3500s library: the list of supported parameters depends on the library version. 3500s 3500s """ 3500s kwasync = {} 3500s if 'async' in kwargs: 3500s kwasync['async'] = kwargs.pop('async') 3500s if 'async_' in kwargs: 3500s kwasync['async_'] = kwargs.pop('async_') 3500s 3500s dsn = _ext.make_dsn(dsn, **kwargs) 3500s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 3500s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 3500s E Is the server running on that host and accepting TCP/IP connections? 3500s E 3500s E (Background on this error at: https://sqlalche.me/e/14/e3q8) 3500s 3500s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 3500s ________________ test_read_iris_query[postgresql_psycopg2_conn] ________________ 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s dsn = 'host=localhost user=postgres password=postgres port=5432 dbname=pandas' 3500s connection_factory = None, cursor_factory = None 3500s kwargs = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s kwasync = {} 3500s 3500s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 3500s """ 3500s Create a new database connection. 3500s 3500s The connection parameters can be specified as a string: 3500s 3500s conn = psycopg2.connect("dbname=test user=postgres password=secret") 3500s 3500s or using a set of keyword arguments: 3500s 3500s conn = psycopg2.connect(database="test", user="postgres", password="secret") 3500s 3500s Or as a mix of both. The basic connection parameters are: 3500s 3500s - *dbname*: the database name 3500s - *database*: the database name (only as keyword argument) 3500s - *user*: user name used to authenticate 3500s - *password*: password used to authenticate 3500s - *host*: database host address (defaults to UNIX socket if not provided) 3500s - *port*: connection port number (defaults to 5432 if not provided) 3500s 3500s Using the *connection_factory* parameter a different class or connections 3500s factory can be specified. It should be a callable object taking a dsn 3500s argument. 3500s 3500s Using the *cursor_factory* parameter, a new default cursor factory will be 3500s used by cursor(). 3500s 3500s Using *async*=True an asynchronous connection will be created. *async_* is 3500s a valid alias (for Python versions where ``async`` is a keyword). 3500s 3500s Any other keyword parameter will be passed to the underlying client 3500s library: the list of supported parameters depends on the library version. 3500s 3500s """ 3500s kwasync = {} 3500s if 'async' in kwargs: 3500s kwasync['async'] = kwargs.pop('async') 3500s if 'async_' in kwargs: 3500s kwasync['async_'] = kwargs.pop('async_') 3500s 3500s dsn = _ext.make_dsn(dsn, **kwargs) 3500s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 3500s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 3500s E Is the server running on that host and accepting TCP/IP connections? 3500s 3500s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 3500s 3500s The above exception was the direct cause of the following exception: 3500s 3500s conn = 'postgresql_psycopg2_conn' 3500s request = > 3500s 3500s @pytest.mark.db 3500s @pytest.mark.parametrize("conn", all_connectable_iris) 3500s def test_read_iris_query(conn, request): 3500s > conn = request.getfixturevalue(conn) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:630: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'postgresql_psycopg2_conn' 3500s 3500s def getfixturevalue(self, argname: str) -> Any: 3500s """Dynamically run a named fixture function. 3500s 3500s Declaring fixtures via function argument is recommended where possible. 3500s But if you can only decide whether to use another fixture at test 3500s setup time, you may use this function to retrieve it inside a fixture 3500s or test function body. 3500s 3500s This method can be used during the test setup phase or the test run 3500s phase, but during the test teardown phase a fixture's value may not 3500s be available. 3500s 3500s :param argname: 3500s The fixture name. 3500s :raises pytest.FixtureLookupError: 3500s If the given fixture could not be found. 3500s """ 3500s > fixturedef = self._get_active_fixturedef(argname) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:585: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'postgresql_psycopg2_conn' 3500s 3500s def _get_active_fixturedef( 3500s self, argname: str 3500s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3500s try: 3500s return self._fixture_defs[argname] 3500s except KeyError: 3500s try: 3500s fixturedef = self._getnextfixturedef(argname) 3500s except FixtureLookupError: 3500s if argname == "request": 3500s cached_result = (self, [0], None) 3500s return PseudoFixtureDef(cached_result, Scope.Function) 3500s raise 3500s # Remove indent to prevent the python3 exception 3500s # from leaking into the call. 3500s > self._compute_fixture_value(fixturedef) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s fixturedef = 3500s 3500s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3500s """Create a SubRequest based on "self" and call the execute method 3500s of the given FixtureDef object. 3500s 3500s This will force the FixtureDef object to throw away any previous 3500s results and compute a new fixture value, which will be stored into 3500s the FixtureDef object itself. 3500s """ 3500s # prepare a subrequest object before calling fixture function 3500s # (latter managed by fixturedef) 3500s argname = fixturedef.argname 3500s funcitem = self._pyfuncitem 3500s scope = fixturedef._scope 3500s try: 3500s callspec = funcitem.callspec 3500s except AttributeError: 3500s callspec = None 3500s if callspec is not None and argname in callspec.params: 3500s param = callspec.params[argname] 3500s param_index = callspec.indices[argname] 3500s # If a parametrize invocation set a scope it will override 3500s # the static scope defined with the fixture function. 3500s with suppress(KeyError): 3500s scope = callspec._arg2scope[argname] 3500s else: 3500s param = NOTSET 3500s param_index = 0 3500s has_params = fixturedef.params is not None 3500s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3500s if has_params and fixtures_not_supported: 3500s msg = ( 3500s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3500s "Node id: {nodeid}\n" 3500s "Function type: {typename}" 3500s ).format( 3500s name=funcitem.name, 3500s nodeid=funcitem.nodeid, 3500s typename=type(funcitem).__name__, 3500s ) 3500s fail(msg, pytrace=False) 3500s if has_params: 3500s frame = inspect.stack()[3] 3500s frameinfo = inspect.getframeinfo(frame[0]) 3500s source_path = absolutepath(frameinfo.filename) 3500s source_lineno = frameinfo.lineno 3500s try: 3500s source_path_str = str( 3500s source_path.relative_to(funcitem.config.rootpath) 3500s ) 3500s except ValueError: 3500s source_path_str = str(source_path) 3500s msg = ( 3500s "The requested fixture has no parameter defined for test:\n" 3500s " {}\n\n" 3500s "Requested fixture '{}' defined in:\n{}" 3500s "\n\nRequested here:\n{}:{}".format( 3500s funcitem.nodeid, 3500s fixturedef.argname, 3500s getlocation(fixturedef.func, funcitem.config.rootpath), 3500s source_path_str, 3500s source_lineno, 3500s ) 3500s ) 3500s fail(msg, pytrace=False) 3500s 3500s subrequest = SubRequest( 3500s self, scope, param, param_index, fixturedef, _ispytest=True 3500s ) 3500s 3500s # Check if a higher-level scoped fixture accesses a lower level one. 3500s subrequest._check_scope(argname, self._scope, scope) 3500s try: 3500s # Call the fixture function. 3500s > fixturedef.execute(request=subrequest) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s request = > 3500s 3500s def execute(self, request: SubRequest) -> FixtureValue: 3500s # Get required arguments and register our own finish() 3500s # with their finalization. 3500s for argname in self.argnames: 3500s > fixturedef = request._get_active_fixturedef(argname) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1045: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'postgresql_psycopg2_engine' 3500s 3500s def _get_active_fixturedef( 3500s self, argname: str 3500s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3500s try: 3500s return self._fixture_defs[argname] 3500s except KeyError: 3500s try: 3500s fixturedef = self._getnextfixturedef(argname) 3500s except FixtureLookupError: 3500s if argname == "request": 3500s cached_result = (self, [0], None) 3500s return PseudoFixtureDef(cached_result, Scope.Function) 3500s raise 3500s # Remove indent to prevent the python3 exception 3500s # from leaking into the call. 3500s > self._compute_fixture_value(fixturedef) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s fixturedef = 3500s 3500s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3500s """Create a SubRequest based on "self" and call the execute method 3500s of the given FixtureDef object. 3500s 3500s This will force the FixtureDef object to throw away any previous 3500s results and compute a new fixture value, which will be stored into 3500s the FixtureDef object itself. 3500s """ 3500s # prepare a subrequest object before calling fixture function 3500s # (latter managed by fixturedef) 3500s argname = fixturedef.argname 3500s funcitem = self._pyfuncitem 3500s scope = fixturedef._scope 3500s try: 3500s callspec = funcitem.callspec 3500s except AttributeError: 3500s callspec = None 3500s if callspec is not None and argname in callspec.params: 3500s param = callspec.params[argname] 3500s param_index = callspec.indices[argname] 3500s # If a parametrize invocation set a scope it will override 3500s # the static scope defined with the fixture function. 3500s with suppress(KeyError): 3500s scope = callspec._arg2scope[argname] 3500s else: 3500s param = NOTSET 3500s param_index = 0 3500s has_params = fixturedef.params is not None 3500s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3500s if has_params and fixtures_not_supported: 3500s msg = ( 3500s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3500s "Node id: {nodeid}\n" 3500s "Function type: {typename}" 3500s ).format( 3500s name=funcitem.name, 3500s nodeid=funcitem.nodeid, 3500s typename=type(funcitem).__name__, 3500s ) 3500s fail(msg, pytrace=False) 3500s if has_params: 3500s frame = inspect.stack()[3] 3500s frameinfo = inspect.getframeinfo(frame[0]) 3500s source_path = absolutepath(frameinfo.filename) 3500s source_lineno = frameinfo.lineno 3500s try: 3500s source_path_str = str( 3500s source_path.relative_to(funcitem.config.rootpath) 3500s ) 3500s except ValueError: 3500s source_path_str = str(source_path) 3500s msg = ( 3500s "The requested fixture has no parameter defined for test:\n" 3500s " {}\n\n" 3500s "Requested fixture '{}' defined in:\n{}" 3500s "\n\nRequested here:\n{}:{}".format( 3500s funcitem.nodeid, 3500s fixturedef.argname, 3500s getlocation(fixturedef.func, funcitem.config.rootpath), 3500s source_path_str, 3500s source_lineno, 3500s ) 3500s ) 3500s fail(msg, pytrace=False) 3500s 3500s subrequest = SubRequest( 3500s self, scope, param, param_index, fixturedef, _ispytest=True 3500s ) 3500s 3500s # Check if a higher-level scoped fixture accesses a lower level one. 3500s subrequest._check_scope(argname, self._scope, scope) 3500s try: 3500s # Call the fixture function. 3500s > fixturedef.execute(request=subrequest) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s request = > 3500s 3500s def execute(self, request: SubRequest) -> FixtureValue: 3500s # Get required arguments and register our own finish() 3500s # with their finalization. 3500s for argname in self.argnames: 3500s fixturedef = request._get_active_fixturedef(argname) 3500s if argname != "request": 3500s # PseudoFixtureDef is only for "request". 3500s assert isinstance(fixturedef, FixtureDef) 3500s fixturedef.addfinalizer(functools.partial(self.finish, request=request)) 3500s 3500s my_cache_key = self.cache_key(request) 3500s if self.cached_result is not None: 3500s # note: comparison with `==` can fail (or be expensive) for e.g. 3500s # numpy arrays (#6497). 3500s cache_key = self.cached_result[1] 3500s if my_cache_key is cache_key: 3500s if self.cached_result[2] is not None: 3500s _, val, tb = self.cached_result[2] 3500s raise val.with_traceback(tb) 3500s else: 3500s result = self.cached_result[0] 3500s return result 3500s # We have a previous but differently parametrized fixture instance 3500s # so we need to tear it down before creating a new one. 3500s self.finish(request) 3500s assert self.cached_result is None 3500s 3500s ihook = request.node.ihook 3500s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1069: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s kwargs = {'fixturedef': , 'request': >} 3500s firstresult = True 3500s 3500s def __call__(self, **kwargs: object) -> Any: 3500s """Call the hook. 3500s 3500s Only accepts keyword arguments, which should match the hook 3500s specification. 3500s 3500s Returns the result(s) of calling all registered plugins, see 3500s :ref:`calling`. 3500s """ 3500s assert ( 3500s not self.is_historic() 3500s ), "Cannot directly call a historic hook - use call_historic instead." 3500s self._verify_all_args_are_provided(kwargs) 3500s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 3500s # Copy because plugins may register other plugins during iteration (#438). 3500s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = <_pytest.config.PytestPluginManager object at 0xe9079168> 3500s hook_name = 'pytest_fixture_setup' 3500s methods = [>] 3500s kwargs = {'fixturedef': , 'request': >} 3500s firstresult = True 3500s 3500s def _hookexec( 3500s self, 3500s hook_name: str, 3500s methods: Sequence[HookImpl], 3500s kwargs: Mapping[str, object], 3500s firstresult: bool, 3500s ) -> object | list[object]: 3500s # called from all hookcaller instances. 3500s # enable_tracing will set its own wrapping function at self._inner_hookexec 3500s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturedef = 3500s request = > 3500s 3500s def pytest_fixture_setup( 3500s fixturedef: FixtureDef[FixtureValue], request: SubRequest 3500s ) -> FixtureValue: 3500s """Execution of fixture setup.""" 3500s kwargs = {} 3500s for argname in fixturedef.argnames: 3500s fixdef = request._get_active_fixturedef(argname) 3500s assert fixdef.cached_result is not None 3500s result, arg_cache_key, exc = fixdef.cached_result 3500s request._check_scope(argname, request._scope, fixdef._scope) 3500s kwargs[argname] = result 3500s 3500s fixturefunc = resolve_fixture_function(fixturedef, request) 3500s my_cache_key = fixturedef.cache_key(request) 3500s try: 3500s > result = call_fixture_func(fixturefunc, request, kwargs) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1123: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturefunc = 3500s request = > 3500s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv'), 'types_data': [{'B... False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}]} 3500s 3500s def call_fixture_func( 3500s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 3500s ) -> FixtureValue: 3500s if is_generator(fixturefunc): 3500s fixturefunc = cast( 3500s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 3500s ) 3500s generator = fixturefunc(**kwargs) 3500s try: 3500s > fixture_result = next(generator) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:895: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s iris_path = PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv') 3500s types_data = [{'BoolCol': False, 'BoolColWithNull': False, 'DateCol': '2000-01-03 00:00:00', 'DateColWithTz': '2000-01-01 00:00:00-...: False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}] 3500s 3500s @pytest.fixture 3500s def postgresql_psycopg2_engine(iris_path, types_data): 3500s sqlalchemy = pytest.importorskip("sqlalchemy") 3500s pytest.importorskip("psycopg2") 3500s engine = sqlalchemy.create_engine( 3500s "postgresql+psycopg2://postgres:postgres@localhost:5432/pandas", 3500s poolclass=sqlalchemy.pool.NullPool, 3500s ) 3500s > insp = sqlalchemy.inspect(engine) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:438: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s subject = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s raiseerr = True 3500s 3500s def inspect(subject, raiseerr=True): 3500s """Produce an inspection object for the given target. 3500s 3500s The returned value in some cases may be the 3500s same object as the one given, such as if a 3500s :class:`_orm.Mapper` object is passed. In other 3500s cases, it will be an instance of the registered 3500s inspection type for the given object, such as 3500s if an :class:`_engine.Engine` is passed, an 3500s :class:`_reflection.Inspector` object is returned. 3500s 3500s :param subject: the subject to be inspected. 3500s :param raiseerr: When ``True``, if the given subject 3500s does not 3500s correspond to a known SQLAlchemy inspected type, 3500s :class:`sqlalchemy.exc.NoInspectionAvailable` 3500s is raised. If ``False``, ``None`` is returned. 3500s 3500s """ 3500s type_ = type(subject) 3500s for cls in type_.__mro__: 3500s if cls in _registrars: 3500s reg = _registrars[cls] 3500s if reg is True: 3500s return subject 3500s > ret = reg(subject) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:64: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s @inspection._inspects(Engine) 3500s def _engine_insp(bind): 3500s > return Inspector._construct(Inspector._init_engine, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:182: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s init = 3500s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s @classmethod 3500s def _construct(cls, init, bind): 3500s 3500s if hasattr(bind.dialect, "inspector"): 3500s cls = bind.dialect.inspector 3500s 3500s self = cls.__new__(cls) 3500s > init(self, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:117: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s def _init_engine(self, engine): 3500s self.bind = self.engine = engine 3500s > engine.connect().close() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:128: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s close_with_result = False 3500s 3500s def connect(self, close_with_result=False): 3500s """Return a new :class:`_engine.Connection` object. 3500s 3500s The :class:`_engine.Connection` object is a facade that uses a DBAPI 3500s connection internally in order to communicate with the database. This 3500s connection is procured from the connection-holding :class:`_pool.Pool` 3500s referenced by this :class:`_engine.Engine`. When the 3500s :meth:`_engine.Connection.close` method of the 3500s :class:`_engine.Connection` object 3500s is called, the underlying DBAPI connection is then returned to the 3500s connection pool, where it may be used again in a subsequent call to 3500s :meth:`_engine.Engine.connect`. 3500s 3500s """ 3500s 3500s > return self._connection_cls(self, close_with_result=close_with_result) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3325: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s connection = None, close_with_result = False, _branch_from = None 3500s _execution_options = None, _dispatch = None, _has_events = None 3500s _allow_revalidate = True 3500s 3500s def __init__( 3500s self, 3500s engine, 3500s connection=None, 3500s close_with_result=False, 3500s _branch_from=None, 3500s _execution_options=None, 3500s _dispatch=None, 3500s _has_events=None, 3500s _allow_revalidate=True, 3500s ): 3500s """Construct a new Connection.""" 3500s self.engine = engine 3500s self.dialect = engine.dialect 3500s self.__branch_from = _branch_from 3500s 3500s if _branch_from: 3500s # branching is always "from" the root connection 3500s assert _branch_from.__branch_from is None 3500s self._dbapi_connection = connection 3500s self._execution_options = _execution_options 3500s self._echo = _branch_from._echo 3500s self.should_close_with_result = False 3500s self.dispatch = _dispatch 3500s self._has_events = _branch_from._has_events 3500s else: 3500s self._dbapi_connection = ( 3500s connection 3500s if connection is not None 3500s > else engine.raw_connection() 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:96: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s _connection = None 3500s 3500s def raw_connection(self, _connection=None): 3500s """Return a "raw" DBAPI connection from the connection pool. 3500s 3500s The returned object is a proxied version of the DBAPI 3500s connection object used by the underlying driver in use. 3500s The object will have all the same behavior as the real DBAPI 3500s connection, except that its ``close()`` method will result in the 3500s connection being returned to the pool, rather than being closed 3500s for real. 3500s 3500s This method provides direct DBAPI connection access for 3500s special situations when the API provided by 3500s :class:`_engine.Connection` 3500s is not needed. When a :class:`_engine.Connection` object is already 3500s present, the DBAPI connection is available using 3500s the :attr:`_engine.Connection.connection` accessor. 3500s 3500s .. seealso:: 3500s 3500s :ref:`dbapi_connections` 3500s 3500s """ 3500s > return self._wrap_pool_connect(self.pool.connect, _connection) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3404: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s return fn() 3500s except dialect.dbapi.Error as e: 3500s if connection is None: 3500s > Connection._handle_dbapi_exception_noconnection( 3500s e, dialect, self 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3374: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s e = OperationalError('connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused\n\tIs the server running on that host and accepting TCP/IP connections?\n') 3500s dialect = 3500s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s @classmethod 3500s def _handle_dbapi_exception_noconnection(cls, e, dialect, engine): 3500s exc_info = sys.exc_info() 3500s 3500s is_disconnect = dialect.is_disconnect(e, None, None) 3500s 3500s should_wrap = isinstance(e, dialect.dbapi.Error) 3500s 3500s if should_wrap: 3500s sqlalchemy_exception = exc.DBAPIError.instance( 3500s None, 3500s None, 3500s e, 3500s dialect.dbapi.Error, 3500s hide_parameters=engine.hide_parameters, 3500s connection_invalidated=is_disconnect, 3500s ) 3500s else: 3500s sqlalchemy_exception = None 3500s 3500s newraise = None 3500s 3500s if engine._has_events: 3500s ctx = ExceptionContextImpl( 3500s e, 3500s sqlalchemy_exception, 3500s engine, 3500s None, 3500s None, 3500s None, 3500s None, 3500s None, 3500s is_disconnect, 3500s True, 3500s ) 3500s for fn in engine.dispatch.handle_error: 3500s try: 3500s # handler returns an exception; 3500s # call next handler in a chain 3500s per_fn = fn(ctx) 3500s if per_fn is not None: 3500s ctx.chained_exception = newraise = per_fn 3500s except Exception as _raised: 3500s # handler raises an exception - stop processing 3500s newraise = _raised 3500s break 3500s 3500s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 3500s sqlalchemy_exception.connection_invalidated = ( 3500s is_disconnect 3500s ) = ctx.is_disconnect 3500s 3500s if newraise: 3500s util.raise_(newraise, with_traceback=exc_info[2], from_=e) 3500s elif should_wrap: 3500s > util.raise_( 3500s sqlalchemy_exception, with_traceback=exc_info[2], from_=e 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2208: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s dsn = 'host=localhost user=postgres password=postgres port=5432 dbname=pandas' 3500s connection_factory = None, cursor_factory = None 3500s kwargs = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s kwasync = {} 3500s 3500s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 3500s """ 3500s Create a new database connection. 3500s 3500s The connection parameters can be specified as a string: 3500s 3500s conn = psycopg2.connect("dbname=test user=postgres password=secret") 3500s 3500s or using a set of keyword arguments: 3500s 3500s conn = psycopg2.connect(database="test", user="postgres", password="secret") 3500s 3500s Or as a mix of both. The basic connection parameters are: 3500s 3500s - *dbname*: the database name 3500s - *database*: the database name (only as keyword argument) 3500s - *user*: user name used to authenticate 3500s - *password*: password used to authenticate 3500s - *host*: database host address (defaults to UNIX socket if not provided) 3500s - *port*: connection port number (defaults to 5432 if not provided) 3500s 3500s Using the *connection_factory* parameter a different class or connections 3500s factory can be specified. It should be a callable object taking a dsn 3500s argument. 3500s 3500s Using the *cursor_factory* parameter, a new default cursor factory will be 3500s used by cursor(). 3500s 3500s Using *async*=True an asynchronous connection will be created. *async_* is 3500s a valid alias (for Python versions where ``async`` is a keyword). 3500s 3500s Any other keyword parameter will be passed to the underlying client 3500s library: the list of supported parameters depends on the library version. 3500s 3500s """ 3500s kwasync = {} 3500s if 'async' in kwargs: 3500s kwasync['async'] = kwargs.pop('async') 3500s if 'async_' in kwargs: 3500s kwasync['async_'] = kwargs.pop('async_') 3500s 3500s dsn = _ext.make_dsn(dsn, **kwargs) 3500s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 3500s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 3500s E Is the server running on that host and accepting TCP/IP connections? 3500s E 3500s E (Background on this error at: https://sqlalche.me/e/14/e3q8) 3500s 3500s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 3500s _____________ test_read_iris_query_chunksize[mysql_pymysql_engine] _____________ 3500s self = , sock = None 3500s 3500s def connect(self, sock=None): 3500s self._closed = False 3500s try: 3500s if sock is None: 3500s if self.unix_socket: 3500s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3500s sock.settimeout(self.connect_timeout) 3500s sock.connect(self.unix_socket) 3500s self.host_info = "Localhost via UNIX socket" 3500s self._secure = True 3500s if DEBUG: 3500s print("connected using unix_socket") 3500s else: 3500s kwargs = {} 3500s if self.bind_address is not None: 3500s kwargs["source_address"] = (self.bind_address, 0) 3500s while True: 3500s try: 3500s > sock = socket.create_connection( 3500s (self.host, self.port), self.connect_timeout, **kwargs 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:649: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s address = ('localhost', 3306), timeout = 10, source_address = None 3500s 3500s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 3500s source_address=None, *, all_errors=False): 3500s """Connect to *address* and return the socket object. 3500s 3500s Convenience function. Connect to *address* (a 2-tuple ``(host, 3500s port)``) and return the socket object. Passing the optional 3500s *timeout* parameter will set the timeout on the socket instance 3500s before attempting to connect. If no *timeout* is supplied, the 3500s global default timeout setting returned by :func:`getdefaulttimeout` 3500s is used. If *source_address* is set it must be a tuple of (host, port) 3500s for the socket to bind as a source address before making the connection. 3500s A host of '' or port 0 tells the OS to use the default. When a connection 3500s cannot be created, raises the last error if *all_errors* is False, 3500s and an ExceptionGroup of all errors if *all_errors* is True. 3500s """ 3500s 3500s host, port = address 3500s exceptions = [] 3500s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 3500s af, socktype, proto, canonname, sa = res 3500s sock = None 3500s try: 3500s sock = socket(af, socktype, proto) 3500s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 3500s sock.settimeout(timeout) 3500s if source_address: 3500s sock.bind(source_address) 3500s sock.connect(sa) 3500s # Break explicitly a reference cycle 3500s exceptions.clear() 3500s return sock 3500s 3500s except error as exc: 3500s if not all_errors: 3500s exceptions.clear() # raise only the last error 3500s exceptions.append(exc) 3500s if sock is not None: 3500s sock.close() 3500s 3500s if len(exceptions): 3500s try: 3500s if not all_errors: 3500s > raise exceptions[0] 3500s 3500s /usr/lib/python3.12/socket.py:853: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s address = ('localhost', 3306), timeout = 10, source_address = None 3500s 3500s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 3500s source_address=None, *, all_errors=False): 3500s """Connect to *address* and return the socket object. 3500s 3500s Convenience function. Connect to *address* (a 2-tuple ``(host, 3500s port)``) and return the socket object. Passing the optional 3500s *timeout* parameter will set the timeout on the socket instance 3500s before attempting to connect. If no *timeout* is supplied, the 3500s global default timeout setting returned by :func:`getdefaulttimeout` 3500s is used. If *source_address* is set it must be a tuple of (host, port) 3500s for the socket to bind as a source address before making the connection. 3500s A host of '' or port 0 tells the OS to use the default. When a connection 3500s cannot be created, raises the last error if *all_errors* is False, 3500s and an ExceptionGroup of all errors if *all_errors* is True. 3500s """ 3500s 3500s host, port = address 3500s exceptions = [] 3500s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 3500s af, socktype, proto, canonname, sa = res 3500s sock = None 3500s try: 3500s sock = socket(af, socktype, proto) 3500s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 3500s sock.settimeout(timeout) 3500s if source_address: 3500s sock.bind(source_address) 3500s > sock.connect(sa) 3500s E ConnectionRefusedError: [Errno 111] Connection refused 3500s 3500s /usr/lib/python3.12/socket.py:838: ConnectionRefusedError 3500s 3500s During handling of the above exception, another exception occurred: 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __init__( 3500s self, 3500s *, 3500s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 3500s password="", 3500s host=None, 3500s database=None, 3500s unix_socket=None, 3500s port=0, 3500s charset="", 3500s collation=None, 3500s sql_mode=None, 3500s read_default_file=None, 3500s conv=None, 3500s use_unicode=True, 3500s client_flag=0, 3500s cursorclass=Cursor, 3500s init_command=None, 3500s connect_timeout=10, 3500s read_default_group=None, 3500s autocommit=False, 3500s local_infile=False, 3500s max_allowed_packet=16 * 1024 * 1024, 3500s defer_connect=False, 3500s auth_plugin_map=None, 3500s read_timeout=None, 3500s write_timeout=None, 3500s bind_address=None, 3500s binary_prefix=False, 3500s program_name=None, 3500s server_public_key=None, 3500s ssl=None, 3500s ssl_ca=None, 3500s ssl_cert=None, 3500s ssl_disabled=None, 3500s ssl_key=None, 3500s ssl_key_password=None, 3500s ssl_verify_cert=None, 3500s ssl_verify_identity=None, 3500s compress=None, # not supported 3500s named_pipe=None, # not supported 3500s passwd=None, # deprecated 3500s db=None, # deprecated 3500s ): 3500s if db is not None and database is None: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 3500s database = db 3500s if passwd is not None and not password: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn( 3500s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 3500s # ) 3500s password = passwd 3500s 3500s if compress or named_pipe: 3500s raise NotImplementedError( 3500s "compress and named_pipe arguments are not supported" 3500s ) 3500s 3500s self._local_infile = bool(local_infile) 3500s if self._local_infile: 3500s client_flag |= CLIENT.LOCAL_FILES 3500s 3500s if read_default_group and not read_default_file: 3500s if sys.platform.startswith("win"): 3500s read_default_file = "c:\\my.ini" 3500s else: 3500s read_default_file = "/etc/my.cnf" 3500s 3500s if read_default_file: 3500s if not read_default_group: 3500s read_default_group = "client" 3500s 3500s cfg = Parser() 3500s cfg.read(os.path.expanduser(read_default_file)) 3500s 3500s def _config(key, arg): 3500s if arg: 3500s return arg 3500s try: 3500s return cfg.get(read_default_group, key) 3500s except Exception: 3500s return arg 3500s 3500s user = _config("user", user) 3500s password = _config("password", password) 3500s host = _config("host", host) 3500s database = _config("database", database) 3500s unix_socket = _config("socket", unix_socket) 3500s port = int(_config("port", port)) 3500s bind_address = _config("bind-address", bind_address) 3500s charset = _config("default-character-set", charset) 3500s if not ssl: 3500s ssl = {} 3500s if isinstance(ssl, dict): 3500s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 3500s value = _config("ssl-" + key, ssl.get(key)) 3500s if value: 3500s ssl[key] = value 3500s 3500s self.ssl = False 3500s if not ssl_disabled: 3500s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 3500s ssl = { 3500s "ca": ssl_ca, 3500s "check_hostname": bool(ssl_verify_identity), 3500s "verify_mode": ssl_verify_cert 3500s if ssl_verify_cert is not None 3500s else False, 3500s } 3500s if ssl_cert is not None: 3500s ssl["cert"] = ssl_cert 3500s if ssl_key is not None: 3500s ssl["key"] = ssl_key 3500s if ssl_key_password is not None: 3500s ssl["password"] = ssl_key_password 3500s if ssl: 3500s if not SSL_ENABLED: 3500s raise NotImplementedError("ssl module not found") 3500s self.ssl = True 3500s client_flag |= CLIENT.SSL 3500s self.ctx = self._create_ssl_ctx(ssl) 3500s 3500s self.host = host or "localhost" 3500s self.port = port or 3306 3500s if type(self.port) is not int: 3500s raise ValueError("port should be of type int") 3500s self.user = user or DEFAULT_USER 3500s self.password = password or b"" 3500s if isinstance(self.password, str): 3500s self.password = self.password.encode("latin1") 3500s self.db = database 3500s self.unix_socket = unix_socket 3500s self.bind_address = bind_address 3500s if not (0 < connect_timeout <= 31536000): 3500s raise ValueError("connect_timeout should be >0 and <=31536000") 3500s self.connect_timeout = connect_timeout or None 3500s if read_timeout is not None and read_timeout <= 0: 3500s raise ValueError("read_timeout should be > 0") 3500s self._read_timeout = read_timeout 3500s if write_timeout is not None and write_timeout <= 0: 3500s raise ValueError("write_timeout should be > 0") 3500s self._write_timeout = write_timeout 3500s 3500s self.charset = charset or DEFAULT_CHARSET 3500s self.collation = collation 3500s self.use_unicode = use_unicode 3500s 3500s self.encoding = charset_by_name(self.charset).encoding 3500s 3500s client_flag |= CLIENT.CAPABILITIES 3500s if self.db: 3500s client_flag |= CLIENT.CONNECT_WITH_DB 3500s 3500s self.client_flag = client_flag 3500s 3500s self.cursorclass = cursorclass 3500s 3500s self._result = None 3500s self._affected_rows = 0 3500s self.host_info = "Not connected" 3500s 3500s # specified autocommit mode. None means use server default. 3500s self.autocommit_mode = autocommit 3500s 3500s if conv is None: 3500s conv = converters.conversions 3500s 3500s # Need for MySQLdb compatibility. 3500s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 3500s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 3500s self.sql_mode = sql_mode 3500s self.init_command = init_command 3500s self.max_allowed_packet = max_allowed_packet 3500s self._auth_plugin_map = auth_plugin_map or {} 3500s self._binary_prefix = binary_prefix 3500s self.server_public_key = server_public_key 3500s 3500s self._connect_attrs = { 3500s "_client_name": "pymysql", 3500s "_client_version": VERSION_STRING, 3500s "_pid": str(os.getpid()), 3500s } 3500s 3500s if program_name: 3500s self._connect_attrs["program_name"] = program_name 3500s 3500s if defer_connect: 3500s self._sock = None 3500s else: 3500s > self.connect() 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = , sock = None 3500s 3500s def connect(self, sock=None): 3500s self._closed = False 3500s try: 3500s if sock is None: 3500s if self.unix_socket: 3500s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3500s sock.settimeout(self.connect_timeout) 3500s sock.connect(self.unix_socket) 3500s self.host_info = "Localhost via UNIX socket" 3500s self._secure = True 3500s if DEBUG: 3500s print("connected using unix_socket") 3500s else: 3500s kwargs = {} 3500s if self.bind_address is not None: 3500s kwargs["source_address"] = (self.bind_address, 0) 3500s while True: 3500s try: 3500s sock = socket.create_connection( 3500s (self.host, self.port), self.connect_timeout, **kwargs 3500s ) 3500s break 3500s except OSError as e: 3500s if e.errno == errno.EINTR: 3500s continue 3500s raise 3500s self.host_info = "socket %s:%d" % (self.host, self.port) 3500s if DEBUG: 3500s print("connected using socket") 3500s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 3500s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 3500s sock.settimeout(None) 3500s 3500s self._sock = sock 3500s self._rfile = sock.makefile("rb") 3500s self._next_seq_id = 0 3500s 3500s self._get_server_information() 3500s self._request_authentication() 3500s 3500s # Send "SET NAMES" query on init for: 3500s # - Ensure charaset (and collation) is set to the server. 3500s # - collation_id in handshake packet may be ignored. 3500s # - If collation is not specified, we don't know what is server's 3500s # default collation for the charset. For example, default collation 3500s # of utf8mb4 is: 3500s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 3500s # - MySQL 8.0: utf8mb4_0900_ai_ci 3500s # 3500s # Reference: 3500s # - https://github.com/PyMySQL/PyMySQL/issues/1092 3500s # - https://github.com/wagtail/wagtail/issues/9477 3500s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 3500s self.set_character_set(self.charset, self.collation) 3500s 3500s if self.sql_mode is not None: 3500s c = self.cursor() 3500s c.execute("SET sql_mode=%s", (self.sql_mode,)) 3500s c.close() 3500s 3500s if self.init_command is not None: 3500s c = self.cursor() 3500s c.execute(self.init_command) 3500s c.close() 3500s 3500s if self.autocommit_mode is not None: 3500s self.autocommit(self.autocommit_mode) 3500s except BaseException as e: 3500s self._rfile = None 3500s if sock is not None: 3500s try: 3500s sock.close() 3500s except: # noqa 3500s pass 3500s 3500s if isinstance(e, (OSError, IOError)): 3500s exc = err.OperationalError( 3500s CR.CR_CONN_HOST_ERROR, 3500s f"Can't connect to MySQL server on {self.host!r} ({e})", 3500s ) 3500s # Keep original exception and traceback to investigate error. 3500s exc.original_exception = e 3500s exc.traceback = traceback.format_exc() 3500s if DEBUG: 3500s print(exc.traceback) 3500s > raise exc 3500s E pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 3500s 3500s The above exception was the direct cause of the following exception: 3500s 3500s conn = 'mysql_pymysql_engine' 3500s request = > 3500s 3500s @pytest.mark.db 3500s @pytest.mark.parametrize("conn", all_connectable_iris) 3500s def test_read_iris_query_chunksize(conn, request): 3500s > conn = request.getfixturevalue(conn) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:643: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'mysql_pymysql_engine' 3500s 3500s def getfixturevalue(self, argname: str) -> Any: 3500s """Dynamically run a named fixture function. 3500s 3500s Declaring fixtures via function argument is recommended where possible. 3500s But if you can only decide whether to use another fixture at test 3500s setup time, you may use this function to retrieve it inside a fixture 3500s or test function body. 3500s 3500s This method can be used during the test setup phase or the test run 3500s phase, but during the test teardown phase a fixture's value may not 3500s be available. 3500s 3500s :param argname: 3500s The fixture name. 3500s :raises pytest.FixtureLookupError: 3500s If the given fixture could not be found. 3500s """ 3500s > fixturedef = self._get_active_fixturedef(argname) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:585: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'mysql_pymysql_engine' 3500s 3500s def _get_active_fixturedef( 3500s self, argname: str 3500s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3500s try: 3500s return self._fixture_defs[argname] 3500s except KeyError: 3500s try: 3500s fixturedef = self._getnextfixturedef(argname) 3500s except FixtureLookupError: 3500s if argname == "request": 3500s cached_result = (self, [0], None) 3500s return PseudoFixtureDef(cached_result, Scope.Function) 3500s raise 3500s # Remove indent to prevent the python3 exception 3500s # from leaking into the call. 3500s > self._compute_fixture_value(fixturedef) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s fixturedef = 3500s 3500s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3500s """Create a SubRequest based on "self" and call the execute method 3500s of the given FixtureDef object. 3500s 3500s This will force the FixtureDef object to throw away any previous 3500s results and compute a new fixture value, which will be stored into 3500s the FixtureDef object itself. 3500s """ 3500s # prepare a subrequest object before calling fixture function 3500s # (latter managed by fixturedef) 3500s argname = fixturedef.argname 3500s funcitem = self._pyfuncitem 3500s scope = fixturedef._scope 3500s try: 3500s callspec = funcitem.callspec 3500s except AttributeError: 3500s callspec = None 3500s if callspec is not None and argname in callspec.params: 3500s param = callspec.params[argname] 3500s param_index = callspec.indices[argname] 3500s # If a parametrize invocation set a scope it will override 3500s # the static scope defined with the fixture function. 3500s with suppress(KeyError): 3500s scope = callspec._arg2scope[argname] 3500s else: 3500s param = NOTSET 3500s param_index = 0 3500s has_params = fixturedef.params is not None 3500s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3500s if has_params and fixtures_not_supported: 3500s msg = ( 3500s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3500s "Node id: {nodeid}\n" 3500s "Function type: {typename}" 3500s ).format( 3500s name=funcitem.name, 3500s nodeid=funcitem.nodeid, 3500s typename=type(funcitem).__name__, 3500s ) 3500s fail(msg, pytrace=False) 3500s if has_params: 3500s frame = inspect.stack()[3] 3500s frameinfo = inspect.getframeinfo(frame[0]) 3500s source_path = absolutepath(frameinfo.filename) 3500s source_lineno = frameinfo.lineno 3500s try: 3500s source_path_str = str( 3500s source_path.relative_to(funcitem.config.rootpath) 3500s ) 3500s except ValueError: 3500s source_path_str = str(source_path) 3500s msg = ( 3500s "The requested fixture has no parameter defined for test:\n" 3500s " {}\n\n" 3500s "Requested fixture '{}' defined in:\n{}" 3500s "\n\nRequested here:\n{}:{}".format( 3500s funcitem.nodeid, 3500s fixturedef.argname, 3500s getlocation(fixturedef.func, funcitem.config.rootpath), 3500s source_path_str, 3500s source_lineno, 3500s ) 3500s ) 3500s fail(msg, pytrace=False) 3500s 3500s subrequest = SubRequest( 3500s self, scope, param, param_index, fixturedef, _ispytest=True 3500s ) 3500s 3500s # Check if a higher-level scoped fixture accesses a lower level one. 3500s subrequest._check_scope(argname, self._scope, scope) 3500s try: 3500s # Call the fixture function. 3500s > fixturedef.execute(request=subrequest) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s request = > 3500s 3500s def execute(self, request: SubRequest) -> FixtureValue: 3500s # Get required arguments and register our own finish() 3500s # with their finalization. 3500s for argname in self.argnames: 3500s fixturedef = request._get_active_fixturedef(argname) 3500s if argname != "request": 3500s # PseudoFixtureDef is only for "request". 3500s assert isinstance(fixturedef, FixtureDef) 3500s fixturedef.addfinalizer(functools.partial(self.finish, request=request)) 3500s 3500s my_cache_key = self.cache_key(request) 3500s if self.cached_result is not None: 3500s # note: comparison with `==` can fail (or be expensive) for e.g. 3500s # numpy arrays (#6497). 3500s cache_key = self.cached_result[1] 3500s if my_cache_key is cache_key: 3500s if self.cached_result[2] is not None: 3500s _, val, tb = self.cached_result[2] 3500s raise val.with_traceback(tb) 3500s else: 3500s result = self.cached_result[0] 3500s return result 3500s # We have a previous but differently parametrized fixture instance 3500s # so we need to tear it down before creating a new one. 3500s self.finish(request) 3500s assert self.cached_result is None 3500s 3500s ihook = request.node.ihook 3500s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1069: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s kwargs = {'fixturedef': , 'request': >} 3500s firstresult = True 3500s 3500s def __call__(self, **kwargs: object) -> Any: 3500s """Call the hook. 3500s 3500s Only accepts keyword arguments, which should match the hook 3500s specification. 3500s 3500s Returns the result(s) of calling all registered plugins, see 3500s :ref:`calling`. 3500s """ 3500s assert ( 3500s not self.is_historic() 3500s ), "Cannot directly call a historic hook - use call_historic instead." 3500s self._verify_all_args_are_provided(kwargs) 3500s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 3500s # Copy because plugins may register other plugins during iteration (#438). 3500s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = <_pytest.config.PytestPluginManager object at 0xe9079168> 3500s hook_name = 'pytest_fixture_setup' 3500s methods = [>] 3500s kwargs = {'fixturedef': , 'request': >} 3500s firstresult = True 3500s 3500s def _hookexec( 3500s self, 3500s hook_name: str, 3500s methods: Sequence[HookImpl], 3500s kwargs: Mapping[str, object], 3500s firstresult: bool, 3500s ) -> object | list[object]: 3500s # called from all hookcaller instances. 3500s # enable_tracing will set its own wrapping function at self._inner_hookexec 3500s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturedef = 3500s request = > 3500s 3500s def pytest_fixture_setup( 3500s fixturedef: FixtureDef[FixtureValue], request: SubRequest 3500s ) -> FixtureValue: 3500s """Execution of fixture setup.""" 3500s kwargs = {} 3500s for argname in fixturedef.argnames: 3500s fixdef = request._get_active_fixturedef(argname) 3500s assert fixdef.cached_result is not None 3500s result, arg_cache_key, exc = fixdef.cached_result 3500s request._check_scope(argname, request._scope, fixdef._scope) 3500s kwargs[argname] = result 3500s 3500s fixturefunc = resolve_fixture_function(fixturedef, request) 3500s my_cache_key = fixturedef.cache_key(request) 3500s try: 3500s > result = call_fixture_func(fixturefunc, request, kwargs) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1123: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturefunc = 3500s request = > 3500s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv'), 'types_data': [{'B... False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}]} 3500s 3500s def call_fixture_func( 3500s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 3500s ) -> FixtureValue: 3500s if is_generator(fixturefunc): 3500s fixturefunc = cast( 3500s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 3500s ) 3500s generator = fixturefunc(**kwargs) 3500s try: 3500s > fixture_result = next(generator) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:895: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s iris_path = PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv') 3500s types_data = [{'BoolCol': False, 'BoolColWithNull': False, 'DateCol': '2000-01-03 00:00:00', 'DateColWithTz': '2000-01-01 00:00:00-...: False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}] 3500s 3500s @pytest.fixture 3500s def mysql_pymysql_engine(iris_path, types_data): 3500s sqlalchemy = pytest.importorskip("sqlalchemy") 3500s pymysql = pytest.importorskip("pymysql") 3500s engine = sqlalchemy.create_engine( 3500s "mysql+pymysql://root@localhost:3306/pandas", 3500s connect_args={"client_flag": pymysql.constants.CLIENT.MULTI_STATEMENTS}, 3500s poolclass=sqlalchemy.pool.NullPool, 3500s ) 3500s > insp = sqlalchemy.inspect(engine) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:409: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s subject = Engine(mysql+pymysql://root@localhost:3306/pandas), raiseerr = True 3500s 3500s def inspect(subject, raiseerr=True): 3500s """Produce an inspection object for the given target. 3500s 3500s The returned value in some cases may be the 3500s same object as the one given, such as if a 3500s :class:`_orm.Mapper` object is passed. In other 3500s cases, it will be an instance of the registered 3500s inspection type for the given object, such as 3500s if an :class:`_engine.Engine` is passed, an 3500s :class:`_reflection.Inspector` object is returned. 3500s 3500s :param subject: the subject to be inspected. 3500s :param raiseerr: When ``True``, if the given subject 3500s does not 3500s correspond to a known SQLAlchemy inspected type, 3500s :class:`sqlalchemy.exc.NoInspectionAvailable` 3500s is raised. If ``False``, ``None`` is returned. 3500s 3500s """ 3500s type_ = type(subject) 3500s for cls in type_.__mro__: 3500s if cls in _registrars: 3500s reg = _registrars[cls] 3500s if reg is True: 3500s return subject 3500s > ret = reg(subject) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:64: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s @inspection._inspects(Engine) 3500s def _engine_insp(bind): 3500s > return Inspector._construct(Inspector._init_engine, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:182: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s init = 3500s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s @classmethod 3500s def _construct(cls, init, bind): 3500s 3500s if hasattr(bind.dialect, "inspector"): 3500s cls = bind.dialect.inspector 3500s 3500s self = cls.__new__(cls) 3500s > init(self, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:117: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s def _init_engine(self, engine): 3500s self.bind = self.engine = engine 3500s > engine.connect().close() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:128: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s close_with_result = False 3500s 3500s def connect(self, close_with_result=False): 3500s """Return a new :class:`_engine.Connection` object. 3500s 3500s The :class:`_engine.Connection` object is a facade that uses a DBAPI 3500s connection internally in order to communicate with the database. This 3500s connection is procured from the connection-holding :class:`_pool.Pool` 3500s referenced by this :class:`_engine.Engine`. When the 3500s :meth:`_engine.Connection.close` method of the 3500s :class:`_engine.Connection` object 3500s is called, the underlying DBAPI connection is then returned to the 3500s connection pool, where it may be used again in a subsequent call to 3500s :meth:`_engine.Engine.connect`. 3500s 3500s """ 3500s 3500s > return self._connection_cls(self, close_with_result=close_with_result) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3325: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 3500s close_with_result = False, _branch_from = None, _execution_options = None 3500s _dispatch = None, _has_events = None, _allow_revalidate = True 3500s 3500s def __init__( 3500s self, 3500s engine, 3500s connection=None, 3500s close_with_result=False, 3500s _branch_from=None, 3500s _execution_options=None, 3500s _dispatch=None, 3500s _has_events=None, 3500s _allow_revalidate=True, 3500s ): 3500s """Construct a new Connection.""" 3500s self.engine = engine 3500s self.dialect = engine.dialect 3500s self.__branch_from = _branch_from 3500s 3500s if _branch_from: 3500s # branching is always "from" the root connection 3500s assert _branch_from.__branch_from is None 3500s self._dbapi_connection = connection 3500s self._execution_options = _execution_options 3500s self._echo = _branch_from._echo 3500s self.should_close_with_result = False 3500s self.dispatch = _dispatch 3500s self._has_events = _branch_from._has_events 3500s else: 3500s self._dbapi_connection = ( 3500s connection 3500s if connection is not None 3500s > else engine.raw_connection() 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:96: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas), _connection = None 3500s 3500s def raw_connection(self, _connection=None): 3500s """Return a "raw" DBAPI connection from the connection pool. 3500s 3500s The returned object is a proxied version of the DBAPI 3500s connection object used by the underlying driver in use. 3500s The object will have all the same behavior as the real DBAPI 3500s connection, except that its ``close()`` method will result in the 3500s connection being returned to the pool, rather than being closed 3500s for real. 3500s 3500s This method provides direct DBAPI connection access for 3500s special situations when the API provided by 3500s :class:`_engine.Connection` 3500s is not needed. When a :class:`_engine.Connection` object is already 3500s present, the DBAPI connection is available using 3500s the :attr:`_engine.Connection.connection` accessor. 3500s 3500s .. seealso:: 3500s 3500s :ref:`dbapi_connections` 3500s 3500s """ 3500s > return self._wrap_pool_connect(self.pool.connect, _connection) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3404: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s return fn() 3500s except dialect.dbapi.Error as e: 3500s if connection is None: 3500s > Connection._handle_dbapi_exception_noconnection( 3500s e, dialect, self 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3374: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s e = OperationalError(2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3500s dialect = 3500s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s @classmethod 3500s def _handle_dbapi_exception_noconnection(cls, e, dialect, engine): 3500s exc_info = sys.exc_info() 3500s 3500s is_disconnect = dialect.is_disconnect(e, None, None) 3500s 3500s should_wrap = isinstance(e, dialect.dbapi.Error) 3500s 3500s if should_wrap: 3500s sqlalchemy_exception = exc.DBAPIError.instance( 3500s None, 3500s None, 3500s e, 3500s dialect.dbapi.Error, 3500s hide_parameters=engine.hide_parameters, 3500s connection_invalidated=is_disconnect, 3500s ) 3500s else: 3500s sqlalchemy_exception = None 3500s 3500s newraise = None 3500s 3500s if engine._has_events: 3500s ctx = ExceptionContextImpl( 3500s e, 3500s sqlalchemy_exception, 3500s engine, 3500s None, 3500s None, 3500s None, 3500s None, 3500s None, 3500s is_disconnect, 3500s True, 3500s ) 3500s for fn in engine.dispatch.handle_error: 3500s try: 3500s # handler returns an exception; 3500s # call next handler in a chain 3500s per_fn = fn(ctx) 3500s if per_fn is not None: 3500s ctx.chained_exception = newraise = per_fn 3500s except Exception as _raised: 3500s # handler raises an exception - stop processing 3500s newraise = _raised 3500s break 3500s 3500s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 3500s sqlalchemy_exception.connection_invalidated = ( 3500s is_disconnect 3500s ) = ctx.is_disconnect 3500s 3500s if newraise: 3500s util.raise_(newraise, with_traceback=exc_info[2], from_=e) 3500s elif should_wrap: 3500s > util.raise_( 3500s sqlalchemy_exception, with_traceback=exc_info[2], from_=e 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2208: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __init__( 3500s self, 3500s *, 3500s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 3500s password="", 3500s host=None, 3500s database=None, 3500s unix_socket=None, 3500s port=0, 3500s charset="", 3500s collation=None, 3500s sql_mode=None, 3500s read_default_file=None, 3500s conv=None, 3500s use_unicode=True, 3500s client_flag=0, 3500s cursorclass=Cursor, 3500s init_command=None, 3500s connect_timeout=10, 3500s read_default_group=None, 3500s autocommit=False, 3500s local_infile=False, 3500s max_allowed_packet=16 * 1024 * 1024, 3500s defer_connect=False, 3500s auth_plugin_map=None, 3500s read_timeout=None, 3500s write_timeout=None, 3500s bind_address=None, 3500s binary_prefix=False, 3500s program_name=None, 3500s server_public_key=None, 3500s ssl=None, 3500s ssl_ca=None, 3500s ssl_cert=None, 3500s ssl_disabled=None, 3500s ssl_key=None, 3500s ssl_key_password=None, 3500s ssl_verify_cert=None, 3500s ssl_verify_identity=None, 3500s compress=None, # not supported 3500s named_pipe=None, # not supported 3500s passwd=None, # deprecated 3500s db=None, # deprecated 3500s ): 3500s if db is not None and database is None: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 3500s database = db 3500s if passwd is not None and not password: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn( 3500s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 3500s # ) 3500s password = passwd 3500s 3500s if compress or named_pipe: 3500s raise NotImplementedError( 3500s "compress and named_pipe arguments are not supported" 3500s ) 3500s 3500s self._local_infile = bool(local_infile) 3500s if self._local_infile: 3500s client_flag |= CLIENT.LOCAL_FILES 3500s 3500s if read_default_group and not read_default_file: 3500s if sys.platform.startswith("win"): 3500s read_default_file = "c:\\my.ini" 3500s else: 3500s read_default_file = "/etc/my.cnf" 3500s 3500s if read_default_file: 3500s if not read_default_group: 3500s read_default_group = "client" 3500s 3500s cfg = Parser() 3500s cfg.read(os.path.expanduser(read_default_file)) 3500s 3500s def _config(key, arg): 3500s if arg: 3500s return arg 3500s try: 3500s return cfg.get(read_default_group, key) 3500s except Exception: 3500s return arg 3500s 3500s user = _config("user", user) 3500s password = _config("password", password) 3500s host = _config("host", host) 3500s database = _config("database", database) 3500s unix_socket = _config("socket", unix_socket) 3500s port = int(_config("port", port)) 3500s bind_address = _config("bind-address", bind_address) 3500s charset = _config("default-character-set", charset) 3500s if not ssl: 3500s ssl = {} 3500s if isinstance(ssl, dict): 3500s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 3500s value = _config("ssl-" + key, ssl.get(key)) 3500s if value: 3500s ssl[key] = value 3500s 3500s self.ssl = False 3500s if not ssl_disabled: 3500s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 3500s ssl = { 3500s "ca": ssl_ca, 3500s "check_hostname": bool(ssl_verify_identity), 3500s "verify_mode": ssl_verify_cert 3500s if ssl_verify_cert is not None 3500s else False, 3500s } 3500s if ssl_cert is not None: 3500s ssl["cert"] = ssl_cert 3500s if ssl_key is not None: 3500s ssl["key"] = ssl_key 3500s if ssl_key_password is not None: 3500s ssl["password"] = ssl_key_password 3500s if ssl: 3500s if not SSL_ENABLED: 3500s raise NotImplementedError("ssl module not found") 3500s self.ssl = True 3500s client_flag |= CLIENT.SSL 3500s self.ctx = self._create_ssl_ctx(ssl) 3500s 3500s self.host = host or "localhost" 3500s self.port = port or 3306 3500s if type(self.port) is not int: 3500s raise ValueError("port should be of type int") 3500s self.user = user or DEFAULT_USER 3500s self.password = password or b"" 3500s if isinstance(self.password, str): 3500s self.password = self.password.encode("latin1") 3500s self.db = database 3500s self.unix_socket = unix_socket 3500s self.bind_address = bind_address 3500s if not (0 < connect_timeout <= 31536000): 3500s raise ValueError("connect_timeout should be >0 and <=31536000") 3500s self.connect_timeout = connect_timeout or None 3500s if read_timeout is not None and read_timeout <= 0: 3500s raise ValueError("read_timeout should be > 0") 3500s self._read_timeout = read_timeout 3500s if write_timeout is not None and write_timeout <= 0: 3500s raise ValueError("write_timeout should be > 0") 3500s self._write_timeout = write_timeout 3500s 3500s self.charset = charset or DEFAULT_CHARSET 3500s self.collation = collation 3500s self.use_unicode = use_unicode 3500s 3500s self.encoding = charset_by_name(self.charset).encoding 3500s 3500s client_flag |= CLIENT.CAPABILITIES 3500s if self.db: 3500s client_flag |= CLIENT.CONNECT_WITH_DB 3500s 3500s self.client_flag = client_flag 3500s 3500s self.cursorclass = cursorclass 3500s 3500s self._result = None 3500s self._affected_rows = 0 3500s self.host_info = "Not connected" 3500s 3500s # specified autocommit mode. None means use server default. 3500s self.autocommit_mode = autocommit 3500s 3500s if conv is None: 3500s conv = converters.conversions 3500s 3500s # Need for MySQLdb compatibility. 3500s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 3500s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 3500s self.sql_mode = sql_mode 3500s self.init_command = init_command 3500s self.max_allowed_packet = max_allowed_packet 3500s self._auth_plugin_map = auth_plugin_map or {} 3500s self._binary_prefix = binary_prefix 3500s self.server_public_key = server_public_key 3500s 3500s self._connect_attrs = { 3500s "_client_name": "pymysql", 3500s "_client_version": VERSION_STRING, 3500s "_pid": str(os.getpid()), 3500s } 3500s 3500s if program_name: 3500s self._connect_attrs["program_name"] = program_name 3500s 3500s if defer_connect: 3500s self._sock = None 3500s else: 3500s > self.connect() 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = , sock = None 3500s 3500s def connect(self, sock=None): 3500s self._closed = False 3500s try: 3500s if sock is None: 3500s if self.unix_socket: 3500s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3500s sock.settimeout(self.connect_timeout) 3500s sock.connect(self.unix_socket) 3500s self.host_info = "Localhost via UNIX socket" 3500s self._secure = True 3500s if DEBUG: 3500s print("connected using unix_socket") 3500s else: 3500s kwargs = {} 3500s if self.bind_address is not None: 3500s kwargs["source_address"] = (self.bind_address, 0) 3500s while True: 3500s try: 3500s sock = socket.create_connection( 3500s (self.host, self.port), self.connect_timeout, **kwargs 3500s ) 3500s break 3500s except OSError as e: 3500s if e.errno == errno.EINTR: 3500s continue 3500s raise 3500s self.host_info = "socket %s:%d" % (self.host, self.port) 3500s if DEBUG: 3500s print("connected using socket") 3500s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 3500s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 3500s sock.settimeout(None) 3500s 3500s self._sock = sock 3500s self._rfile = sock.makefile("rb") 3500s self._next_seq_id = 0 3500s 3500s self._get_server_information() 3500s self._request_authentication() 3500s 3500s # Send "SET NAMES" query on init for: 3500s # - Ensure charaset (and collation) is set to the server. 3500s # - collation_id in handshake packet may be ignored. 3500s # - If collation is not specified, we don't know what is server's 3500s # default collation for the charset. For example, default collation 3500s # of utf8mb4 is: 3500s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 3500s # - MySQL 8.0: utf8mb4_0900_ai_ci 3500s # 3500s # Reference: 3500s # - https://github.com/PyMySQL/PyMySQL/issues/1092 3500s # - https://github.com/wagtail/wagtail/issues/9477 3500s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 3500s self.set_character_set(self.charset, self.collation) 3500s 3500s if self.sql_mode is not None: 3500s c = self.cursor() 3500s c.execute("SET sql_mode=%s", (self.sql_mode,)) 3500s c.close() 3500s 3500s if self.init_command is not None: 3500s c = self.cursor() 3500s c.execute(self.init_command) 3500s c.close() 3500s 3500s if self.autocommit_mode is not None: 3500s self.autocommit(self.autocommit_mode) 3500s except BaseException as e: 3500s self._rfile = None 3500s if sock is not None: 3500s try: 3500s sock.close() 3500s except: # noqa 3500s pass 3500s 3500s if isinstance(e, (OSError, IOError)): 3500s exc = err.OperationalError( 3500s CR.CR_CONN_HOST_ERROR, 3500s f"Can't connect to MySQL server on {self.host!r} ({e})", 3500s ) 3500s # Keep original exception and traceback to investigate error. 3500s exc.original_exception = e 3500s exc.traceback = traceback.format_exc() 3500s if DEBUG: 3500s print(exc.traceback) 3500s > raise exc 3500s E sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3500s E (Background on this error at: https://sqlalche.me/e/14/e3q8) 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 3500s ______________ test_read_iris_query_chunksize[mysql_pymysql_conn] ______________ 3500s self = , sock = None 3500s 3500s def connect(self, sock=None): 3500s self._closed = False 3500s try: 3500s if sock is None: 3500s if self.unix_socket: 3500s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3500s sock.settimeout(self.connect_timeout) 3500s sock.connect(self.unix_socket) 3500s self.host_info = "Localhost via UNIX socket" 3500s self._secure = True 3500s if DEBUG: 3500s print("connected using unix_socket") 3500s else: 3500s kwargs = {} 3500s if self.bind_address is not None: 3500s kwargs["source_address"] = (self.bind_address, 0) 3500s while True: 3500s try: 3500s > sock = socket.create_connection( 3500s (self.host, self.port), self.connect_timeout, **kwargs 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:649: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s address = ('localhost', 3306), timeout = 10, source_address = None 3500s 3500s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 3500s source_address=None, *, all_errors=False): 3500s """Connect to *address* and return the socket object. 3500s 3500s Convenience function. Connect to *address* (a 2-tuple ``(host, 3500s port)``) and return the socket object. Passing the optional 3500s *timeout* parameter will set the timeout on the socket instance 3500s before attempting to connect. If no *timeout* is supplied, the 3500s global default timeout setting returned by :func:`getdefaulttimeout` 3500s is used. If *source_address* is set it must be a tuple of (host, port) 3500s for the socket to bind as a source address before making the connection. 3500s A host of '' or port 0 tells the OS to use the default. When a connection 3500s cannot be created, raises the last error if *all_errors* is False, 3500s and an ExceptionGroup of all errors if *all_errors* is True. 3500s """ 3500s 3500s host, port = address 3500s exceptions = [] 3500s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 3500s af, socktype, proto, canonname, sa = res 3500s sock = None 3500s try: 3500s sock = socket(af, socktype, proto) 3500s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 3500s sock.settimeout(timeout) 3500s if source_address: 3500s sock.bind(source_address) 3500s sock.connect(sa) 3500s # Break explicitly a reference cycle 3500s exceptions.clear() 3500s return sock 3500s 3500s except error as exc: 3500s if not all_errors: 3500s exceptions.clear() # raise only the last error 3500s exceptions.append(exc) 3500s if sock is not None: 3500s sock.close() 3500s 3500s if len(exceptions): 3500s try: 3500s if not all_errors: 3500s > raise exceptions[0] 3500s 3500s /usr/lib/python3.12/socket.py:853: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s address = ('localhost', 3306), timeout = 10, source_address = None 3500s 3500s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 3500s source_address=None, *, all_errors=False): 3500s """Connect to *address* and return the socket object. 3500s 3500s Convenience function. Connect to *address* (a 2-tuple ``(host, 3500s port)``) and return the socket object. Passing the optional 3500s *timeout* parameter will set the timeout on the socket instance 3500s before attempting to connect. If no *timeout* is supplied, the 3500s global default timeout setting returned by :func:`getdefaulttimeout` 3500s is used. If *source_address* is set it must be a tuple of (host, port) 3500s for the socket to bind as a source address before making the connection. 3500s A host of '' or port 0 tells the OS to use the default. When a connection 3500s cannot be created, raises the last error if *all_errors* is False, 3500s and an ExceptionGroup of all errors if *all_errors* is True. 3500s """ 3500s 3500s host, port = address 3500s exceptions = [] 3500s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 3500s af, socktype, proto, canonname, sa = res 3500s sock = None 3500s try: 3500s sock = socket(af, socktype, proto) 3500s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 3500s sock.settimeout(timeout) 3500s if source_address: 3500s sock.bind(source_address) 3500s > sock.connect(sa) 3500s E ConnectionRefusedError: [Errno 111] Connection refused 3500s 3500s /usr/lib/python3.12/socket.py:838: ConnectionRefusedError 3500s 3500s During handling of the above exception, another exception occurred: 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __init__( 3500s self, 3500s *, 3500s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 3500s password="", 3500s host=None, 3500s database=None, 3500s unix_socket=None, 3500s port=0, 3500s charset="", 3500s collation=None, 3500s sql_mode=None, 3500s read_default_file=None, 3500s conv=None, 3500s use_unicode=True, 3500s client_flag=0, 3500s cursorclass=Cursor, 3500s init_command=None, 3500s connect_timeout=10, 3500s read_default_group=None, 3500s autocommit=False, 3500s local_infile=False, 3500s max_allowed_packet=16 * 1024 * 1024, 3500s defer_connect=False, 3500s auth_plugin_map=None, 3500s read_timeout=None, 3500s write_timeout=None, 3500s bind_address=None, 3500s binary_prefix=False, 3500s program_name=None, 3500s server_public_key=None, 3500s ssl=None, 3500s ssl_ca=None, 3500s ssl_cert=None, 3500s ssl_disabled=None, 3500s ssl_key=None, 3500s ssl_key_password=None, 3500s ssl_verify_cert=None, 3500s ssl_verify_identity=None, 3500s compress=None, # not supported 3500s named_pipe=None, # not supported 3500s passwd=None, # deprecated 3500s db=None, # deprecated 3500s ): 3500s if db is not None and database is None: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 3500s database = db 3500s if passwd is not None and not password: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn( 3500s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 3500s # ) 3500s password = passwd 3500s 3500s if compress or named_pipe: 3500s raise NotImplementedError( 3500s "compress and named_pipe arguments are not supported" 3500s ) 3500s 3500s self._local_infile = bool(local_infile) 3500s if self._local_infile: 3500s client_flag |= CLIENT.LOCAL_FILES 3500s 3500s if read_default_group and not read_default_file: 3500s if sys.platform.startswith("win"): 3500s read_default_file = "c:\\my.ini" 3500s else: 3500s read_default_file = "/etc/my.cnf" 3500s 3500s if read_default_file: 3500s if not read_default_group: 3500s read_default_group = "client" 3500s 3500s cfg = Parser() 3500s cfg.read(os.path.expanduser(read_default_file)) 3500s 3500s def _config(key, arg): 3500s if arg: 3500s return arg 3500s try: 3500s return cfg.get(read_default_group, key) 3500s except Exception: 3500s return arg 3500s 3500s user = _config("user", user) 3500s password = _config("password", password) 3500s host = _config("host", host) 3500s database = _config("database", database) 3500s unix_socket = _config("socket", unix_socket) 3500s port = int(_config("port", port)) 3500s bind_address = _config("bind-address", bind_address) 3500s charset = _config("default-character-set", charset) 3500s if not ssl: 3500s ssl = {} 3500s if isinstance(ssl, dict): 3500s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 3500s value = _config("ssl-" + key, ssl.get(key)) 3500s if value: 3500s ssl[key] = value 3500s 3500s self.ssl = False 3500s if not ssl_disabled: 3500s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 3500s ssl = { 3500s "ca": ssl_ca, 3500s "check_hostname": bool(ssl_verify_identity), 3500s "verify_mode": ssl_verify_cert 3500s if ssl_verify_cert is not None 3500s else False, 3500s } 3500s if ssl_cert is not None: 3500s ssl["cert"] = ssl_cert 3500s if ssl_key is not None: 3500s ssl["key"] = ssl_key 3500s if ssl_key_password is not None: 3500s ssl["password"] = ssl_key_password 3500s if ssl: 3500s if not SSL_ENABLED: 3500s raise NotImplementedError("ssl module not found") 3500s self.ssl = True 3500s client_flag |= CLIENT.SSL 3500s self.ctx = self._create_ssl_ctx(ssl) 3500s 3500s self.host = host or "localhost" 3500s self.port = port or 3306 3500s if type(self.port) is not int: 3500s raise ValueError("port should be of type int") 3500s self.user = user or DEFAULT_USER 3500s self.password = password or b"" 3500s if isinstance(self.password, str): 3500s self.password = self.password.encode("latin1") 3500s self.db = database 3500s self.unix_socket = unix_socket 3500s self.bind_address = bind_address 3500s if not (0 < connect_timeout <= 31536000): 3500s raise ValueError("connect_timeout should be >0 and <=31536000") 3500s self.connect_timeout = connect_timeout or None 3500s if read_timeout is not None and read_timeout <= 0: 3500s raise ValueError("read_timeout should be > 0") 3500s self._read_timeout = read_timeout 3500s if write_timeout is not None and write_timeout <= 0: 3500s raise ValueError("write_timeout should be > 0") 3500s self._write_timeout = write_timeout 3500s 3500s self.charset = charset or DEFAULT_CHARSET 3500s self.collation = collation 3500s self.use_unicode = use_unicode 3500s 3500s self.encoding = charset_by_name(self.charset).encoding 3500s 3500s client_flag |= CLIENT.CAPABILITIES 3500s if self.db: 3500s client_flag |= CLIENT.CONNECT_WITH_DB 3500s 3500s self.client_flag = client_flag 3500s 3500s self.cursorclass = cursorclass 3500s 3500s self._result = None 3500s self._affected_rows = 0 3500s self.host_info = "Not connected" 3500s 3500s # specified autocommit mode. None means use server default. 3500s self.autocommit_mode = autocommit 3500s 3500s if conv is None: 3500s conv = converters.conversions 3500s 3500s # Need for MySQLdb compatibility. 3500s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 3500s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 3500s self.sql_mode = sql_mode 3500s self.init_command = init_command 3500s self.max_allowed_packet = max_allowed_packet 3500s self._auth_plugin_map = auth_plugin_map or {} 3500s self._binary_prefix = binary_prefix 3500s self.server_public_key = server_public_key 3500s 3500s self._connect_attrs = { 3500s "_client_name": "pymysql", 3500s "_client_version": VERSION_STRING, 3500s "_pid": str(os.getpid()), 3500s } 3500s 3500s if program_name: 3500s self._connect_attrs["program_name"] = program_name 3500s 3500s if defer_connect: 3500s self._sock = None 3500s else: 3500s > self.connect() 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = , sock = None 3500s 3500s def connect(self, sock=None): 3500s self._closed = False 3500s try: 3500s if sock is None: 3500s if self.unix_socket: 3500s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3500s sock.settimeout(self.connect_timeout) 3500s sock.connect(self.unix_socket) 3500s self.host_info = "Localhost via UNIX socket" 3500s self._secure = True 3500s if DEBUG: 3500s print("connected using unix_socket") 3500s else: 3500s kwargs = {} 3500s if self.bind_address is not None: 3500s kwargs["source_address"] = (self.bind_address, 0) 3500s while True: 3500s try: 3500s sock = socket.create_connection( 3500s (self.host, self.port), self.connect_timeout, **kwargs 3500s ) 3500s break 3500s except OSError as e: 3500s if e.errno == errno.EINTR: 3500s continue 3500s raise 3500s self.host_info = "socket %s:%d" % (self.host, self.port) 3500s if DEBUG: 3500s print("connected using socket") 3500s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 3500s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 3500s sock.settimeout(None) 3500s 3500s self._sock = sock 3500s self._rfile = sock.makefile("rb") 3500s self._next_seq_id = 0 3500s 3500s self._get_server_information() 3500s self._request_authentication() 3500s 3500s # Send "SET NAMES" query on init for: 3500s # - Ensure charaset (and collation) is set to the server. 3500s # - collation_id in handshake packet may be ignored. 3500s # - If collation is not specified, we don't know what is server's 3500s # default collation for the charset. For example, default collation 3500s # of utf8mb4 is: 3500s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 3500s # - MySQL 8.0: utf8mb4_0900_ai_ci 3500s # 3500s # Reference: 3500s # - https://github.com/PyMySQL/PyMySQL/issues/1092 3500s # - https://github.com/wagtail/wagtail/issues/9477 3500s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 3500s self.set_character_set(self.charset, self.collation) 3500s 3500s if self.sql_mode is not None: 3500s c = self.cursor() 3500s c.execute("SET sql_mode=%s", (self.sql_mode,)) 3500s c.close() 3500s 3500s if self.init_command is not None: 3500s c = self.cursor() 3500s c.execute(self.init_command) 3500s c.close() 3500s 3500s if self.autocommit_mode is not None: 3500s self.autocommit(self.autocommit_mode) 3500s except BaseException as e: 3500s self._rfile = None 3500s if sock is not None: 3500s try: 3500s sock.close() 3500s except: # noqa 3500s pass 3500s 3500s if isinstance(e, (OSError, IOError)): 3500s exc = err.OperationalError( 3500s CR.CR_CONN_HOST_ERROR, 3500s f"Can't connect to MySQL server on {self.host!r} ({e})", 3500s ) 3500s # Keep original exception and traceback to investigate error. 3500s exc.original_exception = e 3500s exc.traceback = traceback.format_exc() 3500s if DEBUG: 3500s print(exc.traceback) 3500s > raise exc 3500s E pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 3500s 3500s The above exception was the direct cause of the following exception: 3500s 3500s conn = 'mysql_pymysql_conn' 3500s request = > 3500s 3500s @pytest.mark.db 3500s @pytest.mark.parametrize("conn", all_connectable_iris) 3500s def test_read_iris_query_chunksize(conn, request): 3500s > conn = request.getfixturevalue(conn) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:643: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'mysql_pymysql_conn' 3500s 3500s def getfixturevalue(self, argname: str) -> Any: 3500s """Dynamically run a named fixture function. 3500s 3500s Declaring fixtures via function argument is recommended where possible. 3500s But if you can only decide whether to use another fixture at test 3500s setup time, you may use this function to retrieve it inside a fixture 3500s or test function body. 3500s 3500s This method can be used during the test setup phase or the test run 3500s phase, but during the test teardown phase a fixture's value may not 3500s be available. 3500s 3500s :param argname: 3500s The fixture name. 3500s :raises pytest.FixtureLookupError: 3500s If the given fixture could not be found. 3500s """ 3500s > fixturedef = self._get_active_fixturedef(argname) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:585: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'mysql_pymysql_conn' 3500s 3500s def _get_active_fixturedef( 3500s self, argname: str 3500s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3500s try: 3500s return self._fixture_defs[argname] 3500s except KeyError: 3500s try: 3500s fixturedef = self._getnextfixturedef(argname) 3500s except FixtureLookupError: 3500s if argname == "request": 3500s cached_result = (self, [0], None) 3500s return PseudoFixtureDef(cached_result, Scope.Function) 3500s raise 3500s # Remove indent to prevent the python3 exception 3500s # from leaking into the call. 3500s > self._compute_fixture_value(fixturedef) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s fixturedef = 3500s 3500s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3500s """Create a SubRequest based on "self" and call the execute method 3500s of the given FixtureDef object. 3500s 3500s This will force the FixtureDef object to throw away any previous 3500s results and compute a new fixture value, which will be stored into 3500s the FixtureDef object itself. 3500s """ 3500s # prepare a subrequest object before calling fixture function 3500s # (latter managed by fixturedef) 3500s argname = fixturedef.argname 3500s funcitem = self._pyfuncitem 3500s scope = fixturedef._scope 3500s try: 3500s callspec = funcitem.callspec 3500s except AttributeError: 3500s callspec = None 3500s if callspec is not None and argname in callspec.params: 3500s param = callspec.params[argname] 3500s param_index = callspec.indices[argname] 3500s # If a parametrize invocation set a scope it will override 3500s # the static scope defined with the fixture function. 3500s with suppress(KeyError): 3500s scope = callspec._arg2scope[argname] 3500s else: 3500s param = NOTSET 3500s param_index = 0 3500s has_params = fixturedef.params is not None 3500s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3500s if has_params and fixtures_not_supported: 3500s msg = ( 3500s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3500s "Node id: {nodeid}\n" 3500s "Function type: {typename}" 3500s ).format( 3500s name=funcitem.name, 3500s nodeid=funcitem.nodeid, 3500s typename=type(funcitem).__name__, 3500s ) 3500s fail(msg, pytrace=False) 3500s if has_params: 3500s frame = inspect.stack()[3] 3500s frameinfo = inspect.getframeinfo(frame[0]) 3500s source_path = absolutepath(frameinfo.filename) 3500s source_lineno = frameinfo.lineno 3500s try: 3500s source_path_str = str( 3500s source_path.relative_to(funcitem.config.rootpath) 3500s ) 3500s except ValueError: 3500s source_path_str = str(source_path) 3500s msg = ( 3500s "The requested fixture has no parameter defined for test:\n" 3500s " {}\n\n" 3500s "Requested fixture '{}' defined in:\n{}" 3500s "\n\nRequested here:\n{}:{}".format( 3500s funcitem.nodeid, 3500s fixturedef.argname, 3500s getlocation(fixturedef.func, funcitem.config.rootpath), 3500s source_path_str, 3500s source_lineno, 3500s ) 3500s ) 3500s fail(msg, pytrace=False) 3500s 3500s subrequest = SubRequest( 3500s self, scope, param, param_index, fixturedef, _ispytest=True 3500s ) 3500s 3500s # Check if a higher-level scoped fixture accesses a lower level one. 3500s subrequest._check_scope(argname, self._scope, scope) 3500s try: 3500s # Call the fixture function. 3500s > fixturedef.execute(request=subrequest) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s request = > 3500s 3500s def execute(self, request: SubRequest) -> FixtureValue: 3500s # Get required arguments and register our own finish() 3500s # with their finalization. 3500s for argname in self.argnames: 3500s > fixturedef = request._get_active_fixturedef(argname) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1045: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'mysql_pymysql_engine' 3500s 3500s def _get_active_fixturedef( 3500s self, argname: str 3500s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3500s try: 3500s return self._fixture_defs[argname] 3500s except KeyError: 3500s try: 3500s fixturedef = self._getnextfixturedef(argname) 3500s except FixtureLookupError: 3500s if argname == "request": 3500s cached_result = (self, [0], None) 3500s return PseudoFixtureDef(cached_result, Scope.Function) 3500s raise 3500s # Remove indent to prevent the python3 exception 3500s # from leaking into the call. 3500s > self._compute_fixture_value(fixturedef) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s fixturedef = 3500s 3500s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3500s """Create a SubRequest based on "self" and call the execute method 3500s of the given FixtureDef object. 3500s 3500s This will force the FixtureDef object to throw away any previous 3500s results and compute a new fixture value, which will be stored into 3500s the FixtureDef object itself. 3500s """ 3500s # prepare a subrequest object before calling fixture function 3500s # (latter managed by fixturedef) 3500s argname = fixturedef.argname 3500s funcitem = self._pyfuncitem 3500s scope = fixturedef._scope 3500s try: 3500s callspec = funcitem.callspec 3500s except AttributeError: 3500s callspec = None 3500s if callspec is not None and argname in callspec.params: 3500s param = callspec.params[argname] 3500s param_index = callspec.indices[argname] 3500s # If a parametrize invocation set a scope it will override 3500s # the static scope defined with the fixture function. 3500s with suppress(KeyError): 3500s scope = callspec._arg2scope[argname] 3500s else: 3500s param = NOTSET 3500s param_index = 0 3500s has_params = fixturedef.params is not None 3500s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3500s if has_params and fixtures_not_supported: 3500s msg = ( 3500s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3500s "Node id: {nodeid}\n" 3500s "Function type: {typename}" 3500s ).format( 3500s name=funcitem.name, 3500s nodeid=funcitem.nodeid, 3500s typename=type(funcitem).__name__, 3500s ) 3500s fail(msg, pytrace=False) 3500s if has_params: 3500s frame = inspect.stack()[3] 3500s frameinfo = inspect.getframeinfo(frame[0]) 3500s source_path = absolutepath(frameinfo.filename) 3500s source_lineno = frameinfo.lineno 3500s try: 3500s source_path_str = str( 3500s source_path.relative_to(funcitem.config.rootpath) 3500s ) 3500s except ValueError: 3500s source_path_str = str(source_path) 3500s msg = ( 3500s "The requested fixture has no parameter defined for test:\n" 3500s " {}\n\n" 3500s "Requested fixture '{}' defined in:\n{}" 3500s "\n\nRequested here:\n{}:{}".format( 3500s funcitem.nodeid, 3500s fixturedef.argname, 3500s getlocation(fixturedef.func, funcitem.config.rootpath), 3500s source_path_str, 3500s source_lineno, 3500s ) 3500s ) 3500s fail(msg, pytrace=False) 3500s 3500s subrequest = SubRequest( 3500s self, scope, param, param_index, fixturedef, _ispytest=True 3500s ) 3500s 3500s # Check if a higher-level scoped fixture accesses a lower level one. 3500s subrequest._check_scope(argname, self._scope, scope) 3500s try: 3500s # Call the fixture function. 3500s > fixturedef.execute(request=subrequest) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s request = > 3500s 3500s def execute(self, request: SubRequest) -> FixtureValue: 3500s # Get required arguments and register our own finish() 3500s # with their finalization. 3500s for argname in self.argnames: 3500s fixturedef = request._get_active_fixturedef(argname) 3500s if argname != "request": 3500s # PseudoFixtureDef is only for "request". 3500s assert isinstance(fixturedef, FixtureDef) 3500s fixturedef.addfinalizer(functools.partial(self.finish, request=request)) 3500s 3500s my_cache_key = self.cache_key(request) 3500s if self.cached_result is not None: 3500s # note: comparison with `==` can fail (or be expensive) for e.g. 3500s # numpy arrays (#6497). 3500s cache_key = self.cached_result[1] 3500s if my_cache_key is cache_key: 3500s if self.cached_result[2] is not None: 3500s _, val, tb = self.cached_result[2] 3500s raise val.with_traceback(tb) 3500s else: 3500s result = self.cached_result[0] 3500s return result 3500s # We have a previous but differently parametrized fixture instance 3500s # so we need to tear it down before creating a new one. 3500s self.finish(request) 3500s assert self.cached_result is None 3500s 3500s ihook = request.node.ihook 3500s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1069: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s kwargs = {'fixturedef': , 'request': >} 3500s firstresult = True 3500s 3500s def __call__(self, **kwargs: object) -> Any: 3500s """Call the hook. 3500s 3500s Only accepts keyword arguments, which should match the hook 3500s specification. 3500s 3500s Returns the result(s) of calling all registered plugins, see 3500s :ref:`calling`. 3500s """ 3500s assert ( 3500s not self.is_historic() 3500s ), "Cannot directly call a historic hook - use call_historic instead." 3500s self._verify_all_args_are_provided(kwargs) 3500s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 3500s # Copy because plugins may register other plugins during iteration (#438). 3500s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = <_pytest.config.PytestPluginManager object at 0xe9079168> 3500s hook_name = 'pytest_fixture_setup' 3500s methods = [>] 3500s kwargs = {'fixturedef': , 'request': >} 3500s firstresult = True 3500s 3500s def _hookexec( 3500s self, 3500s hook_name: str, 3500s methods: Sequence[HookImpl], 3500s kwargs: Mapping[str, object], 3500s firstresult: bool, 3500s ) -> object | list[object]: 3500s # called from all hookcaller instances. 3500s # enable_tracing will set its own wrapping function at self._inner_hookexec 3500s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturedef = 3500s request = > 3500s 3500s def pytest_fixture_setup( 3500s fixturedef: FixtureDef[FixtureValue], request: SubRequest 3500s ) -> FixtureValue: 3500s """Execution of fixture setup.""" 3500s kwargs = {} 3500s for argname in fixturedef.argnames: 3500s fixdef = request._get_active_fixturedef(argname) 3500s assert fixdef.cached_result is not None 3500s result, arg_cache_key, exc = fixdef.cached_result 3500s request._check_scope(argname, request._scope, fixdef._scope) 3500s kwargs[argname] = result 3500s 3500s fixturefunc = resolve_fixture_function(fixturedef, request) 3500s my_cache_key = fixturedef.cache_key(request) 3500s try: 3500s > result = call_fixture_func(fixturefunc, request, kwargs) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1123: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturefunc = 3500s request = > 3500s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv'), 'types_data': [{'B... False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}]} 3500s 3500s def call_fixture_func( 3500s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 3500s ) -> FixtureValue: 3500s if is_generator(fixturefunc): 3500s fixturefunc = cast( 3500s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 3500s ) 3500s generator = fixturefunc(**kwargs) 3500s try: 3500s > fixture_result = next(generator) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:895: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s iris_path = PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv') 3500s types_data = [{'BoolCol': False, 'BoolColWithNull': False, 'DateCol': '2000-01-03 00:00:00', 'DateColWithTz': '2000-01-01 00:00:00-...: False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}] 3500s 3500s @pytest.fixture 3500s def mysql_pymysql_engine(iris_path, types_data): 3500s sqlalchemy = pytest.importorskip("sqlalchemy") 3500s pymysql = pytest.importorskip("pymysql") 3500s engine = sqlalchemy.create_engine( 3500s "mysql+pymysql://root@localhost:3306/pandas", 3500s connect_args={"client_flag": pymysql.constants.CLIENT.MULTI_STATEMENTS}, 3500s poolclass=sqlalchemy.pool.NullPool, 3500s ) 3500s > insp = sqlalchemy.inspect(engine) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:409: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s subject = Engine(mysql+pymysql://root@localhost:3306/pandas), raiseerr = True 3500s 3500s def inspect(subject, raiseerr=True): 3500s """Produce an inspection object for the given target. 3500s 3500s The returned value in some cases may be the 3500s same object as the one given, such as if a 3500s :class:`_orm.Mapper` object is passed. In other 3500s cases, it will be an instance of the registered 3500s inspection type for the given object, such as 3500s if an :class:`_engine.Engine` is passed, an 3500s :class:`_reflection.Inspector` object is returned. 3500s 3500s :param subject: the subject to be inspected. 3500s :param raiseerr: When ``True``, if the given subject 3500s does not 3500s correspond to a known SQLAlchemy inspected type, 3500s :class:`sqlalchemy.exc.NoInspectionAvailable` 3500s is raised. If ``False``, ``None`` is returned. 3500s 3500s """ 3500s type_ = type(subject) 3500s for cls in type_.__mro__: 3500s if cls in _registrars: 3500s reg = _registrars[cls] 3500s if reg is True: 3500s return subject 3500s > ret = reg(subject) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:64: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s @inspection._inspects(Engine) 3500s def _engine_insp(bind): 3500s > return Inspector._construct(Inspector._init_engine, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:182: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s init = 3500s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s @classmethod 3500s def _construct(cls, init, bind): 3500s 3500s if hasattr(bind.dialect, "inspector"): 3500s cls = bind.dialect.inspector 3500s 3500s self = cls.__new__(cls) 3500s > init(self, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:117: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s def _init_engine(self, engine): 3500s self.bind = self.engine = engine 3500s > engine.connect().close() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:128: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s close_with_result = False 3500s 3500s def connect(self, close_with_result=False): 3500s """Return a new :class:`_engine.Connection` object. 3500s 3500s The :class:`_engine.Connection` object is a facade that uses a DBAPI 3500s connection internally in order to communicate with the database. This 3500s connection is procured from the connection-holding :class:`_pool.Pool` 3500s referenced by this :class:`_engine.Engine`. When the 3500s :meth:`_engine.Connection.close` method of the 3500s :class:`_engine.Connection` object 3500s is called, the underlying DBAPI connection is then returned to the 3500s connection pool, where it may be used again in a subsequent call to 3500s :meth:`_engine.Engine.connect`. 3500s 3500s """ 3500s 3500s > return self._connection_cls(self, close_with_result=close_with_result) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3325: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 3500s close_with_result = False, _branch_from = None, _execution_options = None 3500s _dispatch = None, _has_events = None, _allow_revalidate = True 3500s 3500s def __init__( 3500s self, 3500s engine, 3500s connection=None, 3500s close_with_result=False, 3500s _branch_from=None, 3500s _execution_options=None, 3500s _dispatch=None, 3500s _has_events=None, 3500s _allow_revalidate=True, 3500s ): 3500s """Construct a new Connection.""" 3500s self.engine = engine 3500s self.dialect = engine.dialect 3500s self.__branch_from = _branch_from 3500s 3500s if _branch_from: 3500s # branching is always "from" the root connection 3500s assert _branch_from.__branch_from is None 3500s self._dbapi_connection = connection 3500s self._execution_options = _execution_options 3500s self._echo = _branch_from._echo 3500s self.should_close_with_result = False 3500s self.dispatch = _dispatch 3500s self._has_events = _branch_from._has_events 3500s else: 3500s self._dbapi_connection = ( 3500s connection 3500s if connection is not None 3500s > else engine.raw_connection() 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:96: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas), _connection = None 3500s 3500s def raw_connection(self, _connection=None): 3500s """Return a "raw" DBAPI connection from the connection pool. 3500s 3500s The returned object is a proxied version of the DBAPI 3500s connection object used by the underlying driver in use. 3500s The object will have all the same behavior as the real DBAPI 3500s connection, except that its ``close()`` method will result in the 3500s connection being returned to the pool, rather than being closed 3500s for real. 3500s 3500s This method provides direct DBAPI connection access for 3500s special situations when the API provided by 3500s :class:`_engine.Connection` 3500s is not needed. When a :class:`_engine.Connection` object is already 3500s present, the DBAPI connection is available using 3500s the :attr:`_engine.Connection.connection` accessor. 3500s 3500s .. seealso:: 3500s 3500s :ref:`dbapi_connections` 3500s 3500s """ 3500s > return self._wrap_pool_connect(self.pool.connect, _connection) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3404: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s return fn() 3500s except dialect.dbapi.Error as e: 3500s if connection is None: 3500s > Connection._handle_dbapi_exception_noconnection( 3500s e, dialect, self 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3374: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s e = OperationalError(2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3500s dialect = 3500s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s @classmethod 3500s def _handle_dbapi_exception_noconnection(cls, e, dialect, engine): 3500s exc_info = sys.exc_info() 3500s 3500s is_disconnect = dialect.is_disconnect(e, None, None) 3500s 3500s should_wrap = isinstance(e, dialect.dbapi.Error) 3500s 3500s if should_wrap: 3500s sqlalchemy_exception = exc.DBAPIError.instance( 3500s None, 3500s None, 3500s e, 3500s dialect.dbapi.Error, 3500s hide_parameters=engine.hide_parameters, 3500s connection_invalidated=is_disconnect, 3500s ) 3500s else: 3500s sqlalchemy_exception = None 3500s 3500s newraise = None 3500s 3500s if engine._has_events: 3500s ctx = ExceptionContextImpl( 3500s e, 3500s sqlalchemy_exception, 3500s engine, 3500s None, 3500s None, 3500s None, 3500s None, 3500s None, 3500s is_disconnect, 3500s True, 3500s ) 3500s for fn in engine.dispatch.handle_error: 3500s try: 3500s # handler returns an exception; 3500s # call next handler in a chain 3500s per_fn = fn(ctx) 3500s if per_fn is not None: 3500s ctx.chained_exception = newraise = per_fn 3500s except Exception as _raised: 3500s # handler raises an exception - stop processing 3500s newraise = _raised 3500s break 3500s 3500s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 3500s sqlalchemy_exception.connection_invalidated = ( 3500s is_disconnect 3500s ) = ctx.is_disconnect 3500s 3500s if newraise: 3500s util.raise_(newraise, with_traceback=exc_info[2], from_=e) 3500s elif should_wrap: 3500s > util.raise_( 3500s sqlalchemy_exception, with_traceback=exc_info[2], from_=e 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2208: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __init__( 3500s self, 3500s *, 3500s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 3500s password="", 3500s host=None, 3500s database=None, 3500s unix_socket=None, 3500s port=0, 3500s charset="", 3500s collation=None, 3500s sql_mode=None, 3500s read_default_file=None, 3500s conv=None, 3500s use_unicode=True, 3500s client_flag=0, 3500s cursorclass=Cursor, 3500s init_command=None, 3500s connect_timeout=10, 3500s read_default_group=None, 3500s autocommit=False, 3500s local_infile=False, 3500s max_allowed_packet=16 * 1024 * 1024, 3500s defer_connect=False, 3500s auth_plugin_map=None, 3500s read_timeout=None, 3500s write_timeout=None, 3500s bind_address=None, 3500s binary_prefix=False, 3500s program_name=None, 3500s server_public_key=None, 3500s ssl=None, 3500s ssl_ca=None, 3500s ssl_cert=None, 3500s ssl_disabled=None, 3500s ssl_key=None, 3500s ssl_key_password=None, 3500s ssl_verify_cert=None, 3500s ssl_verify_identity=None, 3500s compress=None, # not supported 3500s named_pipe=None, # not supported 3500s passwd=None, # deprecated 3500s db=None, # deprecated 3500s ): 3500s if db is not None and database is None: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 3500s database = db 3500s if passwd is not None and not password: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn( 3500s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 3500s # ) 3500s password = passwd 3500s 3500s if compress or named_pipe: 3500s raise NotImplementedError( 3500s "compress and named_pipe arguments are not supported" 3500s ) 3500s 3500s self._local_infile = bool(local_infile) 3500s if self._local_infile: 3500s client_flag |= CLIENT.LOCAL_FILES 3500s 3500s if read_default_group and not read_default_file: 3500s if sys.platform.startswith("win"): 3500s read_default_file = "c:\\my.ini" 3500s else: 3500s read_default_file = "/etc/my.cnf" 3500s 3500s if read_default_file: 3500s if not read_default_group: 3500s read_default_group = "client" 3500s 3500s cfg = Parser() 3500s cfg.read(os.path.expanduser(read_default_file)) 3500s 3500s def _config(key, arg): 3500s if arg: 3500s return arg 3500s try: 3500s return cfg.get(read_default_group, key) 3500s except Exception: 3500s return arg 3500s 3500s user = _config("user", user) 3500s password = _config("password", password) 3500s host = _config("host", host) 3500s database = _config("database", database) 3500s unix_socket = _config("socket", unix_socket) 3500s port = int(_config("port", port)) 3500s bind_address = _config("bind-address", bind_address) 3500s charset = _config("default-character-set", charset) 3500s if not ssl: 3500s ssl = {} 3500s if isinstance(ssl, dict): 3500s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 3500s value = _config("ssl-" + key, ssl.get(key)) 3500s if value: 3500s ssl[key] = value 3500s 3500s self.ssl = False 3500s if not ssl_disabled: 3500s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 3500s ssl = { 3500s "ca": ssl_ca, 3500s "check_hostname": bool(ssl_verify_identity), 3500s "verify_mode": ssl_verify_cert 3500s if ssl_verify_cert is not None 3500s else False, 3500s } 3500s if ssl_cert is not None: 3500s ssl["cert"] = ssl_cert 3500s if ssl_key is not None: 3500s ssl["key"] = ssl_key 3500s if ssl_key_password is not None: 3500s ssl["password"] = ssl_key_password 3500s if ssl: 3500s if not SSL_ENABLED: 3500s raise NotImplementedError("ssl module not found") 3500s self.ssl = True 3500s client_flag |= CLIENT.SSL 3500s self.ctx = self._create_ssl_ctx(ssl) 3500s 3500s self.host = host or "localhost" 3500s self.port = port or 3306 3500s if type(self.port) is not int: 3500s raise ValueError("port should be of type int") 3500s self.user = user or DEFAULT_USER 3500s self.password = password or b"" 3500s if isinstance(self.password, str): 3500s self.password = self.password.encode("latin1") 3500s self.db = database 3500s self.unix_socket = unix_socket 3500s self.bind_address = bind_address 3500s if not (0 < connect_timeout <= 31536000): 3500s raise ValueError("connect_timeout should be >0 and <=31536000") 3500s self.connect_timeout = connect_timeout or None 3500s if read_timeout is not None and read_timeout <= 0: 3500s raise ValueError("read_timeout should be > 0") 3500s self._read_timeout = read_timeout 3500s if write_timeout is not None and write_timeout <= 0: 3500s raise ValueError("write_timeout should be > 0") 3500s self._write_timeout = write_timeout 3500s 3500s self.charset = charset or DEFAULT_CHARSET 3500s self.collation = collation 3500s self.use_unicode = use_unicode 3500s 3500s self.encoding = charset_by_name(self.charset).encoding 3500s 3500s client_flag |= CLIENT.CAPABILITIES 3500s if self.db: 3500s client_flag |= CLIENT.CONNECT_WITH_DB 3500s 3500s self.client_flag = client_flag 3500s 3500s self.cursorclass = cursorclass 3500s 3500s self._result = None 3500s self._affected_rows = 0 3500s self.host_info = "Not connected" 3500s 3500s # specified autocommit mode. None means use server default. 3500s self.autocommit_mode = autocommit 3500s 3500s if conv is None: 3500s conv = converters.conversions 3500s 3500s # Need for MySQLdb compatibility. 3500s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 3500s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 3500s self.sql_mode = sql_mode 3500s self.init_command = init_command 3500s self.max_allowed_packet = max_allowed_packet 3500s self._auth_plugin_map = auth_plugin_map or {} 3500s self._binary_prefix = binary_prefix 3500s self.server_public_key = server_public_key 3500s 3500s self._connect_attrs = { 3500s "_client_name": "pymysql", 3500s "_client_version": VERSION_STRING, 3500s "_pid": str(os.getpid()), 3500s } 3500s 3500s if program_name: 3500s self._connect_attrs["program_name"] = program_name 3500s 3500s if defer_connect: 3500s self._sock = None 3500s else: 3500s > self.connect() 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = , sock = None 3500s 3500s def connect(self, sock=None): 3500s self._closed = False 3500s try: 3500s if sock is None: 3500s if self.unix_socket: 3500s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3500s sock.settimeout(self.connect_timeout) 3500s sock.connect(self.unix_socket) 3500s self.host_info = "Localhost via UNIX socket" 3500s self._secure = True 3500s if DEBUG: 3500s print("connected using unix_socket") 3500s else: 3500s kwargs = {} 3500s if self.bind_address is not None: 3500s kwargs["source_address"] = (self.bind_address, 0) 3500s while True: 3500s try: 3500s sock = socket.create_connection( 3500s (self.host, self.port), self.connect_timeout, **kwargs 3500s ) 3500s break 3500s except OSError as e: 3500s if e.errno == errno.EINTR: 3500s continue 3500s raise 3500s self.host_info = "socket %s:%d" % (self.host, self.port) 3500s if DEBUG: 3500s print("connected using socket") 3500s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 3500s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 3500s sock.settimeout(None) 3500s 3500s self._sock = sock 3500s self._rfile = sock.makefile("rb") 3500s self._next_seq_id = 0 3500s 3500s self._get_server_information() 3500s self._request_authentication() 3500s 3500s # Send "SET NAMES" query on init for: 3500s # - Ensure charaset (and collation) is set to the server. 3500s # - collation_id in handshake packet may be ignored. 3500s # - If collation is not specified, we don't know what is server's 3500s # default collation for the charset. For example, default collation 3500s # of utf8mb4 is: 3500s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 3500s # - MySQL 8.0: utf8mb4_0900_ai_ci 3500s # 3500s # Reference: 3500s # - https://github.com/PyMySQL/PyMySQL/issues/1092 3500s # - https://github.com/wagtail/wagtail/issues/9477 3500s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 3500s self.set_character_set(self.charset, self.collation) 3500s 3500s if self.sql_mode is not None: 3500s c = self.cursor() 3500s c.execute("SET sql_mode=%s", (self.sql_mode,)) 3500s c.close() 3500s 3500s if self.init_command is not None: 3500s c = self.cursor() 3500s c.execute(self.init_command) 3500s c.close() 3500s 3500s if self.autocommit_mode is not None: 3500s self.autocommit(self.autocommit_mode) 3500s except BaseException as e: 3500s self._rfile = None 3500s if sock is not None: 3500s try: 3500s sock.close() 3500s except: # noqa 3500s pass 3500s 3500s if isinstance(e, (OSError, IOError)): 3500s exc = err.OperationalError( 3500s CR.CR_CONN_HOST_ERROR, 3500s f"Can't connect to MySQL server on {self.host!r} ({e})", 3500s ) 3500s # Keep original exception and traceback to investigate error. 3500s exc.original_exception = e 3500s exc.traceback = traceback.format_exc() 3500s if DEBUG: 3500s print(exc.traceback) 3500s > raise exc 3500s E sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3500s E (Background on this error at: https://sqlalche.me/e/14/e3q8) 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 3500s __________ test_read_iris_query_chunksize[postgresql_psycopg2_engine] __________ 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s dsn = 'host=localhost user=postgres password=postgres port=5432 dbname=pandas' 3500s connection_factory = None, cursor_factory = None 3500s kwargs = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s kwasync = {} 3500s 3500s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 3500s """ 3500s Create a new database connection. 3500s 3500s The connection parameters can be specified as a string: 3500s 3500s conn = psycopg2.connect("dbname=test user=postgres password=secret") 3500s 3500s or using a set of keyword arguments: 3500s 3500s conn = psycopg2.connect(database="test", user="postgres", password="secret") 3500s 3500s Or as a mix of both. The basic connection parameters are: 3500s 3500s - *dbname*: the database name 3500s - *database*: the database name (only as keyword argument) 3500s - *user*: user name used to authenticate 3500s - *password*: password used to authenticate 3500s - *host*: database host address (defaults to UNIX socket if not provided) 3500s - *port*: connection port number (defaults to 5432 if not provided) 3500s 3500s Using the *connection_factory* parameter a different class or connections 3500s factory can be specified. It should be a callable object taking a dsn 3500s argument. 3500s 3500s Using the *cursor_factory* parameter, a new default cursor factory will be 3500s used by cursor(). 3500s 3500s Using *async*=True an asynchronous connection will be created. *async_* is 3500s a valid alias (for Python versions where ``async`` is a keyword). 3500s 3500s Any other keyword parameter will be passed to the underlying client 3500s library: the list of supported parameters depends on the library version. 3500s 3500s """ 3500s kwasync = {} 3500s if 'async' in kwargs: 3500s kwasync['async'] = kwargs.pop('async') 3500s if 'async_' in kwargs: 3500s kwasync['async_'] = kwargs.pop('async_') 3500s 3500s dsn = _ext.make_dsn(dsn, **kwargs) 3500s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 3500s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 3500s E Is the server running on that host and accepting TCP/IP connections? 3500s 3500s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 3500s 3500s The above exception was the direct cause of the following exception: 3500s 3500s conn = 'postgresql_psycopg2_engine' 3500s request = > 3500s 3500s @pytest.mark.db 3500s @pytest.mark.parametrize("conn", all_connectable_iris) 3500s def test_read_iris_query_chunksize(conn, request): 3500s > conn = request.getfixturevalue(conn) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:643: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'postgresql_psycopg2_engine' 3500s 3500s def getfixturevalue(self, argname: str) -> Any: 3500s """Dynamically run a named fixture function. 3500s 3500s Declaring fixtures via function argument is recommended where possible. 3500s But if you can only decide whether to use another fixture at test 3500s setup time, you may use this function to retrieve it inside a fixture 3500s or test function body. 3500s 3500s This method can be used during the test setup phase or the test run 3500s phase, but during the test teardown phase a fixture's value may not 3500s be available. 3500s 3500s :param argname: 3500s The fixture name. 3500s :raises pytest.FixtureLookupError: 3500s If the given fixture could not be found. 3500s """ 3500s > fixturedef = self._get_active_fixturedef(argname) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:585: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'postgresql_psycopg2_engine' 3500s 3500s def _get_active_fixturedef( 3500s self, argname: str 3500s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3500s try: 3500s return self._fixture_defs[argname] 3500s except KeyError: 3500s try: 3500s fixturedef = self._getnextfixturedef(argname) 3500s except FixtureLookupError: 3500s if argname == "request": 3500s cached_result = (self, [0], None) 3500s return PseudoFixtureDef(cached_result, Scope.Function) 3500s raise 3500s # Remove indent to prevent the python3 exception 3500s # from leaking into the call. 3500s > self._compute_fixture_value(fixturedef) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s fixturedef = 3500s 3500s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3500s """Create a SubRequest based on "self" and call the execute method 3500s of the given FixtureDef object. 3500s 3500s This will force the FixtureDef object to throw away any previous 3500s results and compute a new fixture value, which will be stored into 3500s the FixtureDef object itself. 3500s """ 3500s # prepare a subrequest object before calling fixture function 3500s # (latter managed by fixturedef) 3500s argname = fixturedef.argname 3500s funcitem = self._pyfuncitem 3500s scope = fixturedef._scope 3500s try: 3500s callspec = funcitem.callspec 3500s except AttributeError: 3500s callspec = None 3500s if callspec is not None and argname in callspec.params: 3500s param = callspec.params[argname] 3500s param_index = callspec.indices[argname] 3500s # If a parametrize invocation set a scope it will override 3500s # the static scope defined with the fixture function. 3500s with suppress(KeyError): 3500s scope = callspec._arg2scope[argname] 3500s else: 3500s param = NOTSET 3500s param_index = 0 3500s has_params = fixturedef.params is not None 3500s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3500s if has_params and fixtures_not_supported: 3500s msg = ( 3500s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3500s "Node id: {nodeid}\n" 3500s "Function type: {typename}" 3500s ).format( 3500s name=funcitem.name, 3500s nodeid=funcitem.nodeid, 3500s typename=type(funcitem).__name__, 3500s ) 3500s fail(msg, pytrace=False) 3500s if has_params: 3500s frame = inspect.stack()[3] 3500s frameinfo = inspect.getframeinfo(frame[0]) 3500s source_path = absolutepath(frameinfo.filename) 3500s source_lineno = frameinfo.lineno 3500s try: 3500s source_path_str = str( 3500s source_path.relative_to(funcitem.config.rootpath) 3500s ) 3500s except ValueError: 3500s source_path_str = str(source_path) 3500s msg = ( 3500s "The requested fixture has no parameter defined for test:\n" 3500s " {}\n\n" 3500s "Requested fixture '{}' defined in:\n{}" 3500s "\n\nRequested here:\n{}:{}".format( 3500s funcitem.nodeid, 3500s fixturedef.argname, 3500s getlocation(fixturedef.func, funcitem.config.rootpath), 3500s source_path_str, 3500s source_lineno, 3500s ) 3500s ) 3500s fail(msg, pytrace=False) 3500s 3500s subrequest = SubRequest( 3500s self, scope, param, param_index, fixturedef, _ispytest=True 3500s ) 3500s 3500s # Check if a higher-level scoped fixture accesses a lower level one. 3500s subrequest._check_scope(argname, self._scope, scope) 3500s try: 3500s # Call the fixture function. 3500s > fixturedef.execute(request=subrequest) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s request = > 3500s 3500s def execute(self, request: SubRequest) -> FixtureValue: 3500s # Get required arguments and register our own finish() 3500s # with their finalization. 3500s for argname in self.argnames: 3500s fixturedef = request._get_active_fixturedef(argname) 3500s if argname != "request": 3500s # PseudoFixtureDef is only for "request". 3500s assert isinstance(fixturedef, FixtureDef) 3500s fixturedef.addfinalizer(functools.partial(self.finish, request=request)) 3500s 3500s my_cache_key = self.cache_key(request) 3500s if self.cached_result is not None: 3500s # note: comparison with `==` can fail (or be expensive) for e.g. 3500s # numpy arrays (#6497). 3500s cache_key = self.cached_result[1] 3500s if my_cache_key is cache_key: 3500s if self.cached_result[2] is not None: 3500s _, val, tb = self.cached_result[2] 3500s raise val.with_traceback(tb) 3500s else: 3500s result = self.cached_result[0] 3500s return result 3500s # We have a previous but differently parametrized fixture instance 3500s # so we need to tear it down before creating a new one. 3500s self.finish(request) 3500s assert self.cached_result is None 3500s 3500s ihook = request.node.ihook 3500s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1069: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s kwargs = {'fixturedef': , 'request': >} 3500s firstresult = True 3500s 3500s def __call__(self, **kwargs: object) -> Any: 3500s """Call the hook. 3500s 3500s Only accepts keyword arguments, which should match the hook 3500s specification. 3500s 3500s Returns the result(s) of calling all registered plugins, see 3500s :ref:`calling`. 3500s """ 3500s assert ( 3500s not self.is_historic() 3500s ), "Cannot directly call a historic hook - use call_historic instead." 3500s self._verify_all_args_are_provided(kwargs) 3500s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 3500s # Copy because plugins may register other plugins during iteration (#438). 3500s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = <_pytest.config.PytestPluginManager object at 0xe9079168> 3500s hook_name = 'pytest_fixture_setup' 3500s methods = [>] 3500s kwargs = {'fixturedef': , 'request': >} 3500s firstresult = True 3500s 3500s def _hookexec( 3500s self, 3500s hook_name: str, 3500s methods: Sequence[HookImpl], 3500s kwargs: Mapping[str, object], 3500s firstresult: bool, 3500s ) -> object | list[object]: 3500s # called from all hookcaller instances. 3500s # enable_tracing will set its own wrapping function at self._inner_hookexec 3500s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturedef = 3500s request = > 3500s 3500s def pytest_fixture_setup( 3500s fixturedef: FixtureDef[FixtureValue], request: SubRequest 3500s ) -> FixtureValue: 3500s """Execution of fixture setup.""" 3500s kwargs = {} 3500s for argname in fixturedef.argnames: 3500s fixdef = request._get_active_fixturedef(argname) 3500s assert fixdef.cached_result is not None 3500s result, arg_cache_key, exc = fixdef.cached_result 3500s request._check_scope(argname, request._scope, fixdef._scope) 3500s kwargs[argname] = result 3500s 3500s fixturefunc = resolve_fixture_function(fixturedef, request) 3500s my_cache_key = fixturedef.cache_key(request) 3500s try: 3500s > result = call_fixture_func(fixturefunc, request, kwargs) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1123: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturefunc = 3500s request = > 3500s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv'), 'types_data': [{'B... False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}]} 3500s 3500s def call_fixture_func( 3500s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 3500s ) -> FixtureValue: 3500s if is_generator(fixturefunc): 3500s fixturefunc = cast( 3500s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 3500s ) 3500s generator = fixturefunc(**kwargs) 3500s try: 3500s > fixture_result = next(generator) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:895: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s iris_path = PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv') 3500s types_data = [{'BoolCol': False, 'BoolColWithNull': False, 'DateCol': '2000-01-03 00:00:00', 'DateColWithTz': '2000-01-01 00:00:00-...: False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}] 3500s 3500s @pytest.fixture 3500s def postgresql_psycopg2_engine(iris_path, types_data): 3500s sqlalchemy = pytest.importorskip("sqlalchemy") 3500s pytest.importorskip("psycopg2") 3500s engine = sqlalchemy.create_engine( 3500s "postgresql+psycopg2://postgres:postgres@localhost:5432/pandas", 3500s poolclass=sqlalchemy.pool.NullPool, 3500s ) 3500s > insp = sqlalchemy.inspect(engine) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:438: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s subject = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s raiseerr = True 3500s 3500s def inspect(subject, raiseerr=True): 3500s """Produce an inspection object for the given target. 3500s 3500s The returned value in some cases may be the 3500s same object as the one given, such as if a 3500s :class:`_orm.Mapper` object is passed. In other 3500s cases, it will be an instance of the registered 3500s inspection type for the given object, such as 3500s if an :class:`_engine.Engine` is passed, an 3500s :class:`_reflection.Inspector` object is returned. 3500s 3500s :param subject: the subject to be inspected. 3500s :param raiseerr: When ``True``, if the given subject 3500s does not 3500s correspond to a known SQLAlchemy inspected type, 3500s :class:`sqlalchemy.exc.NoInspectionAvailable` 3500s is raised. If ``False``, ``None`` is returned. 3500s 3500s """ 3500s type_ = type(subject) 3500s for cls in type_.__mro__: 3500s if cls in _registrars: 3500s reg = _registrars[cls] 3500s if reg is True: 3500s return subject 3500s > ret = reg(subject) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:64: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s @inspection._inspects(Engine) 3500s def _engine_insp(bind): 3500s > return Inspector._construct(Inspector._init_engine, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:182: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s init = 3500s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s @classmethod 3500s def _construct(cls, init, bind): 3500s 3500s if hasattr(bind.dialect, "inspector"): 3500s cls = bind.dialect.inspector 3500s 3500s self = cls.__new__(cls) 3500s > init(self, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:117: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s def _init_engine(self, engine): 3500s self.bind = self.engine = engine 3500s > engine.connect().close() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:128: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s close_with_result = False 3500s 3500s def connect(self, close_with_result=False): 3500s """Return a new :class:`_engine.Connection` object. 3500s 3500s The :class:`_engine.Connection` object is a facade that uses a DBAPI 3500s connection internally in order to communicate with the database. This 3500s connection is procured from the connection-holding :class:`_pool.Pool` 3500s referenced by this :class:`_engine.Engine`. When the 3500s :meth:`_engine.Connection.close` method of the 3500s :class:`_engine.Connection` object 3500s is called, the underlying DBAPI connection is then returned to the 3500s connection pool, where it may be used again in a subsequent call to 3500s :meth:`_engine.Engine.connect`. 3500s 3500s """ 3500s 3500s > return self._connection_cls(self, close_with_result=close_with_result) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3325: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s connection = None, close_with_result = False, _branch_from = None 3500s _execution_options = None, _dispatch = None, _has_events = None 3500s _allow_revalidate = True 3500s 3500s def __init__( 3500s self, 3500s engine, 3500s connection=None, 3500s close_with_result=False, 3500s _branch_from=None, 3500s _execution_options=None, 3500s _dispatch=None, 3500s _has_events=None, 3500s _allow_revalidate=True, 3500s ): 3500s """Construct a new Connection.""" 3500s self.engine = engine 3500s self.dialect = engine.dialect 3500s self.__branch_from = _branch_from 3500s 3500s if _branch_from: 3500s # branching is always "from" the root connection 3500s assert _branch_from.__branch_from is None 3500s self._dbapi_connection = connection 3500s self._execution_options = _execution_options 3500s self._echo = _branch_from._echo 3500s self.should_close_with_result = False 3500s self.dispatch = _dispatch 3500s self._has_events = _branch_from._has_events 3500s else: 3500s self._dbapi_connection = ( 3500s connection 3500s if connection is not None 3500s > else engine.raw_connection() 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:96: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s _connection = None 3500s 3500s def raw_connection(self, _connection=None): 3500s """Return a "raw" DBAPI connection from the connection pool. 3500s 3500s The returned object is a proxied version of the DBAPI 3500s connection object used by the underlying driver in use. 3500s The object will have all the same behavior as the real DBAPI 3500s connection, except that its ``close()`` method will result in the 3500s connection being returned to the pool, rather than being closed 3500s for real. 3500s 3500s This method provides direct DBAPI connection access for 3500s special situations when the API provided by 3500s :class:`_engine.Connection` 3500s is not needed. When a :class:`_engine.Connection` object is already 3500s present, the DBAPI connection is available using 3500s the :attr:`_engine.Connection.connection` accessor. 3500s 3500s .. seealso:: 3500s 3500s :ref:`dbapi_connections` 3500s 3500s """ 3500s > return self._wrap_pool_connect(self.pool.connect, _connection) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3404: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s return fn() 3500s except dialect.dbapi.Error as e: 3500s if connection is None: 3500s > Connection._handle_dbapi_exception_noconnection( 3500s e, dialect, self 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3374: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s e = OperationalError('connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused\n\tIs the server running on that host and accepting TCP/IP connections?\n') 3500s dialect = 3500s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s @classmethod 3500s def _handle_dbapi_exception_noconnection(cls, e, dialect, engine): 3500s exc_info = sys.exc_info() 3500s 3500s is_disconnect = dialect.is_disconnect(e, None, None) 3500s 3500s should_wrap = isinstance(e, dialect.dbapi.Error) 3500s 3500s if should_wrap: 3500s sqlalchemy_exception = exc.DBAPIError.instance( 3500s None, 3500s None, 3500s e, 3500s dialect.dbapi.Error, 3500s hide_parameters=engine.hide_parameters, 3500s connection_invalidated=is_disconnect, 3500s ) 3500s else: 3500s sqlalchemy_exception = None 3500s 3500s newraise = None 3500s 3500s if engine._has_events: 3500s ctx = ExceptionContextImpl( 3500s e, 3500s sqlalchemy_exception, 3500s engine, 3500s None, 3500s None, 3500s None, 3500s None, 3500s None, 3500s is_disconnect, 3500s True, 3500s ) 3500s for fn in engine.dispatch.handle_error: 3500s try: 3500s # handler returns an exception; 3500s # call next handler in a chain 3500s per_fn = fn(ctx) 3500s if per_fn is not None: 3500s ctx.chained_exception = newraise = per_fn 3500s except Exception as _raised: 3500s # handler raises an exception - stop processing 3500s newraise = _raised 3500s break 3500s 3500s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 3500s sqlalchemy_exception.connection_invalidated = ( 3500s is_disconnect 3500s ) = ctx.is_disconnect 3500s 3500s if newraise: 3500s util.raise_(newraise, with_traceback=exc_info[2], from_=e) 3500s elif should_wrap: 3500s > util.raise_( 3500s sqlalchemy_exception, with_traceback=exc_info[2], from_=e 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2208: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s dsn = 'host=localhost user=postgres password=postgres port=5432 dbname=pandas' 3500s connection_factory = None, cursor_factory = None 3500s kwargs = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s kwasync = {} 3500s 3500s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 3500s """ 3500s Create a new database connection. 3500s 3500s The connection parameters can be specified as a string: 3500s 3500s conn = psycopg2.connect("dbname=test user=postgres password=secret") 3500s 3500s or using a set of keyword arguments: 3500s 3500s conn = psycopg2.connect(database="test", user="postgres", password="secret") 3500s 3500s Or as a mix of both. The basic connection parameters are: 3500s 3500s - *dbname*: the database name 3500s - *database*: the database name (only as keyword argument) 3500s - *user*: user name used to authenticate 3500s - *password*: password used to authenticate 3500s - *host*: database host address (defaults to UNIX socket if not provided) 3500s - *port*: connection port number (defaults to 5432 if not provided) 3500s 3500s Using the *connection_factory* parameter a different class or connections 3500s factory can be specified. It should be a callable object taking a dsn 3500s argument. 3500s 3500s Using the *cursor_factory* parameter, a new default cursor factory will be 3500s used by cursor(). 3500s 3500s Using *async*=True an asynchronous connection will be created. *async_* is 3500s a valid alias (for Python versions where ``async`` is a keyword). 3500s 3500s Any other keyword parameter will be passed to the underlying client 3500s library: the list of supported parameters depends on the library version. 3500s 3500s """ 3500s kwasync = {} 3500s if 'async' in kwargs: 3500s kwasync['async'] = kwargs.pop('async') 3500s if 'async_' in kwargs: 3500s kwasync['async_'] = kwargs.pop('async_') 3500s 3500s dsn = _ext.make_dsn(dsn, **kwargs) 3500s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 3500s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 3500s E Is the server running on that host and accepting TCP/IP connections? 3500s E 3500s E (Background on this error at: https://sqlalche.me/e/14/e3q8) 3500s 3500s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 3500s ___________ test_read_iris_query_chunksize[postgresql_psycopg2_conn] ___________ 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s dsn = 'host=localhost user=postgres password=postgres port=5432 dbname=pandas' 3500s connection_factory = None, cursor_factory = None 3500s kwargs = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s kwasync = {} 3500s 3500s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 3500s """ 3500s Create a new database connection. 3500s 3500s The connection parameters can be specified as a string: 3500s 3500s conn = psycopg2.connect("dbname=test user=postgres password=secret") 3500s 3500s or using a set of keyword arguments: 3500s 3500s conn = psycopg2.connect(database="test", user="postgres", password="secret") 3500s 3500s Or as a mix of both. The basic connection parameters are: 3500s 3500s - *dbname*: the database name 3500s - *database*: the database name (only as keyword argument) 3500s - *user*: user name used to authenticate 3500s - *password*: password used to authenticate 3500s - *host*: database host address (defaults to UNIX socket if not provided) 3500s - *port*: connection port number (defaults to 5432 if not provided) 3500s 3500s Using the *connection_factory* parameter a different class or connections 3500s factory can be specified. It should be a callable object taking a dsn 3500s argument. 3500s 3500s Using the *cursor_factory* parameter, a new default cursor factory will be 3500s used by cursor(). 3500s 3500s Using *async*=True an asynchronous connection will be created. *async_* is 3500s a valid alias (for Python versions where ``async`` is a keyword). 3500s 3500s Any other keyword parameter will be passed to the underlying client 3500s library: the list of supported parameters depends on the library version. 3500s 3500s """ 3500s kwasync = {} 3500s if 'async' in kwargs: 3500s kwasync['async'] = kwargs.pop('async') 3500s if 'async_' in kwargs: 3500s kwasync['async_'] = kwargs.pop('async_') 3500s 3500s dsn = _ext.make_dsn(dsn, **kwargs) 3500s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 3500s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 3500s E Is the server running on that host and accepting TCP/IP connections? 3500s 3500s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 3500s 3500s The above exception was the direct cause of the following exception: 3500s 3500s conn = 'postgresql_psycopg2_conn' 3500s request = > 3500s 3500s @pytest.mark.db 3500s @pytest.mark.parametrize("conn", all_connectable_iris) 3500s def test_read_iris_query_chunksize(conn, request): 3500s > conn = request.getfixturevalue(conn) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:643: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'postgresql_psycopg2_conn' 3500s 3500s def getfixturevalue(self, argname: str) -> Any: 3500s """Dynamically run a named fixture function. 3500s 3500s Declaring fixtures via function argument is recommended where possible. 3500s But if you can only decide whether to use another fixture at test 3500s setup time, you may use this function to retrieve it inside a fixture 3500s or test function body. 3500s 3500s This method can be used during the test setup phase or the test run 3500s phase, but during the test teardown phase a fixture's value may not 3500s be available. 3500s 3500s :param argname: 3500s The fixture name. 3500s :raises pytest.FixtureLookupError: 3500s If the given fixture could not be found. 3500s """ 3500s > fixturedef = self._get_active_fixturedef(argname) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:585: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'postgresql_psycopg2_conn' 3500s 3500s def _get_active_fixturedef( 3500s self, argname: str 3500s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3500s try: 3500s return self._fixture_defs[argname] 3500s except KeyError: 3500s try: 3500s fixturedef = self._getnextfixturedef(argname) 3500s except FixtureLookupError: 3500s if argname == "request": 3500s cached_result = (self, [0], None) 3500s return PseudoFixtureDef(cached_result, Scope.Function) 3500s raise 3500s # Remove indent to prevent the python3 exception 3500s # from leaking into the call. 3500s > self._compute_fixture_value(fixturedef) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s fixturedef = 3500s 3500s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3500s """Create a SubRequest based on "self" and call the execute method 3500s of the given FixtureDef object. 3500s 3500s This will force the FixtureDef object to throw away any previous 3500s results and compute a new fixture value, which will be stored into 3500s the FixtureDef object itself. 3500s """ 3500s # prepare a subrequest object before calling fixture function 3500s # (latter managed by fixturedef) 3500s argname = fixturedef.argname 3500s funcitem = self._pyfuncitem 3500s scope = fixturedef._scope 3500s try: 3500s callspec = funcitem.callspec 3500s except AttributeError: 3500s callspec = None 3500s if callspec is not None and argname in callspec.params: 3500s param = callspec.params[argname] 3500s param_index = callspec.indices[argname] 3500s # If a parametrize invocation set a scope it will override 3500s # the static scope defined with the fixture function. 3500s with suppress(KeyError): 3500s scope = callspec._arg2scope[argname] 3500s else: 3500s param = NOTSET 3500s param_index = 0 3500s has_params = fixturedef.params is not None 3500s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3500s if has_params and fixtures_not_supported: 3500s msg = ( 3500s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3500s "Node id: {nodeid}\n" 3500s "Function type: {typename}" 3500s ).format( 3500s name=funcitem.name, 3500s nodeid=funcitem.nodeid, 3500s typename=type(funcitem).__name__, 3500s ) 3500s fail(msg, pytrace=False) 3500s if has_params: 3500s frame = inspect.stack()[3] 3500s frameinfo = inspect.getframeinfo(frame[0]) 3500s source_path = absolutepath(frameinfo.filename) 3500s source_lineno = frameinfo.lineno 3500s try: 3500s source_path_str = str( 3500s source_path.relative_to(funcitem.config.rootpath) 3500s ) 3500s except ValueError: 3500s source_path_str = str(source_path) 3500s msg = ( 3500s "The requested fixture has no parameter defined for test:\n" 3500s " {}\n\n" 3500s "Requested fixture '{}' defined in:\n{}" 3500s "\n\nRequested here:\n{}:{}".format( 3500s funcitem.nodeid, 3500s fixturedef.argname, 3500s getlocation(fixturedef.func, funcitem.config.rootpath), 3500s source_path_str, 3500s source_lineno, 3500s ) 3500s ) 3500s fail(msg, pytrace=False) 3500s 3500s subrequest = SubRequest( 3500s self, scope, param, param_index, fixturedef, _ispytest=True 3500s ) 3500s 3500s # Check if a higher-level scoped fixture accesses a lower level one. 3500s subrequest._check_scope(argname, self._scope, scope) 3500s try: 3500s # Call the fixture function. 3500s > fixturedef.execute(request=subrequest) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s request = > 3500s 3500s def execute(self, request: SubRequest) -> FixtureValue: 3500s # Get required arguments and register our own finish() 3500s # with their finalization. 3500s for argname in self.argnames: 3500s > fixturedef = request._get_active_fixturedef(argname) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1045: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'postgresql_psycopg2_engine' 3500s 3500s def _get_active_fixturedef( 3500s self, argname: str 3500s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3500s try: 3500s return self._fixture_defs[argname] 3500s except KeyError: 3500s try: 3500s fixturedef = self._getnextfixturedef(argname) 3500s except FixtureLookupError: 3500s if argname == "request": 3500s cached_result = (self, [0], None) 3500s return PseudoFixtureDef(cached_result, Scope.Function) 3500s raise 3500s # Remove indent to prevent the python3 exception 3500s # from leaking into the call. 3500s > self._compute_fixture_value(fixturedef) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s fixturedef = 3500s 3500s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3500s """Create a SubRequest based on "self" and call the execute method 3500s of the given FixtureDef object. 3500s 3500s This will force the FixtureDef object to throw away any previous 3500s results and compute a new fixture value, which will be stored into 3500s the FixtureDef object itself. 3500s """ 3500s # prepare a subrequest object before calling fixture function 3500s # (latter managed by fixturedef) 3500s argname = fixturedef.argname 3500s funcitem = self._pyfuncitem 3500s scope = fixturedef._scope 3500s try: 3500s callspec = funcitem.callspec 3500s except AttributeError: 3500s callspec = None 3500s if callspec is not None and argname in callspec.params: 3500s param = callspec.params[argname] 3500s param_index = callspec.indices[argname] 3500s # If a parametrize invocation set a scope it will override 3500s # the static scope defined with the fixture function. 3500s with suppress(KeyError): 3500s scope = callspec._arg2scope[argname] 3500s else: 3500s param = NOTSET 3500s param_index = 0 3500s has_params = fixturedef.params is not None 3500s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3500s if has_params and fixtures_not_supported: 3500s msg = ( 3500s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3500s "Node id: {nodeid}\n" 3500s "Function type: {typename}" 3500s ).format( 3500s name=funcitem.name, 3500s nodeid=funcitem.nodeid, 3500s typename=type(funcitem).__name__, 3500s ) 3500s fail(msg, pytrace=False) 3500s if has_params: 3500s frame = inspect.stack()[3] 3500s frameinfo = inspect.getframeinfo(frame[0]) 3500s source_path = absolutepath(frameinfo.filename) 3500s source_lineno = frameinfo.lineno 3500s try: 3500s source_path_str = str( 3500s source_path.relative_to(funcitem.config.rootpath) 3500s ) 3500s except ValueError: 3500s source_path_str = str(source_path) 3500s msg = ( 3500s "The requested fixture has no parameter defined for test:\n" 3500s " {}\n\n" 3500s "Requested fixture '{}' defined in:\n{}" 3500s "\n\nRequested here:\n{}:{}".format( 3500s funcitem.nodeid, 3500s fixturedef.argname, 3500s getlocation(fixturedef.func, funcitem.config.rootpath), 3500s source_path_str, 3500s source_lineno, 3500s ) 3500s ) 3500s fail(msg, pytrace=False) 3500s 3500s subrequest = SubRequest( 3500s self, scope, param, param_index, fixturedef, _ispytest=True 3500s ) 3500s 3500s # Check if a higher-level scoped fixture accesses a lower level one. 3500s subrequest._check_scope(argname, self._scope, scope) 3500s try: 3500s # Call the fixture function. 3500s > fixturedef.execute(request=subrequest) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s request = > 3500s 3500s def execute(self, request: SubRequest) -> FixtureValue: 3500s # Get required arguments and register our own finish() 3500s # with their finalization. 3500s for argname in self.argnames: 3500s fixturedef = request._get_active_fixturedef(argname) 3500s if argname != "request": 3500s # PseudoFixtureDef is only for "request". 3500s assert isinstance(fixturedef, FixtureDef) 3500s fixturedef.addfinalizer(functools.partial(self.finish, request=request)) 3500s 3500s my_cache_key = self.cache_key(request) 3500s if self.cached_result is not None: 3500s # note: comparison with `==` can fail (or be expensive) for e.g. 3500s # numpy arrays (#6497). 3500s cache_key = self.cached_result[1] 3500s if my_cache_key is cache_key: 3500s if self.cached_result[2] is not None: 3500s _, val, tb = self.cached_result[2] 3500s raise val.with_traceback(tb) 3500s else: 3500s result = self.cached_result[0] 3500s return result 3500s # We have a previous but differently parametrized fixture instance 3500s # so we need to tear it down before creating a new one. 3500s self.finish(request) 3500s assert self.cached_result is None 3500s 3500s ihook = request.node.ihook 3500s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1069: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s kwargs = {'fixturedef': , 'request': >} 3500s firstresult = True 3500s 3500s def __call__(self, **kwargs: object) -> Any: 3500s """Call the hook. 3500s 3500s Only accepts keyword arguments, which should match the hook 3500s specification. 3500s 3500s Returns the result(s) of calling all registered plugins, see 3500s :ref:`calling`. 3500s """ 3500s assert ( 3500s not self.is_historic() 3500s ), "Cannot directly call a historic hook - use call_historic instead." 3500s self._verify_all_args_are_provided(kwargs) 3500s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 3500s # Copy because plugins may register other plugins during iteration (#438). 3500s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = <_pytest.config.PytestPluginManager object at 0xe9079168> 3500s hook_name = 'pytest_fixture_setup' 3500s methods = [>] 3500s kwargs = {'fixturedef': , 'request': >} 3500s firstresult = True 3500s 3500s def _hookexec( 3500s self, 3500s hook_name: str, 3500s methods: Sequence[HookImpl], 3500s kwargs: Mapping[str, object], 3500s firstresult: bool, 3500s ) -> object | list[object]: 3500s # called from all hookcaller instances. 3500s # enable_tracing will set its own wrapping function at self._inner_hookexec 3500s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturedef = 3500s request = > 3500s 3500s def pytest_fixture_setup( 3500s fixturedef: FixtureDef[FixtureValue], request: SubRequest 3500s ) -> FixtureValue: 3500s """Execution of fixture setup.""" 3500s kwargs = {} 3500s for argname in fixturedef.argnames: 3500s fixdef = request._get_active_fixturedef(argname) 3500s assert fixdef.cached_result is not None 3500s result, arg_cache_key, exc = fixdef.cached_result 3500s request._check_scope(argname, request._scope, fixdef._scope) 3500s kwargs[argname] = result 3500s 3500s fixturefunc = resolve_fixture_function(fixturedef, request) 3500s my_cache_key = fixturedef.cache_key(request) 3500s try: 3500s > result = call_fixture_func(fixturefunc, request, kwargs) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1123: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturefunc = 3500s request = > 3500s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv'), 'types_data': [{'B... False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}]} 3500s 3500s def call_fixture_func( 3500s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 3500s ) -> FixtureValue: 3500s if is_generator(fixturefunc): 3500s fixturefunc = cast( 3500s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 3500s ) 3500s generator = fixturefunc(**kwargs) 3500s try: 3500s > fixture_result = next(generator) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:895: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s iris_path = PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv') 3500s types_data = [{'BoolCol': False, 'BoolColWithNull': False, 'DateCol': '2000-01-03 00:00:00', 'DateColWithTz': '2000-01-01 00:00:00-...: False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}] 3500s 3500s @pytest.fixture 3500s def postgresql_psycopg2_engine(iris_path, types_data): 3500s sqlalchemy = pytest.importorskip("sqlalchemy") 3500s pytest.importorskip("psycopg2") 3500s engine = sqlalchemy.create_engine( 3500s "postgresql+psycopg2://postgres:postgres@localhost:5432/pandas", 3500s poolclass=sqlalchemy.pool.NullPool, 3500s ) 3500s > insp = sqlalchemy.inspect(engine) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:438: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s subject = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s raiseerr = True 3500s 3500s def inspect(subject, raiseerr=True): 3500s """Produce an inspection object for the given target. 3500s 3500s The returned value in some cases may be the 3500s same object as the one given, such as if a 3500s :class:`_orm.Mapper` object is passed. In other 3500s cases, it will be an instance of the registered 3500s inspection type for the given object, such as 3500s if an :class:`_engine.Engine` is passed, an 3500s :class:`_reflection.Inspector` object is returned. 3500s 3500s :param subject: the subject to be inspected. 3500s :param raiseerr: When ``True``, if the given subject 3500s does not 3500s correspond to a known SQLAlchemy inspected type, 3500s :class:`sqlalchemy.exc.NoInspectionAvailable` 3500s is raised. If ``False``, ``None`` is returned. 3500s 3500s """ 3500s type_ = type(subject) 3500s for cls in type_.__mro__: 3500s if cls in _registrars: 3500s reg = _registrars[cls] 3500s if reg is True: 3500s return subject 3500s > ret = reg(subject) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:64: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s @inspection._inspects(Engine) 3500s def _engine_insp(bind): 3500s > return Inspector._construct(Inspector._init_engine, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:182: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s init = 3500s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s @classmethod 3500s def _construct(cls, init, bind): 3500s 3500s if hasattr(bind.dialect, "inspector"): 3500s cls = bind.dialect.inspector 3500s 3500s self = cls.__new__(cls) 3500s > init(self, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:117: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s def _init_engine(self, engine): 3500s self.bind = self.engine = engine 3500s > engine.connect().close() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:128: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s close_with_result = False 3500s 3500s def connect(self, close_with_result=False): 3500s """Return a new :class:`_engine.Connection` object. 3500s 3500s The :class:`_engine.Connection` object is a facade that uses a DBAPI 3500s connection internally in order to communicate with the database. This 3500s connection is procured from the connection-holding :class:`_pool.Pool` 3500s referenced by this :class:`_engine.Engine`. When the 3500s :meth:`_engine.Connection.close` method of the 3500s :class:`_engine.Connection` object 3500s is called, the underlying DBAPI connection is then returned to the 3500s connection pool, where it may be used again in a subsequent call to 3500s :meth:`_engine.Engine.connect`. 3500s 3500s """ 3500s 3500s > return self._connection_cls(self, close_with_result=close_with_result) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3325: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s connection = None, close_with_result = False, _branch_from = None 3500s _execution_options = None, _dispatch = None, _has_events = None 3500s _allow_revalidate = True 3500s 3500s def __init__( 3500s self, 3500s engine, 3500s connection=None, 3500s close_with_result=False, 3500s _branch_from=None, 3500s _execution_options=None, 3500s _dispatch=None, 3500s _has_events=None, 3500s _allow_revalidate=True, 3500s ): 3500s """Construct a new Connection.""" 3500s self.engine = engine 3500s self.dialect = engine.dialect 3500s self.__branch_from = _branch_from 3500s 3500s if _branch_from: 3500s # branching is always "from" the root connection 3500s assert _branch_from.__branch_from is None 3500s self._dbapi_connection = connection 3500s self._execution_options = _execution_options 3500s self._echo = _branch_from._echo 3500s self.should_close_with_result = False 3500s self.dispatch = _dispatch 3500s self._has_events = _branch_from._has_events 3500s else: 3500s self._dbapi_connection = ( 3500s connection 3500s if connection is not None 3500s > else engine.raw_connection() 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:96: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s _connection = None 3500s 3500s def raw_connection(self, _connection=None): 3500s """Return a "raw" DBAPI connection from the connection pool. 3500s 3500s The returned object is a proxied version of the DBAPI 3500s connection object used by the underlying driver in use. 3500s The object will have all the same behavior as the real DBAPI 3500s connection, except that its ``close()`` method will result in the 3500s connection being returned to the pool, rather than being closed 3500s for real. 3500s 3500s This method provides direct DBAPI connection access for 3500s special situations when the API provided by 3500s :class:`_engine.Connection` 3500s is not needed. When a :class:`_engine.Connection` object is already 3500s present, the DBAPI connection is available using 3500s the :attr:`_engine.Connection.connection` accessor. 3500s 3500s .. seealso:: 3500s 3500s :ref:`dbapi_connections` 3500s 3500s """ 3500s > return self._wrap_pool_connect(self.pool.connect, _connection) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3404: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s return fn() 3500s except dialect.dbapi.Error as e: 3500s if connection is None: 3500s > Connection._handle_dbapi_exception_noconnection( 3500s e, dialect, self 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3374: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s e = OperationalError('connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused\n\tIs the server running on that host and accepting TCP/IP connections?\n') 3500s dialect = 3500s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s @classmethod 3500s def _handle_dbapi_exception_noconnection(cls, e, dialect, engine): 3500s exc_info = sys.exc_info() 3500s 3500s is_disconnect = dialect.is_disconnect(e, None, None) 3500s 3500s should_wrap = isinstance(e, dialect.dbapi.Error) 3500s 3500s if should_wrap: 3500s sqlalchemy_exception = exc.DBAPIError.instance( 3500s None, 3500s None, 3500s e, 3500s dialect.dbapi.Error, 3500s hide_parameters=engine.hide_parameters, 3500s connection_invalidated=is_disconnect, 3500s ) 3500s else: 3500s sqlalchemy_exception = None 3500s 3500s newraise = None 3500s 3500s if engine._has_events: 3500s ctx = ExceptionContextImpl( 3500s e, 3500s sqlalchemy_exception, 3500s engine, 3500s None, 3500s None, 3500s None, 3500s None, 3500s None, 3500s is_disconnect, 3500s True, 3500s ) 3500s for fn in engine.dispatch.handle_error: 3500s try: 3500s # handler returns an exception; 3500s # call next handler in a chain 3500s per_fn = fn(ctx) 3500s if per_fn is not None: 3500s ctx.chained_exception = newraise = per_fn 3500s except Exception as _raised: 3500s # handler raises an exception - stop processing 3500s newraise = _raised 3500s break 3500s 3500s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 3500s sqlalchemy_exception.connection_invalidated = ( 3500s is_disconnect 3500s ) = ctx.is_disconnect 3500s 3500s if newraise: 3500s util.raise_(newraise, with_traceback=exc_info[2], from_=e) 3500s elif should_wrap: 3500s > util.raise_( 3500s sqlalchemy_exception, with_traceback=exc_info[2], from_=e 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2208: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s dsn = 'host=localhost user=postgres password=postgres port=5432 dbname=pandas' 3500s connection_factory = None, cursor_factory = None 3500s kwargs = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s kwasync = {} 3500s 3500s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 3500s """ 3500s Create a new database connection. 3500s 3500s The connection parameters can be specified as a string: 3500s 3500s conn = psycopg2.connect("dbname=test user=postgres password=secret") 3500s 3500s or using a set of keyword arguments: 3500s 3500s conn = psycopg2.connect(database="test", user="postgres", password="secret") 3500s 3500s Or as a mix of both. The basic connection parameters are: 3500s 3500s - *dbname*: the database name 3500s - *database*: the database name (only as keyword argument) 3500s - *user*: user name used to authenticate 3500s - *password*: password used to authenticate 3500s - *host*: database host address (defaults to UNIX socket if not provided) 3500s - *port*: connection port number (defaults to 5432 if not provided) 3500s 3500s Using the *connection_factory* parameter a different class or connections 3500s factory can be specified. It should be a callable object taking a dsn 3500s argument. 3500s 3500s Using the *cursor_factory* parameter, a new default cursor factory will be 3500s used by cursor(). 3500s 3500s Using *async*=True an asynchronous connection will be created. *async_* is 3500s a valid alias (for Python versions where ``async`` is a keyword). 3500s 3500s Any other keyword parameter will be passed to the underlying client 3500s library: the list of supported parameters depends on the library version. 3500s 3500s """ 3500s kwasync = {} 3500s if 'async' in kwargs: 3500s kwasync['async'] = kwargs.pop('async') 3500s if 'async_' in kwargs: 3500s kwasync['async_'] = kwargs.pop('async_') 3500s 3500s dsn = _ext.make_dsn(dsn, **kwargs) 3500s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 3500s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 3500s E Is the server running on that host and accepting TCP/IP connections? 3500s E 3500s E (Background on this error at: https://sqlalche.me/e/14/e3q8) 3500s 3500s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 3500s _____ test_read_iris_query_expression_with_parameter[mysql_pymysql_engine] _____ 3500s self = , sock = None 3500s 3500s def connect(self, sock=None): 3500s self._closed = False 3500s try: 3500s if sock is None: 3500s if self.unix_socket: 3500s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3500s sock.settimeout(self.connect_timeout) 3500s sock.connect(self.unix_socket) 3500s self.host_info = "Localhost via UNIX socket" 3500s self._secure = True 3500s if DEBUG: 3500s print("connected using unix_socket") 3500s else: 3500s kwargs = {} 3500s if self.bind_address is not None: 3500s kwargs["source_address"] = (self.bind_address, 0) 3500s while True: 3500s try: 3500s > sock = socket.create_connection( 3500s (self.host, self.port), self.connect_timeout, **kwargs 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:649: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s address = ('localhost', 3306), timeout = 10, source_address = None 3500s 3500s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 3500s source_address=None, *, all_errors=False): 3500s """Connect to *address* and return the socket object. 3500s 3500s Convenience function. Connect to *address* (a 2-tuple ``(host, 3500s port)``) and return the socket object. Passing the optional 3500s *timeout* parameter will set the timeout on the socket instance 3500s before attempting to connect. If no *timeout* is supplied, the 3500s global default timeout setting returned by :func:`getdefaulttimeout` 3500s is used. If *source_address* is set it must be a tuple of (host, port) 3500s for the socket to bind as a source address before making the connection. 3500s A host of '' or port 0 tells the OS to use the default. When a connection 3500s cannot be created, raises the last error if *all_errors* is False, 3500s and an ExceptionGroup of all errors if *all_errors* is True. 3500s """ 3500s 3500s host, port = address 3500s exceptions = [] 3500s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 3500s af, socktype, proto, canonname, sa = res 3500s sock = None 3500s try: 3500s sock = socket(af, socktype, proto) 3500s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 3500s sock.settimeout(timeout) 3500s if source_address: 3500s sock.bind(source_address) 3500s sock.connect(sa) 3500s # Break explicitly a reference cycle 3500s exceptions.clear() 3500s return sock 3500s 3500s except error as exc: 3500s if not all_errors: 3500s exceptions.clear() # raise only the last error 3500s exceptions.append(exc) 3500s if sock is not None: 3500s sock.close() 3500s 3500s if len(exceptions): 3500s try: 3500s if not all_errors: 3500s > raise exceptions[0] 3500s 3500s /usr/lib/python3.12/socket.py:853: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s address = ('localhost', 3306), timeout = 10, source_address = None 3500s 3500s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 3500s source_address=None, *, all_errors=False): 3500s """Connect to *address* and return the socket object. 3500s 3500s Convenience function. Connect to *address* (a 2-tuple ``(host, 3500s port)``) and return the socket object. Passing the optional 3500s *timeout* parameter will set the timeout on the socket instance 3500s before attempting to connect. If no *timeout* is supplied, the 3500s global default timeout setting returned by :func:`getdefaulttimeout` 3500s is used. If *source_address* is set it must be a tuple of (host, port) 3500s for the socket to bind as a source address before making the connection. 3500s A host of '' or port 0 tells the OS to use the default. When a connection 3500s cannot be created, raises the last error if *all_errors* is False, 3500s and an ExceptionGroup of all errors if *all_errors* is True. 3500s """ 3500s 3500s host, port = address 3500s exceptions = [] 3500s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 3500s af, socktype, proto, canonname, sa = res 3500s sock = None 3500s try: 3500s sock = socket(af, socktype, proto) 3500s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 3500s sock.settimeout(timeout) 3500s if source_address: 3500s sock.bind(source_address) 3500s > sock.connect(sa) 3500s E ConnectionRefusedError: [Errno 111] Connection refused 3500s 3500s /usr/lib/python3.12/socket.py:838: ConnectionRefusedError 3500s 3500s During handling of the above exception, another exception occurred: 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __init__( 3500s self, 3500s *, 3500s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 3500s password="", 3500s host=None, 3500s database=None, 3500s unix_socket=None, 3500s port=0, 3500s charset="", 3500s collation=None, 3500s sql_mode=None, 3500s read_default_file=None, 3500s conv=None, 3500s use_unicode=True, 3500s client_flag=0, 3500s cursorclass=Cursor, 3500s init_command=None, 3500s connect_timeout=10, 3500s read_default_group=None, 3500s autocommit=False, 3500s local_infile=False, 3500s max_allowed_packet=16 * 1024 * 1024, 3500s defer_connect=False, 3500s auth_plugin_map=None, 3500s read_timeout=None, 3500s write_timeout=None, 3500s bind_address=None, 3500s binary_prefix=False, 3500s program_name=None, 3500s server_public_key=None, 3500s ssl=None, 3500s ssl_ca=None, 3500s ssl_cert=None, 3500s ssl_disabled=None, 3500s ssl_key=None, 3500s ssl_key_password=None, 3500s ssl_verify_cert=None, 3500s ssl_verify_identity=None, 3500s compress=None, # not supported 3500s named_pipe=None, # not supported 3500s passwd=None, # deprecated 3500s db=None, # deprecated 3500s ): 3500s if db is not None and database is None: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 3500s database = db 3500s if passwd is not None and not password: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn( 3500s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 3500s # ) 3500s password = passwd 3500s 3500s if compress or named_pipe: 3500s raise NotImplementedError( 3500s "compress and named_pipe arguments are not supported" 3500s ) 3500s 3500s self._local_infile = bool(local_infile) 3500s if self._local_infile: 3500s client_flag |= CLIENT.LOCAL_FILES 3500s 3500s if read_default_group and not read_default_file: 3500s if sys.platform.startswith("win"): 3500s read_default_file = "c:\\my.ini" 3500s else: 3500s read_default_file = "/etc/my.cnf" 3500s 3500s if read_default_file: 3500s if not read_default_group: 3500s read_default_group = "client" 3500s 3500s cfg = Parser() 3500s cfg.read(os.path.expanduser(read_default_file)) 3500s 3500s def _config(key, arg): 3500s if arg: 3500s return arg 3500s try: 3500s return cfg.get(read_default_group, key) 3500s except Exception: 3500s return arg 3500s 3500s user = _config("user", user) 3500s password = _config("password", password) 3500s host = _config("host", host) 3500s database = _config("database", database) 3500s unix_socket = _config("socket", unix_socket) 3500s port = int(_config("port", port)) 3500s bind_address = _config("bind-address", bind_address) 3500s charset = _config("default-character-set", charset) 3500s if not ssl: 3500s ssl = {} 3500s if isinstance(ssl, dict): 3500s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 3500s value = _config("ssl-" + key, ssl.get(key)) 3500s if value: 3500s ssl[key] = value 3500s 3500s self.ssl = False 3500s if not ssl_disabled: 3500s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 3500s ssl = { 3500s "ca": ssl_ca, 3500s "check_hostname": bool(ssl_verify_identity), 3500s "verify_mode": ssl_verify_cert 3500s if ssl_verify_cert is not None 3500s else False, 3500s } 3500s if ssl_cert is not None: 3500s ssl["cert"] = ssl_cert 3500s if ssl_key is not None: 3500s ssl["key"] = ssl_key 3500s if ssl_key_password is not None: 3500s ssl["password"] = ssl_key_password 3500s if ssl: 3500s if not SSL_ENABLED: 3500s raise NotImplementedError("ssl module not found") 3500s self.ssl = True 3500s client_flag |= CLIENT.SSL 3500s self.ctx = self._create_ssl_ctx(ssl) 3500s 3500s self.host = host or "localhost" 3500s self.port = port or 3306 3500s if type(self.port) is not int: 3500s raise ValueError("port should be of type int") 3500s self.user = user or DEFAULT_USER 3500s self.password = password or b"" 3500s if isinstance(self.password, str): 3500s self.password = self.password.encode("latin1") 3500s self.db = database 3500s self.unix_socket = unix_socket 3500s self.bind_address = bind_address 3500s if not (0 < connect_timeout <= 31536000): 3500s raise ValueError("connect_timeout should be >0 and <=31536000") 3500s self.connect_timeout = connect_timeout or None 3500s if read_timeout is not None and read_timeout <= 0: 3500s raise ValueError("read_timeout should be > 0") 3500s self._read_timeout = read_timeout 3500s if write_timeout is not None and write_timeout <= 0: 3500s raise ValueError("write_timeout should be > 0") 3500s self._write_timeout = write_timeout 3500s 3500s self.charset = charset or DEFAULT_CHARSET 3500s self.collation = collation 3500s self.use_unicode = use_unicode 3500s 3500s self.encoding = charset_by_name(self.charset).encoding 3500s 3500s client_flag |= CLIENT.CAPABILITIES 3500s if self.db: 3500s client_flag |= CLIENT.CONNECT_WITH_DB 3500s 3500s self.client_flag = client_flag 3500s 3500s self.cursorclass = cursorclass 3500s 3500s self._result = None 3500s self._affected_rows = 0 3500s self.host_info = "Not connected" 3500s 3500s # specified autocommit mode. None means use server default. 3500s self.autocommit_mode = autocommit 3500s 3500s if conv is None: 3500s conv = converters.conversions 3500s 3500s # Need for MySQLdb compatibility. 3500s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 3500s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 3500s self.sql_mode = sql_mode 3500s self.init_command = init_command 3500s self.max_allowed_packet = max_allowed_packet 3500s self._auth_plugin_map = auth_plugin_map or {} 3500s self._binary_prefix = binary_prefix 3500s self.server_public_key = server_public_key 3500s 3500s self._connect_attrs = { 3500s "_client_name": "pymysql", 3500s "_client_version": VERSION_STRING, 3500s "_pid": str(os.getpid()), 3500s } 3500s 3500s if program_name: 3500s self._connect_attrs["program_name"] = program_name 3500s 3500s if defer_connect: 3500s self._sock = None 3500s else: 3500s > self.connect() 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = , sock = None 3500s 3500s def connect(self, sock=None): 3500s self._closed = False 3500s try: 3500s if sock is None: 3500s if self.unix_socket: 3500s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3500s sock.settimeout(self.connect_timeout) 3500s sock.connect(self.unix_socket) 3500s self.host_info = "Localhost via UNIX socket" 3500s self._secure = True 3500s if DEBUG: 3500s print("connected using unix_socket") 3500s else: 3500s kwargs = {} 3500s if self.bind_address is not None: 3500s kwargs["source_address"] = (self.bind_address, 0) 3500s while True: 3500s try: 3500s sock = socket.create_connection( 3500s (self.host, self.port), self.connect_timeout, **kwargs 3500s ) 3500s break 3500s except OSError as e: 3500s if e.errno == errno.EINTR: 3500s continue 3500s raise 3500s self.host_info = "socket %s:%d" % (self.host, self.port) 3500s if DEBUG: 3500s print("connected using socket") 3500s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 3500s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 3500s sock.settimeout(None) 3500s 3500s self._sock = sock 3500s self._rfile = sock.makefile("rb") 3500s self._next_seq_id = 0 3500s 3500s self._get_server_information() 3500s self._request_authentication() 3500s 3500s # Send "SET NAMES" query on init for: 3500s # - Ensure charaset (and collation) is set to the server. 3500s # - collation_id in handshake packet may be ignored. 3500s # - If collation is not specified, we don't know what is server's 3500s # default collation for the charset. For example, default collation 3500s # of utf8mb4 is: 3500s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 3500s # - MySQL 8.0: utf8mb4_0900_ai_ci 3500s # 3500s # Reference: 3500s # - https://github.com/PyMySQL/PyMySQL/issues/1092 3500s # - https://github.com/wagtail/wagtail/issues/9477 3500s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 3500s self.set_character_set(self.charset, self.collation) 3500s 3500s if self.sql_mode is not None: 3500s c = self.cursor() 3500s c.execute("SET sql_mode=%s", (self.sql_mode,)) 3500s c.close() 3500s 3500s if self.init_command is not None: 3500s c = self.cursor() 3500s c.execute(self.init_command) 3500s c.close() 3500s 3500s if self.autocommit_mode is not None: 3500s self.autocommit(self.autocommit_mode) 3500s except BaseException as e: 3500s self._rfile = None 3500s if sock is not None: 3500s try: 3500s sock.close() 3500s except: # noqa 3500s pass 3500s 3500s if isinstance(e, (OSError, IOError)): 3500s exc = err.OperationalError( 3500s CR.CR_CONN_HOST_ERROR, 3500s f"Can't connect to MySQL server on {self.host!r} ({e})", 3500s ) 3500s # Keep original exception and traceback to investigate error. 3500s exc.original_exception = e 3500s exc.traceback = traceback.format_exc() 3500s if DEBUG: 3500s print(exc.traceback) 3500s > raise exc 3500s E pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 3500s 3500s The above exception was the direct cause of the following exception: 3500s 3500s conn = 'mysql_pymysql_engine' 3500s request = > 3500s 3500s @pytest.mark.db 3500s @pytest.mark.parametrize("conn", sqlalchemy_connectable_iris) 3500s def test_read_iris_query_expression_with_parameter(conn, request): 3500s > conn = request.getfixturevalue(conn) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:656: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'mysql_pymysql_engine' 3500s 3500s def getfixturevalue(self, argname: str) -> Any: 3500s """Dynamically run a named fixture function. 3500s 3500s Declaring fixtures via function argument is recommended where possible. 3500s But if you can only decide whether to use another fixture at test 3500s setup time, you may use this function to retrieve it inside a fixture 3500s or test function body. 3500s 3500s This method can be used during the test setup phase or the test run 3500s phase, but during the test teardown phase a fixture's value may not 3500s be available. 3500s 3500s :param argname: 3500s The fixture name. 3500s :raises pytest.FixtureLookupError: 3500s If the given fixture could not be found. 3500s """ 3500s > fixturedef = self._get_active_fixturedef(argname) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:585: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'mysql_pymysql_engine' 3500s 3500s def _get_active_fixturedef( 3500s self, argname: str 3500s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3500s try: 3500s return self._fixture_defs[argname] 3500s except KeyError: 3500s try: 3500s fixturedef = self._getnextfixturedef(argname) 3500s except FixtureLookupError: 3500s if argname == "request": 3500s cached_result = (self, [0], None) 3500s return PseudoFixtureDef(cached_result, Scope.Function) 3500s raise 3500s # Remove indent to prevent the python3 exception 3500s # from leaking into the call. 3500s > self._compute_fixture_value(fixturedef) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s fixturedef = 3500s 3500s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3500s """Create a SubRequest based on "self" and call the execute method 3500s of the given FixtureDef object. 3500s 3500s This will force the FixtureDef object to throw away any previous 3500s results and compute a new fixture value, which will be stored into 3500s the FixtureDef object itself. 3500s """ 3500s # prepare a subrequest object before calling fixture function 3500s # (latter managed by fixturedef) 3500s argname = fixturedef.argname 3500s funcitem = self._pyfuncitem 3500s scope = fixturedef._scope 3500s try: 3500s callspec = funcitem.callspec 3500s except AttributeError: 3500s callspec = None 3500s if callspec is not None and argname in callspec.params: 3500s param = callspec.params[argname] 3500s param_index = callspec.indices[argname] 3500s # If a parametrize invocation set a scope it will override 3500s # the static scope defined with the fixture function. 3500s with suppress(KeyError): 3500s scope = callspec._arg2scope[argname] 3500s else: 3500s param = NOTSET 3500s param_index = 0 3500s has_params = fixturedef.params is not None 3500s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3500s if has_params and fixtures_not_supported: 3500s msg = ( 3500s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3500s "Node id: {nodeid}\n" 3500s "Function type: {typename}" 3500s ).format( 3500s name=funcitem.name, 3500s nodeid=funcitem.nodeid, 3500s typename=type(funcitem).__name__, 3500s ) 3500s fail(msg, pytrace=False) 3500s if has_params: 3500s frame = inspect.stack()[3] 3500s frameinfo = inspect.getframeinfo(frame[0]) 3500s source_path = absolutepath(frameinfo.filename) 3500s source_lineno = frameinfo.lineno 3500s try: 3500s source_path_str = str( 3500s source_path.relative_to(funcitem.config.rootpath) 3500s ) 3500s except ValueError: 3500s source_path_str = str(source_path) 3500s msg = ( 3500s "The requested fixture has no parameter defined for test:\n" 3500s " {}\n\n" 3500s "Requested fixture '{}' defined in:\n{}" 3500s "\n\nRequested here:\n{}:{}".format( 3500s funcitem.nodeid, 3500s fixturedef.argname, 3500s getlocation(fixturedef.func, funcitem.config.rootpath), 3500s source_path_str, 3500s source_lineno, 3500s ) 3500s ) 3500s fail(msg, pytrace=False) 3500s 3500s subrequest = SubRequest( 3500s self, scope, param, param_index, fixturedef, _ispytest=True 3500s ) 3500s 3500s # Check if a higher-level scoped fixture accesses a lower level one. 3500s subrequest._check_scope(argname, self._scope, scope) 3500s try: 3500s # Call the fixture function. 3500s > fixturedef.execute(request=subrequest) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s request = > 3500s 3500s def execute(self, request: SubRequest) -> FixtureValue: 3500s # Get required arguments and register our own finish() 3500s # with their finalization. 3500s for argname in self.argnames: 3500s fixturedef = request._get_active_fixturedef(argname) 3500s if argname != "request": 3500s # PseudoFixtureDef is only for "request". 3500s assert isinstance(fixturedef, FixtureDef) 3500s fixturedef.addfinalizer(functools.partial(self.finish, request=request)) 3500s 3500s my_cache_key = self.cache_key(request) 3500s if self.cached_result is not None: 3500s # note: comparison with `==` can fail (or be expensive) for e.g. 3500s # numpy arrays (#6497). 3500s cache_key = self.cached_result[1] 3500s if my_cache_key is cache_key: 3500s if self.cached_result[2] is not None: 3500s _, val, tb = self.cached_result[2] 3500s raise val.with_traceback(tb) 3500s else: 3500s result = self.cached_result[0] 3500s return result 3500s # We have a previous but differently parametrized fixture instance 3500s # so we need to tear it down before creating a new one. 3500s self.finish(request) 3500s assert self.cached_result is None 3500s 3500s ihook = request.node.ihook 3500s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1069: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s kwargs = {'fixturedef': , 'request': >} 3500s firstresult = True 3500s 3500s def __call__(self, **kwargs: object) -> Any: 3500s """Call the hook. 3500s 3500s Only accepts keyword arguments, which should match the hook 3500s specification. 3500s 3500s Returns the result(s) of calling all registered plugins, see 3500s :ref:`calling`. 3500s """ 3500s assert ( 3500s not self.is_historic() 3500s ), "Cannot directly call a historic hook - use call_historic instead." 3500s self._verify_all_args_are_provided(kwargs) 3500s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 3500s # Copy because plugins may register other plugins during iteration (#438). 3500s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = <_pytest.config.PytestPluginManager object at 0xe9079168> 3500s hook_name = 'pytest_fixture_setup' 3500s methods = [>] 3500s kwargs = {'fixturedef': , 'request': >} 3500s firstresult = True 3500s 3500s def _hookexec( 3500s self, 3500s hook_name: str, 3500s methods: Sequence[HookImpl], 3500s kwargs: Mapping[str, object], 3500s firstresult: bool, 3500s ) -> object | list[object]: 3500s # called from all hookcaller instances. 3500s # enable_tracing will set its own wrapping function at self._inner_hookexec 3500s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturedef = 3500s request = > 3500s 3500s def pytest_fixture_setup( 3500s fixturedef: FixtureDef[FixtureValue], request: SubRequest 3500s ) -> FixtureValue: 3500s """Execution of fixture setup.""" 3500s kwargs = {} 3500s for argname in fixturedef.argnames: 3500s fixdef = request._get_active_fixturedef(argname) 3500s assert fixdef.cached_result is not None 3500s result, arg_cache_key, exc = fixdef.cached_result 3500s request._check_scope(argname, request._scope, fixdef._scope) 3500s kwargs[argname] = result 3500s 3500s fixturefunc = resolve_fixture_function(fixturedef, request) 3500s my_cache_key = fixturedef.cache_key(request) 3500s try: 3500s > result = call_fixture_func(fixturefunc, request, kwargs) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1123: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturefunc = 3500s request = > 3500s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv'), 'types_data': [{'B... False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}]} 3500s 3500s def call_fixture_func( 3500s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 3500s ) -> FixtureValue: 3500s if is_generator(fixturefunc): 3500s fixturefunc = cast( 3500s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 3500s ) 3500s generator = fixturefunc(**kwargs) 3500s try: 3500s > fixture_result = next(generator) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:895: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s iris_path = PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv') 3500s types_data = [{'BoolCol': False, 'BoolColWithNull': False, 'DateCol': '2000-01-03 00:00:00', 'DateColWithTz': '2000-01-01 00:00:00-...: False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}] 3500s 3500s @pytest.fixture 3500s def mysql_pymysql_engine(iris_path, types_data): 3500s sqlalchemy = pytest.importorskip("sqlalchemy") 3500s pymysql = pytest.importorskip("pymysql") 3500s engine = sqlalchemy.create_engine( 3500s "mysql+pymysql://root@localhost:3306/pandas", 3500s connect_args={"client_flag": pymysql.constants.CLIENT.MULTI_STATEMENTS}, 3500s poolclass=sqlalchemy.pool.NullPool, 3500s ) 3500s > insp = sqlalchemy.inspect(engine) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:409: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s subject = Engine(mysql+pymysql://root@localhost:3306/pandas), raiseerr = True 3500s 3500s def inspect(subject, raiseerr=True): 3500s """Produce an inspection object for the given target. 3500s 3500s The returned value in some cases may be the 3500s same object as the one given, such as if a 3500s :class:`_orm.Mapper` object is passed. In other 3500s cases, it will be an instance of the registered 3500s inspection type for the given object, such as 3500s if an :class:`_engine.Engine` is passed, an 3500s :class:`_reflection.Inspector` object is returned. 3500s 3500s :param subject: the subject to be inspected. 3500s :param raiseerr: When ``True``, if the given subject 3500s does not 3500s correspond to a known SQLAlchemy inspected type, 3500s :class:`sqlalchemy.exc.NoInspectionAvailable` 3500s is raised. If ``False``, ``None`` is returned. 3500s 3500s """ 3500s type_ = type(subject) 3500s for cls in type_.__mro__: 3500s if cls in _registrars: 3500s reg = _registrars[cls] 3500s if reg is True: 3500s return subject 3500s > ret = reg(subject) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:64: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s @inspection._inspects(Engine) 3500s def _engine_insp(bind): 3500s > return Inspector._construct(Inspector._init_engine, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:182: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s init = 3500s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s @classmethod 3500s def _construct(cls, init, bind): 3500s 3500s if hasattr(bind.dialect, "inspector"): 3500s cls = bind.dialect.inspector 3500s 3500s self = cls.__new__(cls) 3500s > init(self, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:117: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s def _init_engine(self, engine): 3500s self.bind = self.engine = engine 3500s > engine.connect().close() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:128: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s close_with_result = False 3500s 3500s def connect(self, close_with_result=False): 3500s """Return a new :class:`_engine.Connection` object. 3500s 3500s The :class:`_engine.Connection` object is a facade that uses a DBAPI 3500s connection internally in order to communicate with the database. This 3500s connection is procured from the connection-holding :class:`_pool.Pool` 3500s referenced by this :class:`_engine.Engine`. When the 3500s :meth:`_engine.Connection.close` method of the 3500s :class:`_engine.Connection` object 3500s is called, the underlying DBAPI connection is then returned to the 3500s connection pool, where it may be used again in a subsequent call to 3500s :meth:`_engine.Engine.connect`. 3500s 3500s """ 3500s 3500s > return self._connection_cls(self, close_with_result=close_with_result) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3325: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 3500s close_with_result = False, _branch_from = None, _execution_options = None 3500s _dispatch = None, _has_events = None, _allow_revalidate = True 3500s 3500s def __init__( 3500s self, 3500s engine, 3500s connection=None, 3500s close_with_result=False, 3500s _branch_from=None, 3500s _execution_options=None, 3500s _dispatch=None, 3500s _has_events=None, 3500s _allow_revalidate=True, 3500s ): 3500s """Construct a new Connection.""" 3500s self.engine = engine 3500s self.dialect = engine.dialect 3500s self.__branch_from = _branch_from 3500s 3500s if _branch_from: 3500s # branching is always "from" the root connection 3500s assert _branch_from.__branch_from is None 3500s self._dbapi_connection = connection 3500s self._execution_options = _execution_options 3500s self._echo = _branch_from._echo 3500s self.should_close_with_result = False 3500s self.dispatch = _dispatch 3500s self._has_events = _branch_from._has_events 3500s else: 3500s self._dbapi_connection = ( 3500s connection 3500s if connection is not None 3500s > else engine.raw_connection() 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:96: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas), _connection = None 3500s 3500s def raw_connection(self, _connection=None): 3500s """Return a "raw" DBAPI connection from the connection pool. 3500s 3500s The returned object is a proxied version of the DBAPI 3500s connection object used by the underlying driver in use. 3500s The object will have all the same behavior as the real DBAPI 3500s connection, except that its ``close()`` method will result in the 3500s connection being returned to the pool, rather than being closed 3500s for real. 3500s 3500s This method provides direct DBAPI connection access for 3500s special situations when the API provided by 3500s :class:`_engine.Connection` 3500s is not needed. When a :class:`_engine.Connection` object is already 3500s present, the DBAPI connection is available using 3500s the :attr:`_engine.Connection.connection` accessor. 3500s 3500s .. seealso:: 3500s 3500s :ref:`dbapi_connections` 3500s 3500s """ 3500s > return self._wrap_pool_connect(self.pool.connect, _connection) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3404: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s return fn() 3500s except dialect.dbapi.Error as e: 3500s if connection is None: 3500s > Connection._handle_dbapi_exception_noconnection( 3500s e, dialect, self 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3374: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s e = OperationalError(2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3500s dialect = 3500s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s @classmethod 3500s def _handle_dbapi_exception_noconnection(cls, e, dialect, engine): 3500s exc_info = sys.exc_info() 3500s 3500s is_disconnect = dialect.is_disconnect(e, None, None) 3500s 3500s should_wrap = isinstance(e, dialect.dbapi.Error) 3500s 3500s if should_wrap: 3500s sqlalchemy_exception = exc.DBAPIError.instance( 3500s None, 3500s None, 3500s e, 3500s dialect.dbapi.Error, 3500s hide_parameters=engine.hide_parameters, 3500s connection_invalidated=is_disconnect, 3500s ) 3500s else: 3500s sqlalchemy_exception = None 3500s 3500s newraise = None 3500s 3500s if engine._has_events: 3500s ctx = ExceptionContextImpl( 3500s e, 3500s sqlalchemy_exception, 3500s engine, 3500s None, 3500s None, 3500s None, 3500s None, 3500s None, 3500s is_disconnect, 3500s True, 3500s ) 3500s for fn in engine.dispatch.handle_error: 3500s try: 3500s # handler returns an exception; 3500s # call next handler in a chain 3500s per_fn = fn(ctx) 3500s if per_fn is not None: 3500s ctx.chained_exception = newraise = per_fn 3500s except Exception as _raised: 3500s # handler raises an exception - stop processing 3500s newraise = _raised 3500s break 3500s 3500s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 3500s sqlalchemy_exception.connection_invalidated = ( 3500s is_disconnect 3500s ) = ctx.is_disconnect 3500s 3500s if newraise: 3500s util.raise_(newraise, with_traceback=exc_info[2], from_=e) 3500s elif should_wrap: 3500s > util.raise_( 3500s sqlalchemy_exception, with_traceback=exc_info[2], from_=e 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2208: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __init__( 3500s self, 3500s *, 3500s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 3500s password="", 3500s host=None, 3500s database=None, 3500s unix_socket=None, 3500s port=0, 3500s charset="", 3500s collation=None, 3500s sql_mode=None, 3500s read_default_file=None, 3500s conv=None, 3500s use_unicode=True, 3500s client_flag=0, 3500s cursorclass=Cursor, 3500s init_command=None, 3500s connect_timeout=10, 3500s read_default_group=None, 3500s autocommit=False, 3500s local_infile=False, 3500s max_allowed_packet=16 * 1024 * 1024, 3500s defer_connect=False, 3500s auth_plugin_map=None, 3500s read_timeout=None, 3500s write_timeout=None, 3500s bind_address=None, 3500s binary_prefix=False, 3500s program_name=None, 3500s server_public_key=None, 3500s ssl=None, 3500s ssl_ca=None, 3500s ssl_cert=None, 3500s ssl_disabled=None, 3500s ssl_key=None, 3500s ssl_key_password=None, 3500s ssl_verify_cert=None, 3500s ssl_verify_identity=None, 3500s compress=None, # not supported 3500s named_pipe=None, # not supported 3500s passwd=None, # deprecated 3500s db=None, # deprecated 3500s ): 3500s if db is not None and database is None: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 3500s database = db 3500s if passwd is not None and not password: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn( 3500s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 3500s # ) 3500s password = passwd 3500s 3500s if compress or named_pipe: 3500s raise NotImplementedError( 3500s "compress and named_pipe arguments are not supported" 3500s ) 3500s 3500s self._local_infile = bool(local_infile) 3500s if self._local_infile: 3500s client_flag |= CLIENT.LOCAL_FILES 3500s 3500s if read_default_group and not read_default_file: 3500s if sys.platform.startswith("win"): 3500s read_default_file = "c:\\my.ini" 3500s else: 3500s read_default_file = "/etc/my.cnf" 3500s 3500s if read_default_file: 3500s if not read_default_group: 3500s read_default_group = "client" 3500s 3500s cfg = Parser() 3500s cfg.read(os.path.expanduser(read_default_file)) 3500s 3500s def _config(key, arg): 3500s if arg: 3500s return arg 3500s try: 3500s return cfg.get(read_default_group, key) 3500s except Exception: 3500s return arg 3500s 3500s user = _config("user", user) 3500s password = _config("password", password) 3500s host = _config("host", host) 3500s database = _config("database", database) 3500s unix_socket = _config("socket", unix_socket) 3500s port = int(_config("port", port)) 3500s bind_address = _config("bind-address", bind_address) 3500s charset = _config("default-character-set", charset) 3500s if not ssl: 3500s ssl = {} 3500s if isinstance(ssl, dict): 3500s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 3500s value = _config("ssl-" + key, ssl.get(key)) 3500s if value: 3500s ssl[key] = value 3500s 3500s self.ssl = False 3500s if not ssl_disabled: 3500s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 3500s ssl = { 3500s "ca": ssl_ca, 3500s "check_hostname": bool(ssl_verify_identity), 3500s "verify_mode": ssl_verify_cert 3500s if ssl_verify_cert is not None 3500s else False, 3500s } 3500s if ssl_cert is not None: 3500s ssl["cert"] = ssl_cert 3500s if ssl_key is not None: 3500s ssl["key"] = ssl_key 3500s if ssl_key_password is not None: 3500s ssl["password"] = ssl_key_password 3500s if ssl: 3500s if not SSL_ENABLED: 3500s raise NotImplementedError("ssl module not found") 3500s self.ssl = True 3500s client_flag |= CLIENT.SSL 3500s self.ctx = self._create_ssl_ctx(ssl) 3500s 3500s self.host = host or "localhost" 3500s self.port = port or 3306 3500s if type(self.port) is not int: 3500s raise ValueError("port should be of type int") 3500s self.user = user or DEFAULT_USER 3500s self.password = password or b"" 3500s if isinstance(self.password, str): 3500s self.password = self.password.encode("latin1") 3500s self.db = database 3500s self.unix_socket = unix_socket 3500s self.bind_address = bind_address 3500s if not (0 < connect_timeout <= 31536000): 3500s raise ValueError("connect_timeout should be >0 and <=31536000") 3500s self.connect_timeout = connect_timeout or None 3500s if read_timeout is not None and read_timeout <= 0: 3500s raise ValueError("read_timeout should be > 0") 3500s self._read_timeout = read_timeout 3500s if write_timeout is not None and write_timeout <= 0: 3500s raise ValueError("write_timeout should be > 0") 3500s self._write_timeout = write_timeout 3500s 3500s self.charset = charset or DEFAULT_CHARSET 3500s self.collation = collation 3500s self.use_unicode = use_unicode 3500s 3500s self.encoding = charset_by_name(self.charset).encoding 3500s 3500s client_flag |= CLIENT.CAPABILITIES 3500s if self.db: 3500s client_flag |= CLIENT.CONNECT_WITH_DB 3500s 3500s self.client_flag = client_flag 3500s 3500s self.cursorclass = cursorclass 3500s 3500s self._result = None 3500s self._affected_rows = 0 3500s self.host_info = "Not connected" 3500s 3500s # specified autocommit mode. None means use server default. 3500s self.autocommit_mode = autocommit 3500s 3500s if conv is None: 3500s conv = converters.conversions 3500s 3500s # Need for MySQLdb compatibility. 3500s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 3500s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 3500s self.sql_mode = sql_mode 3500s self.init_command = init_command 3500s self.max_allowed_packet = max_allowed_packet 3500s self._auth_plugin_map = auth_plugin_map or {} 3500s self._binary_prefix = binary_prefix 3500s self.server_public_key = server_public_key 3500s 3500s self._connect_attrs = { 3500s "_client_name": "pymysql", 3500s "_client_version": VERSION_STRING, 3500s "_pid": str(os.getpid()), 3500s } 3500s 3500s if program_name: 3500s self._connect_attrs["program_name"] = program_name 3500s 3500s if defer_connect: 3500s self._sock = None 3500s else: 3500s > self.connect() 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = , sock = None 3500s 3500s def connect(self, sock=None): 3500s self._closed = False 3500s try: 3500s if sock is None: 3500s if self.unix_socket: 3500s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3500s sock.settimeout(self.connect_timeout) 3500s sock.connect(self.unix_socket) 3500s self.host_info = "Localhost via UNIX socket" 3500s self._secure = True 3500s if DEBUG: 3500s print("connected using unix_socket") 3500s else: 3500s kwargs = {} 3500s if self.bind_address is not None: 3500s kwargs["source_address"] = (self.bind_address, 0) 3500s while True: 3500s try: 3500s sock = socket.create_connection( 3500s (self.host, self.port), self.connect_timeout, **kwargs 3500s ) 3500s break 3500s except OSError as e: 3500s if e.errno == errno.EINTR: 3500s continue 3500s raise 3500s self.host_info = "socket %s:%d" % (self.host, self.port) 3500s if DEBUG: 3500s print("connected using socket") 3500s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 3500s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 3500s sock.settimeout(None) 3500s 3500s self._sock = sock 3500s self._rfile = sock.makefile("rb") 3500s self._next_seq_id = 0 3500s 3500s self._get_server_information() 3500s self._request_authentication() 3500s 3500s # Send "SET NAMES" query on init for: 3500s # - Ensure charaset (and collation) is set to the server. 3500s # - collation_id in handshake packet may be ignored. 3500s # - If collation is not specified, we don't know what is server's 3500s # default collation for the charset. For example, default collation 3500s # of utf8mb4 is: 3500s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 3500s # - MySQL 8.0: utf8mb4_0900_ai_ci 3500s # 3500s # Reference: 3500s # - https://github.com/PyMySQL/PyMySQL/issues/1092 3500s # - https://github.com/wagtail/wagtail/issues/9477 3500s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 3500s self.set_character_set(self.charset, self.collation) 3500s 3500s if self.sql_mode is not None: 3500s c = self.cursor() 3500s c.execute("SET sql_mode=%s", (self.sql_mode,)) 3500s c.close() 3500s 3500s if self.init_command is not None: 3500s c = self.cursor() 3500s c.execute(self.init_command) 3500s c.close() 3500s 3500s if self.autocommit_mode is not None: 3500s self.autocommit(self.autocommit_mode) 3500s except BaseException as e: 3500s self._rfile = None 3500s if sock is not None: 3500s try: 3500s sock.close() 3500s except: # noqa 3500s pass 3500s 3500s if isinstance(e, (OSError, IOError)): 3500s exc = err.OperationalError( 3500s CR.CR_CONN_HOST_ERROR, 3500s f"Can't connect to MySQL server on {self.host!r} ({e})", 3500s ) 3500s # Keep original exception and traceback to investigate error. 3500s exc.original_exception = e 3500s exc.traceback = traceback.format_exc() 3500s if DEBUG: 3500s print(exc.traceback) 3500s > raise exc 3500s E sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3500s E (Background on this error at: https://sqlalche.me/e/14/e3q8) 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 3500s ______ test_read_iris_query_expression_with_parameter[mysql_pymysql_conn] ______ 3500s self = , sock = None 3500s 3500s def connect(self, sock=None): 3500s self._closed = False 3500s try: 3500s if sock is None: 3500s if self.unix_socket: 3500s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3500s sock.settimeout(self.connect_timeout) 3500s sock.connect(self.unix_socket) 3500s self.host_info = "Localhost via UNIX socket" 3500s self._secure = True 3500s if DEBUG: 3500s print("connected using unix_socket") 3500s else: 3500s kwargs = {} 3500s if self.bind_address is not None: 3500s kwargs["source_address"] = (self.bind_address, 0) 3500s while True: 3500s try: 3500s > sock = socket.create_connection( 3500s (self.host, self.port), self.connect_timeout, **kwargs 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:649: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s address = ('localhost', 3306), timeout = 10, source_address = None 3500s 3500s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 3500s source_address=None, *, all_errors=False): 3500s """Connect to *address* and return the socket object. 3500s 3500s Convenience function. Connect to *address* (a 2-tuple ``(host, 3500s port)``) and return the socket object. Passing the optional 3500s *timeout* parameter will set the timeout on the socket instance 3500s before attempting to connect. If no *timeout* is supplied, the 3500s global default timeout setting returned by :func:`getdefaulttimeout` 3500s is used. If *source_address* is set it must be a tuple of (host, port) 3500s for the socket to bind as a source address before making the connection. 3500s A host of '' or port 0 tells the OS to use the default. When a connection 3500s cannot be created, raises the last error if *all_errors* is False, 3500s and an ExceptionGroup of all errors if *all_errors* is True. 3500s """ 3500s 3500s host, port = address 3500s exceptions = [] 3500s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 3500s af, socktype, proto, canonname, sa = res 3500s sock = None 3500s try: 3500s sock = socket(af, socktype, proto) 3500s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 3500s sock.settimeout(timeout) 3500s if source_address: 3500s sock.bind(source_address) 3500s sock.connect(sa) 3500s # Break explicitly a reference cycle 3500s exceptions.clear() 3500s return sock 3500s 3500s except error as exc: 3500s if not all_errors: 3500s exceptions.clear() # raise only the last error 3500s exceptions.append(exc) 3500s if sock is not None: 3500s sock.close() 3500s 3500s if len(exceptions): 3500s try: 3500s if not all_errors: 3500s > raise exceptions[0] 3500s 3500s /usr/lib/python3.12/socket.py:853: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s address = ('localhost', 3306), timeout = 10, source_address = None 3500s 3500s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 3500s source_address=None, *, all_errors=False): 3500s """Connect to *address* and return the socket object. 3500s 3500s Convenience function. Connect to *address* (a 2-tuple ``(host, 3500s port)``) and return the socket object. Passing the optional 3500s *timeout* parameter will set the timeout on the socket instance 3500s before attempting to connect. If no *timeout* is supplied, the 3500s global default timeout setting returned by :func:`getdefaulttimeout` 3500s is used. If *source_address* is set it must be a tuple of (host, port) 3500s for the socket to bind as a source address before making the connection. 3500s A host of '' or port 0 tells the OS to use the default. When a connection 3500s cannot be created, raises the last error if *all_errors* is False, 3500s and an ExceptionGroup of all errors if *all_errors* is True. 3500s """ 3500s 3500s host, port = address 3500s exceptions = [] 3500s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 3500s af, socktype, proto, canonname, sa = res 3500s sock = None 3500s try: 3500s sock = socket(af, socktype, proto) 3500s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 3500s sock.settimeout(timeout) 3500s if source_address: 3500s sock.bind(source_address) 3500s > sock.connect(sa) 3500s E ConnectionRefusedError: [Errno 111] Connection refused 3500s 3500s /usr/lib/python3.12/socket.py:838: ConnectionRefusedError 3500s 3500s During handling of the above exception, another exception occurred: 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __init__( 3500s self, 3500s *, 3500s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 3500s password="", 3500s host=None, 3500s database=None, 3500s unix_socket=None, 3500s port=0, 3500s charset="", 3500s collation=None, 3500s sql_mode=None, 3500s read_default_file=None, 3500s conv=None, 3500s use_unicode=True, 3500s client_flag=0, 3500s cursorclass=Cursor, 3500s init_command=None, 3500s connect_timeout=10, 3500s read_default_group=None, 3500s autocommit=False, 3500s local_infile=False, 3500s max_allowed_packet=16 * 1024 * 1024, 3500s defer_connect=False, 3500s auth_plugin_map=None, 3500s read_timeout=None, 3500s write_timeout=None, 3500s bind_address=None, 3500s binary_prefix=False, 3500s program_name=None, 3500s server_public_key=None, 3500s ssl=None, 3500s ssl_ca=None, 3500s ssl_cert=None, 3500s ssl_disabled=None, 3500s ssl_key=None, 3500s ssl_key_password=None, 3500s ssl_verify_cert=None, 3500s ssl_verify_identity=None, 3500s compress=None, # not supported 3500s named_pipe=None, # not supported 3500s passwd=None, # deprecated 3500s db=None, # deprecated 3500s ): 3500s if db is not None and database is None: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 3500s database = db 3500s if passwd is not None and not password: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn( 3500s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 3500s # ) 3500s password = passwd 3500s 3500s if compress or named_pipe: 3500s raise NotImplementedError( 3500s "compress and named_pipe arguments are not supported" 3500s ) 3500s 3500s self._local_infile = bool(local_infile) 3500s if self._local_infile: 3500s client_flag |= CLIENT.LOCAL_FILES 3500s 3500s if read_default_group and not read_default_file: 3500s if sys.platform.startswith("win"): 3500s read_default_file = "c:\\my.ini" 3500s else: 3500s read_default_file = "/etc/my.cnf" 3500s 3500s if read_default_file: 3500s if not read_default_group: 3500s read_default_group = "client" 3500s 3500s cfg = Parser() 3500s cfg.read(os.path.expanduser(read_default_file)) 3500s 3500s def _config(key, arg): 3500s if arg: 3500s return arg 3500s try: 3500s return cfg.get(read_default_group, key) 3500s except Exception: 3500s return arg 3500s 3500s user = _config("user", user) 3500s password = _config("password", password) 3500s host = _config("host", host) 3500s database = _config("database", database) 3500s unix_socket = _config("socket", unix_socket) 3500s port = int(_config("port", port)) 3500s bind_address = _config("bind-address", bind_address) 3500s charset = _config("default-character-set", charset) 3500s if not ssl: 3500s ssl = {} 3500s if isinstance(ssl, dict): 3500s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 3500s value = _config("ssl-" + key, ssl.get(key)) 3500s if value: 3500s ssl[key] = value 3500s 3500s self.ssl = False 3500s if not ssl_disabled: 3500s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 3500s ssl = { 3500s "ca": ssl_ca, 3500s "check_hostname": bool(ssl_verify_identity), 3500s "verify_mode": ssl_verify_cert 3500s if ssl_verify_cert is not None 3500s else False, 3500s } 3500s if ssl_cert is not None: 3500s ssl["cert"] = ssl_cert 3500s if ssl_key is not None: 3500s ssl["key"] = ssl_key 3500s if ssl_key_password is not None: 3500s ssl["password"] = ssl_key_password 3500s if ssl: 3500s if not SSL_ENABLED: 3500s raise NotImplementedError("ssl module not found") 3500s self.ssl = True 3500s client_flag |= CLIENT.SSL 3500s self.ctx = self._create_ssl_ctx(ssl) 3500s 3500s self.host = host or "localhost" 3500s self.port = port or 3306 3500s if type(self.port) is not int: 3500s raise ValueError("port should be of type int") 3500s self.user = user or DEFAULT_USER 3500s self.password = password or b"" 3500s if isinstance(self.password, str): 3500s self.password = self.password.encode("latin1") 3500s self.db = database 3500s self.unix_socket = unix_socket 3500s self.bind_address = bind_address 3500s if not (0 < connect_timeout <= 31536000): 3500s raise ValueError("connect_timeout should be >0 and <=31536000") 3500s self.connect_timeout = connect_timeout or None 3500s if read_timeout is not None and read_timeout <= 0: 3500s raise ValueError("read_timeout should be > 0") 3500s self._read_timeout = read_timeout 3500s if write_timeout is not None and write_timeout <= 0: 3500s raise ValueError("write_timeout should be > 0") 3500s self._write_timeout = write_timeout 3500s 3500s self.charset = charset or DEFAULT_CHARSET 3500s self.collation = collation 3500s self.use_unicode = use_unicode 3500s 3500s self.encoding = charset_by_name(self.charset).encoding 3500s 3500s client_flag |= CLIENT.CAPABILITIES 3500s if self.db: 3500s client_flag |= CLIENT.CONNECT_WITH_DB 3500s 3500s self.client_flag = client_flag 3500s 3500s self.cursorclass = cursorclass 3500s 3500s self._result = None 3500s self._affected_rows = 0 3500s self.host_info = "Not connected" 3500s 3500s # specified autocommit mode. None means use server default. 3500s self.autocommit_mode = autocommit 3500s 3500s if conv is None: 3500s conv = converters.conversions 3500s 3500s # Need for MySQLdb compatibility. 3500s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 3500s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 3500s self.sql_mode = sql_mode 3500s self.init_command = init_command 3500s self.max_allowed_packet = max_allowed_packet 3500s self._auth_plugin_map = auth_plugin_map or {} 3500s self._binary_prefix = binary_prefix 3500s self.server_public_key = server_public_key 3500s 3500s self._connect_attrs = { 3500s "_client_name": "pymysql", 3500s "_client_version": VERSION_STRING, 3500s "_pid": str(os.getpid()), 3500s } 3500s 3500s if program_name: 3500s self._connect_attrs["program_name"] = program_name 3500s 3500s if defer_connect: 3500s self._sock = None 3500s else: 3500s > self.connect() 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = , sock = None 3500s 3500s def connect(self, sock=None): 3500s self._closed = False 3500s try: 3500s if sock is None: 3500s if self.unix_socket: 3500s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3500s sock.settimeout(self.connect_timeout) 3500s sock.connect(self.unix_socket) 3500s self.host_info = "Localhost via UNIX socket" 3500s self._secure = True 3500s if DEBUG: 3500s print("connected using unix_socket") 3500s else: 3500s kwargs = {} 3500s if self.bind_address is not None: 3500s kwargs["source_address"] = (self.bind_address, 0) 3500s while True: 3500s try: 3500s sock = socket.create_connection( 3500s (self.host, self.port), self.connect_timeout, **kwargs 3500s ) 3500s break 3500s except OSError as e: 3500s if e.errno == errno.EINTR: 3500s continue 3500s raise 3500s self.host_info = "socket %s:%d" % (self.host, self.port) 3500s if DEBUG: 3500s print("connected using socket") 3500s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 3500s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 3500s sock.settimeout(None) 3500s 3500s self._sock = sock 3500s self._rfile = sock.makefile("rb") 3500s self._next_seq_id = 0 3500s 3500s self._get_server_information() 3500s self._request_authentication() 3500s 3500s # Send "SET NAMES" query on init for: 3500s # - Ensure charaset (and collation) is set to the server. 3500s # - collation_id in handshake packet may be ignored. 3500s # - If collation is not specified, we don't know what is server's 3500s # default collation for the charset. For example, default collation 3500s # of utf8mb4 is: 3500s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 3500s # - MySQL 8.0: utf8mb4_0900_ai_ci 3500s # 3500s # Reference: 3500s # - https://github.com/PyMySQL/PyMySQL/issues/1092 3500s # - https://github.com/wagtail/wagtail/issues/9477 3500s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 3500s self.set_character_set(self.charset, self.collation) 3500s 3500s if self.sql_mode is not None: 3500s c = self.cursor() 3500s c.execute("SET sql_mode=%s", (self.sql_mode,)) 3500s c.close() 3500s 3500s if self.init_command is not None: 3500s c = self.cursor() 3500s c.execute(self.init_command) 3500s c.close() 3500s 3500s if self.autocommit_mode is not None: 3500s self.autocommit(self.autocommit_mode) 3500s except BaseException as e: 3500s self._rfile = None 3500s if sock is not None: 3500s try: 3500s sock.close() 3500s except: # noqa 3500s pass 3500s 3500s if isinstance(e, (OSError, IOError)): 3500s exc = err.OperationalError( 3500s CR.CR_CONN_HOST_ERROR, 3500s f"Can't connect to MySQL server on {self.host!r} ({e})", 3500s ) 3500s # Keep original exception and traceback to investigate error. 3500s exc.original_exception = e 3500s exc.traceback = traceback.format_exc() 3500s if DEBUG: 3500s print(exc.traceback) 3500s > raise exc 3500s E pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 3500s 3500s The above exception was the direct cause of the following exception: 3500s 3500s conn = 'mysql_pymysql_conn' 3500s request = > 3500s 3500s @pytest.mark.db 3500s @pytest.mark.parametrize("conn", sqlalchemy_connectable_iris) 3500s def test_read_iris_query_expression_with_parameter(conn, request): 3500s > conn = request.getfixturevalue(conn) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:656: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'mysql_pymysql_conn' 3500s 3500s def getfixturevalue(self, argname: str) -> Any: 3500s """Dynamically run a named fixture function. 3500s 3500s Declaring fixtures via function argument is recommended where possible. 3500s But if you can only decide whether to use another fixture at test 3500s setup time, you may use this function to retrieve it inside a fixture 3500s or test function body. 3500s 3500s This method can be used during the test setup phase or the test run 3500s phase, but during the test teardown phase a fixture's value may not 3500s be available. 3500s 3500s :param argname: 3500s The fixture name. 3500s :raises pytest.FixtureLookupError: 3500s If the given fixture could not be found. 3500s """ 3500s > fixturedef = self._get_active_fixturedef(argname) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:585: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'mysql_pymysql_conn' 3500s 3500s def _get_active_fixturedef( 3500s self, argname: str 3500s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3500s try: 3500s return self._fixture_defs[argname] 3500s except KeyError: 3500s try: 3500s fixturedef = self._getnextfixturedef(argname) 3500s except FixtureLookupError: 3500s if argname == "request": 3500s cached_result = (self, [0], None) 3500s return PseudoFixtureDef(cached_result, Scope.Function) 3500s raise 3500s # Remove indent to prevent the python3 exception 3500s # from leaking into the call. 3500s > self._compute_fixture_value(fixturedef) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s fixturedef = 3500s 3500s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3500s """Create a SubRequest based on "self" and call the execute method 3500s of the given FixtureDef object. 3500s 3500s This will force the FixtureDef object to throw away any previous 3500s results and compute a new fixture value, which will be stored into 3500s the FixtureDef object itself. 3500s """ 3500s # prepare a subrequest object before calling fixture function 3500s # (latter managed by fixturedef) 3500s argname = fixturedef.argname 3500s funcitem = self._pyfuncitem 3500s scope = fixturedef._scope 3500s try: 3500s callspec = funcitem.callspec 3500s except AttributeError: 3500s callspec = None 3500s if callspec is not None and argname in callspec.params: 3500s param = callspec.params[argname] 3500s param_index = callspec.indices[argname] 3500s # If a parametrize invocation set a scope it will override 3500s # the static scope defined with the fixture function. 3500s with suppress(KeyError): 3500s scope = callspec._arg2scope[argname] 3500s else: 3500s param = NOTSET 3500s param_index = 0 3500s has_params = fixturedef.params is not None 3500s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3500s if has_params and fixtures_not_supported: 3500s msg = ( 3500s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3500s "Node id: {nodeid}\n" 3500s "Function type: {typename}" 3500s ).format( 3500s name=funcitem.name, 3500s nodeid=funcitem.nodeid, 3500s typename=type(funcitem).__name__, 3500s ) 3500s fail(msg, pytrace=False) 3500s if has_params: 3500s frame = inspect.stack()[3] 3500s frameinfo = inspect.getframeinfo(frame[0]) 3500s source_path = absolutepath(frameinfo.filename) 3500s source_lineno = frameinfo.lineno 3500s try: 3500s source_path_str = str( 3500s source_path.relative_to(funcitem.config.rootpath) 3500s ) 3500s except ValueError: 3500s source_path_str = str(source_path) 3500s msg = ( 3500s "The requested fixture has no parameter defined for test:\n" 3500s " {}\n\n" 3500s "Requested fixture '{}' defined in:\n{}" 3500s "\n\nRequested here:\n{}:{}".format( 3500s funcitem.nodeid, 3500s fixturedef.argname, 3500s getlocation(fixturedef.func, funcitem.config.rootpath), 3500s source_path_str, 3500s source_lineno, 3500s ) 3500s ) 3500s fail(msg, pytrace=False) 3500s 3500s subrequest = SubRequest( 3500s self, scope, param, param_index, fixturedef, _ispytest=True 3500s ) 3500s 3500s # Check if a higher-level scoped fixture accesses a lower level one. 3500s subrequest._check_scope(argname, self._scope, scope) 3500s try: 3500s # Call the fixture function. 3500s > fixturedef.execute(request=subrequest) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s request = > 3500s 3500s def execute(self, request: SubRequest) -> FixtureValue: 3500s # Get required arguments and register our own finish() 3500s # with their finalization. 3500s for argname in self.argnames: 3500s > fixturedef = request._get_active_fixturedef(argname) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1045: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'mysql_pymysql_engine' 3500s 3500s def _get_active_fixturedef( 3500s self, argname: str 3500s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3500s try: 3500s return self._fixture_defs[argname] 3500s except KeyError: 3500s try: 3500s fixturedef = self._getnextfixturedef(argname) 3500s except FixtureLookupError: 3500s if argname == "request": 3500s cached_result = (self, [0], None) 3500s return PseudoFixtureDef(cached_result, Scope.Function) 3500s raise 3500s # Remove indent to prevent the python3 exception 3500s # from leaking into the call. 3500s > self._compute_fixture_value(fixturedef) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s fixturedef = 3500s 3500s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3500s """Create a SubRequest based on "self" and call the execute method 3500s of the given FixtureDef object. 3500s 3500s This will force the FixtureDef object to throw away any previous 3500s results and compute a new fixture value, which will be stored into 3500s the FixtureDef object itself. 3500s """ 3500s # prepare a subrequest object before calling fixture function 3500s # (latter managed by fixturedef) 3500s argname = fixturedef.argname 3500s funcitem = self._pyfuncitem 3500s scope = fixturedef._scope 3500s try: 3500s callspec = funcitem.callspec 3500s except AttributeError: 3500s callspec = None 3500s if callspec is not None and argname in callspec.params: 3500s param = callspec.params[argname] 3500s param_index = callspec.indices[argname] 3500s # If a parametrize invocation set a scope it will override 3500s # the static scope defined with the fixture function. 3500s with suppress(KeyError): 3500s scope = callspec._arg2scope[argname] 3500s else: 3500s param = NOTSET 3500s param_index = 0 3500s has_params = fixturedef.params is not None 3500s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3500s if has_params and fixtures_not_supported: 3500s msg = ( 3500s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3500s "Node id: {nodeid}\n" 3500s "Function type: {typename}" 3500s ).format( 3500s name=funcitem.name, 3500s nodeid=funcitem.nodeid, 3500s typename=type(funcitem).__name__, 3500s ) 3500s fail(msg, pytrace=False) 3500s if has_params: 3500s frame = inspect.stack()[3] 3500s frameinfo = inspect.getframeinfo(frame[0]) 3500s source_path = absolutepath(frameinfo.filename) 3500s source_lineno = frameinfo.lineno 3500s try: 3500s source_path_str = str( 3500s source_path.relative_to(funcitem.config.rootpath) 3500s ) 3500s except ValueError: 3500s source_path_str = str(source_path) 3500s msg = ( 3500s "The requested fixture has no parameter defined for test:\n" 3500s " {}\n\n" 3500s "Requested fixture '{}' defined in:\n{}" 3500s "\n\nRequested here:\n{}:{}".format( 3500s funcitem.nodeid, 3500s fixturedef.argname, 3500s getlocation(fixturedef.func, funcitem.config.rootpath), 3500s source_path_str, 3500s source_lineno, 3500s ) 3500s ) 3500s fail(msg, pytrace=False) 3500s 3500s subrequest = SubRequest( 3500s self, scope, param, param_index, fixturedef, _ispytest=True 3500s ) 3500s 3500s # Check if a higher-level scoped fixture accesses a lower level one. 3500s subrequest._check_scope(argname, self._scope, scope) 3500s try: 3500s # Call the fixture function. 3500s > fixturedef.execute(request=subrequest) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s request = > 3500s 3500s def execute(self, request: SubRequest) -> FixtureValue: 3500s # Get required arguments and register our own finish() 3500s # with their finalization. 3500s for argname in self.argnames: 3500s fixturedef = request._get_active_fixturedef(argname) 3500s if argname != "request": 3500s # PseudoFixtureDef is only for "request". 3500s assert isinstance(fixturedef, FixtureDef) 3500s fixturedef.addfinalizer(functools.partial(self.finish, request=request)) 3500s 3500s my_cache_key = self.cache_key(request) 3500s if self.cached_result is not None: 3500s # note: comparison with `==` can fail (or be expensive) for e.g. 3500s # numpy arrays (#6497). 3500s cache_key = self.cached_result[1] 3500s if my_cache_key is cache_key: 3500s if self.cached_result[2] is not None: 3500s _, val, tb = self.cached_result[2] 3500s raise val.with_traceback(tb) 3500s else: 3500s result = self.cached_result[0] 3500s return result 3500s # We have a previous but differently parametrized fixture instance 3500s # so we need to tear it down before creating a new one. 3500s self.finish(request) 3500s assert self.cached_result is None 3500s 3500s ihook = request.node.ihook 3500s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1069: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s kwargs = {'fixturedef': , 'request': >} 3500s firstresult = True 3500s 3500s def __call__(self, **kwargs: object) -> Any: 3500s """Call the hook. 3500s 3500s Only accepts keyword arguments, which should match the hook 3500s specification. 3500s 3500s Returns the result(s) of calling all registered plugins, see 3500s :ref:`calling`. 3500s """ 3500s assert ( 3500s not self.is_historic() 3500s ), "Cannot directly call a historic hook - use call_historic instead." 3500s self._verify_all_args_are_provided(kwargs) 3500s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 3500s # Copy because plugins may register other plugins during iteration (#438). 3500s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = <_pytest.config.PytestPluginManager object at 0xe9079168> 3500s hook_name = 'pytest_fixture_setup' 3500s methods = [>] 3500s kwargs = {'fixturedef': , 'request': >} 3500s firstresult = True 3500s 3500s def _hookexec( 3500s self, 3500s hook_name: str, 3500s methods: Sequence[HookImpl], 3500s kwargs: Mapping[str, object], 3500s firstresult: bool, 3500s ) -> object | list[object]: 3500s # called from all hookcaller instances. 3500s # enable_tracing will set its own wrapping function at self._inner_hookexec 3500s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturedef = 3500s request = > 3500s 3500s def pytest_fixture_setup( 3500s fixturedef: FixtureDef[FixtureValue], request: SubRequest 3500s ) -> FixtureValue: 3500s """Execution of fixture setup.""" 3500s kwargs = {} 3500s for argname in fixturedef.argnames: 3500s fixdef = request._get_active_fixturedef(argname) 3500s assert fixdef.cached_result is not None 3500s result, arg_cache_key, exc = fixdef.cached_result 3500s request._check_scope(argname, request._scope, fixdef._scope) 3500s kwargs[argname] = result 3500s 3500s fixturefunc = resolve_fixture_function(fixturedef, request) 3500s my_cache_key = fixturedef.cache_key(request) 3500s try: 3500s > result = call_fixture_func(fixturefunc, request, kwargs) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1123: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturefunc = 3500s request = > 3500s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv'), 'types_data': [{'B... False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}]} 3500s 3500s def call_fixture_func( 3500s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 3500s ) -> FixtureValue: 3500s if is_generator(fixturefunc): 3500s fixturefunc = cast( 3500s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 3500s ) 3500s generator = fixturefunc(**kwargs) 3500s try: 3500s > fixture_result = next(generator) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:895: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s iris_path = PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv') 3500s types_data = [{'BoolCol': False, 'BoolColWithNull': False, 'DateCol': '2000-01-03 00:00:00', 'DateColWithTz': '2000-01-01 00:00:00-...: False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}] 3500s 3500s @pytest.fixture 3500s def mysql_pymysql_engine(iris_path, types_data): 3500s sqlalchemy = pytest.importorskip("sqlalchemy") 3500s pymysql = pytest.importorskip("pymysql") 3500s engine = sqlalchemy.create_engine( 3500s "mysql+pymysql://root@localhost:3306/pandas", 3500s connect_args={"client_flag": pymysql.constants.CLIENT.MULTI_STATEMENTS}, 3500s poolclass=sqlalchemy.pool.NullPool, 3500s ) 3500s > insp = sqlalchemy.inspect(engine) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:409: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s subject = Engine(mysql+pymysql://root@localhost:3306/pandas), raiseerr = True 3500s 3500s def inspect(subject, raiseerr=True): 3500s """Produce an inspection object for the given target. 3500s 3500s The returned value in some cases may be the 3500s same object as the one given, such as if a 3500s :class:`_orm.Mapper` object is passed. In other 3500s cases, it will be an instance of the registered 3500s inspection type for the given object, such as 3500s if an :class:`_engine.Engine` is passed, an 3500s :class:`_reflection.Inspector` object is returned. 3500s 3500s :param subject: the subject to be inspected. 3500s :param raiseerr: When ``True``, if the given subject 3500s does not 3500s correspond to a known SQLAlchemy inspected type, 3500s :class:`sqlalchemy.exc.NoInspectionAvailable` 3500s is raised. If ``False``, ``None`` is returned. 3500s 3500s """ 3500s type_ = type(subject) 3500s for cls in type_.__mro__: 3500s if cls in _registrars: 3500s reg = _registrars[cls] 3500s if reg is True: 3500s return subject 3500s > ret = reg(subject) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:64: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s @inspection._inspects(Engine) 3500s def _engine_insp(bind): 3500s > return Inspector._construct(Inspector._init_engine, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:182: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s init = 3500s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s @classmethod 3500s def _construct(cls, init, bind): 3500s 3500s if hasattr(bind.dialect, "inspector"): 3500s cls = bind.dialect.inspector 3500s 3500s self = cls.__new__(cls) 3500s > init(self, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:117: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s def _init_engine(self, engine): 3500s self.bind = self.engine = engine 3500s > engine.connect().close() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:128: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s close_with_result = False 3500s 3500s def connect(self, close_with_result=False): 3500s """Return a new :class:`_engine.Connection` object. 3500s 3500s The :class:`_engine.Connection` object is a facade that uses a DBAPI 3500s connection internally in order to communicate with the database. This 3500s connection is procured from the connection-holding :class:`_pool.Pool` 3500s referenced by this :class:`_engine.Engine`. When the 3500s :meth:`_engine.Connection.close` method of the 3500s :class:`_engine.Connection` object 3500s is called, the underlying DBAPI connection is then returned to the 3500s connection pool, where it may be used again in a subsequent call to 3500s :meth:`_engine.Engine.connect`. 3500s 3500s """ 3500s 3500s > return self._connection_cls(self, close_with_result=close_with_result) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3325: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 3500s close_with_result = False, _branch_from = None, _execution_options = None 3500s _dispatch = None, _has_events = None, _allow_revalidate = True 3500s 3500s def __init__( 3500s self, 3500s engine, 3500s connection=None, 3500s close_with_result=False, 3500s _branch_from=None, 3500s _execution_options=None, 3500s _dispatch=None, 3500s _has_events=None, 3500s _allow_revalidate=True, 3500s ): 3500s """Construct a new Connection.""" 3500s self.engine = engine 3500s self.dialect = engine.dialect 3500s self.__branch_from = _branch_from 3500s 3500s if _branch_from: 3500s # branching is always "from" the root connection 3500s assert _branch_from.__branch_from is None 3500s self._dbapi_connection = connection 3500s self._execution_options = _execution_options 3500s self._echo = _branch_from._echo 3500s self.should_close_with_result = False 3500s self.dispatch = _dispatch 3500s self._has_events = _branch_from._has_events 3500s else: 3500s self._dbapi_connection = ( 3500s connection 3500s if connection is not None 3500s > else engine.raw_connection() 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:96: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas), _connection = None 3500s 3500s def raw_connection(self, _connection=None): 3500s """Return a "raw" DBAPI connection from the connection pool. 3500s 3500s The returned object is a proxied version of the DBAPI 3500s connection object used by the underlying driver in use. 3500s The object will have all the same behavior as the real DBAPI 3500s connection, except that its ``close()`` method will result in the 3500s connection being returned to the pool, rather than being closed 3500s for real. 3500s 3500s This method provides direct DBAPI connection access for 3500s special situations when the API provided by 3500s :class:`_engine.Connection` 3500s is not needed. When a :class:`_engine.Connection` object is already 3500s present, the DBAPI connection is available using 3500s the :attr:`_engine.Connection.connection` accessor. 3500s 3500s .. seealso:: 3500s 3500s :ref:`dbapi_connections` 3500s 3500s """ 3500s > return self._wrap_pool_connect(self.pool.connect, _connection) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3404: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s return fn() 3500s except dialect.dbapi.Error as e: 3500s if connection is None: 3500s > Connection._handle_dbapi_exception_noconnection( 3500s e, dialect, self 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3374: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s e = OperationalError(2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3500s dialect = 3500s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s @classmethod 3500s def _handle_dbapi_exception_noconnection(cls, e, dialect, engine): 3500s exc_info = sys.exc_info() 3500s 3500s is_disconnect = dialect.is_disconnect(e, None, None) 3500s 3500s should_wrap = isinstance(e, dialect.dbapi.Error) 3500s 3500s if should_wrap: 3500s sqlalchemy_exception = exc.DBAPIError.instance( 3500s None, 3500s None, 3500s e, 3500s dialect.dbapi.Error, 3500s hide_parameters=engine.hide_parameters, 3500s connection_invalidated=is_disconnect, 3500s ) 3500s else: 3500s sqlalchemy_exception = None 3500s 3500s newraise = None 3500s 3500s if engine._has_events: 3500s ctx = ExceptionContextImpl( 3500s e, 3500s sqlalchemy_exception, 3500s engine, 3500s None, 3500s None, 3500s None, 3500s None, 3500s None, 3500s is_disconnect, 3500s True, 3500s ) 3500s for fn in engine.dispatch.handle_error: 3500s try: 3500s # handler returns an exception; 3500s # call next handler in a chain 3500s per_fn = fn(ctx) 3500s if per_fn is not None: 3500s ctx.chained_exception = newraise = per_fn 3500s except Exception as _raised: 3500s # handler raises an exception - stop processing 3500s newraise = _raised 3500s break 3500s 3500s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 3500s sqlalchemy_exception.connection_invalidated = ( 3500s is_disconnect 3500s ) = ctx.is_disconnect 3500s 3500s if newraise: 3500s util.raise_(newraise, with_traceback=exc_info[2], from_=e) 3500s elif should_wrap: 3500s > util.raise_( 3500s sqlalchemy_exception, with_traceback=exc_info[2], from_=e 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2208: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __init__( 3500s self, 3500s *, 3500s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 3500s password="", 3500s host=None, 3500s database=None, 3500s unix_socket=None, 3500s port=0, 3500s charset="", 3500s collation=None, 3500s sql_mode=None, 3500s read_default_file=None, 3500s conv=None, 3500s use_unicode=True, 3500s client_flag=0, 3500s cursorclass=Cursor, 3500s init_command=None, 3500s connect_timeout=10, 3500s read_default_group=None, 3500s autocommit=False, 3500s local_infile=False, 3500s max_allowed_packet=16 * 1024 * 1024, 3500s defer_connect=False, 3500s auth_plugin_map=None, 3500s read_timeout=None, 3500s write_timeout=None, 3500s bind_address=None, 3500s binary_prefix=False, 3500s program_name=None, 3500s server_public_key=None, 3500s ssl=None, 3500s ssl_ca=None, 3500s ssl_cert=None, 3500s ssl_disabled=None, 3500s ssl_key=None, 3500s ssl_key_password=None, 3500s ssl_verify_cert=None, 3500s ssl_verify_identity=None, 3500s compress=None, # not supported 3500s named_pipe=None, # not supported 3500s passwd=None, # deprecated 3500s db=None, # deprecated 3500s ): 3500s if db is not None and database is None: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 3500s database = db 3500s if passwd is not None and not password: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn( 3500s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 3500s # ) 3500s password = passwd 3500s 3500s if compress or named_pipe: 3500s raise NotImplementedError( 3500s "compress and named_pipe arguments are not supported" 3500s ) 3500s 3500s self._local_infile = bool(local_infile) 3500s if self._local_infile: 3500s client_flag |= CLIENT.LOCAL_FILES 3500s 3500s if read_default_group and not read_default_file: 3500s if sys.platform.startswith("win"): 3500s read_default_file = "c:\\my.ini" 3500s else: 3500s read_default_file = "/etc/my.cnf" 3500s 3500s if read_default_file: 3500s if not read_default_group: 3500s read_default_group = "client" 3500s 3500s cfg = Parser() 3500s cfg.read(os.path.expanduser(read_default_file)) 3500s 3500s def _config(key, arg): 3500s if arg: 3500s return arg 3500s try: 3500s return cfg.get(read_default_group, key) 3500s except Exception: 3500s return arg 3500s 3500s user = _config("user", user) 3500s password = _config("password", password) 3500s host = _config("host", host) 3500s database = _config("database", database) 3500s unix_socket = _config("socket", unix_socket) 3500s port = int(_config("port", port)) 3500s bind_address = _config("bind-address", bind_address) 3500s charset = _config("default-character-set", charset) 3500s if not ssl: 3500s ssl = {} 3500s if isinstance(ssl, dict): 3500s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 3500s value = _config("ssl-" + key, ssl.get(key)) 3500s if value: 3500s ssl[key] = value 3500s 3500s self.ssl = False 3500s if not ssl_disabled: 3500s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 3500s ssl = { 3500s "ca": ssl_ca, 3500s "check_hostname": bool(ssl_verify_identity), 3500s "verify_mode": ssl_verify_cert 3500s if ssl_verify_cert is not None 3500s else False, 3500s } 3500s if ssl_cert is not None: 3500s ssl["cert"] = ssl_cert 3500s if ssl_key is not None: 3500s ssl["key"] = ssl_key 3500s if ssl_key_password is not None: 3500s ssl["password"] = ssl_key_password 3500s if ssl: 3500s if not SSL_ENABLED: 3500s raise NotImplementedError("ssl module not found") 3500s self.ssl = True 3500s client_flag |= CLIENT.SSL 3500s self.ctx = self._create_ssl_ctx(ssl) 3500s 3500s self.host = host or "localhost" 3500s self.port = port or 3306 3500s if type(self.port) is not int: 3500s raise ValueError("port should be of type int") 3500s self.user = user or DEFAULT_USER 3500s self.password = password or b"" 3500s if isinstance(self.password, str): 3500s self.password = self.password.encode("latin1") 3500s self.db = database 3500s self.unix_socket = unix_socket 3500s self.bind_address = bind_address 3500s if not (0 < connect_timeout <= 31536000): 3500s raise ValueError("connect_timeout should be >0 and <=31536000") 3500s self.connect_timeout = connect_timeout or None 3500s if read_timeout is not None and read_timeout <= 0: 3500s raise ValueError("read_timeout should be > 0") 3500s self._read_timeout = read_timeout 3500s if write_timeout is not None and write_timeout <= 0: 3500s raise ValueError("write_timeout should be > 0") 3500s self._write_timeout = write_timeout 3500s 3500s self.charset = charset or DEFAULT_CHARSET 3500s self.collation = collation 3500s self.use_unicode = use_unicode 3500s 3500s self.encoding = charset_by_name(self.charset).encoding 3500s 3500s client_flag |= CLIENT.CAPABILITIES 3500s if self.db: 3500s client_flag |= CLIENT.CONNECT_WITH_DB 3500s 3500s self.client_flag = client_flag 3500s 3500s self.cursorclass = cursorclass 3500s 3500s self._result = None 3500s self._affected_rows = 0 3500s self.host_info = "Not connected" 3500s 3500s # specified autocommit mode. None means use server default. 3500s self.autocommit_mode = autocommit 3500s 3500s if conv is None: 3500s conv = converters.conversions 3500s 3500s # Need for MySQLdb compatibility. 3500s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 3500s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 3500s self.sql_mode = sql_mode 3500s self.init_command = init_command 3500s self.max_allowed_packet = max_allowed_packet 3500s self._auth_plugin_map = auth_plugin_map or {} 3500s self._binary_prefix = binary_prefix 3500s self.server_public_key = server_public_key 3500s 3500s self._connect_attrs = { 3500s "_client_name": "pymysql", 3500s "_client_version": VERSION_STRING, 3500s "_pid": str(os.getpid()), 3500s } 3500s 3500s if program_name: 3500s self._connect_attrs["program_name"] = program_name 3500s 3500s if defer_connect: 3500s self._sock = None 3500s else: 3500s > self.connect() 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = , sock = None 3500s 3500s def connect(self, sock=None): 3500s self._closed = False 3500s try: 3500s if sock is None: 3500s if self.unix_socket: 3500s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3500s sock.settimeout(self.connect_timeout) 3500s sock.connect(self.unix_socket) 3500s self.host_info = "Localhost via UNIX socket" 3500s self._secure = True 3500s if DEBUG: 3500s print("connected using unix_socket") 3500s else: 3500s kwargs = {} 3500s if self.bind_address is not None: 3500s kwargs["source_address"] = (self.bind_address, 0) 3500s while True: 3500s try: 3500s sock = socket.create_connection( 3500s (self.host, self.port), self.connect_timeout, **kwargs 3500s ) 3500s break 3500s except OSError as e: 3500s if e.errno == errno.EINTR: 3500s continue 3500s raise 3500s self.host_info = "socket %s:%d" % (self.host, self.port) 3500s if DEBUG: 3500s print("connected using socket") 3500s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 3500s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 3500s sock.settimeout(None) 3500s 3500s self._sock = sock 3500s self._rfile = sock.makefile("rb") 3500s self._next_seq_id = 0 3500s 3500s self._get_server_information() 3500s self._request_authentication() 3500s 3500s # Send "SET NAMES" query on init for: 3500s # - Ensure charaset (and collation) is set to the server. 3500s # - collation_id in handshake packet may be ignored. 3500s # - If collation is not specified, we don't know what is server's 3500s # default collation for the charset. For example, default collation 3500s # of utf8mb4 is: 3500s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 3500s # - MySQL 8.0: utf8mb4_0900_ai_ci 3500s # 3500s # Reference: 3500s # - https://github.com/PyMySQL/PyMySQL/issues/1092 3500s # - https://github.com/wagtail/wagtail/issues/9477 3500s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 3500s self.set_character_set(self.charset, self.collation) 3500s 3500s if self.sql_mode is not None: 3500s c = self.cursor() 3500s c.execute("SET sql_mode=%s", (self.sql_mode,)) 3500s c.close() 3500s 3500s if self.init_command is not None: 3500s c = self.cursor() 3500s c.execute(self.init_command) 3500s c.close() 3500s 3500s if self.autocommit_mode is not None: 3500s self.autocommit(self.autocommit_mode) 3500s except BaseException as e: 3500s self._rfile = None 3500s if sock is not None: 3500s try: 3500s sock.close() 3500s except: # noqa 3500s pass 3500s 3500s if isinstance(e, (OSError, IOError)): 3500s exc = err.OperationalError( 3500s CR.CR_CONN_HOST_ERROR, 3500s f"Can't connect to MySQL server on {self.host!r} ({e})", 3500s ) 3500s # Keep original exception and traceback to investigate error. 3500s exc.original_exception = e 3500s exc.traceback = traceback.format_exc() 3500s if DEBUG: 3500s print(exc.traceback) 3500s > raise exc 3500s E sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3500s E (Background on this error at: https://sqlalche.me/e/14/e3q8) 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 3500s __ test_read_iris_query_expression_with_parameter[postgresql_psycopg2_engine] __ 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s dsn = 'host=localhost user=postgres password=postgres port=5432 dbname=pandas' 3500s connection_factory = None, cursor_factory = None 3500s kwargs = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s kwasync = {} 3500s 3500s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 3500s """ 3500s Create a new database connection. 3500s 3500s The connection parameters can be specified as a string: 3500s 3500s conn = psycopg2.connect("dbname=test user=postgres password=secret") 3500s 3500s or using a set of keyword arguments: 3500s 3500s conn = psycopg2.connect(database="test", user="postgres", password="secret") 3500s 3500s Or as a mix of both. The basic connection parameters are: 3500s 3500s - *dbname*: the database name 3500s - *database*: the database name (only as keyword argument) 3500s - *user*: user name used to authenticate 3500s - *password*: password used to authenticate 3500s - *host*: database host address (defaults to UNIX socket if not provided) 3500s - *port*: connection port number (defaults to 5432 if not provided) 3500s 3500s Using the *connection_factory* parameter a different class or connections 3500s factory can be specified. It should be a callable object taking a dsn 3500s argument. 3500s 3500s Using the *cursor_factory* parameter, a new default cursor factory will be 3500s used by cursor(). 3500s 3500s Using *async*=True an asynchronous connection will be created. *async_* is 3500s a valid alias (for Python versions where ``async`` is a keyword). 3500s 3500s Any other keyword parameter will be passed to the underlying client 3500s library: the list of supported parameters depends on the library version. 3500s 3500s """ 3500s kwasync = {} 3500s if 'async' in kwargs: 3500s kwasync['async'] = kwargs.pop('async') 3500s if 'async_' in kwargs: 3500s kwasync['async_'] = kwargs.pop('async_') 3500s 3500s dsn = _ext.make_dsn(dsn, **kwargs) 3500s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 3500s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 3500s E Is the server running on that host and accepting TCP/IP connections? 3500s 3500s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 3500s 3500s The above exception was the direct cause of the following exception: 3500s 3500s conn = 'postgresql_psycopg2_engine' 3500s request = > 3500s 3500s @pytest.mark.db 3500s @pytest.mark.parametrize("conn", sqlalchemy_connectable_iris) 3500s def test_read_iris_query_expression_with_parameter(conn, request): 3500s > conn = request.getfixturevalue(conn) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:656: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'postgresql_psycopg2_engine' 3500s 3500s def getfixturevalue(self, argname: str) -> Any: 3500s """Dynamically run a named fixture function. 3500s 3500s Declaring fixtures via function argument is recommended where possible. 3500s But if you can only decide whether to use another fixture at test 3500s setup time, you may use this function to retrieve it inside a fixture 3500s or test function body. 3500s 3500s This method can be used during the test setup phase or the test run 3500s phase, but during the test teardown phase a fixture's value may not 3500s be available. 3500s 3500s :param argname: 3500s The fixture name. 3500s :raises pytest.FixtureLookupError: 3500s If the given fixture could not be found. 3500s """ 3500s > fixturedef = self._get_active_fixturedef(argname) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:585: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'postgresql_psycopg2_engine' 3500s 3500s def _get_active_fixturedef( 3500s self, argname: str 3500s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3500s try: 3500s return self._fixture_defs[argname] 3500s except KeyError: 3500s try: 3500s fixturedef = self._getnextfixturedef(argname) 3500s except FixtureLookupError: 3500s if argname == "request": 3500s cached_result = (self, [0], None) 3500s return PseudoFixtureDef(cached_result, Scope.Function) 3500s raise 3500s # Remove indent to prevent the python3 exception 3500s # from leaking into the call. 3500s > self._compute_fixture_value(fixturedef) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s fixturedef = 3500s 3500s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3500s """Create a SubRequest based on "self" and call the execute method 3500s of the given FixtureDef object. 3500s 3500s This will force the FixtureDef object to throw away any previous 3500s results and compute a new fixture value, which will be stored into 3500s the FixtureDef object itself. 3500s """ 3500s # prepare a subrequest object before calling fixture function 3500s # (latter managed by fixturedef) 3500s argname = fixturedef.argname 3500s funcitem = self._pyfuncitem 3500s scope = fixturedef._scope 3500s try: 3500s callspec = funcitem.callspec 3500s except AttributeError: 3500s callspec = None 3500s if callspec is not None and argname in callspec.params: 3500s param = callspec.params[argname] 3500s param_index = callspec.indices[argname] 3500s # If a parametrize invocation set a scope it will override 3500s # the static scope defined with the fixture function. 3500s with suppress(KeyError): 3500s scope = callspec._arg2scope[argname] 3500s else: 3500s param = NOTSET 3500s param_index = 0 3500s has_params = fixturedef.params is not None 3500s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3500s if has_params and fixtures_not_supported: 3500s msg = ( 3500s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3500s "Node id: {nodeid}\n" 3500s "Function type: {typename}" 3500s ).format( 3500s name=funcitem.name, 3500s nodeid=funcitem.nodeid, 3500s typename=type(funcitem).__name__, 3500s ) 3500s fail(msg, pytrace=False) 3500s if has_params: 3500s frame = inspect.stack()[3] 3500s frameinfo = inspect.getframeinfo(frame[0]) 3500s source_path = absolutepath(frameinfo.filename) 3500s source_lineno = frameinfo.lineno 3500s try: 3500s source_path_str = str( 3500s source_path.relative_to(funcitem.config.rootpath) 3500s ) 3500s except ValueError: 3500s source_path_str = str(source_path) 3500s msg = ( 3500s "The requested fixture has no parameter defined for test:\n" 3500s " {}\n\n" 3500s "Requested fixture '{}' defined in:\n{}" 3500s "\n\nRequested here:\n{}:{}".format( 3500s funcitem.nodeid, 3500s fixturedef.argname, 3500s getlocation(fixturedef.func, funcitem.config.rootpath), 3500s source_path_str, 3500s source_lineno, 3500s ) 3500s ) 3500s fail(msg, pytrace=False) 3500s 3500s subrequest = SubRequest( 3500s self, scope, param, param_index, fixturedef, _ispytest=True 3500s ) 3500s 3500s # Check if a higher-level scoped fixture accesses a lower level one. 3500s subrequest._check_scope(argname, self._scope, scope) 3500s try: 3500s # Call the fixture function. 3500s > fixturedef.execute(request=subrequest) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s request = > 3500s 3500s def execute(self, request: SubRequest) -> FixtureValue: 3500s # Get required arguments and register our own finish() 3500s # with their finalization. 3500s for argname in self.argnames: 3500s fixturedef = request._get_active_fixturedef(argname) 3500s if argname != "request": 3500s # PseudoFixtureDef is only for "request". 3500s assert isinstance(fixturedef, FixtureDef) 3500s fixturedef.addfinalizer(functools.partial(self.finish, request=request)) 3500s 3500s my_cache_key = self.cache_key(request) 3500s if self.cached_result is not None: 3500s # note: comparison with `==` can fail (or be expensive) for e.g. 3500s # numpy arrays (#6497). 3500s cache_key = self.cached_result[1] 3500s if my_cache_key is cache_key: 3500s if self.cached_result[2] is not None: 3500s _, val, tb = self.cached_result[2] 3500s raise val.with_traceback(tb) 3500s else: 3500s result = self.cached_result[0] 3500s return result 3500s # We have a previous but differently parametrized fixture instance 3500s # so we need to tear it down before creating a new one. 3500s self.finish(request) 3500s assert self.cached_result is None 3500s 3500s ihook = request.node.ihook 3500s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1069: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s kwargs = {'fixturedef': , 'request': ...postgresql_psycopg2_engine' for >} 3500s firstresult = True 3500s 3500s def __call__(self, **kwargs: object) -> Any: 3500s """Call the hook. 3500s 3500s Only accepts keyword arguments, which should match the hook 3500s specification. 3500s 3500s Returns the result(s) of calling all registered plugins, see 3500s :ref:`calling`. 3500s """ 3500s assert ( 3500s not self.is_historic() 3500s ), "Cannot directly call a historic hook - use call_historic instead." 3500s self._verify_all_args_are_provided(kwargs) 3500s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 3500s # Copy because plugins may register other plugins during iteration (#438). 3500s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = <_pytest.config.PytestPluginManager object at 0xe9079168> 3500s hook_name = 'pytest_fixture_setup' 3500s methods = [>] 3500s kwargs = {'fixturedef': , 'request': ...postgresql_psycopg2_engine' for >} 3500s firstresult = True 3500s 3500s def _hookexec( 3500s self, 3500s hook_name: str, 3500s methods: Sequence[HookImpl], 3500s kwargs: Mapping[str, object], 3500s firstresult: bool, 3500s ) -> object | list[object]: 3500s # called from all hookcaller instances. 3500s # enable_tracing will set its own wrapping function at self._inner_hookexec 3500s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturedef = 3500s request = > 3500s 3500s def pytest_fixture_setup( 3500s fixturedef: FixtureDef[FixtureValue], request: SubRequest 3500s ) -> FixtureValue: 3500s """Execution of fixture setup.""" 3500s kwargs = {} 3500s for argname in fixturedef.argnames: 3500s fixdef = request._get_active_fixturedef(argname) 3500s assert fixdef.cached_result is not None 3500s result, arg_cache_key, exc = fixdef.cached_result 3500s request._check_scope(argname, request._scope, fixdef._scope) 3500s kwargs[argname] = result 3500s 3500s fixturefunc = resolve_fixture_function(fixturedef, request) 3500s my_cache_key = fixturedef.cache_key(request) 3500s try: 3500s > result = call_fixture_func(fixturefunc, request, kwargs) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1123: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturefunc = 3500s request = > 3500s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv'), 'types_data': [{'B... False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}]} 3500s 3500s def call_fixture_func( 3500s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 3500s ) -> FixtureValue: 3500s if is_generator(fixturefunc): 3500s fixturefunc = cast( 3500s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 3500s ) 3500s generator = fixturefunc(**kwargs) 3500s try: 3500s > fixture_result = next(generator) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:895: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s iris_path = PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv') 3500s types_data = [{'BoolCol': False, 'BoolColWithNull': False, 'DateCol': '2000-01-03 00:00:00', 'DateColWithTz': '2000-01-01 00:00:00-...: False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}] 3500s 3500s @pytest.fixture 3500s def postgresql_psycopg2_engine(iris_path, types_data): 3500s sqlalchemy = pytest.importorskip("sqlalchemy") 3500s pytest.importorskip("psycopg2") 3500s engine = sqlalchemy.create_engine( 3500s "postgresql+psycopg2://postgres:postgres@localhost:5432/pandas", 3500s poolclass=sqlalchemy.pool.NullPool, 3500s ) 3500s > insp = sqlalchemy.inspect(engine) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:438: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s subject = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s raiseerr = True 3500s 3500s def inspect(subject, raiseerr=True): 3500s """Produce an inspection object for the given target. 3500s 3500s The returned value in some cases may be the 3500s same object as the one given, such as if a 3500s :class:`_orm.Mapper` object is passed. In other 3500s cases, it will be an instance of the registered 3500s inspection type for the given object, such as 3500s if an :class:`_engine.Engine` is passed, an 3500s :class:`_reflection.Inspector` object is returned. 3500s 3500s :param subject: the subject to be inspected. 3500s :param raiseerr: When ``True``, if the given subject 3500s does not 3500s correspond to a known SQLAlchemy inspected type, 3500s :class:`sqlalchemy.exc.NoInspectionAvailable` 3500s is raised. If ``False``, ``None`` is returned. 3500s 3500s """ 3500s type_ = type(subject) 3500s for cls in type_.__mro__: 3500s if cls in _registrars: 3500s reg = _registrars[cls] 3500s if reg is True: 3500s return subject 3500s > ret = reg(subject) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:64: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s @inspection._inspects(Engine) 3500s def _engine_insp(bind): 3500s > return Inspector._construct(Inspector._init_engine, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:182: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s init = 3500s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s @classmethod 3500s def _construct(cls, init, bind): 3500s 3500s if hasattr(bind.dialect, "inspector"): 3500s cls = bind.dialect.inspector 3500s 3500s self = cls.__new__(cls) 3500s > init(self, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:117: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s def _init_engine(self, engine): 3500s self.bind = self.engine = engine 3500s > engine.connect().close() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:128: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s close_with_result = False 3500s 3500s def connect(self, close_with_result=False): 3500s """Return a new :class:`_engine.Connection` object. 3500s 3500s The :class:`_engine.Connection` object is a facade that uses a DBAPI 3500s connection internally in order to communicate with the database. This 3500s connection is procured from the connection-holding :class:`_pool.Pool` 3500s referenced by this :class:`_engine.Engine`. When the 3500s :meth:`_engine.Connection.close` method of the 3500s :class:`_engine.Connection` object 3500s is called, the underlying DBAPI connection is then returned to the 3500s connection pool, where it may be used again in a subsequent call to 3500s :meth:`_engine.Engine.connect`. 3500s 3500s """ 3500s 3500s > return self._connection_cls(self, close_with_result=close_with_result) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3325: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s connection = None, close_with_result = False, _branch_from = None 3500s _execution_options = None, _dispatch = None, _has_events = None 3500s _allow_revalidate = True 3500s 3500s def __init__( 3500s self, 3500s engine, 3500s connection=None, 3500s close_with_result=False, 3500s _branch_from=None, 3500s _execution_options=None, 3500s _dispatch=None, 3500s _has_events=None, 3500s _allow_revalidate=True, 3500s ): 3500s """Construct a new Connection.""" 3500s self.engine = engine 3500s self.dialect = engine.dialect 3500s self.__branch_from = _branch_from 3500s 3500s if _branch_from: 3500s # branching is always "from" the root connection 3500s assert _branch_from.__branch_from is None 3500s self._dbapi_connection = connection 3500s self._execution_options = _execution_options 3500s self._echo = _branch_from._echo 3500s self.should_close_with_result = False 3500s self.dispatch = _dispatch 3500s self._has_events = _branch_from._has_events 3500s else: 3500s self._dbapi_connection = ( 3500s connection 3500s if connection is not None 3500s > else engine.raw_connection() 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:96: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s _connection = None 3500s 3500s def raw_connection(self, _connection=None): 3500s """Return a "raw" DBAPI connection from the connection pool. 3500s 3500s The returned object is a proxied version of the DBAPI 3500s connection object used by the underlying driver in use. 3500s The object will have all the same behavior as the real DBAPI 3500s connection, except that its ``close()`` method will result in the 3500s connection being returned to the pool, rather than being closed 3500s for real. 3500s 3500s This method provides direct DBAPI connection access for 3500s special situations when the API provided by 3500s :class:`_engine.Connection` 3500s is not needed. When a :class:`_engine.Connection` object is already 3500s present, the DBAPI connection is available using 3500s the :attr:`_engine.Connection.connection` accessor. 3500s 3500s .. seealso:: 3500s 3500s :ref:`dbapi_connections` 3500s 3500s """ 3500s > return self._wrap_pool_connect(self.pool.connect, _connection) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3404: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s return fn() 3500s except dialect.dbapi.Error as e: 3500s if connection is None: 3500s > Connection._handle_dbapi_exception_noconnection( 3500s e, dialect, self 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3374: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s e = OperationalError('connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused\n\tIs the server running on that host and accepting TCP/IP connections?\n') 3500s dialect = 3500s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s @classmethod 3500s def _handle_dbapi_exception_noconnection(cls, e, dialect, engine): 3500s exc_info = sys.exc_info() 3500s 3500s is_disconnect = dialect.is_disconnect(e, None, None) 3500s 3500s should_wrap = isinstance(e, dialect.dbapi.Error) 3500s 3500s if should_wrap: 3500s sqlalchemy_exception = exc.DBAPIError.instance( 3500s None, 3500s None, 3500s e, 3500s dialect.dbapi.Error, 3500s hide_parameters=engine.hide_parameters, 3500s connection_invalidated=is_disconnect, 3500s ) 3500s else: 3500s sqlalchemy_exception = None 3500s 3500s newraise = None 3500s 3500s if engine._has_events: 3500s ctx = ExceptionContextImpl( 3500s e, 3500s sqlalchemy_exception, 3500s engine, 3500s None, 3500s None, 3500s None, 3500s None, 3500s None, 3500s is_disconnect, 3500s True, 3500s ) 3500s for fn in engine.dispatch.handle_error: 3500s try: 3500s # handler returns an exception; 3500s # call next handler in a chain 3500s per_fn = fn(ctx) 3500s if per_fn is not None: 3500s ctx.chained_exception = newraise = per_fn 3500s except Exception as _raised: 3500s # handler raises an exception - stop processing 3500s newraise = _raised 3500s break 3500s 3500s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 3500s sqlalchemy_exception.connection_invalidated = ( 3500s is_disconnect 3500s ) = ctx.is_disconnect 3500s 3500s if newraise: 3500s util.raise_(newraise, with_traceback=exc_info[2], from_=e) 3500s elif should_wrap: 3500s > util.raise_( 3500s sqlalchemy_exception, with_traceback=exc_info[2], from_=e 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2208: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s dsn = 'host=localhost user=postgres password=postgres port=5432 dbname=pandas' 3500s connection_factory = None, cursor_factory = None 3500s kwargs = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s kwasync = {} 3500s 3500s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 3500s """ 3500s Create a new database connection. 3500s 3500s The connection parameters can be specified as a string: 3500s 3500s conn = psycopg2.connect("dbname=test user=postgres password=secret") 3500s 3500s or using a set of keyword arguments: 3500s 3500s conn = psycopg2.connect(database="test", user="postgres", password="secret") 3500s 3500s Or as a mix of both. The basic connection parameters are: 3500s 3500s - *dbname*: the database name 3500s - *database*: the database name (only as keyword argument) 3500s - *user*: user name used to authenticate 3500s - *password*: password used to authenticate 3500s - *host*: database host address (defaults to UNIX socket if not provided) 3500s - *port*: connection port number (defaults to 5432 if not provided) 3500s 3500s Using the *connection_factory* parameter a different class or connections 3500s factory can be specified. It should be a callable object taking a dsn 3500s argument. 3500s 3500s Using the *cursor_factory* parameter, a new default cursor factory will be 3500s used by cursor(). 3500s 3500s Using *async*=True an asynchronous connection will be created. *async_* is 3500s a valid alias (for Python versions where ``async`` is a keyword). 3500s 3500s Any other keyword parameter will be passed to the underlying client 3500s library: the list of supported parameters depends on the library version. 3500s 3500s """ 3500s kwasync = {} 3500s if 'async' in kwargs: 3500s kwasync['async'] = kwargs.pop('async') 3500s if 'async_' in kwargs: 3500s kwasync['async_'] = kwargs.pop('async_') 3500s 3500s dsn = _ext.make_dsn(dsn, **kwargs) 3500s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 3500s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 3500s E Is the server running on that host and accepting TCP/IP connections? 3500s E 3500s E (Background on this error at: https://sqlalche.me/e/14/e3q8) 3500s 3500s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 3500s ___ test_read_iris_query_expression_with_parameter[postgresql_psycopg2_conn] ___ 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s dsn = 'host=localhost user=postgres password=postgres port=5432 dbname=pandas' 3500s connection_factory = None, cursor_factory = None 3500s kwargs = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s kwasync = {} 3500s 3500s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 3500s """ 3500s Create a new database connection. 3500s 3500s The connection parameters can be specified as a string: 3500s 3500s conn = psycopg2.connect("dbname=test user=postgres password=secret") 3500s 3500s or using a set of keyword arguments: 3500s 3500s conn = psycopg2.connect(database="test", user="postgres", password="secret") 3500s 3500s Or as a mix of both. The basic connection parameters are: 3500s 3500s - *dbname*: the database name 3500s - *database*: the database name (only as keyword argument) 3500s - *user*: user name used to authenticate 3500s - *password*: password used to authenticate 3500s - *host*: database host address (defaults to UNIX socket if not provided) 3500s - *port*: connection port number (defaults to 5432 if not provided) 3500s 3500s Using the *connection_factory* parameter a different class or connections 3500s factory can be specified. It should be a callable object taking a dsn 3500s argument. 3500s 3500s Using the *cursor_factory* parameter, a new default cursor factory will be 3500s used by cursor(). 3500s 3500s Using *async*=True an asynchronous connection will be created. *async_* is 3500s a valid alias (for Python versions where ``async`` is a keyword). 3500s 3500s Any other keyword parameter will be passed to the underlying client 3500s library: the list of supported parameters depends on the library version. 3500s 3500s """ 3500s kwasync = {} 3500s if 'async' in kwargs: 3500s kwasync['async'] = kwargs.pop('async') 3500s if 'async_' in kwargs: 3500s kwasync['async_'] = kwargs.pop('async_') 3500s 3500s dsn = _ext.make_dsn(dsn, **kwargs) 3500s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 3500s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 3500s E Is the server running on that host and accepting TCP/IP connections? 3500s 3500s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 3500s 3500s The above exception was the direct cause of the following exception: 3500s 3500s conn = 'postgresql_psycopg2_conn' 3500s request = > 3500s 3500s @pytest.mark.db 3500s @pytest.mark.parametrize("conn", sqlalchemy_connectable_iris) 3500s def test_read_iris_query_expression_with_parameter(conn, request): 3500s > conn = request.getfixturevalue(conn) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:656: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'postgresql_psycopg2_conn' 3500s 3500s def getfixturevalue(self, argname: str) -> Any: 3500s """Dynamically run a named fixture function. 3500s 3500s Declaring fixtures via function argument is recommended where possible. 3500s But if you can only decide whether to use another fixture at test 3500s setup time, you may use this function to retrieve it inside a fixture 3500s or test function body. 3500s 3500s This method can be used during the test setup phase or the test run 3500s phase, but during the test teardown phase a fixture's value may not 3500s be available. 3500s 3500s :param argname: 3500s The fixture name. 3500s :raises pytest.FixtureLookupError: 3500s If the given fixture could not be found. 3500s """ 3500s > fixturedef = self._get_active_fixturedef(argname) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:585: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'postgresql_psycopg2_conn' 3500s 3500s def _get_active_fixturedef( 3500s self, argname: str 3500s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3500s try: 3500s return self._fixture_defs[argname] 3500s except KeyError: 3500s try: 3500s fixturedef = self._getnextfixturedef(argname) 3500s except FixtureLookupError: 3500s if argname == "request": 3500s cached_result = (self, [0], None) 3500s return PseudoFixtureDef(cached_result, Scope.Function) 3500s raise 3500s # Remove indent to prevent the python3 exception 3500s # from leaking into the call. 3500s > self._compute_fixture_value(fixturedef) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s fixturedef = 3500s 3500s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3500s """Create a SubRequest based on "self" and call the execute method 3500s of the given FixtureDef object. 3500s 3500s This will force the FixtureDef object to throw away any previous 3500s results and compute a new fixture value, which will be stored into 3500s the FixtureDef object itself. 3500s """ 3500s # prepare a subrequest object before calling fixture function 3500s # (latter managed by fixturedef) 3500s argname = fixturedef.argname 3500s funcitem = self._pyfuncitem 3500s scope = fixturedef._scope 3500s try: 3500s callspec = funcitem.callspec 3500s except AttributeError: 3500s callspec = None 3500s if callspec is not None and argname in callspec.params: 3500s param = callspec.params[argname] 3500s param_index = callspec.indices[argname] 3500s # If a parametrize invocation set a scope it will override 3500s # the static scope defined with the fixture function. 3500s with suppress(KeyError): 3500s scope = callspec._arg2scope[argname] 3500s else: 3500s param = NOTSET 3500s param_index = 0 3500s has_params = fixturedef.params is not None 3500s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3500s if has_params and fixtures_not_supported: 3500s msg = ( 3500s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3500s "Node id: {nodeid}\n" 3500s "Function type: {typename}" 3500s ).format( 3500s name=funcitem.name, 3500s nodeid=funcitem.nodeid, 3500s typename=type(funcitem).__name__, 3500s ) 3500s fail(msg, pytrace=False) 3500s if has_params: 3500s frame = inspect.stack()[3] 3500s frameinfo = inspect.getframeinfo(frame[0]) 3500s source_path = absolutepath(frameinfo.filename) 3500s source_lineno = frameinfo.lineno 3500s try: 3500s source_path_str = str( 3500s source_path.relative_to(funcitem.config.rootpath) 3500s ) 3500s except ValueError: 3500s source_path_str = str(source_path) 3500s msg = ( 3500s "The requested fixture has no parameter defined for test:\n" 3500s " {}\n\n" 3500s "Requested fixture '{}' defined in:\n{}" 3500s "\n\nRequested here:\n{}:{}".format( 3500s funcitem.nodeid, 3500s fixturedef.argname, 3500s getlocation(fixturedef.func, funcitem.config.rootpath), 3500s source_path_str, 3500s source_lineno, 3500s ) 3500s ) 3500s fail(msg, pytrace=False) 3500s 3500s subrequest = SubRequest( 3500s self, scope, param, param_index, fixturedef, _ispytest=True 3500s ) 3500s 3500s # Check if a higher-level scoped fixture accesses a lower level one. 3500s subrequest._check_scope(argname, self._scope, scope) 3500s try: 3500s # Call the fixture function. 3500s > fixturedef.execute(request=subrequest) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s request = > 3500s 3500s def execute(self, request: SubRequest) -> FixtureValue: 3500s # Get required arguments and register our own finish() 3500s # with their finalization. 3500s for argname in self.argnames: 3500s > fixturedef = request._get_active_fixturedef(argname) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1045: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'postgresql_psycopg2_engine' 3500s 3500s def _get_active_fixturedef( 3500s self, argname: str 3500s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3500s try: 3500s return self._fixture_defs[argname] 3500s except KeyError: 3500s try: 3500s fixturedef = self._getnextfixturedef(argname) 3500s except FixtureLookupError: 3500s if argname == "request": 3500s cached_result = (self, [0], None) 3500s return PseudoFixtureDef(cached_result, Scope.Function) 3500s raise 3500s # Remove indent to prevent the python3 exception 3500s # from leaking into the call. 3500s > self._compute_fixture_value(fixturedef) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s fixturedef = 3500s 3500s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3500s """Create a SubRequest based on "self" and call the execute method 3500s of the given FixtureDef object. 3500s 3500s This will force the FixtureDef object to throw away any previous 3500s results and compute a new fixture value, which will be stored into 3500s the FixtureDef object itself. 3500s """ 3500s # prepare a subrequest object before calling fixture function 3500s # (latter managed by fixturedef) 3500s argname = fixturedef.argname 3500s funcitem = self._pyfuncitem 3500s scope = fixturedef._scope 3500s try: 3500s callspec = funcitem.callspec 3500s except AttributeError: 3500s callspec = None 3500s if callspec is not None and argname in callspec.params: 3500s param = callspec.params[argname] 3500s param_index = callspec.indices[argname] 3500s # If a parametrize invocation set a scope it will override 3500s # the static scope defined with the fixture function. 3500s with suppress(KeyError): 3500s scope = callspec._arg2scope[argname] 3500s else: 3500s param = NOTSET 3500s param_index = 0 3500s has_params = fixturedef.params is not None 3500s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3500s if has_params and fixtures_not_supported: 3500s msg = ( 3500s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3500s "Node id: {nodeid}\n" 3500s "Function type: {typename}" 3500s ).format( 3500s name=funcitem.name, 3500s nodeid=funcitem.nodeid, 3500s typename=type(funcitem).__name__, 3500s ) 3500s fail(msg, pytrace=False) 3500s if has_params: 3500s frame = inspect.stack()[3] 3500s frameinfo = inspect.getframeinfo(frame[0]) 3500s source_path = absolutepath(frameinfo.filename) 3500s source_lineno = frameinfo.lineno 3500s try: 3500s source_path_str = str( 3500s source_path.relative_to(funcitem.config.rootpath) 3500s ) 3500s except ValueError: 3500s source_path_str = str(source_path) 3500s msg = ( 3500s "The requested fixture has no parameter defined for test:\n" 3500s " {}\n\n" 3500s "Requested fixture '{}' defined in:\n{}" 3500s "\n\nRequested here:\n{}:{}".format( 3500s funcitem.nodeid, 3500s fixturedef.argname, 3500s getlocation(fixturedef.func, funcitem.config.rootpath), 3500s source_path_str, 3500s source_lineno, 3500s ) 3500s ) 3500s fail(msg, pytrace=False) 3500s 3500s subrequest = SubRequest( 3500s self, scope, param, param_index, fixturedef, _ispytest=True 3500s ) 3500s 3500s # Check if a higher-level scoped fixture accesses a lower level one. 3500s subrequest._check_scope(argname, self._scope, scope) 3500s try: 3500s # Call the fixture function. 3500s > fixturedef.execute(request=subrequest) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s request = > 3500s 3500s def execute(self, request: SubRequest) -> FixtureValue: 3500s # Get required arguments and register our own finish() 3500s # with their finalization. 3500s for argname in self.argnames: 3500s fixturedef = request._get_active_fixturedef(argname) 3500s if argname != "request": 3500s # PseudoFixtureDef is only for "request". 3500s assert isinstance(fixturedef, FixtureDef) 3500s fixturedef.addfinalizer(functools.partial(self.finish, request=request)) 3500s 3500s my_cache_key = self.cache_key(request) 3500s if self.cached_result is not None: 3500s # note: comparison with `==` can fail (or be expensive) for e.g. 3500s # numpy arrays (#6497). 3500s cache_key = self.cached_result[1] 3500s if my_cache_key is cache_key: 3500s if self.cached_result[2] is not None: 3500s _, val, tb = self.cached_result[2] 3500s raise val.with_traceback(tb) 3500s else: 3500s result = self.cached_result[0] 3500s return result 3500s # We have a previous but differently parametrized fixture instance 3500s # so we need to tear it down before creating a new one. 3500s self.finish(request) 3500s assert self.cached_result is None 3500s 3500s ihook = request.node.ihook 3500s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1069: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s kwargs = {'fixturedef': , 'request': ... 'postgresql_psycopg2_engine' for >} 3500s firstresult = True 3500s 3500s def __call__(self, **kwargs: object) -> Any: 3500s """Call the hook. 3500s 3500s Only accepts keyword arguments, which should match the hook 3500s specification. 3500s 3500s Returns the result(s) of calling all registered plugins, see 3500s :ref:`calling`. 3500s """ 3500s assert ( 3500s not self.is_historic() 3500s ), "Cannot directly call a historic hook - use call_historic instead." 3500s self._verify_all_args_are_provided(kwargs) 3500s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 3500s # Copy because plugins may register other plugins during iteration (#438). 3500s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = <_pytest.config.PytestPluginManager object at 0xe9079168> 3500s hook_name = 'pytest_fixture_setup' 3500s methods = [>] 3500s kwargs = {'fixturedef': , 'request': ... 'postgresql_psycopg2_engine' for >} 3500s firstresult = True 3500s 3500s def _hookexec( 3500s self, 3500s hook_name: str, 3500s methods: Sequence[HookImpl], 3500s kwargs: Mapping[str, object], 3500s firstresult: bool, 3500s ) -> object | list[object]: 3500s # called from all hookcaller instances. 3500s # enable_tracing will set its own wrapping function at self._inner_hookexec 3500s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturedef = 3500s request = > 3500s 3500s def pytest_fixture_setup( 3500s fixturedef: FixtureDef[FixtureValue], request: SubRequest 3500s ) -> FixtureValue: 3500s """Execution of fixture setup.""" 3500s kwargs = {} 3500s for argname in fixturedef.argnames: 3500s fixdef = request._get_active_fixturedef(argname) 3500s assert fixdef.cached_result is not None 3500s result, arg_cache_key, exc = fixdef.cached_result 3500s request._check_scope(argname, request._scope, fixdef._scope) 3500s kwargs[argname] = result 3500s 3500s fixturefunc = resolve_fixture_function(fixturedef, request) 3500s my_cache_key = fixturedef.cache_key(request) 3500s try: 3500s > result = call_fixture_func(fixturefunc, request, kwargs) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1123: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturefunc = 3500s request = > 3500s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv'), 'types_data': [{'B... False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}]} 3500s 3500s def call_fixture_func( 3500s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 3500s ) -> FixtureValue: 3500s if is_generator(fixturefunc): 3500s fixturefunc = cast( 3500s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 3500s ) 3500s generator = fixturefunc(**kwargs) 3500s try: 3500s > fixture_result = next(generator) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:895: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s iris_path = PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv') 3500s types_data = [{'BoolCol': False, 'BoolColWithNull': False, 'DateCol': '2000-01-03 00:00:00', 'DateColWithTz': '2000-01-01 00:00:00-...: False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}] 3500s 3500s @pytest.fixture 3500s def postgresql_psycopg2_engine(iris_path, types_data): 3500s sqlalchemy = pytest.importorskip("sqlalchemy") 3500s pytest.importorskip("psycopg2") 3500s engine = sqlalchemy.create_engine( 3500s "postgresql+psycopg2://postgres:postgres@localhost:5432/pandas", 3500s poolclass=sqlalchemy.pool.NullPool, 3500s ) 3500s > insp = sqlalchemy.inspect(engine) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:438: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s subject = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s raiseerr = True 3500s 3500s def inspect(subject, raiseerr=True): 3500s """Produce an inspection object for the given target. 3500s 3500s The returned value in some cases may be the 3500s same object as the one given, such as if a 3500s :class:`_orm.Mapper` object is passed. In other 3500s cases, it will be an instance of the registered 3500s inspection type for the given object, such as 3500s if an :class:`_engine.Engine` is passed, an 3500s :class:`_reflection.Inspector` object is returned. 3500s 3500s :param subject: the subject to be inspected. 3500s :param raiseerr: When ``True``, if the given subject 3500s does not 3500s correspond to a known SQLAlchemy inspected type, 3500s :class:`sqlalchemy.exc.NoInspectionAvailable` 3500s is raised. If ``False``, ``None`` is returned. 3500s 3500s """ 3500s type_ = type(subject) 3500s for cls in type_.__mro__: 3500s if cls in _registrars: 3500s reg = _registrars[cls] 3500s if reg is True: 3500s return subject 3500s > ret = reg(subject) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:64: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s @inspection._inspects(Engine) 3500s def _engine_insp(bind): 3500s > return Inspector._construct(Inspector._init_engine, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:182: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s init = 3500s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s @classmethod 3500s def _construct(cls, init, bind): 3500s 3500s if hasattr(bind.dialect, "inspector"): 3500s cls = bind.dialect.inspector 3500s 3500s self = cls.__new__(cls) 3500s > init(self, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:117: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s def _init_engine(self, engine): 3500s self.bind = self.engine = engine 3500s > engine.connect().close() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:128: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s close_with_result = False 3500s 3500s def connect(self, close_with_result=False): 3500s """Return a new :class:`_engine.Connection` object. 3500s 3500s The :class:`_engine.Connection` object is a facade that uses a DBAPI 3500s connection internally in order to communicate with the database. This 3500s connection is procured from the connection-holding :class:`_pool.Pool` 3500s referenced by this :class:`_engine.Engine`. When the 3500s :meth:`_engine.Connection.close` method of the 3500s :class:`_engine.Connection` object 3500s is called, the underlying DBAPI connection is then returned to the 3500s connection pool, where it may be used again in a subsequent call to 3500s :meth:`_engine.Engine.connect`. 3500s 3500s """ 3500s 3500s > return self._connection_cls(self, close_with_result=close_with_result) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3325: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s connection = None, close_with_result = False, _branch_from = None 3500s _execution_options = None, _dispatch = None, _has_events = None 3500s _allow_revalidate = True 3500s 3500s def __init__( 3500s self, 3500s engine, 3500s connection=None, 3500s close_with_result=False, 3500s _branch_from=None, 3500s _execution_options=None, 3500s _dispatch=None, 3500s _has_events=None, 3500s _allow_revalidate=True, 3500s ): 3500s """Construct a new Connection.""" 3500s self.engine = engine 3500s self.dialect = engine.dialect 3500s self.__branch_from = _branch_from 3500s 3500s if _branch_from: 3500s # branching is always "from" the root connection 3500s assert _branch_from.__branch_from is None 3500s self._dbapi_connection = connection 3500s self._execution_options = _execution_options 3500s self._echo = _branch_from._echo 3500s self.should_close_with_result = False 3500s self.dispatch = _dispatch 3500s self._has_events = _branch_from._has_events 3500s else: 3500s self._dbapi_connection = ( 3500s connection 3500s if connection is not None 3500s > else engine.raw_connection() 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:96: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s _connection = None 3500s 3500s def raw_connection(self, _connection=None): 3500s """Return a "raw" DBAPI connection from the connection pool. 3500s 3500s The returned object is a proxied version of the DBAPI 3500s connection object used by the underlying driver in use. 3500s The object will have all the same behavior as the real DBAPI 3500s connection, except that its ``close()`` method will result in the 3500s connection being returned to the pool, rather than being closed 3500s for real. 3500s 3500s This method provides direct DBAPI connection access for 3500s special situations when the API provided by 3500s :class:`_engine.Connection` 3500s is not needed. When a :class:`_engine.Connection` object is already 3500s present, the DBAPI connection is available using 3500s the :attr:`_engine.Connection.connection` accessor. 3500s 3500s .. seealso:: 3500s 3500s :ref:`dbapi_connections` 3500s 3500s """ 3500s > return self._wrap_pool_connect(self.pool.connect, _connection) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3404: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s return fn() 3500s except dialect.dbapi.Error as e: 3500s if connection is None: 3500s > Connection._handle_dbapi_exception_noconnection( 3500s e, dialect, self 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3374: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s e = OperationalError('connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused\n\tIs the server running on that host and accepting TCP/IP connections?\n') 3500s dialect = 3500s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s @classmethod 3500s def _handle_dbapi_exception_noconnection(cls, e, dialect, engine): 3500s exc_info = sys.exc_info() 3500s 3500s is_disconnect = dialect.is_disconnect(e, None, None) 3500s 3500s should_wrap = isinstance(e, dialect.dbapi.Error) 3500s 3500s if should_wrap: 3500s sqlalchemy_exception = exc.DBAPIError.instance( 3500s None, 3500s None, 3500s e, 3500s dialect.dbapi.Error, 3500s hide_parameters=engine.hide_parameters, 3500s connection_invalidated=is_disconnect, 3500s ) 3500s else: 3500s sqlalchemy_exception = None 3500s 3500s newraise = None 3500s 3500s if engine._has_events: 3500s ctx = ExceptionContextImpl( 3500s e, 3500s sqlalchemy_exception, 3500s engine, 3500s None, 3500s None, 3500s None, 3500s None, 3500s None, 3500s is_disconnect, 3500s True, 3500s ) 3500s for fn in engine.dispatch.handle_error: 3500s try: 3500s # handler returns an exception; 3500s # call next handler in a chain 3500s per_fn = fn(ctx) 3500s if per_fn is not None: 3500s ctx.chained_exception = newraise = per_fn 3500s except Exception as _raised: 3500s # handler raises an exception - stop processing 3500s newraise = _raised 3500s break 3500s 3500s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 3500s sqlalchemy_exception.connection_invalidated = ( 3500s is_disconnect 3500s ) = ctx.is_disconnect 3500s 3500s if newraise: 3500s util.raise_(newraise, with_traceback=exc_info[2], from_=e) 3500s elif should_wrap: 3500s > util.raise_( 3500s sqlalchemy_exception, with_traceback=exc_info[2], from_=e 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2208: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s dsn = 'host=localhost user=postgres password=postgres port=5432 dbname=pandas' 3500s connection_factory = None, cursor_factory = None 3500s kwargs = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s kwasync = {} 3500s 3500s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 3500s """ 3500s Create a new database connection. 3500s 3500s The connection parameters can be specified as a string: 3500s 3500s conn = psycopg2.connect("dbname=test user=postgres password=secret") 3500s 3500s or using a set of keyword arguments: 3500s 3500s conn = psycopg2.connect(database="test", user="postgres", password="secret") 3500s 3500s Or as a mix of both. The basic connection parameters are: 3500s 3500s - *dbname*: the database name 3500s - *database*: the database name (only as keyword argument) 3500s - *user*: user name used to authenticate 3500s - *password*: password used to authenticate 3500s - *host*: database host address (defaults to UNIX socket if not provided) 3500s - *port*: connection port number (defaults to 5432 if not provided) 3500s 3500s Using the *connection_factory* parameter a different class or connections 3500s factory can be specified. It should be a callable object taking a dsn 3500s argument. 3500s 3500s Using the *cursor_factory* parameter, a new default cursor factory will be 3500s used by cursor(). 3500s 3500s Using *async*=True an asynchronous connection will be created. *async_* is 3500s a valid alias (for Python versions where ``async`` is a keyword). 3500s 3500s Any other keyword parameter will be passed to the underlying client 3500s library: the list of supported parameters depends on the library version. 3500s 3500s """ 3500s kwasync = {} 3500s if 'async' in kwargs: 3500s kwasync['async'] = kwargs.pop('async') 3500s if 'async_' in kwargs: 3500s kwasync['async_'] = kwargs.pop('async_') 3500s 3500s dsn = _ext.make_dsn(dsn, **kwargs) 3500s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 3500s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 3500s E Is the server running on that host and accepting TCP/IP connections? 3500s E 3500s E (Background on this error at: https://sqlalche.me/e/14/e3q8) 3500s 3500s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 3500s _______ test_read_iris_query_string_with_parameter[mysql_pymysql_engine] _______ 3500s self = , sock = None 3500s 3500s def connect(self, sock=None): 3500s self._closed = False 3500s try: 3500s if sock is None: 3500s if self.unix_socket: 3500s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3500s sock.settimeout(self.connect_timeout) 3500s sock.connect(self.unix_socket) 3500s self.host_info = "Localhost via UNIX socket" 3500s self._secure = True 3500s if DEBUG: 3500s print("connected using unix_socket") 3500s else: 3500s kwargs = {} 3500s if self.bind_address is not None: 3500s kwargs["source_address"] = (self.bind_address, 0) 3500s while True: 3500s try: 3500s > sock = socket.create_connection( 3500s (self.host, self.port), self.connect_timeout, **kwargs 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:649: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s address = ('localhost', 3306), timeout = 10, source_address = None 3500s 3500s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 3500s source_address=None, *, all_errors=False): 3500s """Connect to *address* and return the socket object. 3500s 3500s Convenience function. Connect to *address* (a 2-tuple ``(host, 3500s port)``) and return the socket object. Passing the optional 3500s *timeout* parameter will set the timeout on the socket instance 3500s before attempting to connect. If no *timeout* is supplied, the 3500s global default timeout setting returned by :func:`getdefaulttimeout` 3500s is used. If *source_address* is set it must be a tuple of (host, port) 3500s for the socket to bind as a source address before making the connection. 3500s A host of '' or port 0 tells the OS to use the default. When a connection 3500s cannot be created, raises the last error if *all_errors* is False, 3500s and an ExceptionGroup of all errors if *all_errors* is True. 3500s """ 3500s 3500s host, port = address 3500s exceptions = [] 3500s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 3500s af, socktype, proto, canonname, sa = res 3500s sock = None 3500s try: 3500s sock = socket(af, socktype, proto) 3500s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 3500s sock.settimeout(timeout) 3500s if source_address: 3500s sock.bind(source_address) 3500s sock.connect(sa) 3500s # Break explicitly a reference cycle 3500s exceptions.clear() 3500s return sock 3500s 3500s except error as exc: 3500s if not all_errors: 3500s exceptions.clear() # raise only the last error 3500s exceptions.append(exc) 3500s if sock is not None: 3500s sock.close() 3500s 3500s if len(exceptions): 3500s try: 3500s if not all_errors: 3500s > raise exceptions[0] 3500s 3500s /usr/lib/python3.12/socket.py:853: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s address = ('localhost', 3306), timeout = 10, source_address = None 3500s 3500s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 3500s source_address=None, *, all_errors=False): 3500s """Connect to *address* and return the socket object. 3500s 3500s Convenience function. Connect to *address* (a 2-tuple ``(host, 3500s port)``) and return the socket object. Passing the optional 3500s *timeout* parameter will set the timeout on the socket instance 3500s before attempting to connect. If no *timeout* is supplied, the 3500s global default timeout setting returned by :func:`getdefaulttimeout` 3500s is used. If *source_address* is set it must be a tuple of (host, port) 3500s for the socket to bind as a source address before making the connection. 3500s A host of '' or port 0 tells the OS to use the default. When a connection 3500s cannot be created, raises the last error if *all_errors* is False, 3500s and an ExceptionGroup of all errors if *all_errors* is True. 3500s """ 3500s 3500s host, port = address 3500s exceptions = [] 3500s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 3500s af, socktype, proto, canonname, sa = res 3500s sock = None 3500s try: 3500s sock = socket(af, socktype, proto) 3500s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 3500s sock.settimeout(timeout) 3500s if source_address: 3500s sock.bind(source_address) 3500s > sock.connect(sa) 3500s E ConnectionRefusedError: [Errno 111] Connection refused 3500s 3500s /usr/lib/python3.12/socket.py:838: ConnectionRefusedError 3500s 3500s During handling of the above exception, another exception occurred: 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __init__( 3500s self, 3500s *, 3500s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 3500s password="", 3500s host=None, 3500s database=None, 3500s unix_socket=None, 3500s port=0, 3500s charset="", 3500s collation=None, 3500s sql_mode=None, 3500s read_default_file=None, 3500s conv=None, 3500s use_unicode=True, 3500s client_flag=0, 3500s cursorclass=Cursor, 3500s init_command=None, 3500s connect_timeout=10, 3500s read_default_group=None, 3500s autocommit=False, 3500s local_infile=False, 3500s max_allowed_packet=16 * 1024 * 1024, 3500s defer_connect=False, 3500s auth_plugin_map=None, 3500s read_timeout=None, 3500s write_timeout=None, 3500s bind_address=None, 3500s binary_prefix=False, 3500s program_name=None, 3500s server_public_key=None, 3500s ssl=None, 3500s ssl_ca=None, 3500s ssl_cert=None, 3500s ssl_disabled=None, 3500s ssl_key=None, 3500s ssl_key_password=None, 3500s ssl_verify_cert=None, 3500s ssl_verify_identity=None, 3500s compress=None, # not supported 3500s named_pipe=None, # not supported 3500s passwd=None, # deprecated 3500s db=None, # deprecated 3500s ): 3500s if db is not None and database is None: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 3500s database = db 3500s if passwd is not None and not password: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn( 3500s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 3500s # ) 3500s password = passwd 3500s 3500s if compress or named_pipe: 3500s raise NotImplementedError( 3500s "compress and named_pipe arguments are not supported" 3500s ) 3500s 3500s self._local_infile = bool(local_infile) 3500s if self._local_infile: 3500s client_flag |= CLIENT.LOCAL_FILES 3500s 3500s if read_default_group and not read_default_file: 3500s if sys.platform.startswith("win"): 3500s read_default_file = "c:\\my.ini" 3500s else: 3500s read_default_file = "/etc/my.cnf" 3500s 3500s if read_default_file: 3500s if not read_default_group: 3500s read_default_group = "client" 3500s 3500s cfg = Parser() 3500s cfg.read(os.path.expanduser(read_default_file)) 3500s 3500s def _config(key, arg): 3500s if arg: 3500s return arg 3500s try: 3500s return cfg.get(read_default_group, key) 3500s except Exception: 3500s return arg 3500s 3500s user = _config("user", user) 3500s password = _config("password", password) 3500s host = _config("host", host) 3500s database = _config("database", database) 3500s unix_socket = _config("socket", unix_socket) 3500s port = int(_config("port", port)) 3500s bind_address = _config("bind-address", bind_address) 3500s charset = _config("default-character-set", charset) 3500s if not ssl: 3500s ssl = {} 3500s if isinstance(ssl, dict): 3500s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 3500s value = _config("ssl-" + key, ssl.get(key)) 3500s if value: 3500s ssl[key] = value 3500s 3500s self.ssl = False 3500s if not ssl_disabled: 3500s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 3500s ssl = { 3500s "ca": ssl_ca, 3500s "check_hostname": bool(ssl_verify_identity), 3500s "verify_mode": ssl_verify_cert 3500s if ssl_verify_cert is not None 3500s else False, 3500s } 3500s if ssl_cert is not None: 3500s ssl["cert"] = ssl_cert 3500s if ssl_key is not None: 3500s ssl["key"] = ssl_key 3500s if ssl_key_password is not None: 3500s ssl["password"] = ssl_key_password 3500s if ssl: 3500s if not SSL_ENABLED: 3500s raise NotImplementedError("ssl module not found") 3500s self.ssl = True 3500s client_flag |= CLIENT.SSL 3500s self.ctx = self._create_ssl_ctx(ssl) 3500s 3500s self.host = host or "localhost" 3500s self.port = port or 3306 3500s if type(self.port) is not int: 3500s raise ValueError("port should be of type int") 3500s self.user = user or DEFAULT_USER 3500s self.password = password or b"" 3500s if isinstance(self.password, str): 3500s self.password = self.password.encode("latin1") 3500s self.db = database 3500s self.unix_socket = unix_socket 3500s self.bind_address = bind_address 3500s if not (0 < connect_timeout <= 31536000): 3500s raise ValueError("connect_timeout should be >0 and <=31536000") 3500s self.connect_timeout = connect_timeout or None 3500s if read_timeout is not None and read_timeout <= 0: 3500s raise ValueError("read_timeout should be > 0") 3500s self._read_timeout = read_timeout 3500s if write_timeout is not None and write_timeout <= 0: 3500s raise ValueError("write_timeout should be > 0") 3500s self._write_timeout = write_timeout 3500s 3500s self.charset = charset or DEFAULT_CHARSET 3500s self.collation = collation 3500s self.use_unicode = use_unicode 3500s 3500s self.encoding = charset_by_name(self.charset).encoding 3500s 3500s client_flag |= CLIENT.CAPABILITIES 3500s if self.db: 3500s client_flag |= CLIENT.CONNECT_WITH_DB 3500s 3500s self.client_flag = client_flag 3500s 3500s self.cursorclass = cursorclass 3500s 3500s self._result = None 3500s self._affected_rows = 0 3500s self.host_info = "Not connected" 3500s 3500s # specified autocommit mode. None means use server default. 3500s self.autocommit_mode = autocommit 3500s 3500s if conv is None: 3500s conv = converters.conversions 3500s 3500s # Need for MySQLdb compatibility. 3500s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 3500s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 3500s self.sql_mode = sql_mode 3500s self.init_command = init_command 3500s self.max_allowed_packet = max_allowed_packet 3500s self._auth_plugin_map = auth_plugin_map or {} 3500s self._binary_prefix = binary_prefix 3500s self.server_public_key = server_public_key 3500s 3500s self._connect_attrs = { 3500s "_client_name": "pymysql", 3500s "_client_version": VERSION_STRING, 3500s "_pid": str(os.getpid()), 3500s } 3500s 3500s if program_name: 3500s self._connect_attrs["program_name"] = program_name 3500s 3500s if defer_connect: 3500s self._sock = None 3500s else: 3500s > self.connect() 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = , sock = None 3500s 3500s def connect(self, sock=None): 3500s self._closed = False 3500s try: 3500s if sock is None: 3500s if self.unix_socket: 3500s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3500s sock.settimeout(self.connect_timeout) 3500s sock.connect(self.unix_socket) 3500s self.host_info = "Localhost via UNIX socket" 3500s self._secure = True 3500s if DEBUG: 3500s print("connected using unix_socket") 3500s else: 3500s kwargs = {} 3500s if self.bind_address is not None: 3500s kwargs["source_address"] = (self.bind_address, 0) 3500s while True: 3500s try: 3500s sock = socket.create_connection( 3500s (self.host, self.port), self.connect_timeout, **kwargs 3500s ) 3500s break 3500s except OSError as e: 3500s if e.errno == errno.EINTR: 3500s continue 3500s raise 3500s self.host_info = "socket %s:%d" % (self.host, self.port) 3500s if DEBUG: 3500s print("connected using socket") 3500s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 3500s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 3500s sock.settimeout(None) 3500s 3500s self._sock = sock 3500s self._rfile = sock.makefile("rb") 3500s self._next_seq_id = 0 3500s 3500s self._get_server_information() 3500s self._request_authentication() 3500s 3500s # Send "SET NAMES" query on init for: 3500s # - Ensure charaset (and collation) is set to the server. 3500s # - collation_id in handshake packet may be ignored. 3500s # - If collation is not specified, we don't know what is server's 3500s # default collation for the charset. For example, default collation 3500s # of utf8mb4 is: 3500s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 3500s # - MySQL 8.0: utf8mb4_0900_ai_ci 3500s # 3500s # Reference: 3500s # - https://github.com/PyMySQL/PyMySQL/issues/1092 3500s # - https://github.com/wagtail/wagtail/issues/9477 3500s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 3500s self.set_character_set(self.charset, self.collation) 3500s 3500s if self.sql_mode is not None: 3500s c = self.cursor() 3500s c.execute("SET sql_mode=%s", (self.sql_mode,)) 3500s c.close() 3500s 3500s if self.init_command is not None: 3500s c = self.cursor() 3500s c.execute(self.init_command) 3500s c.close() 3500s 3500s if self.autocommit_mode is not None: 3500s self.autocommit(self.autocommit_mode) 3500s except BaseException as e: 3500s self._rfile = None 3500s if sock is not None: 3500s try: 3500s sock.close() 3500s except: # noqa 3500s pass 3500s 3500s if isinstance(e, (OSError, IOError)): 3500s exc = err.OperationalError( 3500s CR.CR_CONN_HOST_ERROR, 3500s f"Can't connect to MySQL server on {self.host!r} ({e})", 3500s ) 3500s # Keep original exception and traceback to investigate error. 3500s exc.original_exception = e 3500s exc.traceback = traceback.format_exc() 3500s if DEBUG: 3500s print(exc.traceback) 3500s > raise exc 3500s E pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 3500s 3500s The above exception was the direct cause of the following exception: 3500s 3500s conn = 'mysql_pymysql_engine' 3500s request = > 3500s sql_strings = {'read_named_parameters': {'mysql': '\n SELECT * FROM iris WHERE\n `Name`=%(name)s AND `...LECT * FROM iris WHERE "Name"=%s AND "SepalLength"=%s', 'sqlite': 'SELECT * FROM iris WHERE Name=? AND SepalLength=?'}} 3500s 3500s @pytest.mark.db 3500s @pytest.mark.parametrize("conn", all_connectable_iris) 3500s def test_read_iris_query_string_with_parameter(conn, request, sql_strings): 3500s for db, query in sql_strings["read_parameters"].items(): 3500s if db in conn: 3500s break 3500s else: 3500s raise KeyError(f"No part of {conn} found in sql_strings['read_parameters']") 3500s > conn = request.getfixturevalue(conn) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:683: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'mysql_pymysql_engine' 3500s 3500s def getfixturevalue(self, argname: str) -> Any: 3500s """Dynamically run a named fixture function. 3500s 3500s Declaring fixtures via function argument is recommended where possible. 3500s But if you can only decide whether to use another fixture at test 3500s setup time, you may use this function to retrieve it inside a fixture 3500s or test function body. 3500s 3500s This method can be used during the test setup phase or the test run 3500s phase, but during the test teardown phase a fixture's value may not 3500s be available. 3500s 3500s :param argname: 3500s The fixture name. 3500s :raises pytest.FixtureLookupError: 3500s If the given fixture could not be found. 3500s """ 3500s > fixturedef = self._get_active_fixturedef(argname) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:585: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'mysql_pymysql_engine' 3500s 3500s def _get_active_fixturedef( 3500s self, argname: str 3500s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3500s try: 3500s return self._fixture_defs[argname] 3500s except KeyError: 3500s try: 3500s fixturedef = self._getnextfixturedef(argname) 3500s except FixtureLookupError: 3500s if argname == "request": 3500s cached_result = (self, [0], None) 3500s return PseudoFixtureDef(cached_result, Scope.Function) 3500s raise 3500s # Remove indent to prevent the python3 exception 3500s # from leaking into the call. 3500s > self._compute_fixture_value(fixturedef) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s fixturedef = 3500s 3500s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3500s """Create a SubRequest based on "self" and call the execute method 3500s of the given FixtureDef object. 3500s 3500s This will force the FixtureDef object to throw away any previous 3500s results and compute a new fixture value, which will be stored into 3500s the FixtureDef object itself. 3500s """ 3500s # prepare a subrequest object before calling fixture function 3500s # (latter managed by fixturedef) 3500s argname = fixturedef.argname 3500s funcitem = self._pyfuncitem 3500s scope = fixturedef._scope 3500s try: 3500s callspec = funcitem.callspec 3500s except AttributeError: 3500s callspec = None 3500s if callspec is not None and argname in callspec.params: 3500s param = callspec.params[argname] 3500s param_index = callspec.indices[argname] 3500s # If a parametrize invocation set a scope it will override 3500s # the static scope defined with the fixture function. 3500s with suppress(KeyError): 3500s scope = callspec._arg2scope[argname] 3500s else: 3500s param = NOTSET 3500s param_index = 0 3500s has_params = fixturedef.params is not None 3500s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3500s if has_params and fixtures_not_supported: 3500s msg = ( 3500s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3500s "Node id: {nodeid}\n" 3500s "Function type: {typename}" 3500s ).format( 3500s name=funcitem.name, 3500s nodeid=funcitem.nodeid, 3500s typename=type(funcitem).__name__, 3500s ) 3500s fail(msg, pytrace=False) 3500s if has_params: 3500s frame = inspect.stack()[3] 3500s frameinfo = inspect.getframeinfo(frame[0]) 3500s source_path = absolutepath(frameinfo.filename) 3500s source_lineno = frameinfo.lineno 3500s try: 3500s source_path_str = str( 3500s source_path.relative_to(funcitem.config.rootpath) 3500s ) 3500s except ValueError: 3500s source_path_str = str(source_path) 3500s msg = ( 3500s "The requested fixture has no parameter defined for test:\n" 3500s " {}\n\n" 3500s "Requested fixture '{}' defined in:\n{}" 3500s "\n\nRequested here:\n{}:{}".format( 3500s funcitem.nodeid, 3500s fixturedef.argname, 3500s getlocation(fixturedef.func, funcitem.config.rootpath), 3500s source_path_str, 3500s source_lineno, 3500s ) 3500s ) 3500s fail(msg, pytrace=False) 3500s 3500s subrequest = SubRequest( 3500s self, scope, param, param_index, fixturedef, _ispytest=True 3500s ) 3500s 3500s # Check if a higher-level scoped fixture accesses a lower level one. 3500s subrequest._check_scope(argname, self._scope, scope) 3500s try: 3500s # Call the fixture function. 3500s > fixturedef.execute(request=subrequest) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s request = > 3500s 3500s def execute(self, request: SubRequest) -> FixtureValue: 3500s # Get required arguments and register our own finish() 3500s # with their finalization. 3500s for argname in self.argnames: 3500s fixturedef = request._get_active_fixturedef(argname) 3500s if argname != "request": 3500s # PseudoFixtureDef is only for "request". 3500s assert isinstance(fixturedef, FixtureDef) 3500s fixturedef.addfinalizer(functools.partial(self.finish, request=request)) 3500s 3500s my_cache_key = self.cache_key(request) 3500s if self.cached_result is not None: 3500s # note: comparison with `==` can fail (or be expensive) for e.g. 3500s # numpy arrays (#6497). 3500s cache_key = self.cached_result[1] 3500s if my_cache_key is cache_key: 3500s if self.cached_result[2] is not None: 3500s _, val, tb = self.cached_result[2] 3500s raise val.with_traceback(tb) 3500s else: 3500s result = self.cached_result[0] 3500s return result 3500s # We have a previous but differently parametrized fixture instance 3500s # so we need to tear it down before creating a new one. 3500s self.finish(request) 3500s assert self.cached_result is None 3500s 3500s ihook = request.node.ihook 3500s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1069: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s kwargs = {'fixturedef': , 'request': >} 3500s firstresult = True 3500s 3500s def __call__(self, **kwargs: object) -> Any: 3500s """Call the hook. 3500s 3500s Only accepts keyword arguments, which should match the hook 3500s specification. 3500s 3500s Returns the result(s) of calling all registered plugins, see 3500s :ref:`calling`. 3500s """ 3500s assert ( 3500s not self.is_historic() 3500s ), "Cannot directly call a historic hook - use call_historic instead." 3500s self._verify_all_args_are_provided(kwargs) 3500s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 3500s # Copy because plugins may register other plugins during iteration (#438). 3500s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = <_pytest.config.PytestPluginManager object at 0xe9079168> 3500s hook_name = 'pytest_fixture_setup' 3500s methods = [>] 3500s kwargs = {'fixturedef': , 'request': >} 3500s firstresult = True 3500s 3500s def _hookexec( 3500s self, 3500s hook_name: str, 3500s methods: Sequence[HookImpl], 3500s kwargs: Mapping[str, object], 3500s firstresult: bool, 3500s ) -> object | list[object]: 3500s # called from all hookcaller instances. 3500s # enable_tracing will set its own wrapping function at self._inner_hookexec 3500s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturedef = 3500s request = > 3500s 3500s def pytest_fixture_setup( 3500s fixturedef: FixtureDef[FixtureValue], request: SubRequest 3500s ) -> FixtureValue: 3500s """Execution of fixture setup.""" 3500s kwargs = {} 3500s for argname in fixturedef.argnames: 3500s fixdef = request._get_active_fixturedef(argname) 3500s assert fixdef.cached_result is not None 3500s result, arg_cache_key, exc = fixdef.cached_result 3500s request._check_scope(argname, request._scope, fixdef._scope) 3500s kwargs[argname] = result 3500s 3500s fixturefunc = resolve_fixture_function(fixturedef, request) 3500s my_cache_key = fixturedef.cache_key(request) 3500s try: 3500s > result = call_fixture_func(fixturefunc, request, kwargs) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1123: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturefunc = 3500s request = > 3500s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv'), 'types_data': [{'B... False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}]} 3500s 3500s def call_fixture_func( 3500s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 3500s ) -> FixtureValue: 3500s if is_generator(fixturefunc): 3500s fixturefunc = cast( 3500s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 3500s ) 3500s generator = fixturefunc(**kwargs) 3500s try: 3500s > fixture_result = next(generator) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:895: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s iris_path = PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv') 3500s types_data = [{'BoolCol': False, 'BoolColWithNull': False, 'DateCol': '2000-01-03 00:00:00', 'DateColWithTz': '2000-01-01 00:00:00-...: False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}] 3500s 3500s @pytest.fixture 3500s def mysql_pymysql_engine(iris_path, types_data): 3500s sqlalchemy = pytest.importorskip("sqlalchemy") 3500s pymysql = pytest.importorskip("pymysql") 3500s engine = sqlalchemy.create_engine( 3500s "mysql+pymysql://root@localhost:3306/pandas", 3500s connect_args={"client_flag": pymysql.constants.CLIENT.MULTI_STATEMENTS}, 3500s poolclass=sqlalchemy.pool.NullPool, 3500s ) 3500s > insp = sqlalchemy.inspect(engine) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:409: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s subject = Engine(mysql+pymysql://root@localhost:3306/pandas), raiseerr = True 3500s 3500s def inspect(subject, raiseerr=True): 3500s """Produce an inspection object for the given target. 3500s 3500s The returned value in some cases may be the 3500s same object as the one given, such as if a 3500s :class:`_orm.Mapper` object is passed. In other 3500s cases, it will be an instance of the registered 3500s inspection type for the given object, such as 3500s if an :class:`_engine.Engine` is passed, an 3500s :class:`_reflection.Inspector` object is returned. 3500s 3500s :param subject: the subject to be inspected. 3500s :param raiseerr: When ``True``, if the given subject 3500s does not 3500s correspond to a known SQLAlchemy inspected type, 3500s :class:`sqlalchemy.exc.NoInspectionAvailable` 3500s is raised. If ``False``, ``None`` is returned. 3500s 3500s """ 3500s type_ = type(subject) 3500s for cls in type_.__mro__: 3500s if cls in _registrars: 3500s reg = _registrars[cls] 3500s if reg is True: 3500s return subject 3500s > ret = reg(subject) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:64: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s @inspection._inspects(Engine) 3500s def _engine_insp(bind): 3500s > return Inspector._construct(Inspector._init_engine, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:182: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s init = 3500s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s @classmethod 3500s def _construct(cls, init, bind): 3500s 3500s if hasattr(bind.dialect, "inspector"): 3500s cls = bind.dialect.inspector 3500s 3500s self = cls.__new__(cls) 3500s > init(self, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:117: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s def _init_engine(self, engine): 3500s self.bind = self.engine = engine 3500s > engine.connect().close() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:128: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s close_with_result = False 3500s 3500s def connect(self, close_with_result=False): 3500s """Return a new :class:`_engine.Connection` object. 3500s 3500s The :class:`_engine.Connection` object is a facade that uses a DBAPI 3500s connection internally in order to communicate with the database. This 3500s connection is procured from the connection-holding :class:`_pool.Pool` 3500s referenced by this :class:`_engine.Engine`. When the 3500s :meth:`_engine.Connection.close` method of the 3500s :class:`_engine.Connection` object 3500s is called, the underlying DBAPI connection is then returned to the 3500s connection pool, where it may be used again in a subsequent call to 3500s :meth:`_engine.Engine.connect`. 3500s 3500s """ 3500s 3500s > return self._connection_cls(self, close_with_result=close_with_result) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3325: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 3500s close_with_result = False, _branch_from = None, _execution_options = None 3500s _dispatch = None, _has_events = None, _allow_revalidate = True 3500s 3500s def __init__( 3500s self, 3500s engine, 3500s connection=None, 3500s close_with_result=False, 3500s _branch_from=None, 3500s _execution_options=None, 3500s _dispatch=None, 3500s _has_events=None, 3500s _allow_revalidate=True, 3500s ): 3500s """Construct a new Connection.""" 3500s self.engine = engine 3500s self.dialect = engine.dialect 3500s self.__branch_from = _branch_from 3500s 3500s if _branch_from: 3500s # branching is always "from" the root connection 3500s assert _branch_from.__branch_from is None 3500s self._dbapi_connection = connection 3500s self._execution_options = _execution_options 3500s self._echo = _branch_from._echo 3500s self.should_close_with_result = False 3500s self.dispatch = _dispatch 3500s self._has_events = _branch_from._has_events 3500s else: 3500s self._dbapi_connection = ( 3500s connection 3500s if connection is not None 3500s > else engine.raw_connection() 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:96: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas), _connection = None 3500s 3500s def raw_connection(self, _connection=None): 3500s """Return a "raw" DBAPI connection from the connection pool. 3500s 3500s The returned object is a proxied version of the DBAPI 3500s connection object used by the underlying driver in use. 3500s The object will have all the same behavior as the real DBAPI 3500s connection, except that its ``close()`` method will result in the 3500s connection being returned to the pool, rather than being closed 3500s for real. 3500s 3500s This method provides direct DBAPI connection access for 3500s special situations when the API provided by 3500s :class:`_engine.Connection` 3500s is not needed. When a :class:`_engine.Connection` object is already 3500s present, the DBAPI connection is available using 3500s the :attr:`_engine.Connection.connection` accessor. 3500s 3500s .. seealso:: 3500s 3500s :ref:`dbapi_connections` 3500s 3500s """ 3500s > return self._wrap_pool_connect(self.pool.connect, _connection) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3404: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s return fn() 3500s except dialect.dbapi.Error as e: 3500s if connection is None: 3500s > Connection._handle_dbapi_exception_noconnection( 3500s e, dialect, self 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3374: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s e = OperationalError(2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3500s dialect = 3500s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s @classmethod 3500s def _handle_dbapi_exception_noconnection(cls, e, dialect, engine): 3500s exc_info = sys.exc_info() 3500s 3500s is_disconnect = dialect.is_disconnect(e, None, None) 3500s 3500s should_wrap = isinstance(e, dialect.dbapi.Error) 3500s 3500s if should_wrap: 3500s sqlalchemy_exception = exc.DBAPIError.instance( 3500s None, 3500s None, 3500s e, 3500s dialect.dbapi.Error, 3500s hide_parameters=engine.hide_parameters, 3500s connection_invalidated=is_disconnect, 3500s ) 3500s else: 3500s sqlalchemy_exception = None 3500s 3500s newraise = None 3500s 3500s if engine._has_events: 3500s ctx = ExceptionContextImpl( 3500s e, 3500s sqlalchemy_exception, 3500s engine, 3500s None, 3500s None, 3500s None, 3500s None, 3500s None, 3500s is_disconnect, 3500s True, 3500s ) 3500s for fn in engine.dispatch.handle_error: 3500s try: 3500s # handler returns an exception; 3500s # call next handler in a chain 3500s per_fn = fn(ctx) 3500s if per_fn is not None: 3500s ctx.chained_exception = newraise = per_fn 3500s except Exception as _raised: 3500s # handler raises an exception - stop processing 3500s newraise = _raised 3500s break 3500s 3500s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 3500s sqlalchemy_exception.connection_invalidated = ( 3500s is_disconnect 3500s ) = ctx.is_disconnect 3500s 3500s if newraise: 3500s util.raise_(newraise, with_traceback=exc_info[2], from_=e) 3500s elif should_wrap: 3500s > util.raise_( 3500s sqlalchemy_exception, with_traceback=exc_info[2], from_=e 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2208: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __init__( 3500s self, 3500s *, 3500s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 3500s password="", 3500s host=None, 3500s database=None, 3500s unix_socket=None, 3500s port=0, 3500s charset="", 3500s collation=None, 3500s sql_mode=None, 3500s read_default_file=None, 3500s conv=None, 3500s use_unicode=True, 3500s client_flag=0, 3500s cursorclass=Cursor, 3500s init_command=None, 3500s connect_timeout=10, 3500s read_default_group=None, 3500s autocommit=False, 3500s local_infile=False, 3500s max_allowed_packet=16 * 1024 * 1024, 3500s defer_connect=False, 3500s auth_plugin_map=None, 3500s read_timeout=None, 3500s write_timeout=None, 3500s bind_address=None, 3500s binary_prefix=False, 3500s program_name=None, 3500s server_public_key=None, 3500s ssl=None, 3500s ssl_ca=None, 3500s ssl_cert=None, 3500s ssl_disabled=None, 3500s ssl_key=None, 3500s ssl_key_password=None, 3500s ssl_verify_cert=None, 3500s ssl_verify_identity=None, 3500s compress=None, # not supported 3500s named_pipe=None, # not supported 3500s passwd=None, # deprecated 3500s db=None, # deprecated 3500s ): 3500s if db is not None and database is None: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 3500s database = db 3500s if passwd is not None and not password: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn( 3500s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 3500s # ) 3500s password = passwd 3500s 3500s if compress or named_pipe: 3500s raise NotImplementedError( 3500s "compress and named_pipe arguments are not supported" 3500s ) 3500s 3500s self._local_infile = bool(local_infile) 3500s if self._local_infile: 3500s client_flag |= CLIENT.LOCAL_FILES 3500s 3500s if read_default_group and not read_default_file: 3500s if sys.platform.startswith("win"): 3500s read_default_file = "c:\\my.ini" 3500s else: 3500s read_default_file = "/etc/my.cnf" 3500s 3500s if read_default_file: 3500s if not read_default_group: 3500s read_default_group = "client" 3500s 3500s cfg = Parser() 3500s cfg.read(os.path.expanduser(read_default_file)) 3500s 3500s def _config(key, arg): 3500s if arg: 3500s return arg 3500s try: 3500s return cfg.get(read_default_group, key) 3500s except Exception: 3500s return arg 3500s 3500s user = _config("user", user) 3500s password = _config("password", password) 3500s host = _config("host", host) 3500s database = _config("database", database) 3500s unix_socket = _config("socket", unix_socket) 3500s port = int(_config("port", port)) 3500s bind_address = _config("bind-address", bind_address) 3500s charset = _config("default-character-set", charset) 3500s if not ssl: 3500s ssl = {} 3500s if isinstance(ssl, dict): 3500s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 3500s value = _config("ssl-" + key, ssl.get(key)) 3500s if value: 3500s ssl[key] = value 3500s 3500s self.ssl = False 3500s if not ssl_disabled: 3500s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 3500s ssl = { 3500s "ca": ssl_ca, 3500s "check_hostname": bool(ssl_verify_identity), 3500s "verify_mode": ssl_verify_cert 3500s if ssl_verify_cert is not None 3500s else False, 3500s } 3500s if ssl_cert is not None: 3500s ssl["cert"] = ssl_cert 3500s if ssl_key is not None: 3500s ssl["key"] = ssl_key 3500s if ssl_key_password is not None: 3500s ssl["password"] = ssl_key_password 3500s if ssl: 3500s if not SSL_ENABLED: 3500s raise NotImplementedError("ssl module not found") 3500s self.ssl = True 3500s client_flag |= CLIENT.SSL 3500s self.ctx = self._create_ssl_ctx(ssl) 3500s 3500s self.host = host or "localhost" 3500s self.port = port or 3306 3500s if type(self.port) is not int: 3500s raise ValueError("port should be of type int") 3500s self.user = user or DEFAULT_USER 3500s self.password = password or b"" 3500s if isinstance(self.password, str): 3500s self.password = self.password.encode("latin1") 3500s self.db = database 3500s self.unix_socket = unix_socket 3500s self.bind_address = bind_address 3500s if not (0 < connect_timeout <= 31536000): 3500s raise ValueError("connect_timeout should be >0 and <=31536000") 3500s self.connect_timeout = connect_timeout or None 3500s if read_timeout is not None and read_timeout <= 0: 3500s raise ValueError("read_timeout should be > 0") 3500s self._read_timeout = read_timeout 3500s if write_timeout is not None and write_timeout <= 0: 3500s raise ValueError("write_timeout should be > 0") 3500s self._write_timeout = write_timeout 3500s 3500s self.charset = charset or DEFAULT_CHARSET 3500s self.collation = collation 3500s self.use_unicode = use_unicode 3500s 3500s self.encoding = charset_by_name(self.charset).encoding 3500s 3500s client_flag |= CLIENT.CAPABILITIES 3500s if self.db: 3500s client_flag |= CLIENT.CONNECT_WITH_DB 3500s 3500s self.client_flag = client_flag 3500s 3500s self.cursorclass = cursorclass 3500s 3500s self._result = None 3500s self._affected_rows = 0 3500s self.host_info = "Not connected" 3500s 3500s # specified autocommit mode. None means use server default. 3500s self.autocommit_mode = autocommit 3500s 3500s if conv is None: 3500s conv = converters.conversions 3500s 3500s # Need for MySQLdb compatibility. 3500s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 3500s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 3500s self.sql_mode = sql_mode 3500s self.init_command = init_command 3500s self.max_allowed_packet = max_allowed_packet 3500s self._auth_plugin_map = auth_plugin_map or {} 3500s self._binary_prefix = binary_prefix 3500s self.server_public_key = server_public_key 3500s 3500s self._connect_attrs = { 3500s "_client_name": "pymysql", 3500s "_client_version": VERSION_STRING, 3500s "_pid": str(os.getpid()), 3500s } 3500s 3500s if program_name: 3500s self._connect_attrs["program_name"] = program_name 3500s 3500s if defer_connect: 3500s self._sock = None 3500s else: 3500s > self.connect() 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = , sock = None 3500s 3500s def connect(self, sock=None): 3500s self._closed = False 3500s try: 3500s if sock is None: 3500s if self.unix_socket: 3500s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3500s sock.settimeout(self.connect_timeout) 3500s sock.connect(self.unix_socket) 3500s self.host_info = "Localhost via UNIX socket" 3500s self._secure = True 3500s if DEBUG: 3500s print("connected using unix_socket") 3500s else: 3500s kwargs = {} 3500s if self.bind_address is not None: 3500s kwargs["source_address"] = (self.bind_address, 0) 3500s while True: 3500s try: 3500s sock = socket.create_connection( 3500s (self.host, self.port), self.connect_timeout, **kwargs 3500s ) 3500s break 3500s except OSError as e: 3500s if e.errno == errno.EINTR: 3500s continue 3500s raise 3500s self.host_info = "socket %s:%d" % (self.host, self.port) 3500s if DEBUG: 3500s print("connected using socket") 3500s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 3500s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 3500s sock.settimeout(None) 3500s 3500s self._sock = sock 3500s self._rfile = sock.makefile("rb") 3500s self._next_seq_id = 0 3500s 3500s self._get_server_information() 3500s self._request_authentication() 3500s 3500s # Send "SET NAMES" query on init for: 3500s # - Ensure charaset (and collation) is set to the server. 3500s # - collation_id in handshake packet may be ignored. 3500s # - If collation is not specified, we don't know what is server's 3500s # default collation for the charset. For example, default collation 3500s # of utf8mb4 is: 3500s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 3500s # - MySQL 8.0: utf8mb4_0900_ai_ci 3500s # 3500s # Reference: 3500s # - https://github.com/PyMySQL/PyMySQL/issues/1092 3500s # - https://github.com/wagtail/wagtail/issues/9477 3500s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 3500s self.set_character_set(self.charset, self.collation) 3500s 3500s if self.sql_mode is not None: 3500s c = self.cursor() 3500s c.execute("SET sql_mode=%s", (self.sql_mode,)) 3500s c.close() 3500s 3500s if self.init_command is not None: 3500s c = self.cursor() 3500s c.execute(self.init_command) 3500s c.close() 3500s 3500s if self.autocommit_mode is not None: 3500s self.autocommit(self.autocommit_mode) 3500s except BaseException as e: 3500s self._rfile = None 3500s if sock is not None: 3500s try: 3500s sock.close() 3500s except: # noqa 3500s pass 3500s 3500s if isinstance(e, (OSError, IOError)): 3500s exc = err.OperationalError( 3500s CR.CR_CONN_HOST_ERROR, 3500s f"Can't connect to MySQL server on {self.host!r} ({e})", 3500s ) 3500s # Keep original exception and traceback to investigate error. 3500s exc.original_exception = e 3500s exc.traceback = traceback.format_exc() 3500s if DEBUG: 3500s print(exc.traceback) 3500s > raise exc 3500s E sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3500s E (Background on this error at: https://sqlalche.me/e/14/e3q8) 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 3500s ________ test_read_iris_query_string_with_parameter[mysql_pymysql_conn] ________ 3500s self = , sock = None 3500s 3500s def connect(self, sock=None): 3500s self._closed = False 3500s try: 3500s if sock is None: 3500s if self.unix_socket: 3500s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3500s sock.settimeout(self.connect_timeout) 3500s sock.connect(self.unix_socket) 3500s self.host_info = "Localhost via UNIX socket" 3500s self._secure = True 3500s if DEBUG: 3500s print("connected using unix_socket") 3500s else: 3500s kwargs = {} 3500s if self.bind_address is not None: 3500s kwargs["source_address"] = (self.bind_address, 0) 3500s while True: 3500s try: 3500s > sock = socket.create_connection( 3500s (self.host, self.port), self.connect_timeout, **kwargs 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:649: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s address = ('localhost', 3306), timeout = 10, source_address = None 3500s 3500s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 3500s source_address=None, *, all_errors=False): 3500s """Connect to *address* and return the socket object. 3500s 3500s Convenience function. Connect to *address* (a 2-tuple ``(host, 3500s port)``) and return the socket object. Passing the optional 3500s *timeout* parameter will set the timeout on the socket instance 3500s before attempting to connect. If no *timeout* is supplied, the 3500s global default timeout setting returned by :func:`getdefaulttimeout` 3500s is used. If *source_address* is set it must be a tuple of (host, port) 3500s for the socket to bind as a source address before making the connection. 3500s A host of '' or port 0 tells the OS to use the default. When a connection 3500s cannot be created, raises the last error if *all_errors* is False, 3500s and an ExceptionGroup of all errors if *all_errors* is True. 3500s """ 3500s 3500s host, port = address 3500s exceptions = [] 3500s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 3500s af, socktype, proto, canonname, sa = res 3500s sock = None 3500s try: 3500s sock = socket(af, socktype, proto) 3500s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 3500s sock.settimeout(timeout) 3500s if source_address: 3500s sock.bind(source_address) 3500s sock.connect(sa) 3500s # Break explicitly a reference cycle 3500s exceptions.clear() 3500s return sock 3500s 3500s except error as exc: 3500s if not all_errors: 3500s exceptions.clear() # raise only the last error 3500s exceptions.append(exc) 3500s if sock is not None: 3500s sock.close() 3500s 3500s if len(exceptions): 3500s try: 3500s if not all_errors: 3500s > raise exceptions[0] 3500s 3500s /usr/lib/python3.12/socket.py:853: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s address = ('localhost', 3306), timeout = 10, source_address = None 3500s 3500s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 3500s source_address=None, *, all_errors=False): 3500s """Connect to *address* and return the socket object. 3500s 3500s Convenience function. Connect to *address* (a 2-tuple ``(host, 3500s port)``) and return the socket object. Passing the optional 3500s *timeout* parameter will set the timeout on the socket instance 3500s before attempting to connect. If no *timeout* is supplied, the 3500s global default timeout setting returned by :func:`getdefaulttimeout` 3500s is used. If *source_address* is set it must be a tuple of (host, port) 3500s for the socket to bind as a source address before making the connection. 3500s A host of '' or port 0 tells the OS to use the default. When a connection 3500s cannot be created, raises the last error if *all_errors* is False, 3500s and an ExceptionGroup of all errors if *all_errors* is True. 3500s """ 3500s 3500s host, port = address 3500s exceptions = [] 3500s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 3500s af, socktype, proto, canonname, sa = res 3500s sock = None 3500s try: 3500s sock = socket(af, socktype, proto) 3500s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 3500s sock.settimeout(timeout) 3500s if source_address: 3500s sock.bind(source_address) 3500s > sock.connect(sa) 3500s E ConnectionRefusedError: [Errno 111] Connection refused 3500s 3500s /usr/lib/python3.12/socket.py:838: ConnectionRefusedError 3500s 3500s During handling of the above exception, another exception occurred: 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __init__( 3500s self, 3500s *, 3500s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 3500s password="", 3500s host=None, 3500s database=None, 3500s unix_socket=None, 3500s port=0, 3500s charset="", 3500s collation=None, 3500s sql_mode=None, 3500s read_default_file=None, 3500s conv=None, 3500s use_unicode=True, 3500s client_flag=0, 3500s cursorclass=Cursor, 3500s init_command=None, 3500s connect_timeout=10, 3500s read_default_group=None, 3500s autocommit=False, 3500s local_infile=False, 3500s max_allowed_packet=16 * 1024 * 1024, 3500s defer_connect=False, 3500s auth_plugin_map=None, 3500s read_timeout=None, 3500s write_timeout=None, 3500s bind_address=None, 3500s binary_prefix=False, 3500s program_name=None, 3500s server_public_key=None, 3500s ssl=None, 3500s ssl_ca=None, 3500s ssl_cert=None, 3500s ssl_disabled=None, 3500s ssl_key=None, 3500s ssl_key_password=None, 3500s ssl_verify_cert=None, 3500s ssl_verify_identity=None, 3500s compress=None, # not supported 3500s named_pipe=None, # not supported 3500s passwd=None, # deprecated 3500s db=None, # deprecated 3500s ): 3500s if db is not None and database is None: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 3500s database = db 3500s if passwd is not None and not password: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn( 3500s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 3500s # ) 3500s password = passwd 3500s 3500s if compress or named_pipe: 3500s raise NotImplementedError( 3500s "compress and named_pipe arguments are not supported" 3500s ) 3500s 3500s self._local_infile = bool(local_infile) 3500s if self._local_infile: 3500s client_flag |= CLIENT.LOCAL_FILES 3500s 3500s if read_default_group and not read_default_file: 3500s if sys.platform.startswith("win"): 3500s read_default_file = "c:\\my.ini" 3500s else: 3500s read_default_file = "/etc/my.cnf" 3500s 3500s if read_default_file: 3500s if not read_default_group: 3500s read_default_group = "client" 3500s 3500s cfg = Parser() 3500s cfg.read(os.path.expanduser(read_default_file)) 3500s 3500s def _config(key, arg): 3500s if arg: 3500s return arg 3500s try: 3500s return cfg.get(read_default_group, key) 3500s except Exception: 3500s return arg 3500s 3500s user = _config("user", user) 3500s password = _config("password", password) 3500s host = _config("host", host) 3500s database = _config("database", database) 3500s unix_socket = _config("socket", unix_socket) 3500s port = int(_config("port", port)) 3500s bind_address = _config("bind-address", bind_address) 3500s charset = _config("default-character-set", charset) 3500s if not ssl: 3500s ssl = {} 3500s if isinstance(ssl, dict): 3500s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 3500s value = _config("ssl-" + key, ssl.get(key)) 3500s if value: 3500s ssl[key] = value 3500s 3500s self.ssl = False 3500s if not ssl_disabled: 3500s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 3500s ssl = { 3500s "ca": ssl_ca, 3500s "check_hostname": bool(ssl_verify_identity), 3500s "verify_mode": ssl_verify_cert 3500s if ssl_verify_cert is not None 3500s else False, 3500s } 3500s if ssl_cert is not None: 3500s ssl["cert"] = ssl_cert 3500s if ssl_key is not None: 3500s ssl["key"] = ssl_key 3500s if ssl_key_password is not None: 3500s ssl["password"] = ssl_key_password 3500s if ssl: 3500s if not SSL_ENABLED: 3500s raise NotImplementedError("ssl module not found") 3500s self.ssl = True 3500s client_flag |= CLIENT.SSL 3500s self.ctx = self._create_ssl_ctx(ssl) 3500s 3500s self.host = host or "localhost" 3500s self.port = port or 3306 3500s if type(self.port) is not int: 3500s raise ValueError("port should be of type int") 3500s self.user = user or DEFAULT_USER 3500s self.password = password or b"" 3500s if isinstance(self.password, str): 3500s self.password = self.password.encode("latin1") 3500s self.db = database 3500s self.unix_socket = unix_socket 3500s self.bind_address = bind_address 3500s if not (0 < connect_timeout <= 31536000): 3500s raise ValueError("connect_timeout should be >0 and <=31536000") 3500s self.connect_timeout = connect_timeout or None 3500s if read_timeout is not None and read_timeout <= 0: 3500s raise ValueError("read_timeout should be > 0") 3500s self._read_timeout = read_timeout 3500s if write_timeout is not None and write_timeout <= 0: 3500s raise ValueError("write_timeout should be > 0") 3500s self._write_timeout = write_timeout 3500s 3500s self.charset = charset or DEFAULT_CHARSET 3500s self.collation = collation 3500s self.use_unicode = use_unicode 3500s 3500s self.encoding = charset_by_name(self.charset).encoding 3500s 3500s client_flag |= CLIENT.CAPABILITIES 3500s if self.db: 3500s client_flag |= CLIENT.CONNECT_WITH_DB 3500s 3500s self.client_flag = client_flag 3500s 3500s self.cursorclass = cursorclass 3500s 3500s self._result = None 3500s self._affected_rows = 0 3500s self.host_info = "Not connected" 3500s 3500s # specified autocommit mode. None means use server default. 3500s self.autocommit_mode = autocommit 3500s 3500s if conv is None: 3500s conv = converters.conversions 3500s 3500s # Need for MySQLdb compatibility. 3500s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 3500s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 3500s self.sql_mode = sql_mode 3500s self.init_command = init_command 3500s self.max_allowed_packet = max_allowed_packet 3500s self._auth_plugin_map = auth_plugin_map or {} 3500s self._binary_prefix = binary_prefix 3500s self.server_public_key = server_public_key 3500s 3500s self._connect_attrs = { 3500s "_client_name": "pymysql", 3500s "_client_version": VERSION_STRING, 3500s "_pid": str(os.getpid()), 3500s } 3500s 3500s if program_name: 3500s self._connect_attrs["program_name"] = program_name 3500s 3500s if defer_connect: 3500s self._sock = None 3500s else: 3500s > self.connect() 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = , sock = None 3500s 3500s def connect(self, sock=None): 3500s self._closed = False 3500s try: 3500s if sock is None: 3500s if self.unix_socket: 3500s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3500s sock.settimeout(self.connect_timeout) 3500s sock.connect(self.unix_socket) 3500s self.host_info = "Localhost via UNIX socket" 3500s self._secure = True 3500s if DEBUG: 3500s print("connected using unix_socket") 3500s else: 3500s kwargs = {} 3500s if self.bind_address is not None: 3500s kwargs["source_address"] = (self.bind_address, 0) 3500s while True: 3500s try: 3500s sock = socket.create_connection( 3500s (self.host, self.port), self.connect_timeout, **kwargs 3500s ) 3500s break 3500s except OSError as e: 3500s if e.errno == errno.EINTR: 3500s continue 3500s raise 3500s self.host_info = "socket %s:%d" % (self.host, self.port) 3500s if DEBUG: 3500s print("connected using socket") 3500s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 3500s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 3500s sock.settimeout(None) 3500s 3500s self._sock = sock 3500s self._rfile = sock.makefile("rb") 3500s self._next_seq_id = 0 3500s 3500s self._get_server_information() 3500s self._request_authentication() 3500s 3500s # Send "SET NAMES" query on init for: 3500s # - Ensure charaset (and collation) is set to the server. 3500s # - collation_id in handshake packet may be ignored. 3500s # - If collation is not specified, we don't know what is server's 3500s # default collation for the charset. For example, default collation 3500s # of utf8mb4 is: 3500s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 3500s # - MySQL 8.0: utf8mb4_0900_ai_ci 3500s # 3500s # Reference: 3500s # - https://github.com/PyMySQL/PyMySQL/issues/1092 3500s # - https://github.com/wagtail/wagtail/issues/9477 3500s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 3500s self.set_character_set(self.charset, self.collation) 3500s 3500s if self.sql_mode is not None: 3500s c = self.cursor() 3500s c.execute("SET sql_mode=%s", (self.sql_mode,)) 3500s c.close() 3500s 3500s if self.init_command is not None: 3500s c = self.cursor() 3500s c.execute(self.init_command) 3500s c.close() 3500s 3500s if self.autocommit_mode is not None: 3500s self.autocommit(self.autocommit_mode) 3500s except BaseException as e: 3500s self._rfile = None 3500s if sock is not None: 3500s try: 3500s sock.close() 3500s except: # noqa 3500s pass 3500s 3500s if isinstance(e, (OSError, IOError)): 3500s exc = err.OperationalError( 3500s CR.CR_CONN_HOST_ERROR, 3500s f"Can't connect to MySQL server on {self.host!r} ({e})", 3500s ) 3500s # Keep original exception and traceback to investigate error. 3500s exc.original_exception = e 3500s exc.traceback = traceback.format_exc() 3500s if DEBUG: 3500s print(exc.traceback) 3500s > raise exc 3500s E pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 3500s 3500s The above exception was the direct cause of the following exception: 3500s 3500s conn = 'mysql_pymysql_conn' 3500s request = > 3500s sql_strings = {'read_named_parameters': {'mysql': '\n SELECT * FROM iris WHERE\n `Name`=%(name)s AND `...LECT * FROM iris WHERE "Name"=%s AND "SepalLength"=%s', 'sqlite': 'SELECT * FROM iris WHERE Name=? AND SepalLength=?'}} 3500s 3500s @pytest.mark.db 3500s @pytest.mark.parametrize("conn", all_connectable_iris) 3500s def test_read_iris_query_string_with_parameter(conn, request, sql_strings): 3500s for db, query in sql_strings["read_parameters"].items(): 3500s if db in conn: 3500s break 3500s else: 3500s raise KeyError(f"No part of {conn} found in sql_strings['read_parameters']") 3500s > conn = request.getfixturevalue(conn) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:683: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'mysql_pymysql_conn' 3500s 3500s def getfixturevalue(self, argname: str) -> Any: 3500s """Dynamically run a named fixture function. 3500s 3500s Declaring fixtures via function argument is recommended where possible. 3500s But if you can only decide whether to use another fixture at test 3500s setup time, you may use this function to retrieve it inside a fixture 3500s or test function body. 3500s 3500s This method can be used during the test setup phase or the test run 3500s phase, but during the test teardown phase a fixture's value may not 3500s be available. 3500s 3500s :param argname: 3500s The fixture name. 3500s :raises pytest.FixtureLookupError: 3500s If the given fixture could not be found. 3500s """ 3500s > fixturedef = self._get_active_fixturedef(argname) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:585: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'mysql_pymysql_conn' 3500s 3500s def _get_active_fixturedef( 3500s self, argname: str 3500s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3500s try: 3500s return self._fixture_defs[argname] 3500s except KeyError: 3500s try: 3500s fixturedef = self._getnextfixturedef(argname) 3500s except FixtureLookupError: 3500s if argname == "request": 3500s cached_result = (self, [0], None) 3500s return PseudoFixtureDef(cached_result, Scope.Function) 3500s raise 3500s # Remove indent to prevent the python3 exception 3500s # from leaking into the call. 3500s > self._compute_fixture_value(fixturedef) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s fixturedef = 3500s 3500s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3500s """Create a SubRequest based on "self" and call the execute method 3500s of the given FixtureDef object. 3500s 3500s This will force the FixtureDef object to throw away any previous 3500s results and compute a new fixture value, which will be stored into 3500s the FixtureDef object itself. 3500s """ 3500s # prepare a subrequest object before calling fixture function 3500s # (latter managed by fixturedef) 3500s argname = fixturedef.argname 3500s funcitem = self._pyfuncitem 3500s scope = fixturedef._scope 3500s try: 3500s callspec = funcitem.callspec 3500s except AttributeError: 3500s callspec = None 3500s if callspec is not None and argname in callspec.params: 3500s param = callspec.params[argname] 3500s param_index = callspec.indices[argname] 3500s # If a parametrize invocation set a scope it will override 3500s # the static scope defined with the fixture function. 3500s with suppress(KeyError): 3500s scope = callspec._arg2scope[argname] 3500s else: 3500s param = NOTSET 3500s param_index = 0 3500s has_params = fixturedef.params is not None 3500s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3500s if has_params and fixtures_not_supported: 3500s msg = ( 3500s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3500s "Node id: {nodeid}\n" 3500s "Function type: {typename}" 3500s ).format( 3500s name=funcitem.name, 3500s nodeid=funcitem.nodeid, 3500s typename=type(funcitem).__name__, 3500s ) 3500s fail(msg, pytrace=False) 3500s if has_params: 3500s frame = inspect.stack()[3] 3500s frameinfo = inspect.getframeinfo(frame[0]) 3500s source_path = absolutepath(frameinfo.filename) 3500s source_lineno = frameinfo.lineno 3500s try: 3500s source_path_str = str( 3500s source_path.relative_to(funcitem.config.rootpath) 3500s ) 3500s except ValueError: 3500s source_path_str = str(source_path) 3500s msg = ( 3500s "The requested fixture has no parameter defined for test:\n" 3500s " {}\n\n" 3500s "Requested fixture '{}' defined in:\n{}" 3500s "\n\nRequested here:\n{}:{}".format( 3500s funcitem.nodeid, 3500s fixturedef.argname, 3500s getlocation(fixturedef.func, funcitem.config.rootpath), 3500s source_path_str, 3500s source_lineno, 3500s ) 3500s ) 3500s fail(msg, pytrace=False) 3500s 3500s subrequest = SubRequest( 3500s self, scope, param, param_index, fixturedef, _ispytest=True 3500s ) 3500s 3500s # Check if a higher-level scoped fixture accesses a lower level one. 3500s subrequest._check_scope(argname, self._scope, scope) 3500s try: 3500s # Call the fixture function. 3500s > fixturedef.execute(request=subrequest) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s request = > 3500s 3500s def execute(self, request: SubRequest) -> FixtureValue: 3500s # Get required arguments and register our own finish() 3500s # with their finalization. 3500s for argname in self.argnames: 3500s > fixturedef = request._get_active_fixturedef(argname) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1045: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'mysql_pymysql_engine' 3500s 3500s def _get_active_fixturedef( 3500s self, argname: str 3500s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3500s try: 3500s return self._fixture_defs[argname] 3500s except KeyError: 3500s try: 3500s fixturedef = self._getnextfixturedef(argname) 3500s except FixtureLookupError: 3500s if argname == "request": 3500s cached_result = (self, [0], None) 3500s return PseudoFixtureDef(cached_result, Scope.Function) 3500s raise 3500s # Remove indent to prevent the python3 exception 3500s # from leaking into the call. 3500s > self._compute_fixture_value(fixturedef) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s fixturedef = 3500s 3500s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3500s """Create a SubRequest based on "self" and call the execute method 3500s of the given FixtureDef object. 3500s 3500s This will force the FixtureDef object to throw away any previous 3500s results and compute a new fixture value, which will be stored into 3500s the FixtureDef object itself. 3500s """ 3500s # prepare a subrequest object before calling fixture function 3500s # (latter managed by fixturedef) 3500s argname = fixturedef.argname 3500s funcitem = self._pyfuncitem 3500s scope = fixturedef._scope 3500s try: 3500s callspec = funcitem.callspec 3500s except AttributeError: 3500s callspec = None 3500s if callspec is not None and argname in callspec.params: 3500s param = callspec.params[argname] 3500s param_index = callspec.indices[argname] 3500s # If a parametrize invocation set a scope it will override 3500s # the static scope defined with the fixture function. 3500s with suppress(KeyError): 3500s scope = callspec._arg2scope[argname] 3500s else: 3500s param = NOTSET 3500s param_index = 0 3500s has_params = fixturedef.params is not None 3500s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3500s if has_params and fixtures_not_supported: 3500s msg = ( 3500s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3500s "Node id: {nodeid}\n" 3500s "Function type: {typename}" 3500s ).format( 3500s name=funcitem.name, 3500s nodeid=funcitem.nodeid, 3500s typename=type(funcitem).__name__, 3500s ) 3500s fail(msg, pytrace=False) 3500s if has_params: 3500s frame = inspect.stack()[3] 3500s frameinfo = inspect.getframeinfo(frame[0]) 3500s source_path = absolutepath(frameinfo.filename) 3500s source_lineno = frameinfo.lineno 3500s try: 3500s source_path_str = str( 3500s source_path.relative_to(funcitem.config.rootpath) 3500s ) 3500s except ValueError: 3500s source_path_str = str(source_path) 3500s msg = ( 3500s "The requested fixture has no parameter defined for test:\n" 3500s " {}\n\n" 3500s "Requested fixture '{}' defined in:\n{}" 3500s "\n\nRequested here:\n{}:{}".format( 3500s funcitem.nodeid, 3500s fixturedef.argname, 3500s getlocation(fixturedef.func, funcitem.config.rootpath), 3500s source_path_str, 3500s source_lineno, 3500s ) 3500s ) 3500s fail(msg, pytrace=False) 3500s 3500s subrequest = SubRequest( 3500s self, scope, param, param_index, fixturedef, _ispytest=True 3500s ) 3500s 3500s # Check if a higher-level scoped fixture accesses a lower level one. 3500s subrequest._check_scope(argname, self._scope, scope) 3500s try: 3500s # Call the fixture function. 3500s > fixturedef.execute(request=subrequest) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s request = > 3500s 3500s def execute(self, request: SubRequest) -> FixtureValue: 3500s # Get required arguments and register our own finish() 3500s # with their finalization. 3500s for argname in self.argnames: 3500s fixturedef = request._get_active_fixturedef(argname) 3500s if argname != "request": 3500s # PseudoFixtureDef is only for "request". 3500s assert isinstance(fixturedef, FixtureDef) 3500s fixturedef.addfinalizer(functools.partial(self.finish, request=request)) 3500s 3500s my_cache_key = self.cache_key(request) 3500s if self.cached_result is not None: 3500s # note: comparison with `==` can fail (or be expensive) for e.g. 3500s # numpy arrays (#6497). 3500s cache_key = self.cached_result[1] 3500s if my_cache_key is cache_key: 3500s if self.cached_result[2] is not None: 3500s _, val, tb = self.cached_result[2] 3500s raise val.with_traceback(tb) 3500s else: 3500s result = self.cached_result[0] 3500s return result 3500s # We have a previous but differently parametrized fixture instance 3500s # so we need to tear it down before creating a new one. 3500s self.finish(request) 3500s assert self.cached_result is None 3500s 3500s ihook = request.node.ihook 3500s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1069: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s kwargs = {'fixturedef': , 'request': >} 3500s firstresult = True 3500s 3500s def __call__(self, **kwargs: object) -> Any: 3500s """Call the hook. 3500s 3500s Only accepts keyword arguments, which should match the hook 3500s specification. 3500s 3500s Returns the result(s) of calling all registered plugins, see 3500s :ref:`calling`. 3500s """ 3500s assert ( 3500s not self.is_historic() 3500s ), "Cannot directly call a historic hook - use call_historic instead." 3500s self._verify_all_args_are_provided(kwargs) 3500s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 3500s # Copy because plugins may register other plugins during iteration (#438). 3500s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = <_pytest.config.PytestPluginManager object at 0xe9079168> 3500s hook_name = 'pytest_fixture_setup' 3500s methods = [>] 3500s kwargs = {'fixturedef': , 'request': >} 3500s firstresult = True 3500s 3500s def _hookexec( 3500s self, 3500s hook_name: str, 3500s methods: Sequence[HookImpl], 3500s kwargs: Mapping[str, object], 3500s firstresult: bool, 3500s ) -> object | list[object]: 3500s # called from all hookcaller instances. 3500s # enable_tracing will set its own wrapping function at self._inner_hookexec 3500s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturedef = 3500s request = > 3500s 3500s def pytest_fixture_setup( 3500s fixturedef: FixtureDef[FixtureValue], request: SubRequest 3500s ) -> FixtureValue: 3500s """Execution of fixture setup.""" 3500s kwargs = {} 3500s for argname in fixturedef.argnames: 3500s fixdef = request._get_active_fixturedef(argname) 3500s assert fixdef.cached_result is not None 3500s result, arg_cache_key, exc = fixdef.cached_result 3500s request._check_scope(argname, request._scope, fixdef._scope) 3500s kwargs[argname] = result 3500s 3500s fixturefunc = resolve_fixture_function(fixturedef, request) 3500s my_cache_key = fixturedef.cache_key(request) 3500s try: 3500s > result = call_fixture_func(fixturefunc, request, kwargs) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1123: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturefunc = 3500s request = > 3500s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv'), 'types_data': [{'B... False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}]} 3500s 3500s def call_fixture_func( 3500s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 3500s ) -> FixtureValue: 3500s if is_generator(fixturefunc): 3500s fixturefunc = cast( 3500s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 3500s ) 3500s generator = fixturefunc(**kwargs) 3500s try: 3500s > fixture_result = next(generator) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:895: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s iris_path = PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv') 3500s types_data = [{'BoolCol': False, 'BoolColWithNull': False, 'DateCol': '2000-01-03 00:00:00', 'DateColWithTz': '2000-01-01 00:00:00-...: False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}] 3500s 3500s @pytest.fixture 3500s def mysql_pymysql_engine(iris_path, types_data): 3500s sqlalchemy = pytest.importorskip("sqlalchemy") 3500s pymysql = pytest.importorskip("pymysql") 3500s engine = sqlalchemy.create_engine( 3500s "mysql+pymysql://root@localhost:3306/pandas", 3500s connect_args={"client_flag": pymysql.constants.CLIENT.MULTI_STATEMENTS}, 3500s poolclass=sqlalchemy.pool.NullPool, 3500s ) 3500s > insp = sqlalchemy.inspect(engine) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:409: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s subject = Engine(mysql+pymysql://root@localhost:3306/pandas), raiseerr = True 3500s 3500s def inspect(subject, raiseerr=True): 3500s """Produce an inspection object for the given target. 3500s 3500s The returned value in some cases may be the 3500s same object as the one given, such as if a 3500s :class:`_orm.Mapper` object is passed. In other 3500s cases, it will be an instance of the registered 3500s inspection type for the given object, such as 3500s if an :class:`_engine.Engine` is passed, an 3500s :class:`_reflection.Inspector` object is returned. 3500s 3500s :param subject: the subject to be inspected. 3500s :param raiseerr: When ``True``, if the given subject 3500s does not 3500s correspond to a known SQLAlchemy inspected type, 3500s :class:`sqlalchemy.exc.NoInspectionAvailable` 3500s is raised. If ``False``, ``None`` is returned. 3500s 3500s """ 3500s type_ = type(subject) 3500s for cls in type_.__mro__: 3500s if cls in _registrars: 3500s reg = _registrars[cls] 3500s if reg is True: 3500s return subject 3500s > ret = reg(subject) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:64: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s @inspection._inspects(Engine) 3500s def _engine_insp(bind): 3500s > return Inspector._construct(Inspector._init_engine, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:182: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s init = 3500s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s @classmethod 3500s def _construct(cls, init, bind): 3500s 3500s if hasattr(bind.dialect, "inspector"): 3500s cls = bind.dialect.inspector 3500s 3500s self = cls.__new__(cls) 3500s > init(self, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:117: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s def _init_engine(self, engine): 3500s self.bind = self.engine = engine 3500s > engine.connect().close() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:128: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s close_with_result = False 3500s 3500s def connect(self, close_with_result=False): 3500s """Return a new :class:`_engine.Connection` object. 3500s 3500s The :class:`_engine.Connection` object is a facade that uses a DBAPI 3500s connection internally in order to communicate with the database. This 3500s connection is procured from the connection-holding :class:`_pool.Pool` 3500s referenced by this :class:`_engine.Engine`. When the 3500s :meth:`_engine.Connection.close` method of the 3500s :class:`_engine.Connection` object 3500s is called, the underlying DBAPI connection is then returned to the 3500s connection pool, where it may be used again in a subsequent call to 3500s :meth:`_engine.Engine.connect`. 3500s 3500s """ 3500s 3500s > return self._connection_cls(self, close_with_result=close_with_result) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3325: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 3500s close_with_result = False, _branch_from = None, _execution_options = None 3500s _dispatch = None, _has_events = None, _allow_revalidate = True 3500s 3500s def __init__( 3500s self, 3500s engine, 3500s connection=None, 3500s close_with_result=False, 3500s _branch_from=None, 3500s _execution_options=None, 3500s _dispatch=None, 3500s _has_events=None, 3500s _allow_revalidate=True, 3500s ): 3500s """Construct a new Connection.""" 3500s self.engine = engine 3500s self.dialect = engine.dialect 3500s self.__branch_from = _branch_from 3500s 3500s if _branch_from: 3500s # branching is always "from" the root connection 3500s assert _branch_from.__branch_from is None 3500s self._dbapi_connection = connection 3500s self._execution_options = _execution_options 3500s self._echo = _branch_from._echo 3500s self.should_close_with_result = False 3500s self.dispatch = _dispatch 3500s self._has_events = _branch_from._has_events 3500s else: 3500s self._dbapi_connection = ( 3500s connection 3500s if connection is not None 3500s > else engine.raw_connection() 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:96: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas), _connection = None 3500s 3500s def raw_connection(self, _connection=None): 3500s """Return a "raw" DBAPI connection from the connection pool. 3500s 3500s The returned object is a proxied version of the DBAPI 3500s connection object used by the underlying driver in use. 3500s The object will have all the same behavior as the real DBAPI 3500s connection, except that its ``close()`` method will result in the 3500s connection being returned to the pool, rather than being closed 3500s for real. 3500s 3500s This method provides direct DBAPI connection access for 3500s special situations when the API provided by 3500s :class:`_engine.Connection` 3500s is not needed. When a :class:`_engine.Connection` object is already 3500s present, the DBAPI connection is available using 3500s the :attr:`_engine.Connection.connection` accessor. 3500s 3500s .. seealso:: 3500s 3500s :ref:`dbapi_connections` 3500s 3500s """ 3500s > return self._wrap_pool_connect(self.pool.connect, _connection) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3404: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s return fn() 3500s except dialect.dbapi.Error as e: 3500s if connection is None: 3500s > Connection._handle_dbapi_exception_noconnection( 3500s e, dialect, self 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3374: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s e = OperationalError(2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3500s dialect = 3500s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s @classmethod 3500s def _handle_dbapi_exception_noconnection(cls, e, dialect, engine): 3500s exc_info = sys.exc_info() 3500s 3500s is_disconnect = dialect.is_disconnect(e, None, None) 3500s 3500s should_wrap = isinstance(e, dialect.dbapi.Error) 3500s 3500s if should_wrap: 3500s sqlalchemy_exception = exc.DBAPIError.instance( 3500s None, 3500s None, 3500s e, 3500s dialect.dbapi.Error, 3500s hide_parameters=engine.hide_parameters, 3500s connection_invalidated=is_disconnect, 3500s ) 3500s else: 3500s sqlalchemy_exception = None 3500s 3500s newraise = None 3500s 3500s if engine._has_events: 3500s ctx = ExceptionContextImpl( 3500s e, 3500s sqlalchemy_exception, 3500s engine, 3500s None, 3500s None, 3500s None, 3500s None, 3500s None, 3500s is_disconnect, 3500s True, 3500s ) 3500s for fn in engine.dispatch.handle_error: 3500s try: 3500s # handler returns an exception; 3500s # call next handler in a chain 3500s per_fn = fn(ctx) 3500s if per_fn is not None: 3500s ctx.chained_exception = newraise = per_fn 3500s except Exception as _raised: 3500s # handler raises an exception - stop processing 3500s newraise = _raised 3500s break 3500s 3500s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 3500s sqlalchemy_exception.connection_invalidated = ( 3500s is_disconnect 3500s ) = ctx.is_disconnect 3500s 3500s if newraise: 3500s util.raise_(newraise, with_traceback=exc_info[2], from_=e) 3500s elif should_wrap: 3500s > util.raise_( 3500s sqlalchemy_exception, with_traceback=exc_info[2], from_=e 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2208: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __init__( 3500s self, 3500s *, 3500s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 3500s password="", 3500s host=None, 3500s database=None, 3500s unix_socket=None, 3500s port=0, 3500s charset="", 3500s collation=None, 3500s sql_mode=None, 3500s read_default_file=None, 3500s conv=None, 3500s use_unicode=True, 3500s client_flag=0, 3500s cursorclass=Cursor, 3500s init_command=None, 3500s connect_timeout=10, 3500s read_default_group=None, 3500s autocommit=False, 3500s local_infile=False, 3500s max_allowed_packet=16 * 1024 * 1024, 3500s defer_connect=False, 3500s auth_plugin_map=None, 3500s read_timeout=None, 3500s write_timeout=None, 3500s bind_address=None, 3500s binary_prefix=False, 3500s program_name=None, 3500s server_public_key=None, 3500s ssl=None, 3500s ssl_ca=None, 3500s ssl_cert=None, 3500s ssl_disabled=None, 3500s ssl_key=None, 3500s ssl_key_password=None, 3500s ssl_verify_cert=None, 3500s ssl_verify_identity=None, 3500s compress=None, # not supported 3500s named_pipe=None, # not supported 3500s passwd=None, # deprecated 3500s db=None, # deprecated 3500s ): 3500s if db is not None and database is None: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 3500s database = db 3500s if passwd is not None and not password: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn( 3500s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 3500s # ) 3500s password = passwd 3500s 3500s if compress or named_pipe: 3500s raise NotImplementedError( 3500s "compress and named_pipe arguments are not supported" 3500s ) 3500s 3500s self._local_infile = bool(local_infile) 3500s if self._local_infile: 3500s client_flag |= CLIENT.LOCAL_FILES 3500s 3500s if read_default_group and not read_default_file: 3500s if sys.platform.startswith("win"): 3500s read_default_file = "c:\\my.ini" 3500s else: 3500s read_default_file = "/etc/my.cnf" 3500s 3500s if read_default_file: 3500s if not read_default_group: 3500s read_default_group = "client" 3500s 3500s cfg = Parser() 3500s cfg.read(os.path.expanduser(read_default_file)) 3500s 3500s def _config(key, arg): 3500s if arg: 3500s return arg 3500s try: 3500s return cfg.get(read_default_group, key) 3500s except Exception: 3500s return arg 3500s 3500s user = _config("user", user) 3500s password = _config("password", password) 3500s host = _config("host", host) 3500s database = _config("database", database) 3500s unix_socket = _config("socket", unix_socket) 3500s port = int(_config("port", port)) 3500s bind_address = _config("bind-address", bind_address) 3500s charset = _config("default-character-set", charset) 3500s if not ssl: 3500s ssl = {} 3500s if isinstance(ssl, dict): 3500s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 3500s value = _config("ssl-" + key, ssl.get(key)) 3500s if value: 3500s ssl[key] = value 3500s 3500s self.ssl = False 3500s if not ssl_disabled: 3500s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 3500s ssl = { 3500s "ca": ssl_ca, 3500s "check_hostname": bool(ssl_verify_identity), 3500s "verify_mode": ssl_verify_cert 3500s if ssl_verify_cert is not None 3500s else False, 3500s } 3500s if ssl_cert is not None: 3500s ssl["cert"] = ssl_cert 3500s if ssl_key is not None: 3500s ssl["key"] = ssl_key 3500s if ssl_key_password is not None: 3500s ssl["password"] = ssl_key_password 3500s if ssl: 3500s if not SSL_ENABLED: 3500s raise NotImplementedError("ssl module not found") 3500s self.ssl = True 3500s client_flag |= CLIENT.SSL 3500s self.ctx = self._create_ssl_ctx(ssl) 3500s 3500s self.host = host or "localhost" 3500s self.port = port or 3306 3500s if type(self.port) is not int: 3500s raise ValueError("port should be of type int") 3500s self.user = user or DEFAULT_USER 3500s self.password = password or b"" 3500s if isinstance(self.password, str): 3500s self.password = self.password.encode("latin1") 3500s self.db = database 3500s self.unix_socket = unix_socket 3500s self.bind_address = bind_address 3500s if not (0 < connect_timeout <= 31536000): 3500s raise ValueError("connect_timeout should be >0 and <=31536000") 3500s self.connect_timeout = connect_timeout or None 3500s if read_timeout is not None and read_timeout <= 0: 3500s raise ValueError("read_timeout should be > 0") 3500s self._read_timeout = read_timeout 3500s if write_timeout is not None and write_timeout <= 0: 3500s raise ValueError("write_timeout should be > 0") 3500s self._write_timeout = write_timeout 3500s 3500s self.charset = charset or DEFAULT_CHARSET 3500s self.collation = collation 3500s self.use_unicode = use_unicode 3500s 3500s self.encoding = charset_by_name(self.charset).encoding 3500s 3500s client_flag |= CLIENT.CAPABILITIES 3500s if self.db: 3500s client_flag |= CLIENT.CONNECT_WITH_DB 3500s 3500s self.client_flag = client_flag 3500s 3500s self.cursorclass = cursorclass 3500s 3500s self._result = None 3500s self._affected_rows = 0 3500s self.host_info = "Not connected" 3500s 3500s # specified autocommit mode. None means use server default. 3500s self.autocommit_mode = autocommit 3500s 3500s if conv is None: 3500s conv = converters.conversions 3500s 3500s # Need for MySQLdb compatibility. 3500s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 3500s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 3500s self.sql_mode = sql_mode 3500s self.init_command = init_command 3500s self.max_allowed_packet = max_allowed_packet 3500s self._auth_plugin_map = auth_plugin_map or {} 3500s self._binary_prefix = binary_prefix 3500s self.server_public_key = server_public_key 3500s 3500s self._connect_attrs = { 3500s "_client_name": "pymysql", 3500s "_client_version": VERSION_STRING, 3500s "_pid": str(os.getpid()), 3500s } 3500s 3500s if program_name: 3500s self._connect_attrs["program_name"] = program_name 3500s 3500s if defer_connect: 3500s self._sock = None 3500s else: 3500s > self.connect() 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = , sock = None 3500s 3500s def connect(self, sock=None): 3500s self._closed = False 3500s try: 3500s if sock is None: 3500s if self.unix_socket: 3500s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3500s sock.settimeout(self.connect_timeout) 3500s sock.connect(self.unix_socket) 3500s self.host_info = "Localhost via UNIX socket" 3500s self._secure = True 3500s if DEBUG: 3500s print("connected using unix_socket") 3500s else: 3500s kwargs = {} 3500s if self.bind_address is not None: 3500s kwargs["source_address"] = (self.bind_address, 0) 3500s while True: 3500s try: 3500s sock = socket.create_connection( 3500s (self.host, self.port), self.connect_timeout, **kwargs 3500s ) 3500s break 3500s except OSError as e: 3500s if e.errno == errno.EINTR: 3500s continue 3500s raise 3500s self.host_info = "socket %s:%d" % (self.host, self.port) 3500s if DEBUG: 3500s print("connected using socket") 3500s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 3500s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 3500s sock.settimeout(None) 3500s 3500s self._sock = sock 3500s self._rfile = sock.makefile("rb") 3500s self._next_seq_id = 0 3500s 3500s self._get_server_information() 3500s self._request_authentication() 3500s 3500s # Send "SET NAMES" query on init for: 3500s # - Ensure charaset (and collation) is set to the server. 3500s # - collation_id in handshake packet may be ignored. 3500s # - If collation is not specified, we don't know what is server's 3500s # default collation for the charset. For example, default collation 3500s # of utf8mb4 is: 3500s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 3500s # - MySQL 8.0: utf8mb4_0900_ai_ci 3500s # 3500s # Reference: 3500s # - https://github.com/PyMySQL/PyMySQL/issues/1092 3500s # - https://github.com/wagtail/wagtail/issues/9477 3500s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 3500s self.set_character_set(self.charset, self.collation) 3500s 3500s if self.sql_mode is not None: 3500s c = self.cursor() 3500s c.execute("SET sql_mode=%s", (self.sql_mode,)) 3500s c.close() 3500s 3500s if self.init_command is not None: 3500s c = self.cursor() 3500s c.execute(self.init_command) 3500s c.close() 3500s 3500s if self.autocommit_mode is not None: 3500s self.autocommit(self.autocommit_mode) 3500s except BaseException as e: 3500s self._rfile = None 3500s if sock is not None: 3500s try: 3500s sock.close() 3500s except: # noqa 3500s pass 3500s 3500s if isinstance(e, (OSError, IOError)): 3500s exc = err.OperationalError( 3500s CR.CR_CONN_HOST_ERROR, 3500s f"Can't connect to MySQL server on {self.host!r} ({e})", 3500s ) 3500s # Keep original exception and traceback to investigate error. 3500s exc.original_exception = e 3500s exc.traceback = traceback.format_exc() 3500s if DEBUG: 3500s print(exc.traceback) 3500s > raise exc 3500s E sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3500s E (Background on this error at: https://sqlalche.me/e/14/e3q8) 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 3500s ____ test_read_iris_query_string_with_parameter[postgresql_psycopg2_engine] ____ 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s dsn = 'host=localhost user=postgres password=postgres port=5432 dbname=pandas' 3500s connection_factory = None, cursor_factory = None 3500s kwargs = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s kwasync = {} 3500s 3500s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 3500s """ 3500s Create a new database connection. 3500s 3500s The connection parameters can be specified as a string: 3500s 3500s conn = psycopg2.connect("dbname=test user=postgres password=secret") 3500s 3500s or using a set of keyword arguments: 3500s 3500s conn = psycopg2.connect(database="test", user="postgres", password="secret") 3500s 3500s Or as a mix of both. The basic connection parameters are: 3500s 3500s - *dbname*: the database name 3500s - *database*: the database name (only as keyword argument) 3500s - *user*: user name used to authenticate 3500s - *password*: password used to authenticate 3500s - *host*: database host address (defaults to UNIX socket if not provided) 3500s - *port*: connection port number (defaults to 5432 if not provided) 3500s 3500s Using the *connection_factory* parameter a different class or connections 3500s factory can be specified. It should be a callable object taking a dsn 3500s argument. 3500s 3500s Using the *cursor_factory* parameter, a new default cursor factory will be 3500s used by cursor(). 3500s 3500s Using *async*=True an asynchronous connection will be created. *async_* is 3500s a valid alias (for Python versions where ``async`` is a keyword). 3500s 3500s Any other keyword parameter will be passed to the underlying client 3500s library: the list of supported parameters depends on the library version. 3500s 3500s """ 3500s kwasync = {} 3500s if 'async' in kwargs: 3500s kwasync['async'] = kwargs.pop('async') 3500s if 'async_' in kwargs: 3500s kwasync['async_'] = kwargs.pop('async_') 3500s 3500s dsn = _ext.make_dsn(dsn, **kwargs) 3500s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 3500s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 3500s E Is the server running on that host and accepting TCP/IP connections? 3500s 3500s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 3500s 3500s The above exception was the direct cause of the following exception: 3500s 3500s conn = 'postgresql_psycopg2_engine' 3500s request = > 3500s sql_strings = {'read_named_parameters': {'mysql': '\n SELECT * FROM iris WHERE\n `Name`=%(name)s AND `...LECT * FROM iris WHERE "Name"=%s AND "SepalLength"=%s', 'sqlite': 'SELECT * FROM iris WHERE Name=? AND SepalLength=?'}} 3500s 3500s @pytest.mark.db 3500s @pytest.mark.parametrize("conn", all_connectable_iris) 3500s def test_read_iris_query_string_with_parameter(conn, request, sql_strings): 3500s for db, query in sql_strings["read_parameters"].items(): 3500s if db in conn: 3500s break 3500s else: 3500s raise KeyError(f"No part of {conn} found in sql_strings['read_parameters']") 3500s > conn = request.getfixturevalue(conn) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:683: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'postgresql_psycopg2_engine' 3500s 3500s def getfixturevalue(self, argname: str) -> Any: 3500s """Dynamically run a named fixture function. 3500s 3500s Declaring fixtures via function argument is recommended where possible. 3500s But if you can only decide whether to use another fixture at test 3500s setup time, you may use this function to retrieve it inside a fixture 3500s or test function body. 3500s 3500s This method can be used during the test setup phase or the test run 3500s phase, but during the test teardown phase a fixture's value may not 3500s be available. 3500s 3500s :param argname: 3500s The fixture name. 3500s :raises pytest.FixtureLookupError: 3500s If the given fixture could not be found. 3500s """ 3500s > fixturedef = self._get_active_fixturedef(argname) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:585: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'postgresql_psycopg2_engine' 3500s 3500s def _get_active_fixturedef( 3500s self, argname: str 3500s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3500s try: 3500s return self._fixture_defs[argname] 3500s except KeyError: 3500s try: 3500s fixturedef = self._getnextfixturedef(argname) 3500s except FixtureLookupError: 3500s if argname == "request": 3500s cached_result = (self, [0], None) 3500s return PseudoFixtureDef(cached_result, Scope.Function) 3500s raise 3500s # Remove indent to prevent the python3 exception 3500s # from leaking into the call. 3500s > self._compute_fixture_value(fixturedef) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s fixturedef = 3500s 3500s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3500s """Create a SubRequest based on "self" and call the execute method 3500s of the given FixtureDef object. 3500s 3500s This will force the FixtureDef object to throw away any previous 3500s results and compute a new fixture value, which will be stored into 3500s the FixtureDef object itself. 3500s """ 3500s # prepare a subrequest object before calling fixture function 3500s # (latter managed by fixturedef) 3500s argname = fixturedef.argname 3500s funcitem = self._pyfuncitem 3500s scope = fixturedef._scope 3500s try: 3500s callspec = funcitem.callspec 3500s except AttributeError: 3500s callspec = None 3500s if callspec is not None and argname in callspec.params: 3500s param = callspec.params[argname] 3500s param_index = callspec.indices[argname] 3500s # If a parametrize invocation set a scope it will override 3500s # the static scope defined with the fixture function. 3500s with suppress(KeyError): 3500s scope = callspec._arg2scope[argname] 3500s else: 3500s param = NOTSET 3500s param_index = 0 3500s has_params = fixturedef.params is not None 3500s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3500s if has_params and fixtures_not_supported: 3500s msg = ( 3500s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3500s "Node id: {nodeid}\n" 3500s "Function type: {typename}" 3500s ).format( 3500s name=funcitem.name, 3500s nodeid=funcitem.nodeid, 3500s typename=type(funcitem).__name__, 3500s ) 3500s fail(msg, pytrace=False) 3500s if has_params: 3500s frame = inspect.stack()[3] 3500s frameinfo = inspect.getframeinfo(frame[0]) 3500s source_path = absolutepath(frameinfo.filename) 3500s source_lineno = frameinfo.lineno 3500s try: 3500s source_path_str = str( 3500s source_path.relative_to(funcitem.config.rootpath) 3500s ) 3500s except ValueError: 3500s source_path_str = str(source_path) 3500s msg = ( 3500s "The requested fixture has no parameter defined for test:\n" 3500s " {}\n\n" 3500s "Requested fixture '{}' defined in:\n{}" 3500s "\n\nRequested here:\n{}:{}".format( 3500s funcitem.nodeid, 3500s fixturedef.argname, 3500s getlocation(fixturedef.func, funcitem.config.rootpath), 3500s source_path_str, 3500s source_lineno, 3500s ) 3500s ) 3500s fail(msg, pytrace=False) 3500s 3500s subrequest = SubRequest( 3500s self, scope, param, param_index, fixturedef, _ispytest=True 3500s ) 3500s 3500s # Check if a higher-level scoped fixture accesses a lower level one. 3500s subrequest._check_scope(argname, self._scope, scope) 3500s try: 3500s # Call the fixture function. 3500s > fixturedef.execute(request=subrequest) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s request = > 3500s 3500s def execute(self, request: SubRequest) -> FixtureValue: 3500s # Get required arguments and register our own finish() 3500s # with their finalization. 3500s for argname in self.argnames: 3500s fixturedef = request._get_active_fixturedef(argname) 3500s if argname != "request": 3500s # PseudoFixtureDef is only for "request". 3500s assert isinstance(fixturedef, FixtureDef) 3500s fixturedef.addfinalizer(functools.partial(self.finish, request=request)) 3500s 3500s my_cache_key = self.cache_key(request) 3500s if self.cached_result is not None: 3500s # note: comparison with `==` can fail (or be expensive) for e.g. 3500s # numpy arrays (#6497). 3500s cache_key = self.cached_result[1] 3500s if my_cache_key is cache_key: 3500s if self.cached_result[2] is not None: 3500s _, val, tb = self.cached_result[2] 3500s raise val.with_traceback(tb) 3500s else: 3500s result = self.cached_result[0] 3500s return result 3500s # We have a previous but differently parametrized fixture instance 3500s # so we need to tear it down before creating a new one. 3500s self.finish(request) 3500s assert self.cached_result is None 3500s 3500s ihook = request.node.ihook 3500s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1069: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s kwargs = {'fixturedef': , 'request': ...st 'postgresql_psycopg2_engine' for >} 3500s firstresult = True 3500s 3500s def __call__(self, **kwargs: object) -> Any: 3500s """Call the hook. 3500s 3500s Only accepts keyword arguments, which should match the hook 3500s specification. 3500s 3500s Returns the result(s) of calling all registered plugins, see 3500s :ref:`calling`. 3500s """ 3500s assert ( 3500s not self.is_historic() 3500s ), "Cannot directly call a historic hook - use call_historic instead." 3500s self._verify_all_args_are_provided(kwargs) 3500s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 3500s # Copy because plugins may register other plugins during iteration (#438). 3500s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = <_pytest.config.PytestPluginManager object at 0xe9079168> 3500s hook_name = 'pytest_fixture_setup' 3500s methods = [>] 3500s kwargs = {'fixturedef': , 'request': ...st 'postgresql_psycopg2_engine' for >} 3500s firstresult = True 3500s 3500s def _hookexec( 3500s self, 3500s hook_name: str, 3500s methods: Sequence[HookImpl], 3500s kwargs: Mapping[str, object], 3500s firstresult: bool, 3500s ) -> object | list[object]: 3500s # called from all hookcaller instances. 3500s # enable_tracing will set its own wrapping function at self._inner_hookexec 3500s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturedef = 3500s request = > 3500s 3500s def pytest_fixture_setup( 3500s fixturedef: FixtureDef[FixtureValue], request: SubRequest 3500s ) -> FixtureValue: 3500s """Execution of fixture setup.""" 3500s kwargs = {} 3500s for argname in fixturedef.argnames: 3500s fixdef = request._get_active_fixturedef(argname) 3500s assert fixdef.cached_result is not None 3500s result, arg_cache_key, exc = fixdef.cached_result 3500s request._check_scope(argname, request._scope, fixdef._scope) 3500s kwargs[argname] = result 3500s 3500s fixturefunc = resolve_fixture_function(fixturedef, request) 3500s my_cache_key = fixturedef.cache_key(request) 3500s try: 3500s > result = call_fixture_func(fixturefunc, request, kwargs) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1123: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturefunc = 3500s request = > 3500s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv'), 'types_data': [{'B... False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}]} 3500s 3500s def call_fixture_func( 3500s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 3500s ) -> FixtureValue: 3500s if is_generator(fixturefunc): 3500s fixturefunc = cast( 3500s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 3500s ) 3500s generator = fixturefunc(**kwargs) 3500s try: 3500s > fixture_result = next(generator) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:895: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s iris_path = PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv') 3500s types_data = [{'BoolCol': False, 'BoolColWithNull': False, 'DateCol': '2000-01-03 00:00:00', 'DateColWithTz': '2000-01-01 00:00:00-...: False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}] 3500s 3500s @pytest.fixture 3500s def postgresql_psycopg2_engine(iris_path, types_data): 3500s sqlalchemy = pytest.importorskip("sqlalchemy") 3500s pytest.importorskip("psycopg2") 3500s engine = sqlalchemy.create_engine( 3500s "postgresql+psycopg2://postgres:postgres@localhost:5432/pandas", 3500s poolclass=sqlalchemy.pool.NullPool, 3500s ) 3500s > insp = sqlalchemy.inspect(engine) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:438: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s subject = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s raiseerr = True 3500s 3500s def inspect(subject, raiseerr=True): 3500s """Produce an inspection object for the given target. 3500s 3500s The returned value in some cases may be the 3500s same object as the one given, such as if a 3500s :class:`_orm.Mapper` object is passed. In other 3500s cases, it will be an instance of the registered 3500s inspection type for the given object, such as 3500s if an :class:`_engine.Engine` is passed, an 3500s :class:`_reflection.Inspector` object is returned. 3500s 3500s :param subject: the subject to be inspected. 3500s :param raiseerr: When ``True``, if the given subject 3500s does not 3500s correspond to a known SQLAlchemy inspected type, 3500s :class:`sqlalchemy.exc.NoInspectionAvailable` 3500s is raised. If ``False``, ``None`` is returned. 3500s 3500s """ 3500s type_ = type(subject) 3500s for cls in type_.__mro__: 3500s if cls in _registrars: 3500s reg = _registrars[cls] 3500s if reg is True: 3500s return subject 3500s > ret = reg(subject) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:64: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s @inspection._inspects(Engine) 3500s def _engine_insp(bind): 3500s > return Inspector._construct(Inspector._init_engine, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:182: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s init = 3500s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s @classmethod 3500s def _construct(cls, init, bind): 3500s 3500s if hasattr(bind.dialect, "inspector"): 3500s cls = bind.dialect.inspector 3500s 3500s self = cls.__new__(cls) 3500s > init(self, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:117: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s def _init_engine(self, engine): 3500s self.bind = self.engine = engine 3500s > engine.connect().close() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:128: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s close_with_result = False 3500s 3500s def connect(self, close_with_result=False): 3500s """Return a new :class:`_engine.Connection` object. 3500s 3500s The :class:`_engine.Connection` object is a facade that uses a DBAPI 3500s connection internally in order to communicate with the database. This 3500s connection is procured from the connection-holding :class:`_pool.Pool` 3500s referenced by this :class:`_engine.Engine`. When the 3500s :meth:`_engine.Connection.close` method of the 3500s :class:`_engine.Connection` object 3500s is called, the underlying DBAPI connection is then returned to the 3500s connection pool, where it may be used again in a subsequent call to 3500s :meth:`_engine.Engine.connect`. 3500s 3500s """ 3500s 3500s > return self._connection_cls(self, close_with_result=close_with_result) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3325: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s connection = None, close_with_result = False, _branch_from = None 3500s _execution_options = None, _dispatch = None, _has_events = None 3500s _allow_revalidate = True 3500s 3500s def __init__( 3500s self, 3500s engine, 3500s connection=None, 3500s close_with_result=False, 3500s _branch_from=None, 3500s _execution_options=None, 3500s _dispatch=None, 3500s _has_events=None, 3500s _allow_revalidate=True, 3500s ): 3500s """Construct a new Connection.""" 3500s self.engine = engine 3500s self.dialect = engine.dialect 3500s self.__branch_from = _branch_from 3500s 3500s if _branch_from: 3500s # branching is always "from" the root connection 3500s assert _branch_from.__branch_from is None 3500s self._dbapi_connection = connection 3500s self._execution_options = _execution_options 3500s self._echo = _branch_from._echo 3500s self.should_close_with_result = False 3500s self.dispatch = _dispatch 3500s self._has_events = _branch_from._has_events 3500s else: 3500s self._dbapi_connection = ( 3500s connection 3500s if connection is not None 3500s > else engine.raw_connection() 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:96: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s _connection = None 3500s 3500s def raw_connection(self, _connection=None): 3500s """Return a "raw" DBAPI connection from the connection pool. 3500s 3500s The returned object is a proxied version of the DBAPI 3500s connection object used by the underlying driver in use. 3500s The object will have all the same behavior as the real DBAPI 3500s connection, except that its ``close()`` method will result in the 3500s connection being returned to the pool, rather than being closed 3500s for real. 3500s 3500s This method provides direct DBAPI connection access for 3500s special situations when the API provided by 3500s :class:`_engine.Connection` 3500s is not needed. When a :class:`_engine.Connection` object is already 3500s present, the DBAPI connection is available using 3500s the :attr:`_engine.Connection.connection` accessor. 3500s 3500s .. seealso:: 3500s 3500s :ref:`dbapi_connections` 3500s 3500s """ 3500s > return self._wrap_pool_connect(self.pool.connect, _connection) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3404: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s return fn() 3500s except dialect.dbapi.Error as e: 3500s if connection is None: 3500s > Connection._handle_dbapi_exception_noconnection( 3500s e, dialect, self 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3374: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s e = OperationalError('connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused\n\tIs the server running on that host and accepting TCP/IP connections?\n') 3500s dialect = 3500s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s @classmethod 3500s def _handle_dbapi_exception_noconnection(cls, e, dialect, engine): 3500s exc_info = sys.exc_info() 3500s 3500s is_disconnect = dialect.is_disconnect(e, None, None) 3500s 3500s should_wrap = isinstance(e, dialect.dbapi.Error) 3500s 3500s if should_wrap: 3500s sqlalchemy_exception = exc.DBAPIError.instance( 3500s None, 3500s None, 3500s e, 3500s dialect.dbapi.Error, 3500s hide_parameters=engine.hide_parameters, 3500s connection_invalidated=is_disconnect, 3500s ) 3500s else: 3500s sqlalchemy_exception = None 3500s 3500s newraise = None 3500s 3500s if engine._has_events: 3500s ctx = ExceptionContextImpl( 3500s e, 3500s sqlalchemy_exception, 3500s engine, 3500s None, 3500s None, 3500s None, 3500s None, 3500s None, 3500s is_disconnect, 3500s True, 3500s ) 3500s for fn in engine.dispatch.handle_error: 3500s try: 3500s # handler returns an exception; 3500s # call next handler in a chain 3500s per_fn = fn(ctx) 3500s if per_fn is not None: 3500s ctx.chained_exception = newraise = per_fn 3500s except Exception as _raised: 3500s # handler raises an exception - stop processing 3500s newraise = _raised 3500s break 3500s 3500s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 3500s sqlalchemy_exception.connection_invalidated = ( 3500s is_disconnect 3500s ) = ctx.is_disconnect 3500s 3500s if newraise: 3500s util.raise_(newraise, with_traceback=exc_info[2], from_=e) 3500s elif should_wrap: 3500s > util.raise_( 3500s sqlalchemy_exception, with_traceback=exc_info[2], from_=e 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2208: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s dsn = 'host=localhost user=postgres password=postgres port=5432 dbname=pandas' 3500s connection_factory = None, cursor_factory = None 3500s kwargs = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s kwasync = {} 3500s 3500s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 3500s """ 3500s Create a new database connection. 3500s 3500s The connection parameters can be specified as a string: 3500s 3500s conn = psycopg2.connect("dbname=test user=postgres password=secret") 3500s 3500s or using a set of keyword arguments: 3500s 3500s conn = psycopg2.connect(database="test", user="postgres", password="secret") 3500s 3500s Or as a mix of both. The basic connection parameters are: 3500s 3500s - *dbname*: the database name 3500s - *database*: the database name (only as keyword argument) 3500s - *user*: user name used to authenticate 3500s - *password*: password used to authenticate 3500s - *host*: database host address (defaults to UNIX socket if not provided) 3500s - *port*: connection port number (defaults to 5432 if not provided) 3500s 3500s Using the *connection_factory* parameter a different class or connections 3500s factory can be specified. It should be a callable object taking a dsn 3500s argument. 3500s 3500s Using the *cursor_factory* parameter, a new default cursor factory will be 3500s used by cursor(). 3500s 3500s Using *async*=True an asynchronous connection will be created. *async_* is 3500s a valid alias (for Python versions where ``async`` is a keyword). 3500s 3500s Any other keyword parameter will be passed to the underlying client 3500s library: the list of supported parameters depends on the library version. 3500s 3500s """ 3500s kwasync = {} 3500s if 'async' in kwargs: 3500s kwasync['async'] = kwargs.pop('async') 3500s if 'async_' in kwargs: 3500s kwasync['async_'] = kwargs.pop('async_') 3500s 3500s dsn = _ext.make_dsn(dsn, **kwargs) 3500s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 3500s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 3500s E Is the server running on that host and accepting TCP/IP connections? 3500s E 3500s E (Background on this error at: https://sqlalche.me/e/14/e3q8) 3500s 3500s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 3500s _____ test_read_iris_query_string_with_parameter[postgresql_psycopg2_conn] _____ 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s dsn = 'host=localhost user=postgres password=postgres port=5432 dbname=pandas' 3500s connection_factory = None, cursor_factory = None 3500s kwargs = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s kwasync = {} 3500s 3500s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 3500s """ 3500s Create a new database connection. 3500s 3500s The connection parameters can be specified as a string: 3500s 3500s conn = psycopg2.connect("dbname=test user=postgres password=secret") 3500s 3500s or using a set of keyword arguments: 3500s 3500s conn = psycopg2.connect(database="test", user="postgres", password="secret") 3500s 3500s Or as a mix of both. The basic connection parameters are: 3500s 3500s - *dbname*: the database name 3500s - *database*: the database name (only as keyword argument) 3500s - *user*: user name used to authenticate 3500s - *password*: password used to authenticate 3500s - *host*: database host address (defaults to UNIX socket if not provided) 3500s - *port*: connection port number (defaults to 5432 if not provided) 3500s 3500s Using the *connection_factory* parameter a different class or connections 3500s factory can be specified. It should be a callable object taking a dsn 3500s argument. 3500s 3500s Using the *cursor_factory* parameter, a new default cursor factory will be 3500s used by cursor(). 3500s 3500s Using *async*=True an asynchronous connection will be created. *async_* is 3500s a valid alias (for Python versions where ``async`` is a keyword). 3500s 3500s Any other keyword parameter will be passed to the underlying client 3500s library: the list of supported parameters depends on the library version. 3500s 3500s """ 3500s kwasync = {} 3500s if 'async' in kwargs: 3500s kwasync['async'] = kwargs.pop('async') 3500s if 'async_' in kwargs: 3500s kwasync['async_'] = kwargs.pop('async_') 3500s 3500s dsn = _ext.make_dsn(dsn, **kwargs) 3500s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 3500s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 3500s E Is the server running on that host and accepting TCP/IP connections? 3500s 3500s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 3500s 3500s The above exception was the direct cause of the following exception: 3500s 3500s conn = 'postgresql_psycopg2_conn' 3500s request = > 3500s sql_strings = {'read_named_parameters': {'mysql': '\n SELECT * FROM iris WHERE\n `Name`=%(name)s AND `...LECT * FROM iris WHERE "Name"=%s AND "SepalLength"=%s', 'sqlite': 'SELECT * FROM iris WHERE Name=? AND SepalLength=?'}} 3500s 3500s @pytest.mark.db 3500s @pytest.mark.parametrize("conn", all_connectable_iris) 3500s def test_read_iris_query_string_with_parameter(conn, request, sql_strings): 3500s for db, query in sql_strings["read_parameters"].items(): 3500s if db in conn: 3500s break 3500s else: 3500s raise KeyError(f"No part of {conn} found in sql_strings['read_parameters']") 3500s > conn = request.getfixturevalue(conn) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:683: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'postgresql_psycopg2_conn' 3500s 3500s def getfixturevalue(self, argname: str) -> Any: 3500s """Dynamically run a named fixture function. 3500s 3500s Declaring fixtures via function argument is recommended where possible. 3500s But if you can only decide whether to use another fixture at test 3500s setup time, you may use this function to retrieve it inside a fixture 3500s or test function body. 3500s 3500s This method can be used during the test setup phase or the test run 3500s phase, but during the test teardown phase a fixture's value may not 3500s be available. 3500s 3500s :param argname: 3500s The fixture name. 3500s :raises pytest.FixtureLookupError: 3500s If the given fixture could not be found. 3500s """ 3500s > fixturedef = self._get_active_fixturedef(argname) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:585: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'postgresql_psycopg2_conn' 3500s 3500s def _get_active_fixturedef( 3500s self, argname: str 3500s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3500s try: 3500s return self._fixture_defs[argname] 3500s except KeyError: 3500s try: 3500s fixturedef = self._getnextfixturedef(argname) 3500s except FixtureLookupError: 3500s if argname == "request": 3500s cached_result = (self, [0], None) 3500s return PseudoFixtureDef(cached_result, Scope.Function) 3500s raise 3500s # Remove indent to prevent the python3 exception 3500s # from leaking into the call. 3500s > self._compute_fixture_value(fixturedef) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s fixturedef = 3500s 3500s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3500s """Create a SubRequest based on "self" and call the execute method 3500s of the given FixtureDef object. 3500s 3500s This will force the FixtureDef object to throw away any previous 3500s results and compute a new fixture value, which will be stored into 3500s the FixtureDef object itself. 3500s """ 3500s # prepare a subrequest object before calling fixture function 3500s # (latter managed by fixturedef) 3500s argname = fixturedef.argname 3500s funcitem = self._pyfuncitem 3500s scope = fixturedef._scope 3500s try: 3500s callspec = funcitem.callspec 3500s except AttributeError: 3500s callspec = None 3500s if callspec is not None and argname in callspec.params: 3500s param = callspec.params[argname] 3500s param_index = callspec.indices[argname] 3500s # If a parametrize invocation set a scope it will override 3500s # the static scope defined with the fixture function. 3500s with suppress(KeyError): 3500s scope = callspec._arg2scope[argname] 3500s else: 3500s param = NOTSET 3500s param_index = 0 3500s has_params = fixturedef.params is not None 3500s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3500s if has_params and fixtures_not_supported: 3500s msg = ( 3500s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3500s "Node id: {nodeid}\n" 3500s "Function type: {typename}" 3500s ).format( 3500s name=funcitem.name, 3500s nodeid=funcitem.nodeid, 3500s typename=type(funcitem).__name__, 3500s ) 3500s fail(msg, pytrace=False) 3500s if has_params: 3500s frame = inspect.stack()[3] 3500s frameinfo = inspect.getframeinfo(frame[0]) 3500s source_path = absolutepath(frameinfo.filename) 3500s source_lineno = frameinfo.lineno 3500s try: 3500s source_path_str = str( 3500s source_path.relative_to(funcitem.config.rootpath) 3500s ) 3500s except ValueError: 3500s source_path_str = str(source_path) 3500s msg = ( 3500s "The requested fixture has no parameter defined for test:\n" 3500s " {}\n\n" 3500s "Requested fixture '{}' defined in:\n{}" 3500s "\n\nRequested here:\n{}:{}".format( 3500s funcitem.nodeid, 3500s fixturedef.argname, 3500s getlocation(fixturedef.func, funcitem.config.rootpath), 3500s source_path_str, 3500s source_lineno, 3500s ) 3500s ) 3500s fail(msg, pytrace=False) 3500s 3500s subrequest = SubRequest( 3500s self, scope, param, param_index, fixturedef, _ispytest=True 3500s ) 3500s 3500s # Check if a higher-level scoped fixture accesses a lower level one. 3500s subrequest._check_scope(argname, self._scope, scope) 3500s try: 3500s # Call the fixture function. 3500s > fixturedef.execute(request=subrequest) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s request = > 3500s 3500s def execute(self, request: SubRequest) -> FixtureValue: 3500s # Get required arguments and register our own finish() 3500s # with their finalization. 3500s for argname in self.argnames: 3500s > fixturedef = request._get_active_fixturedef(argname) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1045: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'postgresql_psycopg2_engine' 3500s 3500s def _get_active_fixturedef( 3500s self, argname: str 3500s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3500s try: 3500s return self._fixture_defs[argname] 3500s except KeyError: 3500s try: 3500s fixturedef = self._getnextfixturedef(argname) 3500s except FixtureLookupError: 3500s if argname == "request": 3500s cached_result = (self, [0], None) 3500s return PseudoFixtureDef(cached_result, Scope.Function) 3500s raise 3500s # Remove indent to prevent the python3 exception 3500s # from leaking into the call. 3500s > self._compute_fixture_value(fixturedef) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s fixturedef = 3500s 3500s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3500s """Create a SubRequest based on "self" and call the execute method 3500s of the given FixtureDef object. 3500s 3500s This will force the FixtureDef object to throw away any previous 3500s results and compute a new fixture value, which will be stored into 3500s the FixtureDef object itself. 3500s """ 3500s # prepare a subrequest object before calling fixture function 3500s # (latter managed by fixturedef) 3500s argname = fixturedef.argname 3500s funcitem = self._pyfuncitem 3500s scope = fixturedef._scope 3500s try: 3500s callspec = funcitem.callspec 3500s except AttributeError: 3500s callspec = None 3500s if callspec is not None and argname in callspec.params: 3500s param = callspec.params[argname] 3500s param_index = callspec.indices[argname] 3500s # If a parametrize invocation set a scope it will override 3500s # the static scope defined with the fixture function. 3500s with suppress(KeyError): 3500s scope = callspec._arg2scope[argname] 3500s else: 3500s param = NOTSET 3500s param_index = 0 3500s has_params = fixturedef.params is not None 3500s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3500s if has_params and fixtures_not_supported: 3500s msg = ( 3500s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3500s "Node id: {nodeid}\n" 3500s "Function type: {typename}" 3500s ).format( 3500s name=funcitem.name, 3500s nodeid=funcitem.nodeid, 3500s typename=type(funcitem).__name__, 3500s ) 3500s fail(msg, pytrace=False) 3500s if has_params: 3500s frame = inspect.stack()[3] 3500s frameinfo = inspect.getframeinfo(frame[0]) 3500s source_path = absolutepath(frameinfo.filename) 3500s source_lineno = frameinfo.lineno 3500s try: 3500s source_path_str = str( 3500s source_path.relative_to(funcitem.config.rootpath) 3500s ) 3500s except ValueError: 3500s source_path_str = str(source_path) 3500s msg = ( 3500s "The requested fixture has no parameter defined for test:\n" 3500s " {}\n\n" 3500s "Requested fixture '{}' defined in:\n{}" 3500s "\n\nRequested here:\n{}:{}".format( 3500s funcitem.nodeid, 3500s fixturedef.argname, 3500s getlocation(fixturedef.func, funcitem.config.rootpath), 3500s source_path_str, 3500s source_lineno, 3500s ) 3500s ) 3500s fail(msg, pytrace=False) 3500s 3500s subrequest = SubRequest( 3500s self, scope, param, param_index, fixturedef, _ispytest=True 3500s ) 3500s 3500s # Check if a higher-level scoped fixture accesses a lower level one. 3500s subrequest._check_scope(argname, self._scope, scope) 3500s try: 3500s # Call the fixture function. 3500s > fixturedef.execute(request=subrequest) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s request = > 3500s 3500s def execute(self, request: SubRequest) -> FixtureValue: 3500s # Get required arguments and register our own finish() 3500s # with their finalization. 3500s for argname in self.argnames: 3500s fixturedef = request._get_active_fixturedef(argname) 3500s if argname != "request": 3500s # PseudoFixtureDef is only for "request". 3500s assert isinstance(fixturedef, FixtureDef) 3500s fixturedef.addfinalizer(functools.partial(self.finish, request=request)) 3500s 3500s my_cache_key = self.cache_key(request) 3500s if self.cached_result is not None: 3500s # note: comparison with `==` can fail (or be expensive) for e.g. 3500s # numpy arrays (#6497). 3500s cache_key = self.cached_result[1] 3500s if my_cache_key is cache_key: 3500s if self.cached_result[2] is not None: 3500s _, val, tb = self.cached_result[2] 3500s raise val.with_traceback(tb) 3500s else: 3500s result = self.cached_result[0] 3500s return result 3500s # We have a previous but differently parametrized fixture instance 3500s # so we need to tear it down before creating a new one. 3500s self.finish(request) 3500s assert self.cached_result is None 3500s 3500s ihook = request.node.ihook 3500s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1069: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s kwargs = {'fixturedef': , 'request': ...uest 'postgresql_psycopg2_engine' for >} 3500s firstresult = True 3500s 3500s def __call__(self, **kwargs: object) -> Any: 3500s """Call the hook. 3500s 3500s Only accepts keyword arguments, which should match the hook 3500s specification. 3500s 3500s Returns the result(s) of calling all registered plugins, see 3500s :ref:`calling`. 3500s """ 3500s assert ( 3500s not self.is_historic() 3500s ), "Cannot directly call a historic hook - use call_historic instead." 3500s self._verify_all_args_are_provided(kwargs) 3500s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 3500s # Copy because plugins may register other plugins during iteration (#438). 3500s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = <_pytest.config.PytestPluginManager object at 0xe9079168> 3500s hook_name = 'pytest_fixture_setup' 3500s methods = [>] 3500s kwargs = {'fixturedef': , 'request': ...uest 'postgresql_psycopg2_engine' for >} 3500s firstresult = True 3500s 3500s def _hookexec( 3500s self, 3500s hook_name: str, 3500s methods: Sequence[HookImpl], 3500s kwargs: Mapping[str, object], 3500s firstresult: bool, 3500s ) -> object | list[object]: 3500s # called from all hookcaller instances. 3500s # enable_tracing will set its own wrapping function at self._inner_hookexec 3500s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturedef = 3500s request = > 3500s 3500s def pytest_fixture_setup( 3500s fixturedef: FixtureDef[FixtureValue], request: SubRequest 3500s ) -> FixtureValue: 3500s """Execution of fixture setup.""" 3500s kwargs = {} 3500s for argname in fixturedef.argnames: 3500s fixdef = request._get_active_fixturedef(argname) 3500s assert fixdef.cached_result is not None 3500s result, arg_cache_key, exc = fixdef.cached_result 3500s request._check_scope(argname, request._scope, fixdef._scope) 3500s kwargs[argname] = result 3500s 3500s fixturefunc = resolve_fixture_function(fixturedef, request) 3500s my_cache_key = fixturedef.cache_key(request) 3500s try: 3500s > result = call_fixture_func(fixturefunc, request, kwargs) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1123: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturefunc = 3500s request = > 3500s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv'), 'types_data': [{'B... False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}]} 3500s 3500s def call_fixture_func( 3500s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 3500s ) -> FixtureValue: 3500s if is_generator(fixturefunc): 3500s fixturefunc = cast( 3500s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 3500s ) 3500s generator = fixturefunc(**kwargs) 3500s try: 3500s > fixture_result = next(generator) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:895: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s iris_path = PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv') 3500s types_data = [{'BoolCol': False, 'BoolColWithNull': False, 'DateCol': '2000-01-03 00:00:00', 'DateColWithTz': '2000-01-01 00:00:00-...: False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}] 3500s 3500s @pytest.fixture 3500s def postgresql_psycopg2_engine(iris_path, types_data): 3500s sqlalchemy = pytest.importorskip("sqlalchemy") 3500s pytest.importorskip("psycopg2") 3500s engine = sqlalchemy.create_engine( 3500s "postgresql+psycopg2://postgres:postgres@localhost:5432/pandas", 3500s poolclass=sqlalchemy.pool.NullPool, 3500s ) 3500s > insp = sqlalchemy.inspect(engine) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:438: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s subject = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s raiseerr = True 3500s 3500s def inspect(subject, raiseerr=True): 3500s """Produce an inspection object for the given target. 3500s 3500s The returned value in some cases may be the 3500s same object as the one given, such as if a 3500s :class:`_orm.Mapper` object is passed. In other 3500s cases, it will be an instance of the registered 3500s inspection type for the given object, such as 3500s if an :class:`_engine.Engine` is passed, an 3500s :class:`_reflection.Inspector` object is returned. 3500s 3500s :param subject: the subject to be inspected. 3500s :param raiseerr: When ``True``, if the given subject 3500s does not 3500s correspond to a known SQLAlchemy inspected type, 3500s :class:`sqlalchemy.exc.NoInspectionAvailable` 3500s is raised. If ``False``, ``None`` is returned. 3500s 3500s """ 3500s type_ = type(subject) 3500s for cls in type_.__mro__: 3500s if cls in _registrars: 3500s reg = _registrars[cls] 3500s if reg is True: 3500s return subject 3500s > ret = reg(subject) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:64: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s @inspection._inspects(Engine) 3500s def _engine_insp(bind): 3500s > return Inspector._construct(Inspector._init_engine, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:182: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s init = 3500s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s @classmethod 3500s def _construct(cls, init, bind): 3500s 3500s if hasattr(bind.dialect, "inspector"): 3500s cls = bind.dialect.inspector 3500s 3500s self = cls.__new__(cls) 3500s > init(self, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:117: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s def _init_engine(self, engine): 3500s self.bind = self.engine = engine 3500s > engine.connect().close() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:128: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s close_with_result = False 3500s 3500s def connect(self, close_with_result=False): 3500s """Return a new :class:`_engine.Connection` object. 3500s 3500s The :class:`_engine.Connection` object is a facade that uses a DBAPI 3500s connection internally in order to communicate with the database. This 3500s connection is procured from the connection-holding :class:`_pool.Pool` 3500s referenced by this :class:`_engine.Engine`. When the 3500s :meth:`_engine.Connection.close` method of the 3500s :class:`_engine.Connection` object 3500s is called, the underlying DBAPI connection is then returned to the 3500s connection pool, where it may be used again in a subsequent call to 3500s :meth:`_engine.Engine.connect`. 3500s 3500s """ 3500s 3500s > return self._connection_cls(self, close_with_result=close_with_result) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3325: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s connection = None, close_with_result = False, _branch_from = None 3500s _execution_options = None, _dispatch = None, _has_events = None 3500s _allow_revalidate = True 3500s 3500s def __init__( 3500s self, 3500s engine, 3500s connection=None, 3500s close_with_result=False, 3500s _branch_from=None, 3500s _execution_options=None, 3500s _dispatch=None, 3500s _has_events=None, 3500s _allow_revalidate=True, 3500s ): 3500s """Construct a new Connection.""" 3500s self.engine = engine 3500s self.dialect = engine.dialect 3500s self.__branch_from = _branch_from 3500s 3500s if _branch_from: 3500s # branching is always "from" the root connection 3500s assert _branch_from.__branch_from is None 3500s self._dbapi_connection = connection 3500s self._execution_options = _execution_options 3500s self._echo = _branch_from._echo 3500s self.should_close_with_result = False 3500s self.dispatch = _dispatch 3500s self._has_events = _branch_from._has_events 3500s else: 3500s self._dbapi_connection = ( 3500s connection 3500s if connection is not None 3500s > else engine.raw_connection() 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:96: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s _connection = None 3500s 3500s def raw_connection(self, _connection=None): 3500s """Return a "raw" DBAPI connection from the connection pool. 3500s 3500s The returned object is a proxied version of the DBAPI 3500s connection object used by the underlying driver in use. 3500s The object will have all the same behavior as the real DBAPI 3500s connection, except that its ``close()`` method will result in the 3500s connection being returned to the pool, rather than being closed 3500s for real. 3500s 3500s This method provides direct DBAPI connection access for 3500s special situations when the API provided by 3500s :class:`_engine.Connection` 3500s is not needed. When a :class:`_engine.Connection` object is already 3500s present, the DBAPI connection is available using 3500s the :attr:`_engine.Connection.connection` accessor. 3500s 3500s .. seealso:: 3500s 3500s :ref:`dbapi_connections` 3500s 3500s """ 3500s > return self._wrap_pool_connect(self.pool.connect, _connection) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3404: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s return fn() 3500s except dialect.dbapi.Error as e: 3500s if connection is None: 3500s > Connection._handle_dbapi_exception_noconnection( 3500s e, dialect, self 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3374: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s e = OperationalError('connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused\n\tIs the server running on that host and accepting TCP/IP connections?\n') 3500s dialect = 3500s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s @classmethod 3500s def _handle_dbapi_exception_noconnection(cls, e, dialect, engine): 3500s exc_info = sys.exc_info() 3500s 3500s is_disconnect = dialect.is_disconnect(e, None, None) 3500s 3500s should_wrap = isinstance(e, dialect.dbapi.Error) 3500s 3500s if should_wrap: 3500s sqlalchemy_exception = exc.DBAPIError.instance( 3500s None, 3500s None, 3500s e, 3500s dialect.dbapi.Error, 3500s hide_parameters=engine.hide_parameters, 3500s connection_invalidated=is_disconnect, 3500s ) 3500s else: 3500s sqlalchemy_exception = None 3500s 3500s newraise = None 3500s 3500s if engine._has_events: 3500s ctx = ExceptionContextImpl( 3500s e, 3500s sqlalchemy_exception, 3500s engine, 3500s None, 3500s None, 3500s None, 3500s None, 3500s None, 3500s is_disconnect, 3500s True, 3500s ) 3500s for fn in engine.dispatch.handle_error: 3500s try: 3500s # handler returns an exception; 3500s # call next handler in a chain 3500s per_fn = fn(ctx) 3500s if per_fn is not None: 3500s ctx.chained_exception = newraise = per_fn 3500s except Exception as _raised: 3500s # handler raises an exception - stop processing 3500s newraise = _raised 3500s break 3500s 3500s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 3500s sqlalchemy_exception.connection_invalidated = ( 3500s is_disconnect 3500s ) = ctx.is_disconnect 3500s 3500s if newraise: 3500s util.raise_(newraise, with_traceback=exc_info[2], from_=e) 3500s elif should_wrap: 3500s > util.raise_( 3500s sqlalchemy_exception, with_traceback=exc_info[2], from_=e 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2208: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s dsn = 'host=localhost user=postgres password=postgres port=5432 dbname=pandas' 3500s connection_factory = None, cursor_factory = None 3500s kwargs = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s kwasync = {} 3500s 3500s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 3500s """ 3500s Create a new database connection. 3500s 3500s The connection parameters can be specified as a string: 3500s 3500s conn = psycopg2.connect("dbname=test user=postgres password=secret") 3500s 3500s or using a set of keyword arguments: 3500s 3500s conn = psycopg2.connect(database="test", user="postgres", password="secret") 3500s 3500s Or as a mix of both. The basic connection parameters are: 3500s 3500s - *dbname*: the database name 3500s - *database*: the database name (only as keyword argument) 3500s - *user*: user name used to authenticate 3500s - *password*: password used to authenticate 3500s - *host*: database host address (defaults to UNIX socket if not provided) 3500s - *port*: connection port number (defaults to 5432 if not provided) 3500s 3500s Using the *connection_factory* parameter a different class or connections 3500s factory can be specified. It should be a callable object taking a dsn 3500s argument. 3500s 3500s Using the *cursor_factory* parameter, a new default cursor factory will be 3500s used by cursor(). 3500s 3500s Using *async*=True an asynchronous connection will be created. *async_* is 3500s a valid alias (for Python versions where ``async`` is a keyword). 3500s 3500s Any other keyword parameter will be passed to the underlying client 3500s library: the list of supported parameters depends on the library version. 3500s 3500s """ 3500s kwasync = {} 3500s if 'async' in kwargs: 3500s kwasync['async'] = kwargs.pop('async') 3500s if 'async_' in kwargs: 3500s kwasync['async_'] = kwargs.pop('async_') 3500s 3500s dsn = _ext.make_dsn(dsn, **kwargs) 3500s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 3500s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 3500s E Is the server running on that host and accepting TCP/IP connections? 3500s E 3500s E (Background on this error at: https://sqlalche.me/e/14/e3q8) 3500s 3500s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 3500s __________________ test_read_iris_table[mysql_pymysql_engine] __________________ 3500s self = , sock = None 3500s 3500s def connect(self, sock=None): 3500s self._closed = False 3500s try: 3500s if sock is None: 3500s if self.unix_socket: 3500s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3500s sock.settimeout(self.connect_timeout) 3500s sock.connect(self.unix_socket) 3500s self.host_info = "Localhost via UNIX socket" 3500s self._secure = True 3500s if DEBUG: 3500s print("connected using unix_socket") 3500s else: 3500s kwargs = {} 3500s if self.bind_address is not None: 3500s kwargs["source_address"] = (self.bind_address, 0) 3500s while True: 3500s try: 3500s > sock = socket.create_connection( 3500s (self.host, self.port), self.connect_timeout, **kwargs 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:649: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s address = ('localhost', 3306), timeout = 10, source_address = None 3500s 3500s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 3500s source_address=None, *, all_errors=False): 3500s """Connect to *address* and return the socket object. 3500s 3500s Convenience function. Connect to *address* (a 2-tuple ``(host, 3500s port)``) and return the socket object. Passing the optional 3500s *timeout* parameter will set the timeout on the socket instance 3500s before attempting to connect. If no *timeout* is supplied, the 3500s global default timeout setting returned by :func:`getdefaulttimeout` 3500s is used. If *source_address* is set it must be a tuple of (host, port) 3500s for the socket to bind as a source address before making the connection. 3500s A host of '' or port 0 tells the OS to use the default. When a connection 3500s cannot be created, raises the last error if *all_errors* is False, 3500s and an ExceptionGroup of all errors if *all_errors* is True. 3500s """ 3500s 3500s host, port = address 3500s exceptions = [] 3500s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 3500s af, socktype, proto, canonname, sa = res 3500s sock = None 3500s try: 3500s sock = socket(af, socktype, proto) 3500s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 3500s sock.settimeout(timeout) 3500s if source_address: 3500s sock.bind(source_address) 3500s sock.connect(sa) 3500s # Break explicitly a reference cycle 3500s exceptions.clear() 3500s return sock 3500s 3500s except error as exc: 3500s if not all_errors: 3500s exceptions.clear() # raise only the last error 3500s exceptions.append(exc) 3500s if sock is not None: 3500s sock.close() 3500s 3500s if len(exceptions): 3500s try: 3500s if not all_errors: 3500s > raise exceptions[0] 3500s 3500s /usr/lib/python3.12/socket.py:853: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s address = ('localhost', 3306), timeout = 10, source_address = None 3500s 3500s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 3500s source_address=None, *, all_errors=False): 3500s """Connect to *address* and return the socket object. 3500s 3500s Convenience function. Connect to *address* (a 2-tuple ``(host, 3500s port)``) and return the socket object. Passing the optional 3500s *timeout* parameter will set the timeout on the socket instance 3500s before attempting to connect. If no *timeout* is supplied, the 3500s global default timeout setting returned by :func:`getdefaulttimeout` 3500s is used. If *source_address* is set it must be a tuple of (host, port) 3500s for the socket to bind as a source address before making the connection. 3500s A host of '' or port 0 tells the OS to use the default. When a connection 3500s cannot be created, raises the last error if *all_errors* is False, 3500s and an ExceptionGroup of all errors if *all_errors* is True. 3500s """ 3500s 3500s host, port = address 3500s exceptions = [] 3500s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 3500s af, socktype, proto, canonname, sa = res 3500s sock = None 3500s try: 3500s sock = socket(af, socktype, proto) 3500s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 3500s sock.settimeout(timeout) 3500s if source_address: 3500s sock.bind(source_address) 3500s > sock.connect(sa) 3500s E ConnectionRefusedError: [Errno 111] Connection refused 3500s 3500s /usr/lib/python3.12/socket.py:838: ConnectionRefusedError 3500s 3500s During handling of the above exception, another exception occurred: 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __init__( 3500s self, 3500s *, 3500s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 3500s password="", 3500s host=None, 3500s database=None, 3500s unix_socket=None, 3500s port=0, 3500s charset="", 3500s collation=None, 3500s sql_mode=None, 3500s read_default_file=None, 3500s conv=None, 3500s use_unicode=True, 3500s client_flag=0, 3500s cursorclass=Cursor, 3500s init_command=None, 3500s connect_timeout=10, 3500s read_default_group=None, 3500s autocommit=False, 3500s local_infile=False, 3500s max_allowed_packet=16 * 1024 * 1024, 3500s defer_connect=False, 3500s auth_plugin_map=None, 3500s read_timeout=None, 3500s write_timeout=None, 3500s bind_address=None, 3500s binary_prefix=False, 3500s program_name=None, 3500s server_public_key=None, 3500s ssl=None, 3500s ssl_ca=None, 3500s ssl_cert=None, 3500s ssl_disabled=None, 3500s ssl_key=None, 3500s ssl_key_password=None, 3500s ssl_verify_cert=None, 3500s ssl_verify_identity=None, 3500s compress=None, # not supported 3500s named_pipe=None, # not supported 3500s passwd=None, # deprecated 3500s db=None, # deprecated 3500s ): 3500s if db is not None and database is None: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 3500s database = db 3500s if passwd is not None and not password: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn( 3500s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 3500s # ) 3500s password = passwd 3500s 3500s if compress or named_pipe: 3500s raise NotImplementedError( 3500s "compress and named_pipe arguments are not supported" 3500s ) 3500s 3500s self._local_infile = bool(local_infile) 3500s if self._local_infile: 3500s client_flag |= CLIENT.LOCAL_FILES 3500s 3500s if read_default_group and not read_default_file: 3500s if sys.platform.startswith("win"): 3500s read_default_file = "c:\\my.ini" 3500s else: 3500s read_default_file = "/etc/my.cnf" 3500s 3500s if read_default_file: 3500s if not read_default_group: 3500s read_default_group = "client" 3500s 3500s cfg = Parser() 3500s cfg.read(os.path.expanduser(read_default_file)) 3500s 3500s def _config(key, arg): 3500s if arg: 3500s return arg 3500s try: 3500s return cfg.get(read_default_group, key) 3500s except Exception: 3500s return arg 3500s 3500s user = _config("user", user) 3500s password = _config("password", password) 3500s host = _config("host", host) 3500s database = _config("database", database) 3500s unix_socket = _config("socket", unix_socket) 3500s port = int(_config("port", port)) 3500s bind_address = _config("bind-address", bind_address) 3500s charset = _config("default-character-set", charset) 3500s if not ssl: 3500s ssl = {} 3500s if isinstance(ssl, dict): 3500s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 3500s value = _config("ssl-" + key, ssl.get(key)) 3500s if value: 3500s ssl[key] = value 3500s 3500s self.ssl = False 3500s if not ssl_disabled: 3500s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 3500s ssl = { 3500s "ca": ssl_ca, 3500s "check_hostname": bool(ssl_verify_identity), 3500s "verify_mode": ssl_verify_cert 3500s if ssl_verify_cert is not None 3500s else False, 3500s } 3500s if ssl_cert is not None: 3500s ssl["cert"] = ssl_cert 3500s if ssl_key is not None: 3500s ssl["key"] = ssl_key 3500s if ssl_key_password is not None: 3500s ssl["password"] = ssl_key_password 3500s if ssl: 3500s if not SSL_ENABLED: 3500s raise NotImplementedError("ssl module not found") 3500s self.ssl = True 3500s client_flag |= CLIENT.SSL 3500s self.ctx = self._create_ssl_ctx(ssl) 3500s 3500s self.host = host or "localhost" 3500s self.port = port or 3306 3500s if type(self.port) is not int: 3500s raise ValueError("port should be of type int") 3500s self.user = user or DEFAULT_USER 3500s self.password = password or b"" 3500s if isinstance(self.password, str): 3500s self.password = self.password.encode("latin1") 3500s self.db = database 3500s self.unix_socket = unix_socket 3500s self.bind_address = bind_address 3500s if not (0 < connect_timeout <= 31536000): 3500s raise ValueError("connect_timeout should be >0 and <=31536000") 3500s self.connect_timeout = connect_timeout or None 3500s if read_timeout is not None and read_timeout <= 0: 3500s raise ValueError("read_timeout should be > 0") 3500s self._read_timeout = read_timeout 3500s if write_timeout is not None and write_timeout <= 0: 3500s raise ValueError("write_timeout should be > 0") 3500s self._write_timeout = write_timeout 3500s 3500s self.charset = charset or DEFAULT_CHARSET 3500s self.collation = collation 3500s self.use_unicode = use_unicode 3500s 3500s self.encoding = charset_by_name(self.charset).encoding 3500s 3500s client_flag |= CLIENT.CAPABILITIES 3500s if self.db: 3500s client_flag |= CLIENT.CONNECT_WITH_DB 3500s 3500s self.client_flag = client_flag 3500s 3500s self.cursorclass = cursorclass 3500s 3500s self._result = None 3500s self._affected_rows = 0 3500s self.host_info = "Not connected" 3500s 3500s # specified autocommit mode. None means use server default. 3500s self.autocommit_mode = autocommit 3500s 3500s if conv is None: 3500s conv = converters.conversions 3500s 3500s # Need for MySQLdb compatibility. 3500s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 3500s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 3500s self.sql_mode = sql_mode 3500s self.init_command = init_command 3500s self.max_allowed_packet = max_allowed_packet 3500s self._auth_plugin_map = auth_plugin_map or {} 3500s self._binary_prefix = binary_prefix 3500s self.server_public_key = server_public_key 3500s 3500s self._connect_attrs = { 3500s "_client_name": "pymysql", 3500s "_client_version": VERSION_STRING, 3500s "_pid": str(os.getpid()), 3500s } 3500s 3500s if program_name: 3500s self._connect_attrs["program_name"] = program_name 3500s 3500s if defer_connect: 3500s self._sock = None 3500s else: 3500s > self.connect() 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = , sock = None 3500s 3500s def connect(self, sock=None): 3500s self._closed = False 3500s try: 3500s if sock is None: 3500s if self.unix_socket: 3500s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3500s sock.settimeout(self.connect_timeout) 3500s sock.connect(self.unix_socket) 3500s self.host_info = "Localhost via UNIX socket" 3500s self._secure = True 3500s if DEBUG: 3500s print("connected using unix_socket") 3500s else: 3500s kwargs = {} 3500s if self.bind_address is not None: 3500s kwargs["source_address"] = (self.bind_address, 0) 3500s while True: 3500s try: 3500s sock = socket.create_connection( 3500s (self.host, self.port), self.connect_timeout, **kwargs 3500s ) 3500s break 3500s except OSError as e: 3500s if e.errno == errno.EINTR: 3500s continue 3500s raise 3500s self.host_info = "socket %s:%d" % (self.host, self.port) 3500s if DEBUG: 3500s print("connected using socket") 3500s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 3500s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 3500s sock.settimeout(None) 3500s 3500s self._sock = sock 3500s self._rfile = sock.makefile("rb") 3500s self._next_seq_id = 0 3500s 3500s self._get_server_information() 3500s self._request_authentication() 3500s 3500s # Send "SET NAMES" query on init for: 3500s # - Ensure charaset (and collation) is set to the server. 3500s # - collation_id in handshake packet may be ignored. 3500s # - If collation is not specified, we don't know what is server's 3500s # default collation for the charset. For example, default collation 3500s # of utf8mb4 is: 3500s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 3500s # - MySQL 8.0: utf8mb4_0900_ai_ci 3500s # 3500s # Reference: 3500s # - https://github.com/PyMySQL/PyMySQL/issues/1092 3500s # - https://github.com/wagtail/wagtail/issues/9477 3500s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 3500s self.set_character_set(self.charset, self.collation) 3500s 3500s if self.sql_mode is not None: 3500s c = self.cursor() 3500s c.execute("SET sql_mode=%s", (self.sql_mode,)) 3500s c.close() 3500s 3500s if self.init_command is not None: 3500s c = self.cursor() 3500s c.execute(self.init_command) 3500s c.close() 3500s 3500s if self.autocommit_mode is not None: 3500s self.autocommit(self.autocommit_mode) 3500s except BaseException as e: 3500s self._rfile = None 3500s if sock is not None: 3500s try: 3500s sock.close() 3500s except: # noqa 3500s pass 3500s 3500s if isinstance(e, (OSError, IOError)): 3500s exc = err.OperationalError( 3500s CR.CR_CONN_HOST_ERROR, 3500s f"Can't connect to MySQL server on {self.host!r} ({e})", 3500s ) 3500s # Keep original exception and traceback to investigate error. 3500s exc.original_exception = e 3500s exc.traceback = traceback.format_exc() 3500s if DEBUG: 3500s print(exc.traceback) 3500s > raise exc 3500s E pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 3500s 3500s The above exception was the direct cause of the following exception: 3500s 3500s conn = 'mysql_pymysql_engine' 3500s request = > 3500s 3500s @pytest.mark.db 3500s @pytest.mark.parametrize("conn", sqlalchemy_connectable_iris) 3500s def test_read_iris_table(conn, request): 3500s # GH 51015 if conn = sqlite_iris_str 3500s > conn = request.getfixturevalue(conn) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:692: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'mysql_pymysql_engine' 3500s 3500s def getfixturevalue(self, argname: str) -> Any: 3500s """Dynamically run a named fixture function. 3500s 3500s Declaring fixtures via function argument is recommended where possible. 3500s But if you can only decide whether to use another fixture at test 3500s setup time, you may use this function to retrieve it inside a fixture 3500s or test function body. 3500s 3500s This method can be used during the test setup phase or the test run 3500s phase, but during the test teardown phase a fixture's value may not 3500s be available. 3500s 3500s :param argname: 3500s The fixture name. 3500s :raises pytest.FixtureLookupError: 3500s If the given fixture could not be found. 3500s """ 3500s > fixturedef = self._get_active_fixturedef(argname) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:585: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'mysql_pymysql_engine' 3500s 3500s def _get_active_fixturedef( 3500s self, argname: str 3500s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3500s try: 3500s return self._fixture_defs[argname] 3500s except KeyError: 3500s try: 3500s fixturedef = self._getnextfixturedef(argname) 3500s except FixtureLookupError: 3500s if argname == "request": 3500s cached_result = (self, [0], None) 3500s return PseudoFixtureDef(cached_result, Scope.Function) 3500s raise 3500s # Remove indent to prevent the python3 exception 3500s # from leaking into the call. 3500s > self._compute_fixture_value(fixturedef) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s fixturedef = 3500s 3500s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3500s """Create a SubRequest based on "self" and call the execute method 3500s of the given FixtureDef object. 3500s 3500s This will force the FixtureDef object to throw away any previous 3500s results and compute a new fixture value, which will be stored into 3500s the FixtureDef object itself. 3500s """ 3500s # prepare a subrequest object before calling fixture function 3500s # (latter managed by fixturedef) 3500s argname = fixturedef.argname 3500s funcitem = self._pyfuncitem 3500s scope = fixturedef._scope 3500s try: 3500s callspec = funcitem.callspec 3500s except AttributeError: 3500s callspec = None 3500s if callspec is not None and argname in callspec.params: 3500s param = callspec.params[argname] 3500s param_index = callspec.indices[argname] 3500s # If a parametrize invocation set a scope it will override 3500s # the static scope defined with the fixture function. 3500s with suppress(KeyError): 3500s scope = callspec._arg2scope[argname] 3500s else: 3500s param = NOTSET 3500s param_index = 0 3500s has_params = fixturedef.params is not None 3500s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3500s if has_params and fixtures_not_supported: 3500s msg = ( 3500s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3500s "Node id: {nodeid}\n" 3500s "Function type: {typename}" 3500s ).format( 3500s name=funcitem.name, 3500s nodeid=funcitem.nodeid, 3500s typename=type(funcitem).__name__, 3500s ) 3500s fail(msg, pytrace=False) 3500s if has_params: 3500s frame = inspect.stack()[3] 3500s frameinfo = inspect.getframeinfo(frame[0]) 3500s source_path = absolutepath(frameinfo.filename) 3500s source_lineno = frameinfo.lineno 3500s try: 3500s source_path_str = str( 3500s source_path.relative_to(funcitem.config.rootpath) 3500s ) 3500s except ValueError: 3500s source_path_str = str(source_path) 3500s msg = ( 3500s "The requested fixture has no parameter defined for test:\n" 3500s " {}\n\n" 3500s "Requested fixture '{}' defined in:\n{}" 3500s "\n\nRequested here:\n{}:{}".format( 3500s funcitem.nodeid, 3500s fixturedef.argname, 3500s getlocation(fixturedef.func, funcitem.config.rootpath), 3500s source_path_str, 3500s source_lineno, 3500s ) 3500s ) 3500s fail(msg, pytrace=False) 3500s 3500s subrequest = SubRequest( 3500s self, scope, param, param_index, fixturedef, _ispytest=True 3500s ) 3500s 3500s # Check if a higher-level scoped fixture accesses a lower level one. 3500s subrequest._check_scope(argname, self._scope, scope) 3500s try: 3500s # Call the fixture function. 3500s > fixturedef.execute(request=subrequest) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s request = > 3500s 3500s def execute(self, request: SubRequest) -> FixtureValue: 3500s # Get required arguments and register our own finish() 3500s # with their finalization. 3500s for argname in self.argnames: 3500s fixturedef = request._get_active_fixturedef(argname) 3500s if argname != "request": 3500s # PseudoFixtureDef is only for "request". 3500s assert isinstance(fixturedef, FixtureDef) 3500s fixturedef.addfinalizer(functools.partial(self.finish, request=request)) 3500s 3500s my_cache_key = self.cache_key(request) 3500s if self.cached_result is not None: 3500s # note: comparison with `==` can fail (or be expensive) for e.g. 3500s # numpy arrays (#6497). 3500s cache_key = self.cached_result[1] 3500s if my_cache_key is cache_key: 3500s if self.cached_result[2] is not None: 3500s _, val, tb = self.cached_result[2] 3500s raise val.with_traceback(tb) 3500s else: 3500s result = self.cached_result[0] 3500s return result 3500s # We have a previous but differently parametrized fixture instance 3500s # so we need to tear it down before creating a new one. 3500s self.finish(request) 3500s assert self.cached_result is None 3500s 3500s ihook = request.node.ihook 3500s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1069: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s kwargs = {'fixturedef': , 'request': >} 3500s firstresult = True 3500s 3500s def __call__(self, **kwargs: object) -> Any: 3500s """Call the hook. 3500s 3500s Only accepts keyword arguments, which should match the hook 3500s specification. 3500s 3500s Returns the result(s) of calling all registered plugins, see 3500s :ref:`calling`. 3500s """ 3500s assert ( 3500s not self.is_historic() 3500s ), "Cannot directly call a historic hook - use call_historic instead." 3500s self._verify_all_args_are_provided(kwargs) 3500s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 3500s # Copy because plugins may register other plugins during iteration (#438). 3500s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = <_pytest.config.PytestPluginManager object at 0xe9079168> 3500s hook_name = 'pytest_fixture_setup' 3500s methods = [>] 3500s kwargs = {'fixturedef': , 'request': >} 3500s firstresult = True 3500s 3500s def _hookexec( 3500s self, 3500s hook_name: str, 3500s methods: Sequence[HookImpl], 3500s kwargs: Mapping[str, object], 3500s firstresult: bool, 3500s ) -> object | list[object]: 3500s # called from all hookcaller instances. 3500s # enable_tracing will set its own wrapping function at self._inner_hookexec 3500s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturedef = 3500s request = > 3500s 3500s def pytest_fixture_setup( 3500s fixturedef: FixtureDef[FixtureValue], request: SubRequest 3500s ) -> FixtureValue: 3500s """Execution of fixture setup.""" 3500s kwargs = {} 3500s for argname in fixturedef.argnames: 3500s fixdef = request._get_active_fixturedef(argname) 3500s assert fixdef.cached_result is not None 3500s result, arg_cache_key, exc = fixdef.cached_result 3500s request._check_scope(argname, request._scope, fixdef._scope) 3500s kwargs[argname] = result 3500s 3500s fixturefunc = resolve_fixture_function(fixturedef, request) 3500s my_cache_key = fixturedef.cache_key(request) 3500s try: 3500s > result = call_fixture_func(fixturefunc, request, kwargs) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1123: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturefunc = 3500s request = > 3500s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv'), 'types_data': [{'B... False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}]} 3500s 3500s def call_fixture_func( 3500s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 3500s ) -> FixtureValue: 3500s if is_generator(fixturefunc): 3500s fixturefunc = cast( 3500s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 3500s ) 3500s generator = fixturefunc(**kwargs) 3500s try: 3500s > fixture_result = next(generator) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:895: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s iris_path = PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv') 3500s types_data = [{'BoolCol': False, 'BoolColWithNull': False, 'DateCol': '2000-01-03 00:00:00', 'DateColWithTz': '2000-01-01 00:00:00-...: False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}] 3500s 3500s @pytest.fixture 3500s def mysql_pymysql_engine(iris_path, types_data): 3500s sqlalchemy = pytest.importorskip("sqlalchemy") 3500s pymysql = pytest.importorskip("pymysql") 3500s engine = sqlalchemy.create_engine( 3500s "mysql+pymysql://root@localhost:3306/pandas", 3500s connect_args={"client_flag": pymysql.constants.CLIENT.MULTI_STATEMENTS}, 3500s poolclass=sqlalchemy.pool.NullPool, 3500s ) 3500s > insp = sqlalchemy.inspect(engine) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:409: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s subject = Engine(mysql+pymysql://root@localhost:3306/pandas), raiseerr = True 3500s 3500s def inspect(subject, raiseerr=True): 3500s """Produce an inspection object for the given target. 3500s 3500s The returned value in some cases may be the 3500s same object as the one given, such as if a 3500s :class:`_orm.Mapper` object is passed. In other 3500s cases, it will be an instance of the registered 3500s inspection type for the given object, such as 3500s if an :class:`_engine.Engine` is passed, an 3500s :class:`_reflection.Inspector` object is returned. 3500s 3500s :param subject: the subject to be inspected. 3500s :param raiseerr: When ``True``, if the given subject 3500s does not 3500s correspond to a known SQLAlchemy inspected type, 3500s :class:`sqlalchemy.exc.NoInspectionAvailable` 3500s is raised. If ``False``, ``None`` is returned. 3500s 3500s """ 3500s type_ = type(subject) 3500s for cls in type_.__mro__: 3500s if cls in _registrars: 3500s reg = _registrars[cls] 3500s if reg is True: 3500s return subject 3500s > ret = reg(subject) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:64: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s @inspection._inspects(Engine) 3500s def _engine_insp(bind): 3500s > return Inspector._construct(Inspector._init_engine, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:182: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s init = 3500s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s @classmethod 3500s def _construct(cls, init, bind): 3500s 3500s if hasattr(bind.dialect, "inspector"): 3500s cls = bind.dialect.inspector 3500s 3500s self = cls.__new__(cls) 3500s > init(self, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:117: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s def _init_engine(self, engine): 3500s self.bind = self.engine = engine 3500s > engine.connect().close() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:128: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s close_with_result = False 3500s 3500s def connect(self, close_with_result=False): 3500s """Return a new :class:`_engine.Connection` object. 3500s 3500s The :class:`_engine.Connection` object is a facade that uses a DBAPI 3500s connection internally in order to communicate with the database. This 3500s connection is procured from the connection-holding :class:`_pool.Pool` 3500s referenced by this :class:`_engine.Engine`. When the 3500s :meth:`_engine.Connection.close` method of the 3500s :class:`_engine.Connection` object 3500s is called, the underlying DBAPI connection is then returned to the 3500s connection pool, where it may be used again in a subsequent call to 3500s :meth:`_engine.Engine.connect`. 3500s 3500s """ 3500s 3500s > return self._connection_cls(self, close_with_result=close_with_result) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3325: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 3500s close_with_result = False, _branch_from = None, _execution_options = None 3500s _dispatch = None, _has_events = None, _allow_revalidate = True 3500s 3500s def __init__( 3500s self, 3500s engine, 3500s connection=None, 3500s close_with_result=False, 3500s _branch_from=None, 3500s _execution_options=None, 3500s _dispatch=None, 3500s _has_events=None, 3500s _allow_revalidate=True, 3500s ): 3500s """Construct a new Connection.""" 3500s self.engine = engine 3500s self.dialect = engine.dialect 3500s self.__branch_from = _branch_from 3500s 3500s if _branch_from: 3500s # branching is always "from" the root connection 3500s assert _branch_from.__branch_from is None 3500s self._dbapi_connection = connection 3500s self._execution_options = _execution_options 3500s self._echo = _branch_from._echo 3500s self.should_close_with_result = False 3500s self.dispatch = _dispatch 3500s self._has_events = _branch_from._has_events 3500s else: 3500s self._dbapi_connection = ( 3500s connection 3500s if connection is not None 3500s > else engine.raw_connection() 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:96: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas), _connection = None 3500s 3500s def raw_connection(self, _connection=None): 3500s """Return a "raw" DBAPI connection from the connection pool. 3500s 3500s The returned object is a proxied version of the DBAPI 3500s connection object used by the underlying driver in use. 3500s The object will have all the same behavior as the real DBAPI 3500s connection, except that its ``close()`` method will result in the 3500s connection being returned to the pool, rather than being closed 3500s for real. 3500s 3500s This method provides direct DBAPI connection access for 3500s special situations when the API provided by 3500s :class:`_engine.Connection` 3500s is not needed. When a :class:`_engine.Connection` object is already 3500s present, the DBAPI connection is available using 3500s the :attr:`_engine.Connection.connection` accessor. 3500s 3500s .. seealso:: 3500s 3500s :ref:`dbapi_connections` 3500s 3500s """ 3500s > return self._wrap_pool_connect(self.pool.connect, _connection) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3404: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s return fn() 3500s except dialect.dbapi.Error as e: 3500s if connection is None: 3500s > Connection._handle_dbapi_exception_noconnection( 3500s e, dialect, self 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3374: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s e = OperationalError(2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3500s dialect = 3500s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s @classmethod 3500s def _handle_dbapi_exception_noconnection(cls, e, dialect, engine): 3500s exc_info = sys.exc_info() 3500s 3500s is_disconnect = dialect.is_disconnect(e, None, None) 3500s 3500s should_wrap = isinstance(e, dialect.dbapi.Error) 3500s 3500s if should_wrap: 3500s sqlalchemy_exception = exc.DBAPIError.instance( 3500s None, 3500s None, 3500s e, 3500s dialect.dbapi.Error, 3500s hide_parameters=engine.hide_parameters, 3500s connection_invalidated=is_disconnect, 3500s ) 3500s else: 3500s sqlalchemy_exception = None 3500s 3500s newraise = None 3500s 3500s if engine._has_events: 3500s ctx = ExceptionContextImpl( 3500s e, 3500s sqlalchemy_exception, 3500s engine, 3500s None, 3500s None, 3500s None, 3500s None, 3500s None, 3500s is_disconnect, 3500s True, 3500s ) 3500s for fn in engine.dispatch.handle_error: 3500s try: 3500s # handler returns an exception; 3500s # call next handler in a chain 3500s per_fn = fn(ctx) 3500s if per_fn is not None: 3500s ctx.chained_exception = newraise = per_fn 3500s except Exception as _raised: 3500s # handler raises an exception - stop processing 3500s newraise = _raised 3500s break 3500s 3500s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 3500s sqlalchemy_exception.connection_invalidated = ( 3500s is_disconnect 3500s ) = ctx.is_disconnect 3500s 3500s if newraise: 3500s util.raise_(newraise, with_traceback=exc_info[2], from_=e) 3500s elif should_wrap: 3500s > util.raise_( 3500s sqlalchemy_exception, with_traceback=exc_info[2], from_=e 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2208: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __init__( 3500s self, 3500s *, 3500s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 3500s password="", 3500s host=None, 3500s database=None, 3500s unix_socket=None, 3500s port=0, 3500s charset="", 3500s collation=None, 3500s sql_mode=None, 3500s read_default_file=None, 3500s conv=None, 3500s use_unicode=True, 3500s client_flag=0, 3500s cursorclass=Cursor, 3500s init_command=None, 3500s connect_timeout=10, 3500s read_default_group=None, 3500s autocommit=False, 3500s local_infile=False, 3500s max_allowed_packet=16 * 1024 * 1024, 3500s defer_connect=False, 3500s auth_plugin_map=None, 3500s read_timeout=None, 3500s write_timeout=None, 3500s bind_address=None, 3500s binary_prefix=False, 3500s program_name=None, 3500s server_public_key=None, 3500s ssl=None, 3500s ssl_ca=None, 3500s ssl_cert=None, 3500s ssl_disabled=None, 3500s ssl_key=None, 3500s ssl_key_password=None, 3500s ssl_verify_cert=None, 3500s ssl_verify_identity=None, 3500s compress=None, # not supported 3500s named_pipe=None, # not supported 3500s passwd=None, # deprecated 3500s db=None, # deprecated 3500s ): 3500s if db is not None and database is None: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 3500s database = db 3500s if passwd is not None and not password: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn( 3500s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 3500s # ) 3500s password = passwd 3500s 3500s if compress or named_pipe: 3500s raise NotImplementedError( 3500s "compress and named_pipe arguments are not supported" 3500s ) 3500s 3500s self._local_infile = bool(local_infile) 3500s if self._local_infile: 3500s client_flag |= CLIENT.LOCAL_FILES 3500s 3500s if read_default_group and not read_default_file: 3500s if sys.platform.startswith("win"): 3500s read_default_file = "c:\\my.ini" 3500s else: 3500s read_default_file = "/etc/my.cnf" 3500s 3500s if read_default_file: 3500s if not read_default_group: 3500s read_default_group = "client" 3500s 3500s cfg = Parser() 3500s cfg.read(os.path.expanduser(read_default_file)) 3500s 3500s def _config(key, arg): 3500s if arg: 3500s return arg 3500s try: 3500s return cfg.get(read_default_group, key) 3500s except Exception: 3500s return arg 3500s 3500s user = _config("user", user) 3500s password = _config("password", password) 3500s host = _config("host", host) 3500s database = _config("database", database) 3500s unix_socket = _config("socket", unix_socket) 3500s port = int(_config("port", port)) 3500s bind_address = _config("bind-address", bind_address) 3500s charset = _config("default-character-set", charset) 3500s if not ssl: 3500s ssl = {} 3500s if isinstance(ssl, dict): 3500s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 3500s value = _config("ssl-" + key, ssl.get(key)) 3500s if value: 3500s ssl[key] = value 3500s 3500s self.ssl = False 3500s if not ssl_disabled: 3500s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 3500s ssl = { 3500s "ca": ssl_ca, 3500s "check_hostname": bool(ssl_verify_identity), 3500s "verify_mode": ssl_verify_cert 3500s if ssl_verify_cert is not None 3500s else False, 3500s } 3500s if ssl_cert is not None: 3500s ssl["cert"] = ssl_cert 3500s if ssl_key is not None: 3500s ssl["key"] = ssl_key 3500s if ssl_key_password is not None: 3500s ssl["password"] = ssl_key_password 3500s if ssl: 3500s if not SSL_ENABLED: 3500s raise NotImplementedError("ssl module not found") 3500s self.ssl = True 3500s client_flag |= CLIENT.SSL 3500s self.ctx = self._create_ssl_ctx(ssl) 3500s 3500s self.host = host or "localhost" 3500s self.port = port or 3306 3500s if type(self.port) is not int: 3500s raise ValueError("port should be of type int") 3500s self.user = user or DEFAULT_USER 3500s self.password = password or b"" 3500s if isinstance(self.password, str): 3500s self.password = self.password.encode("latin1") 3500s self.db = database 3500s self.unix_socket = unix_socket 3500s self.bind_address = bind_address 3500s if not (0 < connect_timeout <= 31536000): 3500s raise ValueError("connect_timeout should be >0 and <=31536000") 3500s self.connect_timeout = connect_timeout or None 3500s if read_timeout is not None and read_timeout <= 0: 3500s raise ValueError("read_timeout should be > 0") 3500s self._read_timeout = read_timeout 3500s if write_timeout is not None and write_timeout <= 0: 3500s raise ValueError("write_timeout should be > 0") 3500s self._write_timeout = write_timeout 3500s 3500s self.charset = charset or DEFAULT_CHARSET 3500s self.collation = collation 3500s self.use_unicode = use_unicode 3500s 3500s self.encoding = charset_by_name(self.charset).encoding 3500s 3500s client_flag |= CLIENT.CAPABILITIES 3500s if self.db: 3500s client_flag |= CLIENT.CONNECT_WITH_DB 3500s 3500s self.client_flag = client_flag 3500s 3500s self.cursorclass = cursorclass 3500s 3500s self._result = None 3500s self._affected_rows = 0 3500s self.host_info = "Not connected" 3500s 3500s # specified autocommit mode. None means use server default. 3500s self.autocommit_mode = autocommit 3500s 3500s if conv is None: 3500s conv = converters.conversions 3500s 3500s # Need for MySQLdb compatibility. 3500s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 3500s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 3500s self.sql_mode = sql_mode 3500s self.init_command = init_command 3500s self.max_allowed_packet = max_allowed_packet 3500s self._auth_plugin_map = auth_plugin_map or {} 3500s self._binary_prefix = binary_prefix 3500s self.server_public_key = server_public_key 3500s 3500s self._connect_attrs = { 3500s "_client_name": "pymysql", 3500s "_client_version": VERSION_STRING, 3500s "_pid": str(os.getpid()), 3500s } 3500s 3500s if program_name: 3500s self._connect_attrs["program_name"] = program_name 3500s 3500s if defer_connect: 3500s self._sock = None 3500s else: 3500s > self.connect() 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = , sock = None 3500s 3500s def connect(self, sock=None): 3500s self._closed = False 3500s try: 3500s if sock is None: 3500s if self.unix_socket: 3500s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3500s sock.settimeout(self.connect_timeout) 3500s sock.connect(self.unix_socket) 3500s self.host_info = "Localhost via UNIX socket" 3500s self._secure = True 3500s if DEBUG: 3500s print("connected using unix_socket") 3500s else: 3500s kwargs = {} 3500s if self.bind_address is not None: 3500s kwargs["source_address"] = (self.bind_address, 0) 3500s while True: 3500s try: 3500s sock = socket.create_connection( 3500s (self.host, self.port), self.connect_timeout, **kwargs 3500s ) 3500s break 3500s except OSError as e: 3500s if e.errno == errno.EINTR: 3500s continue 3500s raise 3500s self.host_info = "socket %s:%d" % (self.host, self.port) 3500s if DEBUG: 3500s print("connected using socket") 3500s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 3500s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 3500s sock.settimeout(None) 3500s 3500s self._sock = sock 3500s self._rfile = sock.makefile("rb") 3500s self._next_seq_id = 0 3500s 3500s self._get_server_information() 3500s self._request_authentication() 3500s 3500s # Send "SET NAMES" query on init for: 3500s # - Ensure charaset (and collation) is set to the server. 3500s # - collation_id in handshake packet may be ignored. 3500s # - If collation is not specified, we don't know what is server's 3500s # default collation for the charset. For example, default collation 3500s # of utf8mb4 is: 3500s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 3500s # - MySQL 8.0: utf8mb4_0900_ai_ci 3500s # 3500s # Reference: 3500s # - https://github.com/PyMySQL/PyMySQL/issues/1092 3500s # - https://github.com/wagtail/wagtail/issues/9477 3500s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 3500s self.set_character_set(self.charset, self.collation) 3500s 3500s if self.sql_mode is not None: 3500s c = self.cursor() 3500s c.execute("SET sql_mode=%s", (self.sql_mode,)) 3500s c.close() 3500s 3500s if self.init_command is not None: 3500s c = self.cursor() 3500s c.execute(self.init_command) 3500s c.close() 3500s 3500s if self.autocommit_mode is not None: 3500s self.autocommit(self.autocommit_mode) 3500s except BaseException as e: 3500s self._rfile = None 3500s if sock is not None: 3500s try: 3500s sock.close() 3500s except: # noqa 3500s pass 3500s 3500s if isinstance(e, (OSError, IOError)): 3500s exc = err.OperationalError( 3500s CR.CR_CONN_HOST_ERROR, 3500s f"Can't connect to MySQL server on {self.host!r} ({e})", 3500s ) 3500s # Keep original exception and traceback to investigate error. 3500s exc.original_exception = e 3500s exc.traceback = traceback.format_exc() 3500s if DEBUG: 3500s print(exc.traceback) 3500s > raise exc 3500s E sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3500s E (Background on this error at: https://sqlalche.me/e/14/e3q8) 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 3500s ___________________ test_read_iris_table[mysql_pymysql_conn] ___________________ 3500s self = , sock = None 3500s 3500s def connect(self, sock=None): 3500s self._closed = False 3500s try: 3500s if sock is None: 3500s if self.unix_socket: 3500s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3500s sock.settimeout(self.connect_timeout) 3500s sock.connect(self.unix_socket) 3500s self.host_info = "Localhost via UNIX socket" 3500s self._secure = True 3500s if DEBUG: 3500s print("connected using unix_socket") 3500s else: 3500s kwargs = {} 3500s if self.bind_address is not None: 3500s kwargs["source_address"] = (self.bind_address, 0) 3500s while True: 3500s try: 3500s > sock = socket.create_connection( 3500s (self.host, self.port), self.connect_timeout, **kwargs 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:649: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s address = ('localhost', 3306), timeout = 10, source_address = None 3500s 3500s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 3500s source_address=None, *, all_errors=False): 3500s """Connect to *address* and return the socket object. 3500s 3500s Convenience function. Connect to *address* (a 2-tuple ``(host, 3500s port)``) and return the socket object. Passing the optional 3500s *timeout* parameter will set the timeout on the socket instance 3500s before attempting to connect. If no *timeout* is supplied, the 3500s global default timeout setting returned by :func:`getdefaulttimeout` 3500s is used. If *source_address* is set it must be a tuple of (host, port) 3500s for the socket to bind as a source address before making the connection. 3500s A host of '' or port 0 tells the OS to use the default. When a connection 3500s cannot be created, raises the last error if *all_errors* is False, 3500s and an ExceptionGroup of all errors if *all_errors* is True. 3500s """ 3500s 3500s host, port = address 3500s exceptions = [] 3500s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 3500s af, socktype, proto, canonname, sa = res 3500s sock = None 3500s try: 3500s sock = socket(af, socktype, proto) 3500s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 3500s sock.settimeout(timeout) 3500s if source_address: 3500s sock.bind(source_address) 3500s sock.connect(sa) 3500s # Break explicitly a reference cycle 3500s exceptions.clear() 3500s return sock 3500s 3500s except error as exc: 3500s if not all_errors: 3500s exceptions.clear() # raise only the last error 3500s exceptions.append(exc) 3500s if sock is not None: 3500s sock.close() 3500s 3500s if len(exceptions): 3500s try: 3500s if not all_errors: 3500s > raise exceptions[0] 3500s 3500s /usr/lib/python3.12/socket.py:853: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s address = ('localhost', 3306), timeout = 10, source_address = None 3500s 3500s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 3500s source_address=None, *, all_errors=False): 3500s """Connect to *address* and return the socket object. 3500s 3500s Convenience function. Connect to *address* (a 2-tuple ``(host, 3500s port)``) and return the socket object. Passing the optional 3500s *timeout* parameter will set the timeout on the socket instance 3500s before attempting to connect. If no *timeout* is supplied, the 3500s global default timeout setting returned by :func:`getdefaulttimeout` 3500s is used. If *source_address* is set it must be a tuple of (host, port) 3500s for the socket to bind as a source address before making the connection. 3500s A host of '' or port 0 tells the OS to use the default. When a connection 3500s cannot be created, raises the last error if *all_errors* is False, 3500s and an ExceptionGroup of all errors if *all_errors* is True. 3500s """ 3500s 3500s host, port = address 3500s exceptions = [] 3500s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 3500s af, socktype, proto, canonname, sa = res 3500s sock = None 3500s try: 3500s sock = socket(af, socktype, proto) 3500s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 3500s sock.settimeout(timeout) 3500s if source_address: 3500s sock.bind(source_address) 3500s > sock.connect(sa) 3500s E ConnectionRefusedError: [Errno 111] Connection refused 3500s 3500s /usr/lib/python3.12/socket.py:838: ConnectionRefusedError 3500s 3500s During handling of the above exception, another exception occurred: 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __init__( 3500s self, 3500s *, 3500s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 3500s password="", 3500s host=None, 3500s database=None, 3500s unix_socket=None, 3500s port=0, 3500s charset="", 3500s collation=None, 3500s sql_mode=None, 3500s read_default_file=None, 3500s conv=None, 3500s use_unicode=True, 3500s client_flag=0, 3500s cursorclass=Cursor, 3500s init_command=None, 3500s connect_timeout=10, 3500s read_default_group=None, 3500s autocommit=False, 3500s local_infile=False, 3500s max_allowed_packet=16 * 1024 * 1024, 3500s defer_connect=False, 3500s auth_plugin_map=None, 3500s read_timeout=None, 3500s write_timeout=None, 3500s bind_address=None, 3500s binary_prefix=False, 3500s program_name=None, 3500s server_public_key=None, 3500s ssl=None, 3500s ssl_ca=None, 3500s ssl_cert=None, 3500s ssl_disabled=None, 3500s ssl_key=None, 3500s ssl_key_password=None, 3500s ssl_verify_cert=None, 3500s ssl_verify_identity=None, 3500s compress=None, # not supported 3500s named_pipe=None, # not supported 3500s passwd=None, # deprecated 3500s db=None, # deprecated 3500s ): 3500s if db is not None and database is None: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 3500s database = db 3500s if passwd is not None and not password: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn( 3500s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 3500s # ) 3500s password = passwd 3500s 3500s if compress or named_pipe: 3500s raise NotImplementedError( 3500s "compress and named_pipe arguments are not supported" 3500s ) 3500s 3500s self._local_infile = bool(local_infile) 3500s if self._local_infile: 3500s client_flag |= CLIENT.LOCAL_FILES 3500s 3500s if read_default_group and not read_default_file: 3500s if sys.platform.startswith("win"): 3500s read_default_file = "c:\\my.ini" 3500s else: 3500s read_default_file = "/etc/my.cnf" 3500s 3500s if read_default_file: 3500s if not read_default_group: 3500s read_default_group = "client" 3500s 3500s cfg = Parser() 3500s cfg.read(os.path.expanduser(read_default_file)) 3500s 3500s def _config(key, arg): 3500s if arg: 3500s return arg 3500s try: 3500s return cfg.get(read_default_group, key) 3500s except Exception: 3500s return arg 3500s 3500s user = _config("user", user) 3500s password = _config("password", password) 3500s host = _config("host", host) 3500s database = _config("database", database) 3500s unix_socket = _config("socket", unix_socket) 3500s port = int(_config("port", port)) 3500s bind_address = _config("bind-address", bind_address) 3500s charset = _config("default-character-set", charset) 3500s if not ssl: 3500s ssl = {} 3500s if isinstance(ssl, dict): 3500s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 3500s value = _config("ssl-" + key, ssl.get(key)) 3500s if value: 3500s ssl[key] = value 3500s 3500s self.ssl = False 3500s if not ssl_disabled: 3500s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 3500s ssl = { 3500s "ca": ssl_ca, 3500s "check_hostname": bool(ssl_verify_identity), 3500s "verify_mode": ssl_verify_cert 3500s if ssl_verify_cert is not None 3500s else False, 3500s } 3500s if ssl_cert is not None: 3500s ssl["cert"] = ssl_cert 3500s if ssl_key is not None: 3500s ssl["key"] = ssl_key 3500s if ssl_key_password is not None: 3500s ssl["password"] = ssl_key_password 3500s if ssl: 3500s if not SSL_ENABLED: 3500s raise NotImplementedError("ssl module not found") 3500s self.ssl = True 3500s client_flag |= CLIENT.SSL 3500s self.ctx = self._create_ssl_ctx(ssl) 3500s 3500s self.host = host or "localhost" 3500s self.port = port or 3306 3500s if type(self.port) is not int: 3500s raise ValueError("port should be of type int") 3500s self.user = user or DEFAULT_USER 3500s self.password = password or b"" 3500s if isinstance(self.password, str): 3500s self.password = self.password.encode("latin1") 3500s self.db = database 3500s self.unix_socket = unix_socket 3500s self.bind_address = bind_address 3500s if not (0 < connect_timeout <= 31536000): 3500s raise ValueError("connect_timeout should be >0 and <=31536000") 3500s self.connect_timeout = connect_timeout or None 3500s if read_timeout is not None and read_timeout <= 0: 3500s raise ValueError("read_timeout should be > 0") 3500s self._read_timeout = read_timeout 3500s if write_timeout is not None and write_timeout <= 0: 3500s raise ValueError("write_timeout should be > 0") 3500s self._write_timeout = write_timeout 3500s 3500s self.charset = charset or DEFAULT_CHARSET 3500s self.collation = collation 3500s self.use_unicode = use_unicode 3500s 3500s self.encoding = charset_by_name(self.charset).encoding 3500s 3500s client_flag |= CLIENT.CAPABILITIES 3500s if self.db: 3500s client_flag |= CLIENT.CONNECT_WITH_DB 3500s 3500s self.client_flag = client_flag 3500s 3500s self.cursorclass = cursorclass 3500s 3500s self._result = None 3500s self._affected_rows = 0 3500s self.host_info = "Not connected" 3500s 3500s # specified autocommit mode. None means use server default. 3500s self.autocommit_mode = autocommit 3500s 3500s if conv is None: 3500s conv = converters.conversions 3500s 3500s # Need for MySQLdb compatibility. 3500s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 3500s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 3500s self.sql_mode = sql_mode 3500s self.init_command = init_command 3500s self.max_allowed_packet = max_allowed_packet 3500s self._auth_plugin_map = auth_plugin_map or {} 3500s self._binary_prefix = binary_prefix 3500s self.server_public_key = server_public_key 3500s 3500s self._connect_attrs = { 3500s "_client_name": "pymysql", 3500s "_client_version": VERSION_STRING, 3500s "_pid": str(os.getpid()), 3500s } 3500s 3500s if program_name: 3500s self._connect_attrs["program_name"] = program_name 3500s 3500s if defer_connect: 3500s self._sock = None 3500s else: 3500s > self.connect() 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = , sock = None 3500s 3500s def connect(self, sock=None): 3500s self._closed = False 3500s try: 3500s if sock is None: 3500s if self.unix_socket: 3500s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3500s sock.settimeout(self.connect_timeout) 3500s sock.connect(self.unix_socket) 3500s self.host_info = "Localhost via UNIX socket" 3500s self._secure = True 3500s if DEBUG: 3500s print("connected using unix_socket") 3500s else: 3500s kwargs = {} 3500s if self.bind_address is not None: 3500s kwargs["source_address"] = (self.bind_address, 0) 3500s while True: 3500s try: 3500s sock = socket.create_connection( 3500s (self.host, self.port), self.connect_timeout, **kwargs 3500s ) 3500s break 3500s except OSError as e: 3500s if e.errno == errno.EINTR: 3500s continue 3500s raise 3500s self.host_info = "socket %s:%d" % (self.host, self.port) 3500s if DEBUG: 3500s print("connected using socket") 3500s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 3500s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 3500s sock.settimeout(None) 3500s 3500s self._sock = sock 3500s self._rfile = sock.makefile("rb") 3500s self._next_seq_id = 0 3500s 3500s self._get_server_information() 3500s self._request_authentication() 3500s 3500s # Send "SET NAMES" query on init for: 3500s # - Ensure charaset (and collation) is set to the server. 3500s # - collation_id in handshake packet may be ignored. 3500s # - If collation is not specified, we don't know what is server's 3500s # default collation for the charset. For example, default collation 3500s # of utf8mb4 is: 3500s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 3500s # - MySQL 8.0: utf8mb4_0900_ai_ci 3500s # 3500s # Reference: 3500s # - https://github.com/PyMySQL/PyMySQL/issues/1092 3500s # - https://github.com/wagtail/wagtail/issues/9477 3500s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 3500s self.set_character_set(self.charset, self.collation) 3500s 3500s if self.sql_mode is not None: 3500s c = self.cursor() 3500s c.execute("SET sql_mode=%s", (self.sql_mode,)) 3500s c.close() 3500s 3500s if self.init_command is not None: 3500s c = self.cursor() 3500s c.execute(self.init_command) 3500s c.close() 3500s 3500s if self.autocommit_mode is not None: 3500s self.autocommit(self.autocommit_mode) 3500s except BaseException as e: 3500s self._rfile = None 3500s if sock is not None: 3500s try: 3500s sock.close() 3500s except: # noqa 3500s pass 3500s 3500s if isinstance(e, (OSError, IOError)): 3500s exc = err.OperationalError( 3500s CR.CR_CONN_HOST_ERROR, 3500s f"Can't connect to MySQL server on {self.host!r} ({e})", 3500s ) 3500s # Keep original exception and traceback to investigate error. 3500s exc.original_exception = e 3500s exc.traceback = traceback.format_exc() 3500s if DEBUG: 3500s print(exc.traceback) 3500s > raise exc 3500s E pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 3500s 3500s The above exception was the direct cause of the following exception: 3500s 3500s conn = 'mysql_pymysql_conn' 3500s request = > 3500s 3500s @pytest.mark.db 3500s @pytest.mark.parametrize("conn", sqlalchemy_connectable_iris) 3500s def test_read_iris_table(conn, request): 3500s # GH 51015 if conn = sqlite_iris_str 3500s > conn = request.getfixturevalue(conn) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:692: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'mysql_pymysql_conn' 3500s 3500s def getfixturevalue(self, argname: str) -> Any: 3500s """Dynamically run a named fixture function. 3500s 3500s Declaring fixtures via function argument is recommended where possible. 3500s But if you can only decide whether to use another fixture at test 3500s setup time, you may use this function to retrieve it inside a fixture 3500s or test function body. 3500s 3500s This method can be used during the test setup phase or the test run 3500s phase, but during the test teardown phase a fixture's value may not 3500s be available. 3500s 3500s :param argname: 3500s The fixture name. 3500s :raises pytest.FixtureLookupError: 3500s If the given fixture could not be found. 3500s """ 3500s > fixturedef = self._get_active_fixturedef(argname) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:585: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'mysql_pymysql_conn' 3500s 3500s def _get_active_fixturedef( 3500s self, argname: str 3500s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3500s try: 3500s return self._fixture_defs[argname] 3500s except KeyError: 3500s try: 3500s fixturedef = self._getnextfixturedef(argname) 3500s except FixtureLookupError: 3500s if argname == "request": 3500s cached_result = (self, [0], None) 3500s return PseudoFixtureDef(cached_result, Scope.Function) 3500s raise 3500s # Remove indent to prevent the python3 exception 3500s # from leaking into the call. 3500s > self._compute_fixture_value(fixturedef) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s fixturedef = 3500s 3500s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3500s """Create a SubRequest based on "self" and call the execute method 3500s of the given FixtureDef object. 3500s 3500s This will force the FixtureDef object to throw away any previous 3500s results and compute a new fixture value, which will be stored into 3500s the FixtureDef object itself. 3500s """ 3500s # prepare a subrequest object before calling fixture function 3500s # (latter managed by fixturedef) 3500s argname = fixturedef.argname 3500s funcitem = self._pyfuncitem 3500s scope = fixturedef._scope 3500s try: 3500s callspec = funcitem.callspec 3500s except AttributeError: 3500s callspec = None 3500s if callspec is not None and argname in callspec.params: 3500s param = callspec.params[argname] 3500s param_index = callspec.indices[argname] 3500s # If a parametrize invocation set a scope it will override 3500s # the static scope defined with the fixture function. 3500s with suppress(KeyError): 3500s scope = callspec._arg2scope[argname] 3500s else: 3500s param = NOTSET 3500s param_index = 0 3500s has_params = fixturedef.params is not None 3500s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3500s if has_params and fixtures_not_supported: 3500s msg = ( 3500s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3500s "Node id: {nodeid}\n" 3500s "Function type: {typename}" 3500s ).format( 3500s name=funcitem.name, 3500s nodeid=funcitem.nodeid, 3500s typename=type(funcitem).__name__, 3500s ) 3500s fail(msg, pytrace=False) 3500s if has_params: 3500s frame = inspect.stack()[3] 3500s frameinfo = inspect.getframeinfo(frame[0]) 3500s source_path = absolutepath(frameinfo.filename) 3500s source_lineno = frameinfo.lineno 3500s try: 3500s source_path_str = str( 3500s source_path.relative_to(funcitem.config.rootpath) 3500s ) 3500s except ValueError: 3500s source_path_str = str(source_path) 3500s msg = ( 3500s "The requested fixture has no parameter defined for test:\n" 3500s " {}\n\n" 3500s "Requested fixture '{}' defined in:\n{}" 3500s "\n\nRequested here:\n{}:{}".format( 3500s funcitem.nodeid, 3500s fixturedef.argname, 3500s getlocation(fixturedef.func, funcitem.config.rootpath), 3500s source_path_str, 3500s source_lineno, 3500s ) 3500s ) 3500s fail(msg, pytrace=False) 3500s 3500s subrequest = SubRequest( 3500s self, scope, param, param_index, fixturedef, _ispytest=True 3500s ) 3500s 3500s # Check if a higher-level scoped fixture accesses a lower level one. 3500s subrequest._check_scope(argname, self._scope, scope) 3500s try: 3500s # Call the fixture function. 3500s > fixturedef.execute(request=subrequest) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s request = > 3500s 3500s def execute(self, request: SubRequest) -> FixtureValue: 3500s # Get required arguments and register our own finish() 3500s # with their finalization. 3500s for argname in self.argnames: 3500s > fixturedef = request._get_active_fixturedef(argname) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1045: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'mysql_pymysql_engine' 3500s 3500s def _get_active_fixturedef( 3500s self, argname: str 3500s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3500s try: 3500s return self._fixture_defs[argname] 3500s except KeyError: 3500s try: 3500s fixturedef = self._getnextfixturedef(argname) 3500s except FixtureLookupError: 3500s if argname == "request": 3500s cached_result = (self, [0], None) 3500s return PseudoFixtureDef(cached_result, Scope.Function) 3500s raise 3500s # Remove indent to prevent the python3 exception 3500s # from leaking into the call. 3500s > self._compute_fixture_value(fixturedef) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s fixturedef = 3500s 3500s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3500s """Create a SubRequest based on "self" and call the execute method 3500s of the given FixtureDef object. 3500s 3500s This will force the FixtureDef object to throw away any previous 3500s results and compute a new fixture value, which will be stored into 3500s the FixtureDef object itself. 3500s """ 3500s # prepare a subrequest object before calling fixture function 3500s # (latter managed by fixturedef) 3500s argname = fixturedef.argname 3500s funcitem = self._pyfuncitem 3500s scope = fixturedef._scope 3500s try: 3500s callspec = funcitem.callspec 3500s except AttributeError: 3500s callspec = None 3500s if callspec is not None and argname in callspec.params: 3500s param = callspec.params[argname] 3500s param_index = callspec.indices[argname] 3500s # If a parametrize invocation set a scope it will override 3500s # the static scope defined with the fixture function. 3500s with suppress(KeyError): 3500s scope = callspec._arg2scope[argname] 3500s else: 3500s param = NOTSET 3500s param_index = 0 3500s has_params = fixturedef.params is not None 3500s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3500s if has_params and fixtures_not_supported: 3500s msg = ( 3500s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3500s "Node id: {nodeid}\n" 3500s "Function type: {typename}" 3500s ).format( 3500s name=funcitem.name, 3500s nodeid=funcitem.nodeid, 3500s typename=type(funcitem).__name__, 3500s ) 3500s fail(msg, pytrace=False) 3500s if has_params: 3500s frame = inspect.stack()[3] 3500s frameinfo = inspect.getframeinfo(frame[0]) 3500s source_path = absolutepath(frameinfo.filename) 3500s source_lineno = frameinfo.lineno 3500s try: 3500s source_path_str = str( 3500s source_path.relative_to(funcitem.config.rootpath) 3500s ) 3500s except ValueError: 3500s source_path_str = str(source_path) 3500s msg = ( 3500s "The requested fixture has no parameter defined for test:\n" 3500s " {}\n\n" 3500s "Requested fixture '{}' defined in:\n{}" 3500s "\n\nRequested here:\n{}:{}".format( 3500s funcitem.nodeid, 3500s fixturedef.argname, 3500s getlocation(fixturedef.func, funcitem.config.rootpath), 3500s source_path_str, 3500s source_lineno, 3500s ) 3500s ) 3500s fail(msg, pytrace=False) 3500s 3500s subrequest = SubRequest( 3500s self, scope, param, param_index, fixturedef, _ispytest=True 3500s ) 3500s 3500s # Check if a higher-level scoped fixture accesses a lower level one. 3500s subrequest._check_scope(argname, self._scope, scope) 3500s try: 3500s # Call the fixture function. 3500s > fixturedef.execute(request=subrequest) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s request = > 3500s 3500s def execute(self, request: SubRequest) -> FixtureValue: 3500s # Get required arguments and register our own finish() 3500s # with their finalization. 3500s for argname in self.argnames: 3500s fixturedef = request._get_active_fixturedef(argname) 3500s if argname != "request": 3500s # PseudoFixtureDef is only for "request". 3500s assert isinstance(fixturedef, FixtureDef) 3500s fixturedef.addfinalizer(functools.partial(self.finish, request=request)) 3500s 3500s my_cache_key = self.cache_key(request) 3500s if self.cached_result is not None: 3500s # note: comparison with `==` can fail (or be expensive) for e.g. 3500s # numpy arrays (#6497). 3500s cache_key = self.cached_result[1] 3500s if my_cache_key is cache_key: 3500s if self.cached_result[2] is not None: 3500s _, val, tb = self.cached_result[2] 3500s raise val.with_traceback(tb) 3500s else: 3500s result = self.cached_result[0] 3500s return result 3500s # We have a previous but differently parametrized fixture instance 3500s # so we need to tear it down before creating a new one. 3500s self.finish(request) 3500s assert self.cached_result is None 3500s 3500s ihook = request.node.ihook 3500s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1069: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s kwargs = {'fixturedef': , 'request': >} 3500s firstresult = True 3500s 3500s def __call__(self, **kwargs: object) -> Any: 3500s """Call the hook. 3500s 3500s Only accepts keyword arguments, which should match the hook 3500s specification. 3500s 3500s Returns the result(s) of calling all registered plugins, see 3500s :ref:`calling`. 3500s """ 3500s assert ( 3500s not self.is_historic() 3500s ), "Cannot directly call a historic hook - use call_historic instead." 3500s self._verify_all_args_are_provided(kwargs) 3500s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 3500s # Copy because plugins may register other plugins during iteration (#438). 3500s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = <_pytest.config.PytestPluginManager object at 0xe9079168> 3500s hook_name = 'pytest_fixture_setup' 3500s methods = [>] 3500s kwargs = {'fixturedef': , 'request': >} 3500s firstresult = True 3500s 3500s def _hookexec( 3500s self, 3500s hook_name: str, 3500s methods: Sequence[HookImpl], 3500s kwargs: Mapping[str, object], 3500s firstresult: bool, 3500s ) -> object | list[object]: 3500s # called from all hookcaller instances. 3500s # enable_tracing will set its own wrapping function at self._inner_hookexec 3500s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturedef = 3500s request = > 3500s 3500s def pytest_fixture_setup( 3500s fixturedef: FixtureDef[FixtureValue], request: SubRequest 3500s ) -> FixtureValue: 3500s """Execution of fixture setup.""" 3500s kwargs = {} 3500s for argname in fixturedef.argnames: 3500s fixdef = request._get_active_fixturedef(argname) 3500s assert fixdef.cached_result is not None 3500s result, arg_cache_key, exc = fixdef.cached_result 3500s request._check_scope(argname, request._scope, fixdef._scope) 3500s kwargs[argname] = result 3500s 3500s fixturefunc = resolve_fixture_function(fixturedef, request) 3500s my_cache_key = fixturedef.cache_key(request) 3500s try: 3500s > result = call_fixture_func(fixturefunc, request, kwargs) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1123: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturefunc = 3500s request = > 3500s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv'), 'types_data': [{'B... False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}]} 3500s 3500s def call_fixture_func( 3500s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 3500s ) -> FixtureValue: 3500s if is_generator(fixturefunc): 3500s fixturefunc = cast( 3500s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 3500s ) 3500s generator = fixturefunc(**kwargs) 3500s try: 3500s > fixture_result = next(generator) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:895: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s iris_path = PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv') 3500s types_data = [{'BoolCol': False, 'BoolColWithNull': False, 'DateCol': '2000-01-03 00:00:00', 'DateColWithTz': '2000-01-01 00:00:00-...: False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}] 3500s 3500s @pytest.fixture 3500s def mysql_pymysql_engine(iris_path, types_data): 3500s sqlalchemy = pytest.importorskip("sqlalchemy") 3500s pymysql = pytest.importorskip("pymysql") 3500s engine = sqlalchemy.create_engine( 3500s "mysql+pymysql://root@localhost:3306/pandas", 3500s connect_args={"client_flag": pymysql.constants.CLIENT.MULTI_STATEMENTS}, 3500s poolclass=sqlalchemy.pool.NullPool, 3500s ) 3500s > insp = sqlalchemy.inspect(engine) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:409: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s subject = Engine(mysql+pymysql://root@localhost:3306/pandas), raiseerr = True 3500s 3500s def inspect(subject, raiseerr=True): 3500s """Produce an inspection object for the given target. 3500s 3500s The returned value in some cases may be the 3500s same object as the one given, such as if a 3500s :class:`_orm.Mapper` object is passed. In other 3500s cases, it will be an instance of the registered 3500s inspection type for the given object, such as 3500s if an :class:`_engine.Engine` is passed, an 3500s :class:`_reflection.Inspector` object is returned. 3500s 3500s :param subject: the subject to be inspected. 3500s :param raiseerr: When ``True``, if the given subject 3500s does not 3500s correspond to a known SQLAlchemy inspected type, 3500s :class:`sqlalchemy.exc.NoInspectionAvailable` 3500s is raised. If ``False``, ``None`` is returned. 3500s 3500s """ 3500s type_ = type(subject) 3500s for cls in type_.__mro__: 3500s if cls in _registrars: 3500s reg = _registrars[cls] 3500s if reg is True: 3500s return subject 3500s > ret = reg(subject) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:64: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s @inspection._inspects(Engine) 3500s def _engine_insp(bind): 3500s > return Inspector._construct(Inspector._init_engine, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:182: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s init = 3500s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s @classmethod 3500s def _construct(cls, init, bind): 3500s 3500s if hasattr(bind.dialect, "inspector"): 3500s cls = bind.dialect.inspector 3500s 3500s self = cls.__new__(cls) 3500s > init(self, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:117: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s def _init_engine(self, engine): 3500s self.bind = self.engine = engine 3500s > engine.connect().close() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:128: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s close_with_result = False 3500s 3500s def connect(self, close_with_result=False): 3500s """Return a new :class:`_engine.Connection` object. 3500s 3500s The :class:`_engine.Connection` object is a facade that uses a DBAPI 3500s connection internally in order to communicate with the database. This 3500s connection is procured from the connection-holding :class:`_pool.Pool` 3500s referenced by this :class:`_engine.Engine`. When the 3500s :meth:`_engine.Connection.close` method of the 3500s :class:`_engine.Connection` object 3500s is called, the underlying DBAPI connection is then returned to the 3500s connection pool, where it may be used again in a subsequent call to 3500s :meth:`_engine.Engine.connect`. 3500s 3500s """ 3500s 3500s > return self._connection_cls(self, close_with_result=close_with_result) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3325: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 3500s close_with_result = False, _branch_from = None, _execution_options = None 3500s _dispatch = None, _has_events = None, _allow_revalidate = True 3500s 3500s def __init__( 3500s self, 3500s engine, 3500s connection=None, 3500s close_with_result=False, 3500s _branch_from=None, 3500s _execution_options=None, 3500s _dispatch=None, 3500s _has_events=None, 3500s _allow_revalidate=True, 3500s ): 3500s """Construct a new Connection.""" 3500s self.engine = engine 3500s self.dialect = engine.dialect 3500s self.__branch_from = _branch_from 3500s 3500s if _branch_from: 3500s # branching is always "from" the root connection 3500s assert _branch_from.__branch_from is None 3500s self._dbapi_connection = connection 3500s self._execution_options = _execution_options 3500s self._echo = _branch_from._echo 3500s self.should_close_with_result = False 3500s self.dispatch = _dispatch 3500s self._has_events = _branch_from._has_events 3500s else: 3500s self._dbapi_connection = ( 3500s connection 3500s if connection is not None 3500s > else engine.raw_connection() 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:96: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas), _connection = None 3500s 3500s def raw_connection(self, _connection=None): 3500s """Return a "raw" DBAPI connection from the connection pool. 3500s 3500s The returned object is a proxied version of the DBAPI 3500s connection object used by the underlying driver in use. 3500s The object will have all the same behavior as the real DBAPI 3500s connection, except that its ``close()`` method will result in the 3500s connection being returned to the pool, rather than being closed 3500s for real. 3500s 3500s This method provides direct DBAPI connection access for 3500s special situations when the API provided by 3500s :class:`_engine.Connection` 3500s is not needed. When a :class:`_engine.Connection` object is already 3500s present, the DBAPI connection is available using 3500s the :attr:`_engine.Connection.connection` accessor. 3500s 3500s .. seealso:: 3500s 3500s :ref:`dbapi_connections` 3500s 3500s """ 3500s > return self._wrap_pool_connect(self.pool.connect, _connection) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3404: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s return fn() 3500s except dialect.dbapi.Error as e: 3500s if connection is None: 3500s > Connection._handle_dbapi_exception_noconnection( 3500s e, dialect, self 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3374: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s e = OperationalError(2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3500s dialect = 3500s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s @classmethod 3500s def _handle_dbapi_exception_noconnection(cls, e, dialect, engine): 3500s exc_info = sys.exc_info() 3500s 3500s is_disconnect = dialect.is_disconnect(e, None, None) 3500s 3500s should_wrap = isinstance(e, dialect.dbapi.Error) 3500s 3500s if should_wrap: 3500s sqlalchemy_exception = exc.DBAPIError.instance( 3500s None, 3500s None, 3500s e, 3500s dialect.dbapi.Error, 3500s hide_parameters=engine.hide_parameters, 3500s connection_invalidated=is_disconnect, 3500s ) 3500s else: 3500s sqlalchemy_exception = None 3500s 3500s newraise = None 3500s 3500s if engine._has_events: 3500s ctx = ExceptionContextImpl( 3500s e, 3500s sqlalchemy_exception, 3500s engine, 3500s None, 3500s None, 3500s None, 3500s None, 3500s None, 3500s is_disconnect, 3500s True, 3500s ) 3500s for fn in engine.dispatch.handle_error: 3500s try: 3500s # handler returns an exception; 3500s # call next handler in a chain 3500s per_fn = fn(ctx) 3500s if per_fn is not None: 3500s ctx.chained_exception = newraise = per_fn 3500s except Exception as _raised: 3500s # handler raises an exception - stop processing 3500s newraise = _raised 3500s break 3500s 3500s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 3500s sqlalchemy_exception.connection_invalidated = ( 3500s is_disconnect 3500s ) = ctx.is_disconnect 3500s 3500s if newraise: 3500s util.raise_(newraise, with_traceback=exc_info[2], from_=e) 3500s elif should_wrap: 3500s > util.raise_( 3500s sqlalchemy_exception, with_traceback=exc_info[2], from_=e 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2208: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __init__( 3500s self, 3500s *, 3500s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 3500s password="", 3500s host=None, 3500s database=None, 3500s unix_socket=None, 3500s port=0, 3500s charset="", 3500s collation=None, 3500s sql_mode=None, 3500s read_default_file=None, 3500s conv=None, 3500s use_unicode=True, 3500s client_flag=0, 3500s cursorclass=Cursor, 3500s init_command=None, 3500s connect_timeout=10, 3500s read_default_group=None, 3500s autocommit=False, 3500s local_infile=False, 3500s max_allowed_packet=16 * 1024 * 1024, 3500s defer_connect=False, 3500s auth_plugin_map=None, 3500s read_timeout=None, 3500s write_timeout=None, 3500s bind_address=None, 3500s binary_prefix=False, 3500s program_name=None, 3500s server_public_key=None, 3500s ssl=None, 3500s ssl_ca=None, 3500s ssl_cert=None, 3500s ssl_disabled=None, 3500s ssl_key=None, 3500s ssl_key_password=None, 3500s ssl_verify_cert=None, 3500s ssl_verify_identity=None, 3500s compress=None, # not supported 3500s named_pipe=None, # not supported 3500s passwd=None, # deprecated 3500s db=None, # deprecated 3500s ): 3500s if db is not None and database is None: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 3500s database = db 3500s if passwd is not None and not password: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn( 3500s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 3500s # ) 3500s password = passwd 3500s 3500s if compress or named_pipe: 3500s raise NotImplementedError( 3500s "compress and named_pipe arguments are not supported" 3500s ) 3500s 3500s self._local_infile = bool(local_infile) 3500s if self._local_infile: 3500s client_flag |= CLIENT.LOCAL_FILES 3500s 3500s if read_default_group and not read_default_file: 3500s if sys.platform.startswith("win"): 3500s read_default_file = "c:\\my.ini" 3500s else: 3500s read_default_file = "/etc/my.cnf" 3500s 3500s if read_default_file: 3500s if not read_default_group: 3500s read_default_group = "client" 3500s 3500s cfg = Parser() 3500s cfg.read(os.path.expanduser(read_default_file)) 3500s 3500s def _config(key, arg): 3500s if arg: 3500s return arg 3500s try: 3500s return cfg.get(read_default_group, key) 3500s except Exception: 3500s return arg 3500s 3500s user = _config("user", user) 3500s password = _config("password", password) 3500s host = _config("host", host) 3500s database = _config("database", database) 3500s unix_socket = _config("socket", unix_socket) 3500s port = int(_config("port", port)) 3500s bind_address = _config("bind-address", bind_address) 3500s charset = _config("default-character-set", charset) 3500s if not ssl: 3500s ssl = {} 3500s if isinstance(ssl, dict): 3500s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 3500s value = _config("ssl-" + key, ssl.get(key)) 3500s if value: 3500s ssl[key] = value 3500s 3500s self.ssl = False 3500s if not ssl_disabled: 3500s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 3500s ssl = { 3500s "ca": ssl_ca, 3500s "check_hostname": bool(ssl_verify_identity), 3500s "verify_mode": ssl_verify_cert 3500s if ssl_verify_cert is not None 3500s else False, 3500s } 3500s if ssl_cert is not None: 3500s ssl["cert"] = ssl_cert 3500s if ssl_key is not None: 3500s ssl["key"] = ssl_key 3500s if ssl_key_password is not None: 3500s ssl["password"] = ssl_key_password 3500s if ssl: 3500s if not SSL_ENABLED: 3500s raise NotImplementedError("ssl module not found") 3500s self.ssl = True 3500s client_flag |= CLIENT.SSL 3500s self.ctx = self._create_ssl_ctx(ssl) 3500s 3500s self.host = host or "localhost" 3500s self.port = port or 3306 3500s if type(self.port) is not int: 3500s raise ValueError("port should be of type int") 3500s self.user = user or DEFAULT_USER 3500s self.password = password or b"" 3500s if isinstance(self.password, str): 3500s self.password = self.password.encode("latin1") 3500s self.db = database 3500s self.unix_socket = unix_socket 3500s self.bind_address = bind_address 3500s if not (0 < connect_timeout <= 31536000): 3500s raise ValueError("connect_timeout should be >0 and <=31536000") 3500s self.connect_timeout = connect_timeout or None 3500s if read_timeout is not None and read_timeout <= 0: 3500s raise ValueError("read_timeout should be > 0") 3500s self._read_timeout = read_timeout 3500s if write_timeout is not None and write_timeout <= 0: 3500s raise ValueError("write_timeout should be > 0") 3500s self._write_timeout = write_timeout 3500s 3500s self.charset = charset or DEFAULT_CHARSET 3500s self.collation = collation 3500s self.use_unicode = use_unicode 3500s 3500s self.encoding = charset_by_name(self.charset).encoding 3500s 3500s client_flag |= CLIENT.CAPABILITIES 3500s if self.db: 3500s client_flag |= CLIENT.CONNECT_WITH_DB 3500s 3500s self.client_flag = client_flag 3500s 3500s self.cursorclass = cursorclass 3500s 3500s self._result = None 3500s self._affected_rows = 0 3500s self.host_info = "Not connected" 3500s 3500s # specified autocommit mode. None means use server default. 3500s self.autocommit_mode = autocommit 3500s 3500s if conv is None: 3500s conv = converters.conversions 3500s 3500s # Need for MySQLdb compatibility. 3500s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 3500s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 3500s self.sql_mode = sql_mode 3500s self.init_command = init_command 3500s self.max_allowed_packet = max_allowed_packet 3500s self._auth_plugin_map = auth_plugin_map or {} 3500s self._binary_prefix = binary_prefix 3500s self.server_public_key = server_public_key 3500s 3500s self._connect_attrs = { 3500s "_client_name": "pymysql", 3500s "_client_version": VERSION_STRING, 3500s "_pid": str(os.getpid()), 3500s } 3500s 3500s if program_name: 3500s self._connect_attrs["program_name"] = program_name 3500s 3500s if defer_connect: 3500s self._sock = None 3500s else: 3500s > self.connect() 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = , sock = None 3500s 3500s def connect(self, sock=None): 3500s self._closed = False 3500s try: 3500s if sock is None: 3500s if self.unix_socket: 3500s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3500s sock.settimeout(self.connect_timeout) 3500s sock.connect(self.unix_socket) 3500s self.host_info = "Localhost via UNIX socket" 3500s self._secure = True 3500s if DEBUG: 3500s print("connected using unix_socket") 3500s else: 3500s kwargs = {} 3500s if self.bind_address is not None: 3500s kwargs["source_address"] = (self.bind_address, 0) 3500s while True: 3500s try: 3500s sock = socket.create_connection( 3500s (self.host, self.port), self.connect_timeout, **kwargs 3500s ) 3500s break 3500s except OSError as e: 3500s if e.errno == errno.EINTR: 3500s continue 3500s raise 3500s self.host_info = "socket %s:%d" % (self.host, self.port) 3500s if DEBUG: 3500s print("connected using socket") 3500s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 3500s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 3500s sock.settimeout(None) 3500s 3500s self._sock = sock 3500s self._rfile = sock.makefile("rb") 3500s self._next_seq_id = 0 3500s 3500s self._get_server_information() 3500s self._request_authentication() 3500s 3500s # Send "SET NAMES" query on init for: 3500s # - Ensure charaset (and collation) is set to the server. 3500s # - collation_id in handshake packet may be ignored. 3500s # - If collation is not specified, we don't know what is server's 3500s # default collation for the charset. For example, default collation 3500s # of utf8mb4 is: 3500s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 3500s # - MySQL 8.0: utf8mb4_0900_ai_ci 3500s # 3500s # Reference: 3500s # - https://github.com/PyMySQL/PyMySQL/issues/1092 3500s # - https://github.com/wagtail/wagtail/issues/9477 3500s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 3500s self.set_character_set(self.charset, self.collation) 3500s 3500s if self.sql_mode is not None: 3500s c = self.cursor() 3500s c.execute("SET sql_mode=%s", (self.sql_mode,)) 3500s c.close() 3500s 3500s if self.init_command is not None: 3500s c = self.cursor() 3500s c.execute(self.init_command) 3500s c.close() 3500s 3500s if self.autocommit_mode is not None: 3500s self.autocommit(self.autocommit_mode) 3500s except BaseException as e: 3500s self._rfile = None 3500s if sock is not None: 3500s try: 3500s sock.close() 3500s except: # noqa 3500s pass 3500s 3500s if isinstance(e, (OSError, IOError)): 3500s exc = err.OperationalError( 3500s CR.CR_CONN_HOST_ERROR, 3500s f"Can't connect to MySQL server on {self.host!r} ({e})", 3500s ) 3500s # Keep original exception and traceback to investigate error. 3500s exc.original_exception = e 3500s exc.traceback = traceback.format_exc() 3500s if DEBUG: 3500s print(exc.traceback) 3500s > raise exc 3500s E sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3500s E (Background on this error at: https://sqlalche.me/e/14/e3q8) 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 3500s _______________ test_read_iris_table[postgresql_psycopg2_engine] _______________ 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s dsn = 'host=localhost user=postgres password=postgres port=5432 dbname=pandas' 3500s connection_factory = None, cursor_factory = None 3500s kwargs = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s kwasync = {} 3500s 3500s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 3500s """ 3500s Create a new database connection. 3500s 3500s The connection parameters can be specified as a string: 3500s 3500s conn = psycopg2.connect("dbname=test user=postgres password=secret") 3500s 3500s or using a set of keyword arguments: 3500s 3500s conn = psycopg2.connect(database="test", user="postgres", password="secret") 3500s 3500s Or as a mix of both. The basic connection parameters are: 3500s 3500s - *dbname*: the database name 3500s - *database*: the database name (only as keyword argument) 3500s - *user*: user name used to authenticate 3500s - *password*: password used to authenticate 3500s - *host*: database host address (defaults to UNIX socket if not provided) 3500s - *port*: connection port number (defaults to 5432 if not provided) 3500s 3500s Using the *connection_factory* parameter a different class or connections 3500s factory can be specified. It should be a callable object taking a dsn 3500s argument. 3500s 3500s Using the *cursor_factory* parameter, a new default cursor factory will be 3500s used by cursor(). 3500s 3500s Using *async*=True an asynchronous connection will be created. *async_* is 3500s a valid alias (for Python versions where ``async`` is a keyword). 3500s 3500s Any other keyword parameter will be passed to the underlying client 3500s library: the list of supported parameters depends on the library version. 3500s 3500s """ 3500s kwasync = {} 3500s if 'async' in kwargs: 3500s kwasync['async'] = kwargs.pop('async') 3500s if 'async_' in kwargs: 3500s kwasync['async_'] = kwargs.pop('async_') 3500s 3500s dsn = _ext.make_dsn(dsn, **kwargs) 3500s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 3500s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 3500s E Is the server running on that host and accepting TCP/IP connections? 3500s 3500s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 3500s 3500s The above exception was the direct cause of the following exception: 3500s 3500s conn = 'postgresql_psycopg2_engine' 3500s request = > 3500s 3500s @pytest.mark.db 3500s @pytest.mark.parametrize("conn", sqlalchemy_connectable_iris) 3500s def test_read_iris_table(conn, request): 3500s # GH 51015 if conn = sqlite_iris_str 3500s > conn = request.getfixturevalue(conn) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:692: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'postgresql_psycopg2_engine' 3500s 3500s def getfixturevalue(self, argname: str) -> Any: 3500s """Dynamically run a named fixture function. 3500s 3500s Declaring fixtures via function argument is recommended where possible. 3500s But if you can only decide whether to use another fixture at test 3500s setup time, you may use this function to retrieve it inside a fixture 3500s or test function body. 3500s 3500s This method can be used during the test setup phase or the test run 3500s phase, but during the test teardown phase a fixture's value may not 3500s be available. 3500s 3500s :param argname: 3500s The fixture name. 3500s :raises pytest.FixtureLookupError: 3500s If the given fixture could not be found. 3500s """ 3500s > fixturedef = self._get_active_fixturedef(argname) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:585: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'postgresql_psycopg2_engine' 3500s 3500s def _get_active_fixturedef( 3500s self, argname: str 3500s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3500s try: 3500s return self._fixture_defs[argname] 3500s except KeyError: 3500s try: 3500s fixturedef = self._getnextfixturedef(argname) 3500s except FixtureLookupError: 3500s if argname == "request": 3500s cached_result = (self, [0], None) 3500s return PseudoFixtureDef(cached_result, Scope.Function) 3500s raise 3500s # Remove indent to prevent the python3 exception 3500s # from leaking into the call. 3500s > self._compute_fixture_value(fixturedef) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s fixturedef = 3500s 3500s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3500s """Create a SubRequest based on "self" and call the execute method 3500s of the given FixtureDef object. 3500s 3500s This will force the FixtureDef object to throw away any previous 3500s results and compute a new fixture value, which will be stored into 3500s the FixtureDef object itself. 3500s """ 3500s # prepare a subrequest object before calling fixture function 3500s # (latter managed by fixturedef) 3500s argname = fixturedef.argname 3500s funcitem = self._pyfuncitem 3500s scope = fixturedef._scope 3500s try: 3500s callspec = funcitem.callspec 3500s except AttributeError: 3500s callspec = None 3500s if callspec is not None and argname in callspec.params: 3500s param = callspec.params[argname] 3500s param_index = callspec.indices[argname] 3500s # If a parametrize invocation set a scope it will override 3500s # the static scope defined with the fixture function. 3500s with suppress(KeyError): 3500s scope = callspec._arg2scope[argname] 3500s else: 3500s param = NOTSET 3500s param_index = 0 3500s has_params = fixturedef.params is not None 3500s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3500s if has_params and fixtures_not_supported: 3500s msg = ( 3500s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3500s "Node id: {nodeid}\n" 3500s "Function type: {typename}" 3500s ).format( 3500s name=funcitem.name, 3500s nodeid=funcitem.nodeid, 3500s typename=type(funcitem).__name__, 3500s ) 3500s fail(msg, pytrace=False) 3500s if has_params: 3500s frame = inspect.stack()[3] 3500s frameinfo = inspect.getframeinfo(frame[0]) 3500s source_path = absolutepath(frameinfo.filename) 3500s source_lineno = frameinfo.lineno 3500s try: 3500s source_path_str = str( 3500s source_path.relative_to(funcitem.config.rootpath) 3500s ) 3500s except ValueError: 3500s source_path_str = str(source_path) 3500s msg = ( 3500s "The requested fixture has no parameter defined for test:\n" 3500s " {}\n\n" 3500s "Requested fixture '{}' defined in:\n{}" 3500s "\n\nRequested here:\n{}:{}".format( 3500s funcitem.nodeid, 3500s fixturedef.argname, 3500s getlocation(fixturedef.func, funcitem.config.rootpath), 3500s source_path_str, 3500s source_lineno, 3500s ) 3500s ) 3500s fail(msg, pytrace=False) 3500s 3500s subrequest = SubRequest( 3500s self, scope, param, param_index, fixturedef, _ispytest=True 3500s ) 3500s 3500s # Check if a higher-level scoped fixture accesses a lower level one. 3500s subrequest._check_scope(argname, self._scope, scope) 3500s try: 3500s # Call the fixture function. 3500s > fixturedef.execute(request=subrequest) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s request = > 3500s 3500s def execute(self, request: SubRequest) -> FixtureValue: 3500s # Get required arguments and register our own finish() 3500s # with their finalization. 3500s for argname in self.argnames: 3500s fixturedef = request._get_active_fixturedef(argname) 3500s if argname != "request": 3500s # PseudoFixtureDef is only for "request". 3500s assert isinstance(fixturedef, FixtureDef) 3500s fixturedef.addfinalizer(functools.partial(self.finish, request=request)) 3500s 3500s my_cache_key = self.cache_key(request) 3500s if self.cached_result is not None: 3500s # note: comparison with `==` can fail (or be expensive) for e.g. 3500s # numpy arrays (#6497). 3500s cache_key = self.cached_result[1] 3500s if my_cache_key is cache_key: 3500s if self.cached_result[2] is not None: 3500s _, val, tb = self.cached_result[2] 3500s raise val.with_traceback(tb) 3500s else: 3500s result = self.cached_result[0] 3500s return result 3500s # We have a previous but differently parametrized fixture instance 3500s # so we need to tear it down before creating a new one. 3500s self.finish(request) 3500s assert self.cached_result is None 3500s 3500s ihook = request.node.ihook 3500s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1069: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s kwargs = {'fixturedef': , 'request': >} 3500s firstresult = True 3500s 3500s def __call__(self, **kwargs: object) -> Any: 3500s """Call the hook. 3500s 3500s Only accepts keyword arguments, which should match the hook 3500s specification. 3500s 3500s Returns the result(s) of calling all registered plugins, see 3500s :ref:`calling`. 3500s """ 3500s assert ( 3500s not self.is_historic() 3500s ), "Cannot directly call a historic hook - use call_historic instead." 3500s self._verify_all_args_are_provided(kwargs) 3500s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 3500s # Copy because plugins may register other plugins during iteration (#438). 3500s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = <_pytest.config.PytestPluginManager object at 0xe9079168> 3500s hook_name = 'pytest_fixture_setup' 3500s methods = [>] 3500s kwargs = {'fixturedef': , 'request': >} 3500s firstresult = True 3500s 3500s def _hookexec( 3500s self, 3500s hook_name: str, 3500s methods: Sequence[HookImpl], 3500s kwargs: Mapping[str, object], 3500s firstresult: bool, 3500s ) -> object | list[object]: 3500s # called from all hookcaller instances. 3500s # enable_tracing will set its own wrapping function at self._inner_hookexec 3500s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturedef = 3500s request = > 3500s 3500s def pytest_fixture_setup( 3500s fixturedef: FixtureDef[FixtureValue], request: SubRequest 3500s ) -> FixtureValue: 3500s """Execution of fixture setup.""" 3500s kwargs = {} 3500s for argname in fixturedef.argnames: 3500s fixdef = request._get_active_fixturedef(argname) 3500s assert fixdef.cached_result is not None 3500s result, arg_cache_key, exc = fixdef.cached_result 3500s request._check_scope(argname, request._scope, fixdef._scope) 3500s kwargs[argname] = result 3500s 3500s fixturefunc = resolve_fixture_function(fixturedef, request) 3500s my_cache_key = fixturedef.cache_key(request) 3500s try: 3500s > result = call_fixture_func(fixturefunc, request, kwargs) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1123: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturefunc = 3500s request = > 3500s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv'), 'types_data': [{'B... False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}]} 3500s 3500s def call_fixture_func( 3500s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 3500s ) -> FixtureValue: 3500s if is_generator(fixturefunc): 3500s fixturefunc = cast( 3500s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 3500s ) 3500s generator = fixturefunc(**kwargs) 3500s try: 3500s > fixture_result = next(generator) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:895: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s iris_path = PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv') 3500s types_data = [{'BoolCol': False, 'BoolColWithNull': False, 'DateCol': '2000-01-03 00:00:00', 'DateColWithTz': '2000-01-01 00:00:00-...: False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}] 3500s 3500s @pytest.fixture 3500s def postgresql_psycopg2_engine(iris_path, types_data): 3500s sqlalchemy = pytest.importorskip("sqlalchemy") 3500s pytest.importorskip("psycopg2") 3500s engine = sqlalchemy.create_engine( 3500s "postgresql+psycopg2://postgres:postgres@localhost:5432/pandas", 3500s poolclass=sqlalchemy.pool.NullPool, 3500s ) 3500s > insp = sqlalchemy.inspect(engine) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:438: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s subject = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s raiseerr = True 3500s 3500s def inspect(subject, raiseerr=True): 3500s """Produce an inspection object for the given target. 3500s 3500s The returned value in some cases may be the 3500s same object as the one given, such as if a 3500s :class:`_orm.Mapper` object is passed. In other 3500s cases, it will be an instance of the registered 3500s inspection type for the given object, such as 3500s if an :class:`_engine.Engine` is passed, an 3500s :class:`_reflection.Inspector` object is returned. 3500s 3500s :param subject: the subject to be inspected. 3500s :param raiseerr: When ``True``, if the given subject 3500s does not 3500s correspond to a known SQLAlchemy inspected type, 3500s :class:`sqlalchemy.exc.NoInspectionAvailable` 3500s is raised. If ``False``, ``None`` is returned. 3500s 3500s """ 3500s type_ = type(subject) 3500s for cls in type_.__mro__: 3500s if cls in _registrars: 3500s reg = _registrars[cls] 3500s if reg is True: 3500s return subject 3500s > ret = reg(subject) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:64: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s @inspection._inspects(Engine) 3500s def _engine_insp(bind): 3500s > return Inspector._construct(Inspector._init_engine, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:182: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s init = 3500s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s @classmethod 3500s def _construct(cls, init, bind): 3500s 3500s if hasattr(bind.dialect, "inspector"): 3500s cls = bind.dialect.inspector 3500s 3500s self = cls.__new__(cls) 3500s > init(self, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:117: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s def _init_engine(self, engine): 3500s self.bind = self.engine = engine 3500s > engine.connect().close() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:128: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s close_with_result = False 3500s 3500s def connect(self, close_with_result=False): 3500s """Return a new :class:`_engine.Connection` object. 3500s 3500s The :class:`_engine.Connection` object is a facade that uses a DBAPI 3500s connection internally in order to communicate with the database. This 3500s connection is procured from the connection-holding :class:`_pool.Pool` 3500s referenced by this :class:`_engine.Engine`. When the 3500s :meth:`_engine.Connection.close` method of the 3500s :class:`_engine.Connection` object 3500s is called, the underlying DBAPI connection is then returned to the 3500s connection pool, where it may be used again in a subsequent call to 3500s :meth:`_engine.Engine.connect`. 3500s 3500s """ 3500s 3500s > return self._connection_cls(self, close_with_result=close_with_result) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3325: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s connection = None, close_with_result = False, _branch_from = None 3500s _execution_options = None, _dispatch = None, _has_events = None 3500s _allow_revalidate = True 3500s 3500s def __init__( 3500s self, 3500s engine, 3500s connection=None, 3500s close_with_result=False, 3500s _branch_from=None, 3500s _execution_options=None, 3500s _dispatch=None, 3500s _has_events=None, 3500s _allow_revalidate=True, 3500s ): 3500s """Construct a new Connection.""" 3500s self.engine = engine 3500s self.dialect = engine.dialect 3500s self.__branch_from = _branch_from 3500s 3500s if _branch_from: 3500s # branching is always "from" the root connection 3500s assert _branch_from.__branch_from is None 3500s self._dbapi_connection = connection 3500s self._execution_options = _execution_options 3500s self._echo = _branch_from._echo 3500s self.should_close_with_result = False 3500s self.dispatch = _dispatch 3500s self._has_events = _branch_from._has_events 3500s else: 3500s self._dbapi_connection = ( 3500s connection 3500s if connection is not None 3500s > else engine.raw_connection() 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:96: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s _connection = None 3500s 3500s def raw_connection(self, _connection=None): 3500s """Return a "raw" DBAPI connection from the connection pool. 3500s 3500s The returned object is a proxied version of the DBAPI 3500s connection object used by the underlying driver in use. 3500s The object will have all the same behavior as the real DBAPI 3500s connection, except that its ``close()`` method will result in the 3500s connection being returned to the pool, rather than being closed 3500s for real. 3500s 3500s This method provides direct DBAPI connection access for 3500s special situations when the API provided by 3500s :class:`_engine.Connection` 3500s is not needed. When a :class:`_engine.Connection` object is already 3500s present, the DBAPI connection is available using 3500s the :attr:`_engine.Connection.connection` accessor. 3500s 3500s .. seealso:: 3500s 3500s :ref:`dbapi_connections` 3500s 3500s """ 3500s > return self._wrap_pool_connect(self.pool.connect, _connection) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3404: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s return fn() 3500s except dialect.dbapi.Error as e: 3500s if connection is None: 3500s > Connection._handle_dbapi_exception_noconnection( 3500s e, dialect, self 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3374: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s e = OperationalError('connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused\n\tIs the server running on that host and accepting TCP/IP connections?\n') 3500s dialect = 3500s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s @classmethod 3500s def _handle_dbapi_exception_noconnection(cls, e, dialect, engine): 3500s exc_info = sys.exc_info() 3500s 3500s is_disconnect = dialect.is_disconnect(e, None, None) 3500s 3500s should_wrap = isinstance(e, dialect.dbapi.Error) 3500s 3500s if should_wrap: 3500s sqlalchemy_exception = exc.DBAPIError.instance( 3500s None, 3500s None, 3500s e, 3500s dialect.dbapi.Error, 3500s hide_parameters=engine.hide_parameters, 3500s connection_invalidated=is_disconnect, 3500s ) 3500s else: 3500s sqlalchemy_exception = None 3500s 3500s newraise = None 3500s 3500s if engine._has_events: 3500s ctx = ExceptionContextImpl( 3500s e, 3500s sqlalchemy_exception, 3500s engine, 3500s None, 3500s None, 3500s None, 3500s None, 3500s None, 3500s is_disconnect, 3500s True, 3500s ) 3500s for fn in engine.dispatch.handle_error: 3500s try: 3500s # handler returns an exception; 3500s # call next handler in a chain 3500s per_fn = fn(ctx) 3500s if per_fn is not None: 3500s ctx.chained_exception = newraise = per_fn 3500s except Exception as _raised: 3500s # handler raises an exception - stop processing 3500s newraise = _raised 3500s break 3500s 3500s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 3500s sqlalchemy_exception.connection_invalidated = ( 3500s is_disconnect 3500s ) = ctx.is_disconnect 3500s 3500s if newraise: 3500s util.raise_(newraise, with_traceback=exc_info[2], from_=e) 3500s elif should_wrap: 3500s > util.raise_( 3500s sqlalchemy_exception, with_traceback=exc_info[2], from_=e 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2208: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s dsn = 'host=localhost user=postgres password=postgres port=5432 dbname=pandas' 3500s connection_factory = None, cursor_factory = None 3500s kwargs = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s kwasync = {} 3500s 3500s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 3500s """ 3500s Create a new database connection. 3500s 3500s The connection parameters can be specified as a string: 3500s 3500s conn = psycopg2.connect("dbname=test user=postgres password=secret") 3500s 3500s or using a set of keyword arguments: 3500s 3500s conn = psycopg2.connect(database="test", user="postgres", password="secret") 3500s 3500s Or as a mix of both. The basic connection parameters are: 3500s 3500s - *dbname*: the database name 3500s - *database*: the database name (only as keyword argument) 3500s - *user*: user name used to authenticate 3500s - *password*: password used to authenticate 3500s - *host*: database host address (defaults to UNIX socket if not provided) 3500s - *port*: connection port number (defaults to 5432 if not provided) 3500s 3500s Using the *connection_factory* parameter a different class or connections 3500s factory can be specified. It should be a callable object taking a dsn 3500s argument. 3500s 3500s Using the *cursor_factory* parameter, a new default cursor factory will be 3500s used by cursor(). 3500s 3500s Using *async*=True an asynchronous connection will be created. *async_* is 3500s a valid alias (for Python versions where ``async`` is a keyword). 3500s 3500s Any other keyword parameter will be passed to the underlying client 3500s library: the list of supported parameters depends on the library version. 3500s 3500s """ 3500s kwasync = {} 3500s if 'async' in kwargs: 3500s kwasync['async'] = kwargs.pop('async') 3500s if 'async_' in kwargs: 3500s kwasync['async_'] = kwargs.pop('async_') 3500s 3500s dsn = _ext.make_dsn(dsn, **kwargs) 3500s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 3500s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 3500s E Is the server running on that host and accepting TCP/IP connections? 3500s E 3500s E (Background on this error at: https://sqlalche.me/e/14/e3q8) 3500s 3500s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 3500s ________________ test_read_iris_table[postgresql_psycopg2_conn] ________________ 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s dsn = 'host=localhost user=postgres password=postgres port=5432 dbname=pandas' 3500s connection_factory = None, cursor_factory = None 3500s kwargs = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s kwasync = {} 3500s 3500s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 3500s """ 3500s Create a new database connection. 3500s 3500s The connection parameters can be specified as a string: 3500s 3500s conn = psycopg2.connect("dbname=test user=postgres password=secret") 3500s 3500s or using a set of keyword arguments: 3500s 3500s conn = psycopg2.connect(database="test", user="postgres", password="secret") 3500s 3500s Or as a mix of both. The basic connection parameters are: 3500s 3500s - *dbname*: the database name 3500s - *database*: the database name (only as keyword argument) 3500s - *user*: user name used to authenticate 3500s - *password*: password used to authenticate 3500s - *host*: database host address (defaults to UNIX socket if not provided) 3500s - *port*: connection port number (defaults to 5432 if not provided) 3500s 3500s Using the *connection_factory* parameter a different class or connections 3500s factory can be specified. It should be a callable object taking a dsn 3500s argument. 3500s 3500s Using the *cursor_factory* parameter, a new default cursor factory will be 3500s used by cursor(). 3500s 3500s Using *async*=True an asynchronous connection will be created. *async_* is 3500s a valid alias (for Python versions where ``async`` is a keyword). 3500s 3500s Any other keyword parameter will be passed to the underlying client 3500s library: the list of supported parameters depends on the library version. 3500s 3500s """ 3500s kwasync = {} 3500s if 'async' in kwargs: 3500s kwasync['async'] = kwargs.pop('async') 3500s if 'async_' in kwargs: 3500s kwasync['async_'] = kwargs.pop('async_') 3500s 3500s dsn = _ext.make_dsn(dsn, **kwargs) 3500s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 3500s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 3500s E Is the server running on that host and accepting TCP/IP connections? 3500s 3500s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 3500s 3500s The above exception was the direct cause of the following exception: 3500s 3500s conn = 'postgresql_psycopg2_conn' 3500s request = > 3500s 3500s @pytest.mark.db 3500s @pytest.mark.parametrize("conn", sqlalchemy_connectable_iris) 3500s def test_read_iris_table(conn, request): 3500s # GH 51015 if conn = sqlite_iris_str 3500s > conn = request.getfixturevalue(conn) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:692: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'postgresql_psycopg2_conn' 3500s 3500s def getfixturevalue(self, argname: str) -> Any: 3500s """Dynamically run a named fixture function. 3500s 3500s Declaring fixtures via function argument is recommended where possible. 3500s But if you can only decide whether to use another fixture at test 3500s setup time, you may use this function to retrieve it inside a fixture 3500s or test function body. 3500s 3500s This method can be used during the test setup phase or the test run 3500s phase, but during the test teardown phase a fixture's value may not 3500s be available. 3500s 3500s :param argname: 3500s The fixture name. 3500s :raises pytest.FixtureLookupError: 3500s If the given fixture could not be found. 3500s """ 3500s > fixturedef = self._get_active_fixturedef(argname) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:585: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'postgresql_psycopg2_conn' 3500s 3500s def _get_active_fixturedef( 3500s self, argname: str 3500s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3500s try: 3500s return self._fixture_defs[argname] 3500s except KeyError: 3500s try: 3500s fixturedef = self._getnextfixturedef(argname) 3500s except FixtureLookupError: 3500s if argname == "request": 3500s cached_result = (self, [0], None) 3500s return PseudoFixtureDef(cached_result, Scope.Function) 3500s raise 3500s # Remove indent to prevent the python3 exception 3500s # from leaking into the call. 3500s > self._compute_fixture_value(fixturedef) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s fixturedef = 3500s 3500s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3500s """Create a SubRequest based on "self" and call the execute method 3500s of the given FixtureDef object. 3500s 3500s This will force the FixtureDef object to throw away any previous 3500s results and compute a new fixture value, which will be stored into 3500s the FixtureDef object itself. 3500s """ 3500s # prepare a subrequest object before calling fixture function 3500s # (latter managed by fixturedef) 3500s argname = fixturedef.argname 3500s funcitem = self._pyfuncitem 3500s scope = fixturedef._scope 3500s try: 3500s callspec = funcitem.callspec 3500s except AttributeError: 3500s callspec = None 3500s if callspec is not None and argname in callspec.params: 3500s param = callspec.params[argname] 3500s param_index = callspec.indices[argname] 3500s # If a parametrize invocation set a scope it will override 3500s # the static scope defined with the fixture function. 3500s with suppress(KeyError): 3500s scope = callspec._arg2scope[argname] 3500s else: 3500s param = NOTSET 3500s param_index = 0 3500s has_params = fixturedef.params is not None 3500s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3500s if has_params and fixtures_not_supported: 3500s msg = ( 3500s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3500s "Node id: {nodeid}\n" 3500s "Function type: {typename}" 3500s ).format( 3500s name=funcitem.name, 3500s nodeid=funcitem.nodeid, 3500s typename=type(funcitem).__name__, 3500s ) 3500s fail(msg, pytrace=False) 3500s if has_params: 3500s frame = inspect.stack()[3] 3500s frameinfo = inspect.getframeinfo(frame[0]) 3500s source_path = absolutepath(frameinfo.filename) 3500s source_lineno = frameinfo.lineno 3500s try: 3500s source_path_str = str( 3500s source_path.relative_to(funcitem.config.rootpath) 3500s ) 3500s except ValueError: 3500s source_path_str = str(source_path) 3500s msg = ( 3500s "The requested fixture has no parameter defined for test:\n" 3500s " {}\n\n" 3500s "Requested fixture '{}' defined in:\n{}" 3500s "\n\nRequested here:\n{}:{}".format( 3500s funcitem.nodeid, 3500s fixturedef.argname, 3500s getlocation(fixturedef.func, funcitem.config.rootpath), 3500s source_path_str, 3500s source_lineno, 3500s ) 3500s ) 3500s fail(msg, pytrace=False) 3500s 3500s subrequest = SubRequest( 3500s self, scope, param, param_index, fixturedef, _ispytest=True 3500s ) 3500s 3500s # Check if a higher-level scoped fixture accesses a lower level one. 3500s subrequest._check_scope(argname, self._scope, scope) 3500s try: 3500s # Call the fixture function. 3500s > fixturedef.execute(request=subrequest) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s request = > 3500s 3500s def execute(self, request: SubRequest) -> FixtureValue: 3500s # Get required arguments and register our own finish() 3500s # with their finalization. 3500s for argname in self.argnames: 3500s > fixturedef = request._get_active_fixturedef(argname) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1045: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'postgresql_psycopg2_engine' 3500s 3500s def _get_active_fixturedef( 3500s self, argname: str 3500s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3500s try: 3500s return self._fixture_defs[argname] 3500s except KeyError: 3500s try: 3500s fixturedef = self._getnextfixturedef(argname) 3500s except FixtureLookupError: 3500s if argname == "request": 3500s cached_result = (self, [0], None) 3500s return PseudoFixtureDef(cached_result, Scope.Function) 3500s raise 3500s # Remove indent to prevent the python3 exception 3500s # from leaking into the call. 3500s > self._compute_fixture_value(fixturedef) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s fixturedef = 3500s 3500s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3500s """Create a SubRequest based on "self" and call the execute method 3500s of the given FixtureDef object. 3500s 3500s This will force the FixtureDef object to throw away any previous 3500s results and compute a new fixture value, which will be stored into 3500s the FixtureDef object itself. 3500s """ 3500s # prepare a subrequest object before calling fixture function 3500s # (latter managed by fixturedef) 3500s argname = fixturedef.argname 3500s funcitem = self._pyfuncitem 3500s scope = fixturedef._scope 3500s try: 3500s callspec = funcitem.callspec 3500s except AttributeError: 3500s callspec = None 3500s if callspec is not None and argname in callspec.params: 3500s param = callspec.params[argname] 3500s param_index = callspec.indices[argname] 3500s # If a parametrize invocation set a scope it will override 3500s # the static scope defined with the fixture function. 3500s with suppress(KeyError): 3500s scope = callspec._arg2scope[argname] 3500s else: 3500s param = NOTSET 3500s param_index = 0 3500s has_params = fixturedef.params is not None 3500s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3500s if has_params and fixtures_not_supported: 3500s msg = ( 3500s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3500s "Node id: {nodeid}\n" 3500s "Function type: {typename}" 3500s ).format( 3500s name=funcitem.name, 3500s nodeid=funcitem.nodeid, 3500s typename=type(funcitem).__name__, 3500s ) 3500s fail(msg, pytrace=False) 3500s if has_params: 3500s frame = inspect.stack()[3] 3500s frameinfo = inspect.getframeinfo(frame[0]) 3500s source_path = absolutepath(frameinfo.filename) 3500s source_lineno = frameinfo.lineno 3500s try: 3500s source_path_str = str( 3500s source_path.relative_to(funcitem.config.rootpath) 3500s ) 3500s except ValueError: 3500s source_path_str = str(source_path) 3500s msg = ( 3500s "The requested fixture has no parameter defined for test:\n" 3500s " {}\n\n" 3500s "Requested fixture '{}' defined in:\n{}" 3500s "\n\nRequested here:\n{}:{}".format( 3500s funcitem.nodeid, 3500s fixturedef.argname, 3500s getlocation(fixturedef.func, funcitem.config.rootpath), 3500s source_path_str, 3500s source_lineno, 3500s ) 3500s ) 3500s fail(msg, pytrace=False) 3500s 3500s subrequest = SubRequest( 3500s self, scope, param, param_index, fixturedef, _ispytest=True 3500s ) 3500s 3500s # Check if a higher-level scoped fixture accesses a lower level one. 3500s subrequest._check_scope(argname, self._scope, scope) 3500s try: 3500s # Call the fixture function. 3500s > fixturedef.execute(request=subrequest) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s request = > 3500s 3500s def execute(self, request: SubRequest) -> FixtureValue: 3500s # Get required arguments and register our own finish() 3500s # with their finalization. 3500s for argname in self.argnames: 3500s fixturedef = request._get_active_fixturedef(argname) 3500s if argname != "request": 3500s # PseudoFixtureDef is only for "request". 3500s assert isinstance(fixturedef, FixtureDef) 3500s fixturedef.addfinalizer(functools.partial(self.finish, request=request)) 3500s 3500s my_cache_key = self.cache_key(request) 3500s if self.cached_result is not None: 3500s # note: comparison with `==` can fail (or be expensive) for e.g. 3500s # numpy arrays (#6497). 3500s cache_key = self.cached_result[1] 3500s if my_cache_key is cache_key: 3500s if self.cached_result[2] is not None: 3500s _, val, tb = self.cached_result[2] 3500s raise val.with_traceback(tb) 3500s else: 3500s result = self.cached_result[0] 3500s return result 3500s # We have a previous but differently parametrized fixture instance 3500s # so we need to tear it down before creating a new one. 3500s self.finish(request) 3500s assert self.cached_result is None 3500s 3500s ihook = request.node.ihook 3500s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1069: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s kwargs = {'fixturedef': , 'request': >} 3500s firstresult = True 3500s 3500s def __call__(self, **kwargs: object) -> Any: 3500s """Call the hook. 3500s 3500s Only accepts keyword arguments, which should match the hook 3500s specification. 3500s 3500s Returns the result(s) of calling all registered plugins, see 3500s :ref:`calling`. 3500s """ 3500s assert ( 3500s not self.is_historic() 3500s ), "Cannot directly call a historic hook - use call_historic instead." 3500s self._verify_all_args_are_provided(kwargs) 3500s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 3500s # Copy because plugins may register other plugins during iteration (#438). 3500s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = <_pytest.config.PytestPluginManager object at 0xe9079168> 3500s hook_name = 'pytest_fixture_setup' 3500s methods = [>] 3500s kwargs = {'fixturedef': , 'request': >} 3500s firstresult = True 3500s 3500s def _hookexec( 3500s self, 3500s hook_name: str, 3500s methods: Sequence[HookImpl], 3500s kwargs: Mapping[str, object], 3500s firstresult: bool, 3500s ) -> object | list[object]: 3500s # called from all hookcaller instances. 3500s # enable_tracing will set its own wrapping function at self._inner_hookexec 3500s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturedef = 3500s request = > 3500s 3500s def pytest_fixture_setup( 3500s fixturedef: FixtureDef[FixtureValue], request: SubRequest 3500s ) -> FixtureValue: 3500s """Execution of fixture setup.""" 3500s kwargs = {} 3500s for argname in fixturedef.argnames: 3500s fixdef = request._get_active_fixturedef(argname) 3500s assert fixdef.cached_result is not None 3500s result, arg_cache_key, exc = fixdef.cached_result 3500s request._check_scope(argname, request._scope, fixdef._scope) 3500s kwargs[argname] = result 3500s 3500s fixturefunc = resolve_fixture_function(fixturedef, request) 3500s my_cache_key = fixturedef.cache_key(request) 3500s try: 3500s > result = call_fixture_func(fixturefunc, request, kwargs) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1123: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturefunc = 3500s request = > 3500s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv'), 'types_data': [{'B... False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}]} 3500s 3500s def call_fixture_func( 3500s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 3500s ) -> FixtureValue: 3500s if is_generator(fixturefunc): 3500s fixturefunc = cast( 3500s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 3500s ) 3500s generator = fixturefunc(**kwargs) 3500s try: 3500s > fixture_result = next(generator) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:895: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s iris_path = PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv') 3500s types_data = [{'BoolCol': False, 'BoolColWithNull': False, 'DateCol': '2000-01-03 00:00:00', 'DateColWithTz': '2000-01-01 00:00:00-...: False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}] 3500s 3500s @pytest.fixture 3500s def postgresql_psycopg2_engine(iris_path, types_data): 3500s sqlalchemy = pytest.importorskip("sqlalchemy") 3500s pytest.importorskip("psycopg2") 3500s engine = sqlalchemy.create_engine( 3500s "postgresql+psycopg2://postgres:postgres@localhost:5432/pandas", 3500s poolclass=sqlalchemy.pool.NullPool, 3500s ) 3500s > insp = sqlalchemy.inspect(engine) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:438: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s subject = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s raiseerr = True 3500s 3500s def inspect(subject, raiseerr=True): 3500s """Produce an inspection object for the given target. 3500s 3500s The returned value in some cases may be the 3500s same object as the one given, such as if a 3500s :class:`_orm.Mapper` object is passed. In other 3500s cases, it will be an instance of the registered 3500s inspection type for the given object, such as 3500s if an :class:`_engine.Engine` is passed, an 3500s :class:`_reflection.Inspector` object is returned. 3500s 3500s :param subject: the subject to be inspected. 3500s :param raiseerr: When ``True``, if the given subject 3500s does not 3500s correspond to a known SQLAlchemy inspected type, 3500s :class:`sqlalchemy.exc.NoInspectionAvailable` 3500s is raised. If ``False``, ``None`` is returned. 3500s 3500s """ 3500s type_ = type(subject) 3500s for cls in type_.__mro__: 3500s if cls in _registrars: 3500s reg = _registrars[cls] 3500s if reg is True: 3500s return subject 3500s > ret = reg(subject) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:64: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s @inspection._inspects(Engine) 3500s def _engine_insp(bind): 3500s > return Inspector._construct(Inspector._init_engine, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:182: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s init = 3500s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s @classmethod 3500s def _construct(cls, init, bind): 3500s 3500s if hasattr(bind.dialect, "inspector"): 3500s cls = bind.dialect.inspector 3500s 3500s self = cls.__new__(cls) 3500s > init(self, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:117: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s def _init_engine(self, engine): 3500s self.bind = self.engine = engine 3500s > engine.connect().close() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:128: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s close_with_result = False 3500s 3500s def connect(self, close_with_result=False): 3500s """Return a new :class:`_engine.Connection` object. 3500s 3500s The :class:`_engine.Connection` object is a facade that uses a DBAPI 3500s connection internally in order to communicate with the database. This 3500s connection is procured from the connection-holding :class:`_pool.Pool` 3500s referenced by this :class:`_engine.Engine`. When the 3500s :meth:`_engine.Connection.close` method of the 3500s :class:`_engine.Connection` object 3500s is called, the underlying DBAPI connection is then returned to the 3500s connection pool, where it may be used again in a subsequent call to 3500s :meth:`_engine.Engine.connect`. 3500s 3500s """ 3500s 3500s > return self._connection_cls(self, close_with_result=close_with_result) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3325: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s connection = None, close_with_result = False, _branch_from = None 3500s _execution_options = None, _dispatch = None, _has_events = None 3500s _allow_revalidate = True 3500s 3500s def __init__( 3500s self, 3500s engine, 3500s connection=None, 3500s close_with_result=False, 3500s _branch_from=None, 3500s _execution_options=None, 3500s _dispatch=None, 3500s _has_events=None, 3500s _allow_revalidate=True, 3500s ): 3500s """Construct a new Connection.""" 3500s self.engine = engine 3500s self.dialect = engine.dialect 3500s self.__branch_from = _branch_from 3500s 3500s if _branch_from: 3500s # branching is always "from" the root connection 3500s assert _branch_from.__branch_from is None 3500s self._dbapi_connection = connection 3500s self._execution_options = _execution_options 3500s self._echo = _branch_from._echo 3500s self.should_close_with_result = False 3500s self.dispatch = _dispatch 3500s self._has_events = _branch_from._has_events 3500s else: 3500s self._dbapi_connection = ( 3500s connection 3500s if connection is not None 3500s > else engine.raw_connection() 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:96: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s _connection = None 3500s 3500s def raw_connection(self, _connection=None): 3500s """Return a "raw" DBAPI connection from the connection pool. 3500s 3500s The returned object is a proxied version of the DBAPI 3500s connection object used by the underlying driver in use. 3500s The object will have all the same behavior as the real DBAPI 3500s connection, except that its ``close()`` method will result in the 3500s connection being returned to the pool, rather than being closed 3500s for real. 3500s 3500s This method provides direct DBAPI connection access for 3500s special situations when the API provided by 3500s :class:`_engine.Connection` 3500s is not needed. When a :class:`_engine.Connection` object is already 3500s present, the DBAPI connection is available using 3500s the :attr:`_engine.Connection.connection` accessor. 3500s 3500s .. seealso:: 3500s 3500s :ref:`dbapi_connections` 3500s 3500s """ 3500s > return self._wrap_pool_connect(self.pool.connect, _connection) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3404: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s return fn() 3500s except dialect.dbapi.Error as e: 3500s if connection is None: 3500s > Connection._handle_dbapi_exception_noconnection( 3500s e, dialect, self 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3374: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s e = OperationalError('connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused\n\tIs the server running on that host and accepting TCP/IP connections?\n') 3500s dialect = 3500s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s @classmethod 3500s def _handle_dbapi_exception_noconnection(cls, e, dialect, engine): 3500s exc_info = sys.exc_info() 3500s 3500s is_disconnect = dialect.is_disconnect(e, None, None) 3500s 3500s should_wrap = isinstance(e, dialect.dbapi.Error) 3500s 3500s if should_wrap: 3500s sqlalchemy_exception = exc.DBAPIError.instance( 3500s None, 3500s None, 3500s e, 3500s dialect.dbapi.Error, 3500s hide_parameters=engine.hide_parameters, 3500s connection_invalidated=is_disconnect, 3500s ) 3500s else: 3500s sqlalchemy_exception = None 3500s 3500s newraise = None 3500s 3500s if engine._has_events: 3500s ctx = ExceptionContextImpl( 3500s e, 3500s sqlalchemy_exception, 3500s engine, 3500s None, 3500s None, 3500s None, 3500s None, 3500s None, 3500s is_disconnect, 3500s True, 3500s ) 3500s for fn in engine.dispatch.handle_error: 3500s try: 3500s # handler returns an exception; 3500s # call next handler in a chain 3500s per_fn = fn(ctx) 3500s if per_fn is not None: 3500s ctx.chained_exception = newraise = per_fn 3500s except Exception as _raised: 3500s # handler raises an exception - stop processing 3500s newraise = _raised 3500s break 3500s 3500s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 3500s sqlalchemy_exception.connection_invalidated = ( 3500s is_disconnect 3500s ) = ctx.is_disconnect 3500s 3500s if newraise: 3500s util.raise_(newraise, with_traceback=exc_info[2], from_=e) 3500s elif should_wrap: 3500s > util.raise_( 3500s sqlalchemy_exception, with_traceback=exc_info[2], from_=e 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2208: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s dsn = 'host=localhost user=postgres password=postgres port=5432 dbname=pandas' 3500s connection_factory = None, cursor_factory = None 3500s kwargs = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s kwasync = {} 3500s 3500s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 3500s """ 3500s Create a new database connection. 3500s 3500s The connection parameters can be specified as a string: 3500s 3500s conn = psycopg2.connect("dbname=test user=postgres password=secret") 3500s 3500s or using a set of keyword arguments: 3500s 3500s conn = psycopg2.connect(database="test", user="postgres", password="secret") 3500s 3500s Or as a mix of both. The basic connection parameters are: 3500s 3500s - *dbname*: the database name 3500s - *database*: the database name (only as keyword argument) 3500s - *user*: user name used to authenticate 3500s - *password*: password used to authenticate 3500s - *host*: database host address (defaults to UNIX socket if not provided) 3500s - *port*: connection port number (defaults to 5432 if not provided) 3500s 3500s Using the *connection_factory* parameter a different class or connections 3500s factory can be specified. It should be a callable object taking a dsn 3500s argument. 3500s 3500s Using the *cursor_factory* parameter, a new default cursor factory will be 3500s used by cursor(). 3500s 3500s Using *async*=True an asynchronous connection will be created. *async_* is 3500s a valid alias (for Python versions where ``async`` is a keyword). 3500s 3500s Any other keyword parameter will be passed to the underlying client 3500s library: the list of supported parameters depends on the library version. 3500s 3500s """ 3500s kwasync = {} 3500s if 'async' in kwargs: 3500s kwasync['async'] = kwargs.pop('async') 3500s if 'async_' in kwargs: 3500s kwasync['async_'] = kwargs.pop('async_') 3500s 3500s dsn = _ext.make_dsn(dsn, **kwargs) 3500s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 3500s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 3500s E Is the server running on that host and accepting TCP/IP connections? 3500s E 3500s E (Background on this error at: https://sqlalche.me/e/14/e3q8) 3500s 3500s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 3500s _____________ test_read_iris_table_chunksize[mysql_pymysql_engine] _____________ 3500s self = , sock = None 3500s 3500s def connect(self, sock=None): 3500s self._closed = False 3500s try: 3500s if sock is None: 3500s if self.unix_socket: 3500s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3500s sock.settimeout(self.connect_timeout) 3500s sock.connect(self.unix_socket) 3500s self.host_info = "Localhost via UNIX socket" 3500s self._secure = True 3500s if DEBUG: 3500s print("connected using unix_socket") 3500s else: 3500s kwargs = {} 3500s if self.bind_address is not None: 3500s kwargs["source_address"] = (self.bind_address, 0) 3500s while True: 3500s try: 3500s > sock = socket.create_connection( 3500s (self.host, self.port), self.connect_timeout, **kwargs 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:649: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s address = ('localhost', 3306), timeout = 10, source_address = None 3500s 3500s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 3500s source_address=None, *, all_errors=False): 3500s """Connect to *address* and return the socket object. 3500s 3500s Convenience function. Connect to *address* (a 2-tuple ``(host, 3500s port)``) and return the socket object. Passing the optional 3500s *timeout* parameter will set the timeout on the socket instance 3500s before attempting to connect. If no *timeout* is supplied, the 3500s global default timeout setting returned by :func:`getdefaulttimeout` 3500s is used. If *source_address* is set it must be a tuple of (host, port) 3500s for the socket to bind as a source address before making the connection. 3500s A host of '' or port 0 tells the OS to use the default. When a connection 3500s cannot be created, raises the last error if *all_errors* is False, 3500s and an ExceptionGroup of all errors if *all_errors* is True. 3500s """ 3500s 3500s host, port = address 3500s exceptions = [] 3500s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 3500s af, socktype, proto, canonname, sa = res 3500s sock = None 3500s try: 3500s sock = socket(af, socktype, proto) 3500s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 3500s sock.settimeout(timeout) 3500s if source_address: 3500s sock.bind(source_address) 3500s sock.connect(sa) 3500s # Break explicitly a reference cycle 3500s exceptions.clear() 3500s return sock 3500s 3500s except error as exc: 3500s if not all_errors: 3500s exceptions.clear() # raise only the last error 3500s exceptions.append(exc) 3500s if sock is not None: 3500s sock.close() 3500s 3500s if len(exceptions): 3500s try: 3500s if not all_errors: 3500s > raise exceptions[0] 3500s 3500s /usr/lib/python3.12/socket.py:853: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s address = ('localhost', 3306), timeout = 10, source_address = None 3500s 3500s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 3500s source_address=None, *, all_errors=False): 3500s """Connect to *address* and return the socket object. 3500s 3500s Convenience function. Connect to *address* (a 2-tuple ``(host, 3500s port)``) and return the socket object. Passing the optional 3500s *timeout* parameter will set the timeout on the socket instance 3500s before attempting to connect. If no *timeout* is supplied, the 3500s global default timeout setting returned by :func:`getdefaulttimeout` 3500s is used. If *source_address* is set it must be a tuple of (host, port) 3500s for the socket to bind as a source address before making the connection. 3500s A host of '' or port 0 tells the OS to use the default. When a connection 3500s cannot be created, raises the last error if *all_errors* is False, 3500s and an ExceptionGroup of all errors if *all_errors* is True. 3500s """ 3500s 3500s host, port = address 3500s exceptions = [] 3500s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 3500s af, socktype, proto, canonname, sa = res 3500s sock = None 3500s try: 3500s sock = socket(af, socktype, proto) 3500s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 3500s sock.settimeout(timeout) 3500s if source_address: 3500s sock.bind(source_address) 3500s > sock.connect(sa) 3500s E ConnectionRefusedError: [Errno 111] Connection refused 3500s 3500s /usr/lib/python3.12/socket.py:838: ConnectionRefusedError 3500s 3500s During handling of the above exception, another exception occurred: 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __init__( 3500s self, 3500s *, 3500s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 3500s password="", 3500s host=None, 3500s database=None, 3500s unix_socket=None, 3500s port=0, 3500s charset="", 3500s collation=None, 3500s sql_mode=None, 3500s read_default_file=None, 3500s conv=None, 3500s use_unicode=True, 3500s client_flag=0, 3500s cursorclass=Cursor, 3500s init_command=None, 3500s connect_timeout=10, 3500s read_default_group=None, 3500s autocommit=False, 3500s local_infile=False, 3500s max_allowed_packet=16 * 1024 * 1024, 3500s defer_connect=False, 3500s auth_plugin_map=None, 3500s read_timeout=None, 3500s write_timeout=None, 3500s bind_address=None, 3500s binary_prefix=False, 3500s program_name=None, 3500s server_public_key=None, 3500s ssl=None, 3500s ssl_ca=None, 3500s ssl_cert=None, 3500s ssl_disabled=None, 3500s ssl_key=None, 3500s ssl_key_password=None, 3500s ssl_verify_cert=None, 3500s ssl_verify_identity=None, 3500s compress=None, # not supported 3500s named_pipe=None, # not supported 3500s passwd=None, # deprecated 3500s db=None, # deprecated 3500s ): 3500s if db is not None and database is None: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 3500s database = db 3500s if passwd is not None and not password: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn( 3500s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 3500s # ) 3500s password = passwd 3500s 3500s if compress or named_pipe: 3500s raise NotImplementedError( 3500s "compress and named_pipe arguments are not supported" 3500s ) 3500s 3500s self._local_infile = bool(local_infile) 3500s if self._local_infile: 3500s client_flag |= CLIENT.LOCAL_FILES 3500s 3500s if read_default_group and not read_default_file: 3500s if sys.platform.startswith("win"): 3500s read_default_file = "c:\\my.ini" 3500s else: 3500s read_default_file = "/etc/my.cnf" 3500s 3500s if read_default_file: 3500s if not read_default_group: 3500s read_default_group = "client" 3500s 3500s cfg = Parser() 3500s cfg.read(os.path.expanduser(read_default_file)) 3500s 3500s def _config(key, arg): 3500s if arg: 3500s return arg 3500s try: 3500s return cfg.get(read_default_group, key) 3500s except Exception: 3500s return arg 3500s 3500s user = _config("user", user) 3500s password = _config("password", password) 3500s host = _config("host", host) 3500s database = _config("database", database) 3500s unix_socket = _config("socket", unix_socket) 3500s port = int(_config("port", port)) 3500s bind_address = _config("bind-address", bind_address) 3500s charset = _config("default-character-set", charset) 3500s if not ssl: 3500s ssl = {} 3500s if isinstance(ssl, dict): 3500s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 3500s value = _config("ssl-" + key, ssl.get(key)) 3500s if value: 3500s ssl[key] = value 3500s 3500s self.ssl = False 3500s if not ssl_disabled: 3500s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 3500s ssl = { 3500s "ca": ssl_ca, 3500s "check_hostname": bool(ssl_verify_identity), 3500s "verify_mode": ssl_verify_cert 3500s if ssl_verify_cert is not None 3500s else False, 3500s } 3500s if ssl_cert is not None: 3500s ssl["cert"] = ssl_cert 3500s if ssl_key is not None: 3500s ssl["key"] = ssl_key 3500s if ssl_key_password is not None: 3500s ssl["password"] = ssl_key_password 3500s if ssl: 3500s if not SSL_ENABLED: 3500s raise NotImplementedError("ssl module not found") 3500s self.ssl = True 3500s client_flag |= CLIENT.SSL 3500s self.ctx = self._create_ssl_ctx(ssl) 3500s 3500s self.host = host or "localhost" 3500s self.port = port or 3306 3500s if type(self.port) is not int: 3500s raise ValueError("port should be of type int") 3500s self.user = user or DEFAULT_USER 3500s self.password = password or b"" 3500s if isinstance(self.password, str): 3500s self.password = self.password.encode("latin1") 3500s self.db = database 3500s self.unix_socket = unix_socket 3500s self.bind_address = bind_address 3500s if not (0 < connect_timeout <= 31536000): 3500s raise ValueError("connect_timeout should be >0 and <=31536000") 3500s self.connect_timeout = connect_timeout or None 3500s if read_timeout is not None and read_timeout <= 0: 3500s raise ValueError("read_timeout should be > 0") 3500s self._read_timeout = read_timeout 3500s if write_timeout is not None and write_timeout <= 0: 3500s raise ValueError("write_timeout should be > 0") 3500s self._write_timeout = write_timeout 3500s 3500s self.charset = charset or DEFAULT_CHARSET 3500s self.collation = collation 3500s self.use_unicode = use_unicode 3500s 3500s self.encoding = charset_by_name(self.charset).encoding 3500s 3500s client_flag |= CLIENT.CAPABILITIES 3500s if self.db: 3500s client_flag |= CLIENT.CONNECT_WITH_DB 3500s 3500s self.client_flag = client_flag 3500s 3500s self.cursorclass = cursorclass 3500s 3500s self._result = None 3500s self._affected_rows = 0 3500s self.host_info = "Not connected" 3500s 3500s # specified autocommit mode. None means use server default. 3500s self.autocommit_mode = autocommit 3500s 3500s if conv is None: 3500s conv = converters.conversions 3500s 3500s # Need for MySQLdb compatibility. 3500s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 3500s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 3500s self.sql_mode = sql_mode 3500s self.init_command = init_command 3500s self.max_allowed_packet = max_allowed_packet 3500s self._auth_plugin_map = auth_plugin_map or {} 3500s self._binary_prefix = binary_prefix 3500s self.server_public_key = server_public_key 3500s 3500s self._connect_attrs = { 3500s "_client_name": "pymysql", 3500s "_client_version": VERSION_STRING, 3500s "_pid": str(os.getpid()), 3500s } 3500s 3500s if program_name: 3500s self._connect_attrs["program_name"] = program_name 3500s 3500s if defer_connect: 3500s self._sock = None 3500s else: 3500s > self.connect() 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = , sock = None 3500s 3500s def connect(self, sock=None): 3500s self._closed = False 3500s try: 3500s if sock is None: 3500s if self.unix_socket: 3500s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3500s sock.settimeout(self.connect_timeout) 3500s sock.connect(self.unix_socket) 3500s self.host_info = "Localhost via UNIX socket" 3500s self._secure = True 3500s if DEBUG: 3500s print("connected using unix_socket") 3500s else: 3500s kwargs = {} 3500s if self.bind_address is not None: 3500s kwargs["source_address"] = (self.bind_address, 0) 3500s while True: 3500s try: 3500s sock = socket.create_connection( 3500s (self.host, self.port), self.connect_timeout, **kwargs 3500s ) 3500s break 3500s except OSError as e: 3500s if e.errno == errno.EINTR: 3500s continue 3500s raise 3500s self.host_info = "socket %s:%d" % (self.host, self.port) 3500s if DEBUG: 3500s print("connected using socket") 3500s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 3500s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 3500s sock.settimeout(None) 3500s 3500s self._sock = sock 3500s self._rfile = sock.makefile("rb") 3500s self._next_seq_id = 0 3500s 3500s self._get_server_information() 3500s self._request_authentication() 3500s 3500s # Send "SET NAMES" query on init for: 3500s # - Ensure charaset (and collation) is set to the server. 3500s # - collation_id in handshake packet may be ignored. 3500s # - If collation is not specified, we don't know what is server's 3500s # default collation for the charset. For example, default collation 3500s # of utf8mb4 is: 3500s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 3500s # - MySQL 8.0: utf8mb4_0900_ai_ci 3500s # 3500s # Reference: 3500s # - https://github.com/PyMySQL/PyMySQL/issues/1092 3500s # - https://github.com/wagtail/wagtail/issues/9477 3500s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 3500s self.set_character_set(self.charset, self.collation) 3500s 3500s if self.sql_mode is not None: 3500s c = self.cursor() 3500s c.execute("SET sql_mode=%s", (self.sql_mode,)) 3500s c.close() 3500s 3500s if self.init_command is not None: 3500s c = self.cursor() 3500s c.execute(self.init_command) 3500s c.close() 3500s 3500s if self.autocommit_mode is not None: 3500s self.autocommit(self.autocommit_mode) 3500s except BaseException as e: 3500s self._rfile = None 3500s if sock is not None: 3500s try: 3500s sock.close() 3500s except: # noqa 3500s pass 3500s 3500s if isinstance(e, (OSError, IOError)): 3500s exc = err.OperationalError( 3500s CR.CR_CONN_HOST_ERROR, 3500s f"Can't connect to MySQL server on {self.host!r} ({e})", 3500s ) 3500s # Keep original exception and traceback to investigate error. 3500s exc.original_exception = e 3500s exc.traceback = traceback.format_exc() 3500s if DEBUG: 3500s print(exc.traceback) 3500s > raise exc 3500s E pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 3500s 3500s The above exception was the direct cause of the following exception: 3500s 3500s conn = 'mysql_pymysql_engine' 3500s request = > 3500s 3500s @pytest.mark.db 3500s @pytest.mark.parametrize("conn", sqlalchemy_connectable_iris) 3500s def test_read_iris_table_chunksize(conn, request): 3500s > conn = request.getfixturevalue(conn) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:702: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'mysql_pymysql_engine' 3500s 3500s def getfixturevalue(self, argname: str) -> Any: 3500s """Dynamically run a named fixture function. 3500s 3500s Declaring fixtures via function argument is recommended where possible. 3500s But if you can only decide whether to use another fixture at test 3500s setup time, you may use this function to retrieve it inside a fixture 3500s or test function body. 3500s 3500s This method can be used during the test setup phase or the test run 3500s phase, but during the test teardown phase a fixture's value may not 3500s be available. 3500s 3500s :param argname: 3500s The fixture name. 3500s :raises pytest.FixtureLookupError: 3500s If the given fixture could not be found. 3500s """ 3500s > fixturedef = self._get_active_fixturedef(argname) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:585: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'mysql_pymysql_engine' 3500s 3500s def _get_active_fixturedef( 3500s self, argname: str 3500s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3500s try: 3500s return self._fixture_defs[argname] 3500s except KeyError: 3500s try: 3500s fixturedef = self._getnextfixturedef(argname) 3500s except FixtureLookupError: 3500s if argname == "request": 3500s cached_result = (self, [0], None) 3500s return PseudoFixtureDef(cached_result, Scope.Function) 3500s raise 3500s # Remove indent to prevent the python3 exception 3500s # from leaking into the call. 3500s > self._compute_fixture_value(fixturedef) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s fixturedef = 3500s 3500s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3500s """Create a SubRequest based on "self" and call the execute method 3500s of the given FixtureDef object. 3500s 3500s This will force the FixtureDef object to throw away any previous 3500s results and compute a new fixture value, which will be stored into 3500s the FixtureDef object itself. 3500s """ 3500s # prepare a subrequest object before calling fixture function 3500s # (latter managed by fixturedef) 3500s argname = fixturedef.argname 3500s funcitem = self._pyfuncitem 3500s scope = fixturedef._scope 3500s try: 3500s callspec = funcitem.callspec 3500s except AttributeError: 3500s callspec = None 3500s if callspec is not None and argname in callspec.params: 3500s param = callspec.params[argname] 3500s param_index = callspec.indices[argname] 3500s # If a parametrize invocation set a scope it will override 3500s # the static scope defined with the fixture function. 3500s with suppress(KeyError): 3500s scope = callspec._arg2scope[argname] 3500s else: 3500s param = NOTSET 3500s param_index = 0 3500s has_params = fixturedef.params is not None 3500s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3500s if has_params and fixtures_not_supported: 3500s msg = ( 3500s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3500s "Node id: {nodeid}\n" 3500s "Function type: {typename}" 3500s ).format( 3500s name=funcitem.name, 3500s nodeid=funcitem.nodeid, 3500s typename=type(funcitem).__name__, 3500s ) 3500s fail(msg, pytrace=False) 3500s if has_params: 3500s frame = inspect.stack()[3] 3500s frameinfo = inspect.getframeinfo(frame[0]) 3500s source_path = absolutepath(frameinfo.filename) 3500s source_lineno = frameinfo.lineno 3500s try: 3500s source_path_str = str( 3500s source_path.relative_to(funcitem.config.rootpath) 3500s ) 3500s except ValueError: 3500s source_path_str = str(source_path) 3500s msg = ( 3500s "The requested fixture has no parameter defined for test:\n" 3500s " {}\n\n" 3500s "Requested fixture '{}' defined in:\n{}" 3500s "\n\nRequested here:\n{}:{}".format( 3500s funcitem.nodeid, 3500s fixturedef.argname, 3500s getlocation(fixturedef.func, funcitem.config.rootpath), 3500s source_path_str, 3500s source_lineno, 3500s ) 3500s ) 3500s fail(msg, pytrace=False) 3500s 3500s subrequest = SubRequest( 3500s self, scope, param, param_index, fixturedef, _ispytest=True 3500s ) 3500s 3500s # Check if a higher-level scoped fixture accesses a lower level one. 3500s subrequest._check_scope(argname, self._scope, scope) 3500s try: 3500s # Call the fixture function. 3500s > fixturedef.execute(request=subrequest) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s request = > 3500s 3500s def execute(self, request: SubRequest) -> FixtureValue: 3500s # Get required arguments and register our own finish() 3500s # with their finalization. 3500s for argname in self.argnames: 3500s fixturedef = request._get_active_fixturedef(argname) 3500s if argname != "request": 3500s # PseudoFixtureDef is only for "request". 3500s assert isinstance(fixturedef, FixtureDef) 3500s fixturedef.addfinalizer(functools.partial(self.finish, request=request)) 3500s 3500s my_cache_key = self.cache_key(request) 3500s if self.cached_result is not None: 3500s # note: comparison with `==` can fail (or be expensive) for e.g. 3500s # numpy arrays (#6497). 3500s cache_key = self.cached_result[1] 3500s if my_cache_key is cache_key: 3500s if self.cached_result[2] is not None: 3500s _, val, tb = self.cached_result[2] 3500s raise val.with_traceback(tb) 3500s else: 3500s result = self.cached_result[0] 3500s return result 3500s # We have a previous but differently parametrized fixture instance 3500s # so we need to tear it down before creating a new one. 3500s self.finish(request) 3500s assert self.cached_result is None 3500s 3500s ihook = request.node.ihook 3500s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1069: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s kwargs = {'fixturedef': , 'request': >} 3500s firstresult = True 3500s 3500s def __call__(self, **kwargs: object) -> Any: 3500s """Call the hook. 3500s 3500s Only accepts keyword arguments, which should match the hook 3500s specification. 3500s 3500s Returns the result(s) of calling all registered plugins, see 3500s :ref:`calling`. 3500s """ 3500s assert ( 3500s not self.is_historic() 3500s ), "Cannot directly call a historic hook - use call_historic instead." 3500s self._verify_all_args_are_provided(kwargs) 3500s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 3500s # Copy because plugins may register other plugins during iteration (#438). 3500s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = <_pytest.config.PytestPluginManager object at 0xe9079168> 3500s hook_name = 'pytest_fixture_setup' 3500s methods = [>] 3500s kwargs = {'fixturedef': , 'request': >} 3500s firstresult = True 3500s 3500s def _hookexec( 3500s self, 3500s hook_name: str, 3500s methods: Sequence[HookImpl], 3500s kwargs: Mapping[str, object], 3500s firstresult: bool, 3500s ) -> object | list[object]: 3500s # called from all hookcaller instances. 3500s # enable_tracing will set its own wrapping function at self._inner_hookexec 3500s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturedef = 3500s request = > 3500s 3500s def pytest_fixture_setup( 3500s fixturedef: FixtureDef[FixtureValue], request: SubRequest 3500s ) -> FixtureValue: 3500s """Execution of fixture setup.""" 3500s kwargs = {} 3500s for argname in fixturedef.argnames: 3500s fixdef = request._get_active_fixturedef(argname) 3500s assert fixdef.cached_result is not None 3500s result, arg_cache_key, exc = fixdef.cached_result 3500s request._check_scope(argname, request._scope, fixdef._scope) 3500s kwargs[argname] = result 3500s 3500s fixturefunc = resolve_fixture_function(fixturedef, request) 3500s my_cache_key = fixturedef.cache_key(request) 3500s try: 3500s > result = call_fixture_func(fixturefunc, request, kwargs) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1123: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturefunc = 3500s request = > 3500s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv'), 'types_data': [{'B... False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}]} 3500s 3500s def call_fixture_func( 3500s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 3500s ) -> FixtureValue: 3500s if is_generator(fixturefunc): 3500s fixturefunc = cast( 3500s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 3500s ) 3500s generator = fixturefunc(**kwargs) 3500s try: 3500s > fixture_result = next(generator) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:895: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s iris_path = PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv') 3500s types_data = [{'BoolCol': False, 'BoolColWithNull': False, 'DateCol': '2000-01-03 00:00:00', 'DateColWithTz': '2000-01-01 00:00:00-...: False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}] 3500s 3500s @pytest.fixture 3500s def mysql_pymysql_engine(iris_path, types_data): 3500s sqlalchemy = pytest.importorskip("sqlalchemy") 3500s pymysql = pytest.importorskip("pymysql") 3500s engine = sqlalchemy.create_engine( 3500s "mysql+pymysql://root@localhost:3306/pandas", 3500s connect_args={"client_flag": pymysql.constants.CLIENT.MULTI_STATEMENTS}, 3500s poolclass=sqlalchemy.pool.NullPool, 3500s ) 3500s > insp = sqlalchemy.inspect(engine) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:409: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s subject = Engine(mysql+pymysql://root@localhost:3306/pandas), raiseerr = True 3500s 3500s def inspect(subject, raiseerr=True): 3500s """Produce an inspection object for the given target. 3500s 3500s The returned value in some cases may be the 3500s same object as the one given, such as if a 3500s :class:`_orm.Mapper` object is passed. In other 3500s cases, it will be an instance of the registered 3500s inspection type for the given object, such as 3500s if an :class:`_engine.Engine` is passed, an 3500s :class:`_reflection.Inspector` object is returned. 3500s 3500s :param subject: the subject to be inspected. 3500s :param raiseerr: When ``True``, if the given subject 3500s does not 3500s correspond to a known SQLAlchemy inspected type, 3500s :class:`sqlalchemy.exc.NoInspectionAvailable` 3500s is raised. If ``False``, ``None`` is returned. 3500s 3500s """ 3500s type_ = type(subject) 3500s for cls in type_.__mro__: 3500s if cls in _registrars: 3500s reg = _registrars[cls] 3500s if reg is True: 3500s return subject 3500s > ret = reg(subject) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:64: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s @inspection._inspects(Engine) 3500s def _engine_insp(bind): 3500s > return Inspector._construct(Inspector._init_engine, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:182: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s init = 3500s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s @classmethod 3500s def _construct(cls, init, bind): 3500s 3500s if hasattr(bind.dialect, "inspector"): 3500s cls = bind.dialect.inspector 3500s 3500s self = cls.__new__(cls) 3500s > init(self, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:117: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s def _init_engine(self, engine): 3500s self.bind = self.engine = engine 3500s > engine.connect().close() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:128: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s close_with_result = False 3500s 3500s def connect(self, close_with_result=False): 3500s """Return a new :class:`_engine.Connection` object. 3500s 3500s The :class:`_engine.Connection` object is a facade that uses a DBAPI 3500s connection internally in order to communicate with the database. This 3500s connection is procured from the connection-holding :class:`_pool.Pool` 3500s referenced by this :class:`_engine.Engine`. When the 3500s :meth:`_engine.Connection.close` method of the 3500s :class:`_engine.Connection` object 3500s is called, the underlying DBAPI connection is then returned to the 3500s connection pool, where it may be used again in a subsequent call to 3500s :meth:`_engine.Engine.connect`. 3500s 3500s """ 3500s 3500s > return self._connection_cls(self, close_with_result=close_with_result) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3325: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 3500s close_with_result = False, _branch_from = None, _execution_options = None 3500s _dispatch = None, _has_events = None, _allow_revalidate = True 3500s 3500s def __init__( 3500s self, 3500s engine, 3500s connection=None, 3500s close_with_result=False, 3500s _branch_from=None, 3500s _execution_options=None, 3500s _dispatch=None, 3500s _has_events=None, 3500s _allow_revalidate=True, 3500s ): 3500s """Construct a new Connection.""" 3500s self.engine = engine 3500s self.dialect = engine.dialect 3500s self.__branch_from = _branch_from 3500s 3500s if _branch_from: 3500s # branching is always "from" the root connection 3500s assert _branch_from.__branch_from is None 3500s self._dbapi_connection = connection 3500s self._execution_options = _execution_options 3500s self._echo = _branch_from._echo 3500s self.should_close_with_result = False 3500s self.dispatch = _dispatch 3500s self._has_events = _branch_from._has_events 3500s else: 3500s self._dbapi_connection = ( 3500s connection 3500s if connection is not None 3500s > else engine.raw_connection() 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:96: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas), _connection = None 3500s 3500s def raw_connection(self, _connection=None): 3500s """Return a "raw" DBAPI connection from the connection pool. 3500s 3500s The returned object is a proxied version of the DBAPI 3500s connection object used by the underlying driver in use. 3500s The object will have all the same behavior as the real DBAPI 3500s connection, except that its ``close()`` method will result in the 3500s connection being returned to the pool, rather than being closed 3500s for real. 3500s 3500s This method provides direct DBAPI connection access for 3500s special situations when the API provided by 3500s :class:`_engine.Connection` 3500s is not needed. When a :class:`_engine.Connection` object is already 3500s present, the DBAPI connection is available using 3500s the :attr:`_engine.Connection.connection` accessor. 3500s 3500s .. seealso:: 3500s 3500s :ref:`dbapi_connections` 3500s 3500s """ 3500s > return self._wrap_pool_connect(self.pool.connect, _connection) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3404: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s return fn() 3500s except dialect.dbapi.Error as e: 3500s if connection is None: 3500s > Connection._handle_dbapi_exception_noconnection( 3500s e, dialect, self 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3374: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s e = OperationalError(2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3500s dialect = 3500s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s @classmethod 3500s def _handle_dbapi_exception_noconnection(cls, e, dialect, engine): 3500s exc_info = sys.exc_info() 3500s 3500s is_disconnect = dialect.is_disconnect(e, None, None) 3500s 3500s should_wrap = isinstance(e, dialect.dbapi.Error) 3500s 3500s if should_wrap: 3500s sqlalchemy_exception = exc.DBAPIError.instance( 3500s None, 3500s None, 3500s e, 3500s dialect.dbapi.Error, 3500s hide_parameters=engine.hide_parameters, 3500s connection_invalidated=is_disconnect, 3500s ) 3500s else: 3500s sqlalchemy_exception = None 3500s 3500s newraise = None 3500s 3500s if engine._has_events: 3500s ctx = ExceptionContextImpl( 3500s e, 3500s sqlalchemy_exception, 3500s engine, 3500s None, 3500s None, 3500s None, 3500s None, 3500s None, 3500s is_disconnect, 3500s True, 3500s ) 3500s for fn in engine.dispatch.handle_error: 3500s try: 3500s # handler returns an exception; 3500s # call next handler in a chain 3500s per_fn = fn(ctx) 3500s if per_fn is not None: 3500s ctx.chained_exception = newraise = per_fn 3500s except Exception as _raised: 3500s # handler raises an exception - stop processing 3500s newraise = _raised 3500s break 3500s 3500s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 3500s sqlalchemy_exception.connection_invalidated = ( 3500s is_disconnect 3500s ) = ctx.is_disconnect 3500s 3500s if newraise: 3500s util.raise_(newraise, with_traceback=exc_info[2], from_=e) 3500s elif should_wrap: 3500s > util.raise_( 3500s sqlalchemy_exception, with_traceback=exc_info[2], from_=e 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2208: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __init__( 3500s self, 3500s *, 3500s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 3500s password="", 3500s host=None, 3500s database=None, 3500s unix_socket=None, 3500s port=0, 3500s charset="", 3500s collation=None, 3500s sql_mode=None, 3500s read_default_file=None, 3500s conv=None, 3500s use_unicode=True, 3500s client_flag=0, 3500s cursorclass=Cursor, 3500s init_command=None, 3500s connect_timeout=10, 3500s read_default_group=None, 3500s autocommit=False, 3500s local_infile=False, 3500s max_allowed_packet=16 * 1024 * 1024, 3500s defer_connect=False, 3500s auth_plugin_map=None, 3500s read_timeout=None, 3500s write_timeout=None, 3500s bind_address=None, 3500s binary_prefix=False, 3500s program_name=None, 3500s server_public_key=None, 3500s ssl=None, 3500s ssl_ca=None, 3500s ssl_cert=None, 3500s ssl_disabled=None, 3500s ssl_key=None, 3500s ssl_key_password=None, 3500s ssl_verify_cert=None, 3500s ssl_verify_identity=None, 3500s compress=None, # not supported 3500s named_pipe=None, # not supported 3500s passwd=None, # deprecated 3500s db=None, # deprecated 3500s ): 3500s if db is not None and database is None: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 3500s database = db 3500s if passwd is not None and not password: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn( 3500s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 3500s # ) 3500s password = passwd 3500s 3500s if compress or named_pipe: 3500s raise NotImplementedError( 3500s "compress and named_pipe arguments are not supported" 3500s ) 3500s 3500s self._local_infile = bool(local_infile) 3500s if self._local_infile: 3500s client_flag |= CLIENT.LOCAL_FILES 3500s 3500s if read_default_group and not read_default_file: 3500s if sys.platform.startswith("win"): 3500s read_default_file = "c:\\my.ini" 3500s else: 3500s read_default_file = "/etc/my.cnf" 3500s 3500s if read_default_file: 3500s if not read_default_group: 3500s read_default_group = "client" 3500s 3500s cfg = Parser() 3500s cfg.read(os.path.expanduser(read_default_file)) 3500s 3500s def _config(key, arg): 3500s if arg: 3500s return arg 3500s try: 3500s return cfg.get(read_default_group, key) 3500s except Exception: 3500s return arg 3500s 3500s user = _config("user", user) 3500s password = _config("password", password) 3500s host = _config("host", host) 3500s database = _config("database", database) 3500s unix_socket = _config("socket", unix_socket) 3500s port = int(_config("port", port)) 3500s bind_address = _config("bind-address", bind_address) 3500s charset = _config("default-character-set", charset) 3500s if not ssl: 3500s ssl = {} 3500s if isinstance(ssl, dict): 3500s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 3500s value = _config("ssl-" + key, ssl.get(key)) 3500s if value: 3500s ssl[key] = value 3500s 3500s self.ssl = False 3500s if not ssl_disabled: 3500s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 3500s ssl = { 3500s "ca": ssl_ca, 3500s "check_hostname": bool(ssl_verify_identity), 3500s "verify_mode": ssl_verify_cert 3500s if ssl_verify_cert is not None 3500s else False, 3500s } 3500s if ssl_cert is not None: 3500s ssl["cert"] = ssl_cert 3500s if ssl_key is not None: 3500s ssl["key"] = ssl_key 3500s if ssl_key_password is not None: 3500s ssl["password"] = ssl_key_password 3500s if ssl: 3500s if not SSL_ENABLED: 3500s raise NotImplementedError("ssl module not found") 3500s self.ssl = True 3500s client_flag |= CLIENT.SSL 3500s self.ctx = self._create_ssl_ctx(ssl) 3500s 3500s self.host = host or "localhost" 3500s self.port = port or 3306 3500s if type(self.port) is not int: 3500s raise ValueError("port should be of type int") 3500s self.user = user or DEFAULT_USER 3500s self.password = password or b"" 3500s if isinstance(self.password, str): 3500s self.password = self.password.encode("latin1") 3500s self.db = database 3500s self.unix_socket = unix_socket 3500s self.bind_address = bind_address 3500s if not (0 < connect_timeout <= 31536000): 3500s raise ValueError("connect_timeout should be >0 and <=31536000") 3500s self.connect_timeout = connect_timeout or None 3500s if read_timeout is not None and read_timeout <= 0: 3500s raise ValueError("read_timeout should be > 0") 3500s self._read_timeout = read_timeout 3500s if write_timeout is not None and write_timeout <= 0: 3500s raise ValueError("write_timeout should be > 0") 3500s self._write_timeout = write_timeout 3500s 3500s self.charset = charset or DEFAULT_CHARSET 3500s self.collation = collation 3500s self.use_unicode = use_unicode 3500s 3500s self.encoding = charset_by_name(self.charset).encoding 3500s 3500s client_flag |= CLIENT.CAPABILITIES 3500s if self.db: 3500s client_flag |= CLIENT.CONNECT_WITH_DB 3500s 3500s self.client_flag = client_flag 3500s 3500s self.cursorclass = cursorclass 3500s 3500s self._result = None 3500s self._affected_rows = 0 3500s self.host_info = "Not connected" 3500s 3500s # specified autocommit mode. None means use server default. 3500s self.autocommit_mode = autocommit 3500s 3500s if conv is None: 3500s conv = converters.conversions 3500s 3500s # Need for MySQLdb compatibility. 3500s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 3500s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 3500s self.sql_mode = sql_mode 3500s self.init_command = init_command 3500s self.max_allowed_packet = max_allowed_packet 3500s self._auth_plugin_map = auth_plugin_map or {} 3500s self._binary_prefix = binary_prefix 3500s self.server_public_key = server_public_key 3500s 3500s self._connect_attrs = { 3500s "_client_name": "pymysql", 3500s "_client_version": VERSION_STRING, 3500s "_pid": str(os.getpid()), 3500s } 3500s 3500s if program_name: 3500s self._connect_attrs["program_name"] = program_name 3500s 3500s if defer_connect: 3500s self._sock = None 3500s else: 3500s > self.connect() 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = , sock = None 3500s 3500s def connect(self, sock=None): 3500s self._closed = False 3500s try: 3500s if sock is None: 3500s if self.unix_socket: 3500s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3500s sock.settimeout(self.connect_timeout) 3500s sock.connect(self.unix_socket) 3500s self.host_info = "Localhost via UNIX socket" 3500s self._secure = True 3500s if DEBUG: 3500s print("connected using unix_socket") 3500s else: 3500s kwargs = {} 3500s if self.bind_address is not None: 3500s kwargs["source_address"] = (self.bind_address, 0) 3500s while True: 3500s try: 3500s sock = socket.create_connection( 3500s (self.host, self.port), self.connect_timeout, **kwargs 3500s ) 3500s break 3500s except OSError as e: 3500s if e.errno == errno.EINTR: 3500s continue 3500s raise 3500s self.host_info = "socket %s:%d" % (self.host, self.port) 3500s if DEBUG: 3500s print("connected using socket") 3500s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 3500s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 3500s sock.settimeout(None) 3500s 3500s self._sock = sock 3500s self._rfile = sock.makefile("rb") 3500s self._next_seq_id = 0 3500s 3500s self._get_server_information() 3500s self._request_authentication() 3500s 3500s # Send "SET NAMES" query on init for: 3500s # - Ensure charaset (and collation) is set to the server. 3500s # - collation_id in handshake packet may be ignored. 3500s # - If collation is not specified, we don't know what is server's 3500s # default collation for the charset. For example, default collation 3500s # of utf8mb4 is: 3500s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 3500s # - MySQL 8.0: utf8mb4_0900_ai_ci 3500s # 3500s # Reference: 3500s # - https://github.com/PyMySQL/PyMySQL/issues/1092 3500s # - https://github.com/wagtail/wagtail/issues/9477 3500s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 3500s self.set_character_set(self.charset, self.collation) 3500s 3500s if self.sql_mode is not None: 3500s c = self.cursor() 3500s c.execute("SET sql_mode=%s", (self.sql_mode,)) 3500s c.close() 3500s 3500s if self.init_command is not None: 3500s c = self.cursor() 3500s c.execute(self.init_command) 3500s c.close() 3500s 3500s if self.autocommit_mode is not None: 3500s self.autocommit(self.autocommit_mode) 3500s except BaseException as e: 3500s self._rfile = None 3500s if sock is not None: 3500s try: 3500s sock.close() 3500s except: # noqa 3500s pass 3500s 3500s if isinstance(e, (OSError, IOError)): 3500s exc = err.OperationalError( 3500s CR.CR_CONN_HOST_ERROR, 3500s f"Can't connect to MySQL server on {self.host!r} ({e})", 3500s ) 3500s # Keep original exception and traceback to investigate error. 3500s exc.original_exception = e 3500s exc.traceback = traceback.format_exc() 3500s if DEBUG: 3500s print(exc.traceback) 3500s > raise exc 3500s E sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3500s E (Background on this error at: https://sqlalche.me/e/14/e3q8) 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 3500s ______________ test_read_iris_table_chunksize[mysql_pymysql_conn] ______________ 3500s self = , sock = None 3500s 3500s def connect(self, sock=None): 3500s self._closed = False 3500s try: 3500s if sock is None: 3500s if self.unix_socket: 3500s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3500s sock.settimeout(self.connect_timeout) 3500s sock.connect(self.unix_socket) 3500s self.host_info = "Localhost via UNIX socket" 3500s self._secure = True 3500s if DEBUG: 3500s print("connected using unix_socket") 3500s else: 3500s kwargs = {} 3500s if self.bind_address is not None: 3500s kwargs["source_address"] = (self.bind_address, 0) 3500s while True: 3500s try: 3500s > sock = socket.create_connection( 3500s (self.host, self.port), self.connect_timeout, **kwargs 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:649: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s address = ('localhost', 3306), timeout = 10, source_address = None 3500s 3500s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 3500s source_address=None, *, all_errors=False): 3500s """Connect to *address* and return the socket object. 3500s 3500s Convenience function. Connect to *address* (a 2-tuple ``(host, 3500s port)``) and return the socket object. Passing the optional 3500s *timeout* parameter will set the timeout on the socket instance 3500s before attempting to connect. If no *timeout* is supplied, the 3500s global default timeout setting returned by :func:`getdefaulttimeout` 3500s is used. If *source_address* is set it must be a tuple of (host, port) 3500s for the socket to bind as a source address before making the connection. 3500s A host of '' or port 0 tells the OS to use the default. When a connection 3500s cannot be created, raises the last error if *all_errors* is False, 3500s and an ExceptionGroup of all errors if *all_errors* is True. 3500s """ 3500s 3500s host, port = address 3500s exceptions = [] 3500s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 3500s af, socktype, proto, canonname, sa = res 3500s sock = None 3500s try: 3500s sock = socket(af, socktype, proto) 3500s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 3500s sock.settimeout(timeout) 3500s if source_address: 3500s sock.bind(source_address) 3500s sock.connect(sa) 3500s # Break explicitly a reference cycle 3500s exceptions.clear() 3500s return sock 3500s 3500s except error as exc: 3500s if not all_errors: 3500s exceptions.clear() # raise only the last error 3500s exceptions.append(exc) 3500s if sock is not None: 3500s sock.close() 3500s 3500s if len(exceptions): 3500s try: 3500s if not all_errors: 3500s > raise exceptions[0] 3500s 3500s /usr/lib/python3.12/socket.py:853: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s address = ('localhost', 3306), timeout = 10, source_address = None 3500s 3500s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 3500s source_address=None, *, all_errors=False): 3500s """Connect to *address* and return the socket object. 3500s 3500s Convenience function. Connect to *address* (a 2-tuple ``(host, 3500s port)``) and return the socket object. Passing the optional 3500s *timeout* parameter will set the timeout on the socket instance 3500s before attempting to connect. If no *timeout* is supplied, the 3500s global default timeout setting returned by :func:`getdefaulttimeout` 3500s is used. If *source_address* is set it must be a tuple of (host, port) 3500s for the socket to bind as a source address before making the connection. 3500s A host of '' or port 0 tells the OS to use the default. When a connection 3500s cannot be created, raises the last error if *all_errors* is False, 3500s and an ExceptionGroup of all errors if *all_errors* is True. 3500s """ 3500s 3500s host, port = address 3500s exceptions = [] 3500s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 3500s af, socktype, proto, canonname, sa = res 3500s sock = None 3500s try: 3500s sock = socket(af, socktype, proto) 3500s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 3500s sock.settimeout(timeout) 3500s if source_address: 3500s sock.bind(source_address) 3500s > sock.connect(sa) 3500s E ConnectionRefusedError: [Errno 111] Connection refused 3500s 3500s /usr/lib/python3.12/socket.py:838: ConnectionRefusedError 3500s 3500s During handling of the above exception, another exception occurred: 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __init__( 3500s self, 3500s *, 3500s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 3500s password="", 3500s host=None, 3500s database=None, 3500s unix_socket=None, 3500s port=0, 3500s charset="", 3500s collation=None, 3500s sql_mode=None, 3500s read_default_file=None, 3500s conv=None, 3500s use_unicode=True, 3500s client_flag=0, 3500s cursorclass=Cursor, 3500s init_command=None, 3500s connect_timeout=10, 3500s read_default_group=None, 3500s autocommit=False, 3500s local_infile=False, 3500s max_allowed_packet=16 * 1024 * 1024, 3500s defer_connect=False, 3500s auth_plugin_map=None, 3500s read_timeout=None, 3500s write_timeout=None, 3500s bind_address=None, 3500s binary_prefix=False, 3500s program_name=None, 3500s server_public_key=None, 3500s ssl=None, 3500s ssl_ca=None, 3500s ssl_cert=None, 3500s ssl_disabled=None, 3500s ssl_key=None, 3500s ssl_key_password=None, 3500s ssl_verify_cert=None, 3500s ssl_verify_identity=None, 3500s compress=None, # not supported 3500s named_pipe=None, # not supported 3500s passwd=None, # deprecated 3500s db=None, # deprecated 3500s ): 3500s if db is not None and database is None: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 3500s database = db 3500s if passwd is not None and not password: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn( 3500s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 3500s # ) 3500s password = passwd 3500s 3500s if compress or named_pipe: 3500s raise NotImplementedError( 3500s "compress and named_pipe arguments are not supported" 3500s ) 3500s 3500s self._local_infile = bool(local_infile) 3500s if self._local_infile: 3500s client_flag |= CLIENT.LOCAL_FILES 3500s 3500s if read_default_group and not read_default_file: 3500s if sys.platform.startswith("win"): 3500s read_default_file = "c:\\my.ini" 3500s else: 3500s read_default_file = "/etc/my.cnf" 3500s 3500s if read_default_file: 3500s if not read_default_group: 3500s read_default_group = "client" 3500s 3500s cfg = Parser() 3500s cfg.read(os.path.expanduser(read_default_file)) 3500s 3500s def _config(key, arg): 3500s if arg: 3500s return arg 3500s try: 3500s return cfg.get(read_default_group, key) 3500s except Exception: 3500s return arg 3500s 3500s user = _config("user", user) 3500s password = _config("password", password) 3500s host = _config("host", host) 3500s database = _config("database", database) 3500s unix_socket = _config("socket", unix_socket) 3500s port = int(_config("port", port)) 3500s bind_address = _config("bind-address", bind_address) 3500s charset = _config("default-character-set", charset) 3500s if not ssl: 3500s ssl = {} 3500s if isinstance(ssl, dict): 3500s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 3500s value = _config("ssl-" + key, ssl.get(key)) 3500s if value: 3500s ssl[key] = value 3500s 3500s self.ssl = False 3500s if not ssl_disabled: 3500s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 3500s ssl = { 3500s "ca": ssl_ca, 3500s "check_hostname": bool(ssl_verify_identity), 3500s "verify_mode": ssl_verify_cert 3500s if ssl_verify_cert is not None 3500s else False, 3500s } 3500s if ssl_cert is not None: 3500s ssl["cert"] = ssl_cert 3500s if ssl_key is not None: 3500s ssl["key"] = ssl_key 3500s if ssl_key_password is not None: 3500s ssl["password"] = ssl_key_password 3500s if ssl: 3500s if not SSL_ENABLED: 3500s raise NotImplementedError("ssl module not found") 3500s self.ssl = True 3500s client_flag |= CLIENT.SSL 3500s self.ctx = self._create_ssl_ctx(ssl) 3500s 3500s self.host = host or "localhost" 3500s self.port = port or 3306 3500s if type(self.port) is not int: 3500s raise ValueError("port should be of type int") 3500s self.user = user or DEFAULT_USER 3500s self.password = password or b"" 3500s if isinstance(self.password, str): 3500s self.password = self.password.encode("latin1") 3500s self.db = database 3500s self.unix_socket = unix_socket 3500s self.bind_address = bind_address 3500s if not (0 < connect_timeout <= 31536000): 3500s raise ValueError("connect_timeout should be >0 and <=31536000") 3500s self.connect_timeout = connect_timeout or None 3500s if read_timeout is not None and read_timeout <= 0: 3500s raise ValueError("read_timeout should be > 0") 3500s self._read_timeout = read_timeout 3500s if write_timeout is not None and write_timeout <= 0: 3500s raise ValueError("write_timeout should be > 0") 3500s self._write_timeout = write_timeout 3500s 3500s self.charset = charset or DEFAULT_CHARSET 3500s self.collation = collation 3500s self.use_unicode = use_unicode 3500s 3500s self.encoding = charset_by_name(self.charset).encoding 3500s 3500s client_flag |= CLIENT.CAPABILITIES 3500s if self.db: 3500s client_flag |= CLIENT.CONNECT_WITH_DB 3500s 3500s self.client_flag = client_flag 3500s 3500s self.cursorclass = cursorclass 3500s 3500s self._result = None 3500s self._affected_rows = 0 3500s self.host_info = "Not connected" 3500s 3500s # specified autocommit mode. None means use server default. 3500s self.autocommit_mode = autocommit 3500s 3500s if conv is None: 3500s conv = converters.conversions 3500s 3500s # Need for MySQLdb compatibility. 3500s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 3500s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 3500s self.sql_mode = sql_mode 3500s self.init_command = init_command 3500s self.max_allowed_packet = max_allowed_packet 3500s self._auth_plugin_map = auth_plugin_map or {} 3500s self._binary_prefix = binary_prefix 3500s self.server_public_key = server_public_key 3500s 3500s self._connect_attrs = { 3500s "_client_name": "pymysql", 3500s "_client_version": VERSION_STRING, 3500s "_pid": str(os.getpid()), 3500s } 3500s 3500s if program_name: 3500s self._connect_attrs["program_name"] = program_name 3500s 3500s if defer_connect: 3500s self._sock = None 3500s else: 3500s > self.connect() 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = , sock = None 3500s 3500s def connect(self, sock=None): 3500s self._closed = False 3500s try: 3500s if sock is None: 3500s if self.unix_socket: 3500s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3500s sock.settimeout(self.connect_timeout) 3500s sock.connect(self.unix_socket) 3500s self.host_info = "Localhost via UNIX socket" 3500s self._secure = True 3500s if DEBUG: 3500s print("connected using unix_socket") 3500s else: 3500s kwargs = {} 3500s if self.bind_address is not None: 3500s kwargs["source_address"] = (self.bind_address, 0) 3500s while True: 3500s try: 3500s sock = socket.create_connection( 3500s (self.host, self.port), self.connect_timeout, **kwargs 3500s ) 3500s break 3500s except OSError as e: 3500s if e.errno == errno.EINTR: 3500s continue 3500s raise 3500s self.host_info = "socket %s:%d" % (self.host, self.port) 3500s if DEBUG: 3500s print("connected using socket") 3500s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 3500s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 3500s sock.settimeout(None) 3500s 3500s self._sock = sock 3500s self._rfile = sock.makefile("rb") 3500s self._next_seq_id = 0 3500s 3500s self._get_server_information() 3500s self._request_authentication() 3500s 3500s # Send "SET NAMES" query on init for: 3500s # - Ensure charaset (and collation) is set to the server. 3500s # - collation_id in handshake packet may be ignored. 3500s # - If collation is not specified, we don't know what is server's 3500s # default collation for the charset. For example, default collation 3500s # of utf8mb4 is: 3500s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 3500s # - MySQL 8.0: utf8mb4_0900_ai_ci 3500s # 3500s # Reference: 3500s # - https://github.com/PyMySQL/PyMySQL/issues/1092 3500s # - https://github.com/wagtail/wagtail/issues/9477 3500s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 3500s self.set_character_set(self.charset, self.collation) 3500s 3500s if self.sql_mode is not None: 3500s c = self.cursor() 3500s c.execute("SET sql_mode=%s", (self.sql_mode,)) 3500s c.close() 3500s 3500s if self.init_command is not None: 3500s c = self.cursor() 3500s c.execute(self.init_command) 3500s c.close() 3500s 3500s if self.autocommit_mode is not None: 3500s self.autocommit(self.autocommit_mode) 3500s except BaseException as e: 3500s self._rfile = None 3500s if sock is not None: 3500s try: 3500s sock.close() 3500s except: # noqa 3500s pass 3500s 3500s if isinstance(e, (OSError, IOError)): 3500s exc = err.OperationalError( 3500s CR.CR_CONN_HOST_ERROR, 3500s f"Can't connect to MySQL server on {self.host!r} ({e})", 3500s ) 3500s # Keep original exception and traceback to investigate error. 3500s exc.original_exception = e 3500s exc.traceback = traceback.format_exc() 3500s if DEBUG: 3500s print(exc.traceback) 3500s > raise exc 3500s E pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 3500s 3500s The above exception was the direct cause of the following exception: 3500s 3500s conn = 'mysql_pymysql_conn' 3500s request = > 3500s 3500s @pytest.mark.db 3500s @pytest.mark.parametrize("conn", sqlalchemy_connectable_iris) 3500s def test_read_iris_table_chunksize(conn, request): 3500s > conn = request.getfixturevalue(conn) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:702: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'mysql_pymysql_conn' 3500s 3500s def getfixturevalue(self, argname: str) -> Any: 3500s """Dynamically run a named fixture function. 3500s 3500s Declaring fixtures via function argument is recommended where possible. 3500s But if you can only decide whether to use another fixture at test 3500s setup time, you may use this function to retrieve it inside a fixture 3500s or test function body. 3500s 3500s This method can be used during the test setup phase or the test run 3500s phase, but during the test teardown phase a fixture's value may not 3500s be available. 3500s 3500s :param argname: 3500s The fixture name. 3500s :raises pytest.FixtureLookupError: 3500s If the given fixture could not be found. 3500s """ 3500s > fixturedef = self._get_active_fixturedef(argname) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:585: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'mysql_pymysql_conn' 3500s 3500s def _get_active_fixturedef( 3500s self, argname: str 3500s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3500s try: 3500s return self._fixture_defs[argname] 3500s except KeyError: 3500s try: 3500s fixturedef = self._getnextfixturedef(argname) 3500s except FixtureLookupError: 3500s if argname == "request": 3500s cached_result = (self, [0], None) 3500s return PseudoFixtureDef(cached_result, Scope.Function) 3500s raise 3500s # Remove indent to prevent the python3 exception 3500s # from leaking into the call. 3500s > self._compute_fixture_value(fixturedef) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s fixturedef = 3500s 3500s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3500s """Create a SubRequest based on "self" and call the execute method 3500s of the given FixtureDef object. 3500s 3500s This will force the FixtureDef object to throw away any previous 3500s results and compute a new fixture value, which will be stored into 3500s the FixtureDef object itself. 3500s """ 3500s # prepare a subrequest object before calling fixture function 3500s # (latter managed by fixturedef) 3500s argname = fixturedef.argname 3500s funcitem = self._pyfuncitem 3500s scope = fixturedef._scope 3500s try: 3500s callspec = funcitem.callspec 3500s except AttributeError: 3500s callspec = None 3500s if callspec is not None and argname in callspec.params: 3500s param = callspec.params[argname] 3500s param_index = callspec.indices[argname] 3500s # If a parametrize invocation set a scope it will override 3500s # the static scope defined with the fixture function. 3500s with suppress(KeyError): 3500s scope = callspec._arg2scope[argname] 3500s else: 3500s param = NOTSET 3500s param_index = 0 3500s has_params = fixturedef.params is not None 3500s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3500s if has_params and fixtures_not_supported: 3500s msg = ( 3500s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3500s "Node id: {nodeid}\n" 3500s "Function type: {typename}" 3500s ).format( 3500s name=funcitem.name, 3500s nodeid=funcitem.nodeid, 3500s typename=type(funcitem).__name__, 3500s ) 3500s fail(msg, pytrace=False) 3500s if has_params: 3500s frame = inspect.stack()[3] 3500s frameinfo = inspect.getframeinfo(frame[0]) 3500s source_path = absolutepath(frameinfo.filename) 3500s source_lineno = frameinfo.lineno 3500s try: 3500s source_path_str = str( 3500s source_path.relative_to(funcitem.config.rootpath) 3500s ) 3500s except ValueError: 3500s source_path_str = str(source_path) 3500s msg = ( 3500s "The requested fixture has no parameter defined for test:\n" 3500s " {}\n\n" 3500s "Requested fixture '{}' defined in:\n{}" 3500s "\n\nRequested here:\n{}:{}".format( 3500s funcitem.nodeid, 3500s fixturedef.argname, 3500s getlocation(fixturedef.func, funcitem.config.rootpath), 3500s source_path_str, 3500s source_lineno, 3500s ) 3500s ) 3500s fail(msg, pytrace=False) 3500s 3500s subrequest = SubRequest( 3500s self, scope, param, param_index, fixturedef, _ispytest=True 3500s ) 3500s 3500s # Check if a higher-level scoped fixture accesses a lower level one. 3500s subrequest._check_scope(argname, self._scope, scope) 3500s try: 3500s # Call the fixture function. 3500s > fixturedef.execute(request=subrequest) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s request = > 3500s 3500s def execute(self, request: SubRequest) -> FixtureValue: 3500s # Get required arguments and register our own finish() 3500s # with their finalization. 3500s for argname in self.argnames: 3500s > fixturedef = request._get_active_fixturedef(argname) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1045: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'mysql_pymysql_engine' 3500s 3500s def _get_active_fixturedef( 3500s self, argname: str 3500s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3500s try: 3500s return self._fixture_defs[argname] 3500s except KeyError: 3500s try: 3500s fixturedef = self._getnextfixturedef(argname) 3500s except FixtureLookupError: 3500s if argname == "request": 3500s cached_result = (self, [0], None) 3500s return PseudoFixtureDef(cached_result, Scope.Function) 3500s raise 3500s # Remove indent to prevent the python3 exception 3500s # from leaking into the call. 3500s > self._compute_fixture_value(fixturedef) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s fixturedef = 3500s 3500s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3500s """Create a SubRequest based on "self" and call the execute method 3500s of the given FixtureDef object. 3500s 3500s This will force the FixtureDef object to throw away any previous 3500s results and compute a new fixture value, which will be stored into 3500s the FixtureDef object itself. 3500s """ 3500s # prepare a subrequest object before calling fixture function 3500s # (latter managed by fixturedef) 3500s argname = fixturedef.argname 3500s funcitem = self._pyfuncitem 3500s scope = fixturedef._scope 3500s try: 3500s callspec = funcitem.callspec 3500s except AttributeError: 3500s callspec = None 3500s if callspec is not None and argname in callspec.params: 3500s param = callspec.params[argname] 3500s param_index = callspec.indices[argname] 3500s # If a parametrize invocation set a scope it will override 3500s # the static scope defined with the fixture function. 3500s with suppress(KeyError): 3500s scope = callspec._arg2scope[argname] 3500s else: 3500s param = NOTSET 3500s param_index = 0 3500s has_params = fixturedef.params is not None 3500s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3500s if has_params and fixtures_not_supported: 3500s msg = ( 3500s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3500s "Node id: {nodeid}\n" 3500s "Function type: {typename}" 3500s ).format( 3500s name=funcitem.name, 3500s nodeid=funcitem.nodeid, 3500s typename=type(funcitem).__name__, 3500s ) 3500s fail(msg, pytrace=False) 3500s if has_params: 3500s frame = inspect.stack()[3] 3500s frameinfo = inspect.getframeinfo(frame[0]) 3500s source_path = absolutepath(frameinfo.filename) 3500s source_lineno = frameinfo.lineno 3500s try: 3500s source_path_str = str( 3500s source_path.relative_to(funcitem.config.rootpath) 3500s ) 3500s except ValueError: 3500s source_path_str = str(source_path) 3500s msg = ( 3500s "The requested fixture has no parameter defined for test:\n" 3500s " {}\n\n" 3500s "Requested fixture '{}' defined in:\n{}" 3500s "\n\nRequested here:\n{}:{}".format( 3500s funcitem.nodeid, 3500s fixturedef.argname, 3500s getlocation(fixturedef.func, funcitem.config.rootpath), 3500s source_path_str, 3500s source_lineno, 3500s ) 3500s ) 3500s fail(msg, pytrace=False) 3500s 3500s subrequest = SubRequest( 3500s self, scope, param, param_index, fixturedef, _ispytest=True 3500s ) 3500s 3500s # Check if a higher-level scoped fixture accesses a lower level one. 3500s subrequest._check_scope(argname, self._scope, scope) 3500s try: 3500s # Call the fixture function. 3500s > fixturedef.execute(request=subrequest) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s request = > 3500s 3500s def execute(self, request: SubRequest) -> FixtureValue: 3500s # Get required arguments and register our own finish() 3500s # with their finalization. 3500s for argname in self.argnames: 3500s fixturedef = request._get_active_fixturedef(argname) 3500s if argname != "request": 3500s # PseudoFixtureDef is only for "request". 3500s assert isinstance(fixturedef, FixtureDef) 3500s fixturedef.addfinalizer(functools.partial(self.finish, request=request)) 3500s 3500s my_cache_key = self.cache_key(request) 3500s if self.cached_result is not None: 3500s # note: comparison with `==` can fail (or be expensive) for e.g. 3500s # numpy arrays (#6497). 3500s cache_key = self.cached_result[1] 3500s if my_cache_key is cache_key: 3500s if self.cached_result[2] is not None: 3500s _, val, tb = self.cached_result[2] 3500s raise val.with_traceback(tb) 3500s else: 3500s result = self.cached_result[0] 3500s return result 3500s # We have a previous but differently parametrized fixture instance 3500s # so we need to tear it down before creating a new one. 3500s self.finish(request) 3500s assert self.cached_result is None 3500s 3500s ihook = request.node.ihook 3500s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1069: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s kwargs = {'fixturedef': , 'request': >} 3500s firstresult = True 3500s 3500s def __call__(self, **kwargs: object) -> Any: 3500s """Call the hook. 3500s 3500s Only accepts keyword arguments, which should match the hook 3500s specification. 3500s 3500s Returns the result(s) of calling all registered plugins, see 3500s :ref:`calling`. 3500s """ 3500s assert ( 3500s not self.is_historic() 3500s ), "Cannot directly call a historic hook - use call_historic instead." 3500s self._verify_all_args_are_provided(kwargs) 3500s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 3500s # Copy because plugins may register other plugins during iteration (#438). 3500s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = <_pytest.config.PytestPluginManager object at 0xe9079168> 3500s hook_name = 'pytest_fixture_setup' 3500s methods = [>] 3500s kwargs = {'fixturedef': , 'request': >} 3500s firstresult = True 3500s 3500s def _hookexec( 3500s self, 3500s hook_name: str, 3500s methods: Sequence[HookImpl], 3500s kwargs: Mapping[str, object], 3500s firstresult: bool, 3500s ) -> object | list[object]: 3500s # called from all hookcaller instances. 3500s # enable_tracing will set its own wrapping function at self._inner_hookexec 3500s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturedef = 3500s request = > 3500s 3500s def pytest_fixture_setup( 3500s fixturedef: FixtureDef[FixtureValue], request: SubRequest 3500s ) -> FixtureValue: 3500s """Execution of fixture setup.""" 3500s kwargs = {} 3500s for argname in fixturedef.argnames: 3500s fixdef = request._get_active_fixturedef(argname) 3500s assert fixdef.cached_result is not None 3500s result, arg_cache_key, exc = fixdef.cached_result 3500s request._check_scope(argname, request._scope, fixdef._scope) 3500s kwargs[argname] = result 3500s 3500s fixturefunc = resolve_fixture_function(fixturedef, request) 3500s my_cache_key = fixturedef.cache_key(request) 3500s try: 3500s > result = call_fixture_func(fixturefunc, request, kwargs) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1123: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturefunc = 3500s request = > 3500s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv'), 'types_data': [{'B... False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}]} 3500s 3500s def call_fixture_func( 3500s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 3500s ) -> FixtureValue: 3500s if is_generator(fixturefunc): 3500s fixturefunc = cast( 3500s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 3500s ) 3500s generator = fixturefunc(**kwargs) 3500s try: 3500s > fixture_result = next(generator) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:895: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s iris_path = PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv') 3500s types_data = [{'BoolCol': False, 'BoolColWithNull': False, 'DateCol': '2000-01-03 00:00:00', 'DateColWithTz': '2000-01-01 00:00:00-...: False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}] 3500s 3500s @pytest.fixture 3500s def mysql_pymysql_engine(iris_path, types_data): 3500s sqlalchemy = pytest.importorskip("sqlalchemy") 3500s pymysql = pytest.importorskip("pymysql") 3500s engine = sqlalchemy.create_engine( 3500s "mysql+pymysql://root@localhost:3306/pandas", 3500s connect_args={"client_flag": pymysql.constants.CLIENT.MULTI_STATEMENTS}, 3500s poolclass=sqlalchemy.pool.NullPool, 3500s ) 3500s > insp = sqlalchemy.inspect(engine) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:409: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s subject = Engine(mysql+pymysql://root@localhost:3306/pandas), raiseerr = True 3500s 3500s def inspect(subject, raiseerr=True): 3500s """Produce an inspection object for the given target. 3500s 3500s The returned value in some cases may be the 3500s same object as the one given, such as if a 3500s :class:`_orm.Mapper` object is passed. In other 3500s cases, it will be an instance of the registered 3500s inspection type for the given object, such as 3500s if an :class:`_engine.Engine` is passed, an 3500s :class:`_reflection.Inspector` object is returned. 3500s 3500s :param subject: the subject to be inspected. 3500s :param raiseerr: When ``True``, if the given subject 3500s does not 3500s correspond to a known SQLAlchemy inspected type, 3500s :class:`sqlalchemy.exc.NoInspectionAvailable` 3500s is raised. If ``False``, ``None`` is returned. 3500s 3500s """ 3500s type_ = type(subject) 3500s for cls in type_.__mro__: 3500s if cls in _registrars: 3500s reg = _registrars[cls] 3500s if reg is True: 3500s return subject 3500s > ret = reg(subject) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:64: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s @inspection._inspects(Engine) 3500s def _engine_insp(bind): 3500s > return Inspector._construct(Inspector._init_engine, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:182: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s init = 3500s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s @classmethod 3500s def _construct(cls, init, bind): 3500s 3500s if hasattr(bind.dialect, "inspector"): 3500s cls = bind.dialect.inspector 3500s 3500s self = cls.__new__(cls) 3500s > init(self, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:117: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s def _init_engine(self, engine): 3500s self.bind = self.engine = engine 3500s > engine.connect().close() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:128: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s close_with_result = False 3500s 3500s def connect(self, close_with_result=False): 3500s """Return a new :class:`_engine.Connection` object. 3500s 3500s The :class:`_engine.Connection` object is a facade that uses a DBAPI 3500s connection internally in order to communicate with the database. This 3500s connection is procured from the connection-holding :class:`_pool.Pool` 3500s referenced by this :class:`_engine.Engine`. When the 3500s :meth:`_engine.Connection.close` method of the 3500s :class:`_engine.Connection` object 3500s is called, the underlying DBAPI connection is then returned to the 3500s connection pool, where it may be used again in a subsequent call to 3500s :meth:`_engine.Engine.connect`. 3500s 3500s """ 3500s 3500s > return self._connection_cls(self, close_with_result=close_with_result) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3325: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 3500s close_with_result = False, _branch_from = None, _execution_options = None 3500s _dispatch = None, _has_events = None, _allow_revalidate = True 3500s 3500s def __init__( 3500s self, 3500s engine, 3500s connection=None, 3500s close_with_result=False, 3500s _branch_from=None, 3500s _execution_options=None, 3500s _dispatch=None, 3500s _has_events=None, 3500s _allow_revalidate=True, 3500s ): 3500s """Construct a new Connection.""" 3500s self.engine = engine 3500s self.dialect = engine.dialect 3500s self.__branch_from = _branch_from 3500s 3500s if _branch_from: 3500s # branching is always "from" the root connection 3500s assert _branch_from.__branch_from is None 3500s self._dbapi_connection = connection 3500s self._execution_options = _execution_options 3500s self._echo = _branch_from._echo 3500s self.should_close_with_result = False 3500s self.dispatch = _dispatch 3500s self._has_events = _branch_from._has_events 3500s else: 3500s self._dbapi_connection = ( 3500s connection 3500s if connection is not None 3500s > else engine.raw_connection() 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:96: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas), _connection = None 3500s 3500s def raw_connection(self, _connection=None): 3500s """Return a "raw" DBAPI connection from the connection pool. 3500s 3500s The returned object is a proxied version of the DBAPI 3500s connection object used by the underlying driver in use. 3500s The object will have all the same behavior as the real DBAPI 3500s connection, except that its ``close()`` method will result in the 3500s connection being returned to the pool, rather than being closed 3500s for real. 3500s 3500s This method provides direct DBAPI connection access for 3500s special situations when the API provided by 3500s :class:`_engine.Connection` 3500s is not needed. When a :class:`_engine.Connection` object is already 3500s present, the DBAPI connection is available using 3500s the :attr:`_engine.Connection.connection` accessor. 3500s 3500s .. seealso:: 3500s 3500s :ref:`dbapi_connections` 3500s 3500s """ 3500s > return self._wrap_pool_connect(self.pool.connect, _connection) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3404: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s return fn() 3500s except dialect.dbapi.Error as e: 3500s if connection is None: 3500s > Connection._handle_dbapi_exception_noconnection( 3500s e, dialect, self 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3374: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s e = OperationalError(2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3500s dialect = 3500s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s @classmethod 3500s def _handle_dbapi_exception_noconnection(cls, e, dialect, engine): 3500s exc_info = sys.exc_info() 3500s 3500s is_disconnect = dialect.is_disconnect(e, None, None) 3500s 3500s should_wrap = isinstance(e, dialect.dbapi.Error) 3500s 3500s if should_wrap: 3500s sqlalchemy_exception = exc.DBAPIError.instance( 3500s None, 3500s None, 3500s e, 3500s dialect.dbapi.Error, 3500s hide_parameters=engine.hide_parameters, 3500s connection_invalidated=is_disconnect, 3500s ) 3500s else: 3500s sqlalchemy_exception = None 3500s 3500s newraise = None 3500s 3500s if engine._has_events: 3500s ctx = ExceptionContextImpl( 3500s e, 3500s sqlalchemy_exception, 3500s engine, 3500s None, 3500s None, 3500s None, 3500s None, 3500s None, 3500s is_disconnect, 3500s True, 3500s ) 3500s for fn in engine.dispatch.handle_error: 3500s try: 3500s # handler returns an exception; 3500s # call next handler in a chain 3500s per_fn = fn(ctx) 3500s if per_fn is not None: 3500s ctx.chained_exception = newraise = per_fn 3500s except Exception as _raised: 3500s # handler raises an exception - stop processing 3500s newraise = _raised 3500s break 3500s 3500s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 3500s sqlalchemy_exception.connection_invalidated = ( 3500s is_disconnect 3500s ) = ctx.is_disconnect 3500s 3500s if newraise: 3500s util.raise_(newraise, with_traceback=exc_info[2], from_=e) 3500s elif should_wrap: 3500s > util.raise_( 3500s sqlalchemy_exception, with_traceback=exc_info[2], from_=e 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2208: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __init__( 3500s self, 3500s *, 3500s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 3500s password="", 3500s host=None, 3500s database=None, 3500s unix_socket=None, 3500s port=0, 3500s charset="", 3500s collation=None, 3500s sql_mode=None, 3500s read_default_file=None, 3500s conv=None, 3500s use_unicode=True, 3500s client_flag=0, 3500s cursorclass=Cursor, 3500s init_command=None, 3500s connect_timeout=10, 3500s read_default_group=None, 3500s autocommit=False, 3500s local_infile=False, 3500s max_allowed_packet=16 * 1024 * 1024, 3500s defer_connect=False, 3500s auth_plugin_map=None, 3500s read_timeout=None, 3500s write_timeout=None, 3500s bind_address=None, 3500s binary_prefix=False, 3500s program_name=None, 3500s server_public_key=None, 3500s ssl=None, 3500s ssl_ca=None, 3500s ssl_cert=None, 3500s ssl_disabled=None, 3500s ssl_key=None, 3500s ssl_key_password=None, 3500s ssl_verify_cert=None, 3500s ssl_verify_identity=None, 3500s compress=None, # not supported 3500s named_pipe=None, # not supported 3500s passwd=None, # deprecated 3500s db=None, # deprecated 3500s ): 3500s if db is not None and database is None: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 3500s database = db 3500s if passwd is not None and not password: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn( 3500s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 3500s # ) 3500s password = passwd 3500s 3500s if compress or named_pipe: 3500s raise NotImplementedError( 3500s "compress and named_pipe arguments are not supported" 3500s ) 3500s 3500s self._local_infile = bool(local_infile) 3500s if self._local_infile: 3500s client_flag |= CLIENT.LOCAL_FILES 3500s 3500s if read_default_group and not read_default_file: 3500s if sys.platform.startswith("win"): 3500s read_default_file = "c:\\my.ini" 3500s else: 3500s read_default_file = "/etc/my.cnf" 3500s 3500s if read_default_file: 3500s if not read_default_group: 3500s read_default_group = "client" 3500s 3500s cfg = Parser() 3500s cfg.read(os.path.expanduser(read_default_file)) 3500s 3500s def _config(key, arg): 3500s if arg: 3500s return arg 3500s try: 3500s return cfg.get(read_default_group, key) 3500s except Exception: 3500s return arg 3500s 3500s user = _config("user", user) 3500s password = _config("password", password) 3500s host = _config("host", host) 3500s database = _config("database", database) 3500s unix_socket = _config("socket", unix_socket) 3500s port = int(_config("port", port)) 3500s bind_address = _config("bind-address", bind_address) 3500s charset = _config("default-character-set", charset) 3500s if not ssl: 3500s ssl = {} 3500s if isinstance(ssl, dict): 3500s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 3500s value = _config("ssl-" + key, ssl.get(key)) 3500s if value: 3500s ssl[key] = value 3500s 3500s self.ssl = False 3500s if not ssl_disabled: 3500s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 3500s ssl = { 3500s "ca": ssl_ca, 3500s "check_hostname": bool(ssl_verify_identity), 3500s "verify_mode": ssl_verify_cert 3500s if ssl_verify_cert is not None 3500s else False, 3500s } 3500s if ssl_cert is not None: 3500s ssl["cert"] = ssl_cert 3500s if ssl_key is not None: 3500s ssl["key"] = ssl_key 3500s if ssl_key_password is not None: 3500s ssl["password"] = ssl_key_password 3500s if ssl: 3500s if not SSL_ENABLED: 3500s raise NotImplementedError("ssl module not found") 3500s self.ssl = True 3500s client_flag |= CLIENT.SSL 3500s self.ctx = self._create_ssl_ctx(ssl) 3500s 3500s self.host = host or "localhost" 3500s self.port = port or 3306 3500s if type(self.port) is not int: 3500s raise ValueError("port should be of type int") 3500s self.user = user or DEFAULT_USER 3500s self.password = password or b"" 3500s if isinstance(self.password, str): 3500s self.password = self.password.encode("latin1") 3500s self.db = database 3500s self.unix_socket = unix_socket 3500s self.bind_address = bind_address 3500s if not (0 < connect_timeout <= 31536000): 3500s raise ValueError("connect_timeout should be >0 and <=31536000") 3500s self.connect_timeout = connect_timeout or None 3500s if read_timeout is not None and read_timeout <= 0: 3500s raise ValueError("read_timeout should be > 0") 3500s self._read_timeout = read_timeout 3500s if write_timeout is not None and write_timeout <= 0: 3500s raise ValueError("write_timeout should be > 0") 3500s self._write_timeout = write_timeout 3500s 3500s self.charset = charset or DEFAULT_CHARSET 3500s self.collation = collation 3500s self.use_unicode = use_unicode 3500s 3500s self.encoding = charset_by_name(self.charset).encoding 3500s 3500s client_flag |= CLIENT.CAPABILITIES 3500s if self.db: 3500s client_flag |= CLIENT.CONNECT_WITH_DB 3500s 3500s self.client_flag = client_flag 3500s 3500s self.cursorclass = cursorclass 3500s 3500s self._result = None 3500s self._affected_rows = 0 3500s self.host_info = "Not connected" 3500s 3500s # specified autocommit mode. None means use server default. 3500s self.autocommit_mode = autocommit 3500s 3500s if conv is None: 3500s conv = converters.conversions 3500s 3500s # Need for MySQLdb compatibility. 3500s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 3500s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 3500s self.sql_mode = sql_mode 3500s self.init_command = init_command 3500s self.max_allowed_packet = max_allowed_packet 3500s self._auth_plugin_map = auth_plugin_map or {} 3500s self._binary_prefix = binary_prefix 3500s self.server_public_key = server_public_key 3500s 3500s self._connect_attrs = { 3500s "_client_name": "pymysql", 3500s "_client_version": VERSION_STRING, 3500s "_pid": str(os.getpid()), 3500s } 3500s 3500s if program_name: 3500s self._connect_attrs["program_name"] = program_name 3500s 3500s if defer_connect: 3500s self._sock = None 3500s else: 3500s > self.connect() 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = , sock = None 3500s 3500s def connect(self, sock=None): 3500s self._closed = False 3500s try: 3500s if sock is None: 3500s if self.unix_socket: 3500s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3500s sock.settimeout(self.connect_timeout) 3500s sock.connect(self.unix_socket) 3500s self.host_info = "Localhost via UNIX socket" 3500s self._secure = True 3500s if DEBUG: 3500s print("connected using unix_socket") 3500s else: 3500s kwargs = {} 3500s if self.bind_address is not None: 3500s kwargs["source_address"] = (self.bind_address, 0) 3500s while True: 3500s try: 3500s sock = socket.create_connection( 3500s (self.host, self.port), self.connect_timeout, **kwargs 3500s ) 3500s break 3500s except OSError as e: 3500s if e.errno == errno.EINTR: 3500s continue 3500s raise 3500s self.host_info = "socket %s:%d" % (self.host, self.port) 3500s if DEBUG: 3500s print("connected using socket") 3500s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 3500s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 3500s sock.settimeout(None) 3500s 3500s self._sock = sock 3500s self._rfile = sock.makefile("rb") 3500s self._next_seq_id = 0 3500s 3500s self._get_server_information() 3500s self._request_authentication() 3500s 3500s # Send "SET NAMES" query on init for: 3500s # - Ensure charaset (and collation) is set to the server. 3500s # - collation_id in handshake packet may be ignored. 3500s # - If collation is not specified, we don't know what is server's 3500s # default collation for the charset. For example, default collation 3500s # of utf8mb4 is: 3500s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 3500s # - MySQL 8.0: utf8mb4_0900_ai_ci 3500s # 3500s # Reference: 3500s # - https://github.com/PyMySQL/PyMySQL/issues/1092 3500s # - https://github.com/wagtail/wagtail/issues/9477 3500s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 3500s self.set_character_set(self.charset, self.collation) 3500s 3500s if self.sql_mode is not None: 3500s c = self.cursor() 3500s c.execute("SET sql_mode=%s", (self.sql_mode,)) 3500s c.close() 3500s 3500s if self.init_command is not None: 3500s c = self.cursor() 3500s c.execute(self.init_command) 3500s c.close() 3500s 3500s if self.autocommit_mode is not None: 3500s self.autocommit(self.autocommit_mode) 3500s except BaseException as e: 3500s self._rfile = None 3500s if sock is not None: 3500s try: 3500s sock.close() 3500s except: # noqa 3500s pass 3500s 3500s if isinstance(e, (OSError, IOError)): 3500s exc = err.OperationalError( 3500s CR.CR_CONN_HOST_ERROR, 3500s f"Can't connect to MySQL server on {self.host!r} ({e})", 3500s ) 3500s # Keep original exception and traceback to investigate error. 3500s exc.original_exception = e 3500s exc.traceback = traceback.format_exc() 3500s if DEBUG: 3500s print(exc.traceback) 3500s > raise exc 3500s E sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3500s E (Background on this error at: https://sqlalche.me/e/14/e3q8) 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 3500s __________ test_read_iris_table_chunksize[postgresql_psycopg2_engine] __________ 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s dsn = 'host=localhost user=postgres password=postgres port=5432 dbname=pandas' 3500s connection_factory = None, cursor_factory = None 3500s kwargs = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s kwasync = {} 3500s 3500s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 3500s """ 3500s Create a new database connection. 3500s 3500s The connection parameters can be specified as a string: 3500s 3500s conn = psycopg2.connect("dbname=test user=postgres password=secret") 3500s 3500s or using a set of keyword arguments: 3500s 3500s conn = psycopg2.connect(database="test", user="postgres", password="secret") 3500s 3500s Or as a mix of both. The basic connection parameters are: 3500s 3500s - *dbname*: the database name 3500s - *database*: the database name (only as keyword argument) 3500s - *user*: user name used to authenticate 3500s - *password*: password used to authenticate 3500s - *host*: database host address (defaults to UNIX socket if not provided) 3500s - *port*: connection port number (defaults to 5432 if not provided) 3500s 3500s Using the *connection_factory* parameter a different class or connections 3500s factory can be specified. It should be a callable object taking a dsn 3500s argument. 3500s 3500s Using the *cursor_factory* parameter, a new default cursor factory will be 3500s used by cursor(). 3500s 3500s Using *async*=True an asynchronous connection will be created. *async_* is 3500s a valid alias (for Python versions where ``async`` is a keyword). 3500s 3500s Any other keyword parameter will be passed to the underlying client 3500s library: the list of supported parameters depends on the library version. 3500s 3500s """ 3500s kwasync = {} 3500s if 'async' in kwargs: 3500s kwasync['async'] = kwargs.pop('async') 3500s if 'async_' in kwargs: 3500s kwasync['async_'] = kwargs.pop('async_') 3500s 3500s dsn = _ext.make_dsn(dsn, **kwargs) 3500s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 3500s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 3500s E Is the server running on that host and accepting TCP/IP connections? 3500s 3500s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 3500s 3500s The above exception was the direct cause of the following exception: 3500s 3500s conn = 'postgresql_psycopg2_engine' 3500s request = > 3500s 3500s @pytest.mark.db 3500s @pytest.mark.parametrize("conn", sqlalchemy_connectable_iris) 3500s def test_read_iris_table_chunksize(conn, request): 3500s > conn = request.getfixturevalue(conn) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:702: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'postgresql_psycopg2_engine' 3500s 3500s def getfixturevalue(self, argname: str) -> Any: 3500s """Dynamically run a named fixture function. 3500s 3500s Declaring fixtures via function argument is recommended where possible. 3500s But if you can only decide whether to use another fixture at test 3500s setup time, you may use this function to retrieve it inside a fixture 3500s or test function body. 3500s 3500s This method can be used during the test setup phase or the test run 3500s phase, but during the test teardown phase a fixture's value may not 3500s be available. 3500s 3500s :param argname: 3500s The fixture name. 3500s :raises pytest.FixtureLookupError: 3500s If the given fixture could not be found. 3500s """ 3500s > fixturedef = self._get_active_fixturedef(argname) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:585: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'postgresql_psycopg2_engine' 3500s 3500s def _get_active_fixturedef( 3500s self, argname: str 3500s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3500s try: 3500s return self._fixture_defs[argname] 3500s except KeyError: 3500s try: 3500s fixturedef = self._getnextfixturedef(argname) 3500s except FixtureLookupError: 3500s if argname == "request": 3500s cached_result = (self, [0], None) 3500s return PseudoFixtureDef(cached_result, Scope.Function) 3500s raise 3500s # Remove indent to prevent the python3 exception 3500s # from leaking into the call. 3500s > self._compute_fixture_value(fixturedef) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s fixturedef = 3500s 3500s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3500s """Create a SubRequest based on "self" and call the execute method 3500s of the given FixtureDef object. 3500s 3500s This will force the FixtureDef object to throw away any previous 3500s results and compute a new fixture value, which will be stored into 3500s the FixtureDef object itself. 3500s """ 3500s # prepare a subrequest object before calling fixture function 3500s # (latter managed by fixturedef) 3500s argname = fixturedef.argname 3500s funcitem = self._pyfuncitem 3500s scope = fixturedef._scope 3500s try: 3500s callspec = funcitem.callspec 3500s except AttributeError: 3500s callspec = None 3500s if callspec is not None and argname in callspec.params: 3500s param = callspec.params[argname] 3500s param_index = callspec.indices[argname] 3500s # If a parametrize invocation set a scope it will override 3500s # the static scope defined with the fixture function. 3500s with suppress(KeyError): 3500s scope = callspec._arg2scope[argname] 3500s else: 3500s param = NOTSET 3500s param_index = 0 3500s has_params = fixturedef.params is not None 3500s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3500s if has_params and fixtures_not_supported: 3500s msg = ( 3500s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3500s "Node id: {nodeid}\n" 3500s "Function type: {typename}" 3500s ).format( 3500s name=funcitem.name, 3500s nodeid=funcitem.nodeid, 3500s typename=type(funcitem).__name__, 3500s ) 3500s fail(msg, pytrace=False) 3500s if has_params: 3500s frame = inspect.stack()[3] 3500s frameinfo = inspect.getframeinfo(frame[0]) 3500s source_path = absolutepath(frameinfo.filename) 3500s source_lineno = frameinfo.lineno 3500s try: 3500s source_path_str = str( 3500s source_path.relative_to(funcitem.config.rootpath) 3500s ) 3500s except ValueError: 3500s source_path_str = str(source_path) 3500s msg = ( 3500s "The requested fixture has no parameter defined for test:\n" 3500s " {}\n\n" 3500s "Requested fixture '{}' defined in:\n{}" 3500s "\n\nRequested here:\n{}:{}".format( 3500s funcitem.nodeid, 3500s fixturedef.argname, 3500s getlocation(fixturedef.func, funcitem.config.rootpath), 3500s source_path_str, 3500s source_lineno, 3500s ) 3500s ) 3500s fail(msg, pytrace=False) 3500s 3500s subrequest = SubRequest( 3500s self, scope, param, param_index, fixturedef, _ispytest=True 3500s ) 3500s 3500s # Check if a higher-level scoped fixture accesses a lower level one. 3500s subrequest._check_scope(argname, self._scope, scope) 3500s try: 3500s # Call the fixture function. 3500s > fixturedef.execute(request=subrequest) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s request = > 3500s 3500s def execute(self, request: SubRequest) -> FixtureValue: 3500s # Get required arguments and register our own finish() 3500s # with their finalization. 3500s for argname in self.argnames: 3500s fixturedef = request._get_active_fixturedef(argname) 3500s if argname != "request": 3500s # PseudoFixtureDef is only for "request". 3500s assert isinstance(fixturedef, FixtureDef) 3500s fixturedef.addfinalizer(functools.partial(self.finish, request=request)) 3500s 3500s my_cache_key = self.cache_key(request) 3500s if self.cached_result is not None: 3500s # note: comparison with `==` can fail (or be expensive) for e.g. 3500s # numpy arrays (#6497). 3500s cache_key = self.cached_result[1] 3500s if my_cache_key is cache_key: 3500s if self.cached_result[2] is not None: 3500s _, val, tb = self.cached_result[2] 3500s raise val.with_traceback(tb) 3500s else: 3500s result = self.cached_result[0] 3500s return result 3500s # We have a previous but differently parametrized fixture instance 3500s # so we need to tear it down before creating a new one. 3500s self.finish(request) 3500s assert self.cached_result is None 3500s 3500s ihook = request.node.ihook 3500s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1069: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s kwargs = {'fixturedef': , 'request': >} 3500s firstresult = True 3500s 3500s def __call__(self, **kwargs: object) -> Any: 3500s """Call the hook. 3500s 3500s Only accepts keyword arguments, which should match the hook 3500s specification. 3500s 3500s Returns the result(s) of calling all registered plugins, see 3500s :ref:`calling`. 3500s """ 3500s assert ( 3500s not self.is_historic() 3500s ), "Cannot directly call a historic hook - use call_historic instead." 3500s self._verify_all_args_are_provided(kwargs) 3500s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 3500s # Copy because plugins may register other plugins during iteration (#438). 3500s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = <_pytest.config.PytestPluginManager object at 0xe9079168> 3500s hook_name = 'pytest_fixture_setup' 3500s methods = [>] 3500s kwargs = {'fixturedef': , 'request': >} 3500s firstresult = True 3500s 3500s def _hookexec( 3500s self, 3500s hook_name: str, 3500s methods: Sequence[HookImpl], 3500s kwargs: Mapping[str, object], 3500s firstresult: bool, 3500s ) -> object | list[object]: 3500s # called from all hookcaller instances. 3500s # enable_tracing will set its own wrapping function at self._inner_hookexec 3500s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturedef = 3500s request = > 3500s 3500s def pytest_fixture_setup( 3500s fixturedef: FixtureDef[FixtureValue], request: SubRequest 3500s ) -> FixtureValue: 3500s """Execution of fixture setup.""" 3500s kwargs = {} 3500s for argname in fixturedef.argnames: 3500s fixdef = request._get_active_fixturedef(argname) 3500s assert fixdef.cached_result is not None 3500s result, arg_cache_key, exc = fixdef.cached_result 3500s request._check_scope(argname, request._scope, fixdef._scope) 3500s kwargs[argname] = result 3500s 3500s fixturefunc = resolve_fixture_function(fixturedef, request) 3500s my_cache_key = fixturedef.cache_key(request) 3500s try: 3500s > result = call_fixture_func(fixturefunc, request, kwargs) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1123: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturefunc = 3500s request = > 3500s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv'), 'types_data': [{'B... False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}]} 3500s 3500s def call_fixture_func( 3500s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 3500s ) -> FixtureValue: 3500s if is_generator(fixturefunc): 3500s fixturefunc = cast( 3500s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 3500s ) 3500s generator = fixturefunc(**kwargs) 3500s try: 3500s > fixture_result = next(generator) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:895: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s iris_path = PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv') 3500s types_data = [{'BoolCol': False, 'BoolColWithNull': False, 'DateCol': '2000-01-03 00:00:00', 'DateColWithTz': '2000-01-01 00:00:00-...: False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}] 3500s 3500s @pytest.fixture 3500s def postgresql_psycopg2_engine(iris_path, types_data): 3500s sqlalchemy = pytest.importorskip("sqlalchemy") 3500s pytest.importorskip("psycopg2") 3500s engine = sqlalchemy.create_engine( 3500s "postgresql+psycopg2://postgres:postgres@localhost:5432/pandas", 3500s poolclass=sqlalchemy.pool.NullPool, 3500s ) 3500s > insp = sqlalchemy.inspect(engine) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:438: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s subject = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s raiseerr = True 3500s 3500s def inspect(subject, raiseerr=True): 3500s """Produce an inspection object for the given target. 3500s 3500s The returned value in some cases may be the 3500s same object as the one given, such as if a 3500s :class:`_orm.Mapper` object is passed. In other 3500s cases, it will be an instance of the registered 3500s inspection type for the given object, such as 3500s if an :class:`_engine.Engine` is passed, an 3500s :class:`_reflection.Inspector` object is returned. 3500s 3500s :param subject: the subject to be inspected. 3500s :param raiseerr: When ``True``, if the given subject 3500s does not 3500s correspond to a known SQLAlchemy inspected type, 3500s :class:`sqlalchemy.exc.NoInspectionAvailable` 3500s is raised. If ``False``, ``None`` is returned. 3500s 3500s """ 3500s type_ = type(subject) 3500s for cls in type_.__mro__: 3500s if cls in _registrars: 3500s reg = _registrars[cls] 3500s if reg is True: 3500s return subject 3500s > ret = reg(subject) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:64: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s @inspection._inspects(Engine) 3500s def _engine_insp(bind): 3500s > return Inspector._construct(Inspector._init_engine, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:182: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s init = 3500s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s @classmethod 3500s def _construct(cls, init, bind): 3500s 3500s if hasattr(bind.dialect, "inspector"): 3500s cls = bind.dialect.inspector 3500s 3500s self = cls.__new__(cls) 3500s > init(self, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:117: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s def _init_engine(self, engine): 3500s self.bind = self.engine = engine 3500s > engine.connect().close() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:128: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s close_with_result = False 3500s 3500s def connect(self, close_with_result=False): 3500s """Return a new :class:`_engine.Connection` object. 3500s 3500s The :class:`_engine.Connection` object is a facade that uses a DBAPI 3500s connection internally in order to communicate with the database. This 3500s connection is procured from the connection-holding :class:`_pool.Pool` 3500s referenced by this :class:`_engine.Engine`. When the 3500s :meth:`_engine.Connection.close` method of the 3500s :class:`_engine.Connection` object 3500s is called, the underlying DBAPI connection is then returned to the 3500s connection pool, where it may be used again in a subsequent call to 3500s :meth:`_engine.Engine.connect`. 3500s 3500s """ 3500s 3500s > return self._connection_cls(self, close_with_result=close_with_result) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3325: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s connection = None, close_with_result = False, _branch_from = None 3500s _execution_options = None, _dispatch = None, _has_events = None 3500s _allow_revalidate = True 3500s 3500s def __init__( 3500s self, 3500s engine, 3500s connection=None, 3500s close_with_result=False, 3500s _branch_from=None, 3500s _execution_options=None, 3500s _dispatch=None, 3500s _has_events=None, 3500s _allow_revalidate=True, 3500s ): 3500s """Construct a new Connection.""" 3500s self.engine = engine 3500s self.dialect = engine.dialect 3500s self.__branch_from = _branch_from 3500s 3500s if _branch_from: 3500s # branching is always "from" the root connection 3500s assert _branch_from.__branch_from is None 3500s self._dbapi_connection = connection 3500s self._execution_options = _execution_options 3500s self._echo = _branch_from._echo 3500s self.should_close_with_result = False 3500s self.dispatch = _dispatch 3500s self._has_events = _branch_from._has_events 3500s else: 3500s self._dbapi_connection = ( 3500s connection 3500s if connection is not None 3500s > else engine.raw_connection() 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:96: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s _connection = None 3500s 3500s def raw_connection(self, _connection=None): 3500s """Return a "raw" DBAPI connection from the connection pool. 3500s 3500s The returned object is a proxied version of the DBAPI 3500s connection object used by the underlying driver in use. 3500s The object will have all the same behavior as the real DBAPI 3500s connection, except that its ``close()`` method will result in the 3500s connection being returned to the pool, rather than being closed 3500s for real. 3500s 3500s This method provides direct DBAPI connection access for 3500s special situations when the API provided by 3500s :class:`_engine.Connection` 3500s is not needed. When a :class:`_engine.Connection` object is already 3500s present, the DBAPI connection is available using 3500s the :attr:`_engine.Connection.connection` accessor. 3500s 3500s .. seealso:: 3500s 3500s :ref:`dbapi_connections` 3500s 3500s """ 3500s > return self._wrap_pool_connect(self.pool.connect, _connection) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3404: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s return fn() 3500s except dialect.dbapi.Error as e: 3500s if connection is None: 3500s > Connection._handle_dbapi_exception_noconnection( 3500s e, dialect, self 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3374: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s e = OperationalError('connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused\n\tIs the server running on that host and accepting TCP/IP connections?\n') 3500s dialect = 3500s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s @classmethod 3500s def _handle_dbapi_exception_noconnection(cls, e, dialect, engine): 3500s exc_info = sys.exc_info() 3500s 3500s is_disconnect = dialect.is_disconnect(e, None, None) 3500s 3500s should_wrap = isinstance(e, dialect.dbapi.Error) 3500s 3500s if should_wrap: 3500s sqlalchemy_exception = exc.DBAPIError.instance( 3500s None, 3500s None, 3500s e, 3500s dialect.dbapi.Error, 3500s hide_parameters=engine.hide_parameters, 3500s connection_invalidated=is_disconnect, 3500s ) 3500s else: 3500s sqlalchemy_exception = None 3500s 3500s newraise = None 3500s 3500s if engine._has_events: 3500s ctx = ExceptionContextImpl( 3500s e, 3500s sqlalchemy_exception, 3500s engine, 3500s None, 3500s None, 3500s None, 3500s None, 3500s None, 3500s is_disconnect, 3500s True, 3500s ) 3500s for fn in engine.dispatch.handle_error: 3500s try: 3500s # handler returns an exception; 3500s # call next handler in a chain 3500s per_fn = fn(ctx) 3500s if per_fn is not None: 3500s ctx.chained_exception = newraise = per_fn 3500s except Exception as _raised: 3500s # handler raises an exception - stop processing 3500s newraise = _raised 3500s break 3500s 3500s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 3500s sqlalchemy_exception.connection_invalidated = ( 3500s is_disconnect 3500s ) = ctx.is_disconnect 3500s 3500s if newraise: 3500s util.raise_(newraise, with_traceback=exc_info[2], from_=e) 3500s elif should_wrap: 3500s > util.raise_( 3500s sqlalchemy_exception, with_traceback=exc_info[2], from_=e 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2208: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s dsn = 'host=localhost user=postgres password=postgres port=5432 dbname=pandas' 3500s connection_factory = None, cursor_factory = None 3500s kwargs = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s kwasync = {} 3500s 3500s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 3500s """ 3500s Create a new database connection. 3500s 3500s The connection parameters can be specified as a string: 3500s 3500s conn = psycopg2.connect("dbname=test user=postgres password=secret") 3500s 3500s or using a set of keyword arguments: 3500s 3500s conn = psycopg2.connect(database="test", user="postgres", password="secret") 3500s 3500s Or as a mix of both. The basic connection parameters are: 3500s 3500s - *dbname*: the database name 3500s - *database*: the database name (only as keyword argument) 3500s - *user*: user name used to authenticate 3500s - *password*: password used to authenticate 3500s - *host*: database host address (defaults to UNIX socket if not provided) 3500s - *port*: connection port number (defaults to 5432 if not provided) 3500s 3500s Using the *connection_factory* parameter a different class or connections 3500s factory can be specified. It should be a callable object taking a dsn 3500s argument. 3500s 3500s Using the *cursor_factory* parameter, a new default cursor factory will be 3500s used by cursor(). 3500s 3500s Using *async*=True an asynchronous connection will be created. *async_* is 3500s a valid alias (for Python versions where ``async`` is a keyword). 3500s 3500s Any other keyword parameter will be passed to the underlying client 3500s library: the list of supported parameters depends on the library version. 3500s 3500s """ 3500s kwasync = {} 3500s if 'async' in kwargs: 3500s kwasync['async'] = kwargs.pop('async') 3500s if 'async_' in kwargs: 3500s kwasync['async_'] = kwargs.pop('async_') 3500s 3500s dsn = _ext.make_dsn(dsn, **kwargs) 3500s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 3500s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 3500s E Is the server running on that host and accepting TCP/IP connections? 3500s E 3500s E (Background on this error at: https://sqlalche.me/e/14/e3q8) 3500s 3500s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 3500s ___________ test_read_iris_table_chunksize[postgresql_psycopg2_conn] ___________ 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s dsn = 'host=localhost user=postgres password=postgres port=5432 dbname=pandas' 3500s connection_factory = None, cursor_factory = None 3500s kwargs = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s kwasync = {} 3500s 3500s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 3500s """ 3500s Create a new database connection. 3500s 3500s The connection parameters can be specified as a string: 3500s 3500s conn = psycopg2.connect("dbname=test user=postgres password=secret") 3500s 3500s or using a set of keyword arguments: 3500s 3500s conn = psycopg2.connect(database="test", user="postgres", password="secret") 3500s 3500s Or as a mix of both. The basic connection parameters are: 3500s 3500s - *dbname*: the database name 3500s - *database*: the database name (only as keyword argument) 3500s - *user*: user name used to authenticate 3500s - *password*: password used to authenticate 3500s - *host*: database host address (defaults to UNIX socket if not provided) 3500s - *port*: connection port number (defaults to 5432 if not provided) 3500s 3500s Using the *connection_factory* parameter a different class or connections 3500s factory can be specified. It should be a callable object taking a dsn 3500s argument. 3500s 3500s Using the *cursor_factory* parameter, a new default cursor factory will be 3500s used by cursor(). 3500s 3500s Using *async*=True an asynchronous connection will be created. *async_* is 3500s a valid alias (for Python versions where ``async`` is a keyword). 3500s 3500s Any other keyword parameter will be passed to the underlying client 3500s library: the list of supported parameters depends on the library version. 3500s 3500s """ 3500s kwasync = {} 3500s if 'async' in kwargs: 3500s kwasync['async'] = kwargs.pop('async') 3500s if 'async_' in kwargs: 3500s kwasync['async_'] = kwargs.pop('async_') 3500s 3500s dsn = _ext.make_dsn(dsn, **kwargs) 3500s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 3500s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 3500s E Is the server running on that host and accepting TCP/IP connections? 3500s 3500s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 3500s 3500s The above exception was the direct cause of the following exception: 3500s 3500s conn = 'postgresql_psycopg2_conn' 3500s request = > 3500s 3500s @pytest.mark.db 3500s @pytest.mark.parametrize("conn", sqlalchemy_connectable_iris) 3500s def test_read_iris_table_chunksize(conn, request): 3500s > conn = request.getfixturevalue(conn) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:702: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'postgresql_psycopg2_conn' 3500s 3500s def getfixturevalue(self, argname: str) -> Any: 3500s """Dynamically run a named fixture function. 3500s 3500s Declaring fixtures via function argument is recommended where possible. 3500s But if you can only decide whether to use another fixture at test 3500s setup time, you may use this function to retrieve it inside a fixture 3500s or test function body. 3500s 3500s This method can be used during the test setup phase or the test run 3500s phase, but during the test teardown phase a fixture's value may not 3500s be available. 3500s 3500s :param argname: 3500s The fixture name. 3500s :raises pytest.FixtureLookupError: 3500s If the given fixture could not be found. 3500s """ 3500s > fixturedef = self._get_active_fixturedef(argname) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:585: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'postgresql_psycopg2_conn' 3500s 3500s def _get_active_fixturedef( 3500s self, argname: str 3500s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3500s try: 3500s return self._fixture_defs[argname] 3500s except KeyError: 3500s try: 3500s fixturedef = self._getnextfixturedef(argname) 3500s except FixtureLookupError: 3500s if argname == "request": 3500s cached_result = (self, [0], None) 3500s return PseudoFixtureDef(cached_result, Scope.Function) 3500s raise 3500s # Remove indent to prevent the python3 exception 3500s # from leaking into the call. 3500s > self._compute_fixture_value(fixturedef) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s fixturedef = 3500s 3500s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3500s """Create a SubRequest based on "self" and call the execute method 3500s of the given FixtureDef object. 3500s 3500s This will force the FixtureDef object to throw away any previous 3500s results and compute a new fixture value, which will be stored into 3500s the FixtureDef object itself. 3500s """ 3500s # prepare a subrequest object before calling fixture function 3500s # (latter managed by fixturedef) 3500s argname = fixturedef.argname 3500s funcitem = self._pyfuncitem 3500s scope = fixturedef._scope 3500s try: 3500s callspec = funcitem.callspec 3500s except AttributeError: 3500s callspec = None 3500s if callspec is not None and argname in callspec.params: 3500s param = callspec.params[argname] 3500s param_index = callspec.indices[argname] 3500s # If a parametrize invocation set a scope it will override 3500s # the static scope defined with the fixture function. 3500s with suppress(KeyError): 3500s scope = callspec._arg2scope[argname] 3500s else: 3500s param = NOTSET 3500s param_index = 0 3500s has_params = fixturedef.params is not None 3500s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3500s if has_params and fixtures_not_supported: 3500s msg = ( 3500s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3500s "Node id: {nodeid}\n" 3500s "Function type: {typename}" 3500s ).format( 3500s name=funcitem.name, 3500s nodeid=funcitem.nodeid, 3500s typename=type(funcitem).__name__, 3500s ) 3500s fail(msg, pytrace=False) 3500s if has_params: 3500s frame = inspect.stack()[3] 3500s frameinfo = inspect.getframeinfo(frame[0]) 3500s source_path = absolutepath(frameinfo.filename) 3500s source_lineno = frameinfo.lineno 3500s try: 3500s source_path_str = str( 3500s source_path.relative_to(funcitem.config.rootpath) 3500s ) 3500s except ValueError: 3500s source_path_str = str(source_path) 3500s msg = ( 3500s "The requested fixture has no parameter defined for test:\n" 3500s " {}\n\n" 3500s "Requested fixture '{}' defined in:\n{}" 3500s "\n\nRequested here:\n{}:{}".format( 3500s funcitem.nodeid, 3500s fixturedef.argname, 3500s getlocation(fixturedef.func, funcitem.config.rootpath), 3500s source_path_str, 3500s source_lineno, 3500s ) 3500s ) 3500s fail(msg, pytrace=False) 3500s 3500s subrequest = SubRequest( 3500s self, scope, param, param_index, fixturedef, _ispytest=True 3500s ) 3500s 3500s # Check if a higher-level scoped fixture accesses a lower level one. 3500s subrequest._check_scope(argname, self._scope, scope) 3500s try: 3500s # Call the fixture function. 3500s > fixturedef.execute(request=subrequest) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s request = > 3500s 3500s def execute(self, request: SubRequest) -> FixtureValue: 3500s # Get required arguments and register our own finish() 3500s # with their finalization. 3500s for argname in self.argnames: 3500s > fixturedef = request._get_active_fixturedef(argname) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1045: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'postgresql_psycopg2_engine' 3500s 3500s def _get_active_fixturedef( 3500s self, argname: str 3500s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3500s try: 3500s return self._fixture_defs[argname] 3500s except KeyError: 3500s try: 3500s fixturedef = self._getnextfixturedef(argname) 3500s except FixtureLookupError: 3500s if argname == "request": 3500s cached_result = (self, [0], None) 3500s return PseudoFixtureDef(cached_result, Scope.Function) 3500s raise 3500s # Remove indent to prevent the python3 exception 3500s # from leaking into the call. 3500s > self._compute_fixture_value(fixturedef) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s fixturedef = 3500s 3500s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3500s """Create a SubRequest based on "self" and call the execute method 3500s of the given FixtureDef object. 3500s 3500s This will force the FixtureDef object to throw away any previous 3500s results and compute a new fixture value, which will be stored into 3500s the FixtureDef object itself. 3500s """ 3500s # prepare a subrequest object before calling fixture function 3500s # (latter managed by fixturedef) 3500s argname = fixturedef.argname 3500s funcitem = self._pyfuncitem 3500s scope = fixturedef._scope 3500s try: 3500s callspec = funcitem.callspec 3500s except AttributeError: 3500s callspec = None 3500s if callspec is not None and argname in callspec.params: 3500s param = callspec.params[argname] 3500s param_index = callspec.indices[argname] 3500s # If a parametrize invocation set a scope it will override 3500s # the static scope defined with the fixture function. 3500s with suppress(KeyError): 3500s scope = callspec._arg2scope[argname] 3500s else: 3500s param = NOTSET 3500s param_index = 0 3500s has_params = fixturedef.params is not None 3500s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3500s if has_params and fixtures_not_supported: 3500s msg = ( 3500s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3500s "Node id: {nodeid}\n" 3500s "Function type: {typename}" 3500s ).format( 3500s name=funcitem.name, 3500s nodeid=funcitem.nodeid, 3500s typename=type(funcitem).__name__, 3500s ) 3500s fail(msg, pytrace=False) 3500s if has_params: 3500s frame = inspect.stack()[3] 3500s frameinfo = inspect.getframeinfo(frame[0]) 3500s source_path = absolutepath(frameinfo.filename) 3500s source_lineno = frameinfo.lineno 3500s try: 3500s source_path_str = str( 3500s source_path.relative_to(funcitem.config.rootpath) 3500s ) 3500s except ValueError: 3500s source_path_str = str(source_path) 3500s msg = ( 3500s "The requested fixture has no parameter defined for test:\n" 3500s " {}\n\n" 3500s "Requested fixture '{}' defined in:\n{}" 3500s "\n\nRequested here:\n{}:{}".format( 3500s funcitem.nodeid, 3500s fixturedef.argname, 3500s getlocation(fixturedef.func, funcitem.config.rootpath), 3500s source_path_str, 3500s source_lineno, 3500s ) 3500s ) 3500s fail(msg, pytrace=False) 3500s 3500s subrequest = SubRequest( 3500s self, scope, param, param_index, fixturedef, _ispytest=True 3500s ) 3500s 3500s # Check if a higher-level scoped fixture accesses a lower level one. 3500s subrequest._check_scope(argname, self._scope, scope) 3500s try: 3500s # Call the fixture function. 3500s > fixturedef.execute(request=subrequest) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s request = > 3500s 3500s def execute(self, request: SubRequest) -> FixtureValue: 3500s # Get required arguments and register our own finish() 3500s # with their finalization. 3500s for argname in self.argnames: 3500s fixturedef = request._get_active_fixturedef(argname) 3500s if argname != "request": 3500s # PseudoFixtureDef is only for "request". 3500s assert isinstance(fixturedef, FixtureDef) 3500s fixturedef.addfinalizer(functools.partial(self.finish, request=request)) 3500s 3500s my_cache_key = self.cache_key(request) 3500s if self.cached_result is not None: 3500s # note: comparison with `==` can fail (or be expensive) for e.g. 3500s # numpy arrays (#6497). 3500s cache_key = self.cached_result[1] 3500s if my_cache_key is cache_key: 3500s if self.cached_result[2] is not None: 3500s _, val, tb = self.cached_result[2] 3500s raise val.with_traceback(tb) 3500s else: 3500s result = self.cached_result[0] 3500s return result 3500s # We have a previous but differently parametrized fixture instance 3500s # so we need to tear it down before creating a new one. 3500s self.finish(request) 3500s assert self.cached_result is None 3500s 3500s ihook = request.node.ihook 3500s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1069: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s kwargs = {'fixturedef': , 'request': >} 3500s firstresult = True 3500s 3500s def __call__(self, **kwargs: object) -> Any: 3500s """Call the hook. 3500s 3500s Only accepts keyword arguments, which should match the hook 3500s specification. 3500s 3500s Returns the result(s) of calling all registered plugins, see 3500s :ref:`calling`. 3500s """ 3500s assert ( 3500s not self.is_historic() 3500s ), "Cannot directly call a historic hook - use call_historic instead." 3500s self._verify_all_args_are_provided(kwargs) 3500s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 3500s # Copy because plugins may register other plugins during iteration (#438). 3500s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = <_pytest.config.PytestPluginManager object at 0xe9079168> 3500s hook_name = 'pytest_fixture_setup' 3500s methods = [>] 3500s kwargs = {'fixturedef': , 'request': >} 3500s firstresult = True 3500s 3500s def _hookexec( 3500s self, 3500s hook_name: str, 3500s methods: Sequence[HookImpl], 3500s kwargs: Mapping[str, object], 3500s firstresult: bool, 3500s ) -> object | list[object]: 3500s # called from all hookcaller instances. 3500s # enable_tracing will set its own wrapping function at self._inner_hookexec 3500s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturedef = 3500s request = > 3500s 3500s def pytest_fixture_setup( 3500s fixturedef: FixtureDef[FixtureValue], request: SubRequest 3500s ) -> FixtureValue: 3500s """Execution of fixture setup.""" 3500s kwargs = {} 3500s for argname in fixturedef.argnames: 3500s fixdef = request._get_active_fixturedef(argname) 3500s assert fixdef.cached_result is not None 3500s result, arg_cache_key, exc = fixdef.cached_result 3500s request._check_scope(argname, request._scope, fixdef._scope) 3500s kwargs[argname] = result 3500s 3500s fixturefunc = resolve_fixture_function(fixturedef, request) 3500s my_cache_key = fixturedef.cache_key(request) 3500s try: 3500s > result = call_fixture_func(fixturefunc, request, kwargs) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1123: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturefunc = 3500s request = > 3500s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv'), 'types_data': [{'B... False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}]} 3500s 3500s def call_fixture_func( 3500s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 3500s ) -> FixtureValue: 3500s if is_generator(fixturefunc): 3500s fixturefunc = cast( 3500s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 3500s ) 3500s generator = fixturefunc(**kwargs) 3500s try: 3500s > fixture_result = next(generator) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:895: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s iris_path = PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv') 3500s types_data = [{'BoolCol': False, 'BoolColWithNull': False, 'DateCol': '2000-01-03 00:00:00', 'DateColWithTz': '2000-01-01 00:00:00-...: False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}] 3500s 3500s @pytest.fixture 3500s def postgresql_psycopg2_engine(iris_path, types_data): 3500s sqlalchemy = pytest.importorskip("sqlalchemy") 3500s pytest.importorskip("psycopg2") 3500s engine = sqlalchemy.create_engine( 3500s "postgresql+psycopg2://postgres:postgres@localhost:5432/pandas", 3500s poolclass=sqlalchemy.pool.NullPool, 3500s ) 3500s > insp = sqlalchemy.inspect(engine) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:438: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s subject = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s raiseerr = True 3500s 3500s def inspect(subject, raiseerr=True): 3500s """Produce an inspection object for the given target. 3500s 3500s The returned value in some cases may be the 3500s same object as the one given, such as if a 3500s :class:`_orm.Mapper` object is passed. In other 3500s cases, it will be an instance of the registered 3500s inspection type for the given object, such as 3500s if an :class:`_engine.Engine` is passed, an 3500s :class:`_reflection.Inspector` object is returned. 3500s 3500s :param subject: the subject to be inspected. 3500s :param raiseerr: When ``True``, if the given subject 3500s does not 3500s correspond to a known SQLAlchemy inspected type, 3500s :class:`sqlalchemy.exc.NoInspectionAvailable` 3500s is raised. If ``False``, ``None`` is returned. 3500s 3500s """ 3500s type_ = type(subject) 3500s for cls in type_.__mro__: 3500s if cls in _registrars: 3500s reg = _registrars[cls] 3500s if reg is True: 3500s return subject 3500s > ret = reg(subject) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:64: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s @inspection._inspects(Engine) 3500s def _engine_insp(bind): 3500s > return Inspector._construct(Inspector._init_engine, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:182: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s init = 3500s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s @classmethod 3500s def _construct(cls, init, bind): 3500s 3500s if hasattr(bind.dialect, "inspector"): 3500s cls = bind.dialect.inspector 3500s 3500s self = cls.__new__(cls) 3500s > init(self, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:117: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s def _init_engine(self, engine): 3500s self.bind = self.engine = engine 3500s > engine.connect().close() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:128: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s close_with_result = False 3500s 3500s def connect(self, close_with_result=False): 3500s """Return a new :class:`_engine.Connection` object. 3500s 3500s The :class:`_engine.Connection` object is a facade that uses a DBAPI 3500s connection internally in order to communicate with the database. This 3500s connection is procured from the connection-holding :class:`_pool.Pool` 3500s referenced by this :class:`_engine.Engine`. When the 3500s :meth:`_engine.Connection.close` method of the 3500s :class:`_engine.Connection` object 3500s is called, the underlying DBAPI connection is then returned to the 3500s connection pool, where it may be used again in a subsequent call to 3500s :meth:`_engine.Engine.connect`. 3500s 3500s """ 3500s 3500s > return self._connection_cls(self, close_with_result=close_with_result) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3325: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s connection = None, close_with_result = False, _branch_from = None 3500s _execution_options = None, _dispatch = None, _has_events = None 3500s _allow_revalidate = True 3500s 3500s def __init__( 3500s self, 3500s engine, 3500s connection=None, 3500s close_with_result=False, 3500s _branch_from=None, 3500s _execution_options=None, 3500s _dispatch=None, 3500s _has_events=None, 3500s _allow_revalidate=True, 3500s ): 3500s """Construct a new Connection.""" 3500s self.engine = engine 3500s self.dialect = engine.dialect 3500s self.__branch_from = _branch_from 3500s 3500s if _branch_from: 3500s # branching is always "from" the root connection 3500s assert _branch_from.__branch_from is None 3500s self._dbapi_connection = connection 3500s self._execution_options = _execution_options 3500s self._echo = _branch_from._echo 3500s self.should_close_with_result = False 3500s self.dispatch = _dispatch 3500s self._has_events = _branch_from._has_events 3500s else: 3500s self._dbapi_connection = ( 3500s connection 3500s if connection is not None 3500s > else engine.raw_connection() 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:96: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s _connection = None 3500s 3500s def raw_connection(self, _connection=None): 3500s """Return a "raw" DBAPI connection from the connection pool. 3500s 3500s The returned object is a proxied version of the DBAPI 3500s connection object used by the underlying driver in use. 3500s The object will have all the same behavior as the real DBAPI 3500s connection, except that its ``close()`` method will result in the 3500s connection being returned to the pool, rather than being closed 3500s for real. 3500s 3500s This method provides direct DBAPI connection access for 3500s special situations when the API provided by 3500s :class:`_engine.Connection` 3500s is not needed. When a :class:`_engine.Connection` object is already 3500s present, the DBAPI connection is available using 3500s the :attr:`_engine.Connection.connection` accessor. 3500s 3500s .. seealso:: 3500s 3500s :ref:`dbapi_connections` 3500s 3500s """ 3500s > return self._wrap_pool_connect(self.pool.connect, _connection) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3404: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s return fn() 3500s except dialect.dbapi.Error as e: 3500s if connection is None: 3500s > Connection._handle_dbapi_exception_noconnection( 3500s e, dialect, self 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3374: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s e = OperationalError('connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused\n\tIs the server running on that host and accepting TCP/IP connections?\n') 3500s dialect = 3500s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s @classmethod 3500s def _handle_dbapi_exception_noconnection(cls, e, dialect, engine): 3500s exc_info = sys.exc_info() 3500s 3500s is_disconnect = dialect.is_disconnect(e, None, None) 3500s 3500s should_wrap = isinstance(e, dialect.dbapi.Error) 3500s 3500s if should_wrap: 3500s sqlalchemy_exception = exc.DBAPIError.instance( 3500s None, 3500s None, 3500s e, 3500s dialect.dbapi.Error, 3500s hide_parameters=engine.hide_parameters, 3500s connection_invalidated=is_disconnect, 3500s ) 3500s else: 3500s sqlalchemy_exception = None 3500s 3500s newraise = None 3500s 3500s if engine._has_events: 3500s ctx = ExceptionContextImpl( 3500s e, 3500s sqlalchemy_exception, 3500s engine, 3500s None, 3500s None, 3500s None, 3500s None, 3500s None, 3500s is_disconnect, 3500s True, 3500s ) 3500s for fn in engine.dispatch.handle_error: 3500s try: 3500s # handler returns an exception; 3500s # call next handler in a chain 3500s per_fn = fn(ctx) 3500s if per_fn is not None: 3500s ctx.chained_exception = newraise = per_fn 3500s except Exception as _raised: 3500s # handler raises an exception - stop processing 3500s newraise = _raised 3500s break 3500s 3500s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 3500s sqlalchemy_exception.connection_invalidated = ( 3500s is_disconnect 3500s ) = ctx.is_disconnect 3500s 3500s if newraise: 3500s util.raise_(newraise, with_traceback=exc_info[2], from_=e) 3500s elif should_wrap: 3500s > util.raise_( 3500s sqlalchemy_exception, with_traceback=exc_info[2], from_=e 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2208: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s dsn = 'host=localhost user=postgres password=postgres port=5432 dbname=pandas' 3500s connection_factory = None, cursor_factory = None 3500s kwargs = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s kwasync = {} 3500s 3500s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 3500s """ 3500s Create a new database connection. 3500s 3500s The connection parameters can be specified as a string: 3500s 3500s conn = psycopg2.connect("dbname=test user=postgres password=secret") 3500s 3500s or using a set of keyword arguments: 3500s 3500s conn = psycopg2.connect(database="test", user="postgres", password="secret") 3500s 3500s Or as a mix of both. The basic connection parameters are: 3500s 3500s - *dbname*: the database name 3500s - *database*: the database name (only as keyword argument) 3500s - *user*: user name used to authenticate 3500s - *password*: password used to authenticate 3500s - *host*: database host address (defaults to UNIX socket if not provided) 3500s - *port*: connection port number (defaults to 5432 if not provided) 3500s 3500s Using the *connection_factory* parameter a different class or connections 3500s factory can be specified. It should be a callable object taking a dsn 3500s argument. 3500s 3500s Using the *cursor_factory* parameter, a new default cursor factory will be 3500s used by cursor(). 3500s 3500s Using *async*=True an asynchronous connection will be created. *async_* is 3500s a valid alias (for Python versions where ``async`` is a keyword). 3500s 3500s Any other keyword parameter will be passed to the underlying client 3500s library: the list of supported parameters depends on the library version. 3500s 3500s """ 3500s kwasync = {} 3500s if 'async' in kwargs: 3500s kwasync['async'] = kwargs.pop('async') 3500s if 'async_' in kwargs: 3500s kwasync['async_'] = kwargs.pop('async_') 3500s 3500s dsn = _ext.make_dsn(dsn, **kwargs) 3500s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 3500s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 3500s E Is the server running on that host and accepting TCP/IP connections? 3500s E 3500s E (Background on this error at: https://sqlalche.me/e/14/e3q8) 3500s 3500s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 3500s __________________ test_to_sql_callable[mysql_pymysql_engine] __________________ 3500s self = , sock = None 3500s 3500s def connect(self, sock=None): 3500s self._closed = False 3500s try: 3500s if sock is None: 3500s if self.unix_socket: 3500s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3500s sock.settimeout(self.connect_timeout) 3500s sock.connect(self.unix_socket) 3500s self.host_info = "Localhost via UNIX socket" 3500s self._secure = True 3500s if DEBUG: 3500s print("connected using unix_socket") 3500s else: 3500s kwargs = {} 3500s if self.bind_address is not None: 3500s kwargs["source_address"] = (self.bind_address, 0) 3500s while True: 3500s try: 3500s > sock = socket.create_connection( 3500s (self.host, self.port), self.connect_timeout, **kwargs 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:649: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s address = ('localhost', 3306), timeout = 10, source_address = None 3500s 3500s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 3500s source_address=None, *, all_errors=False): 3500s """Connect to *address* and return the socket object. 3500s 3500s Convenience function. Connect to *address* (a 2-tuple ``(host, 3500s port)``) and return the socket object. Passing the optional 3500s *timeout* parameter will set the timeout on the socket instance 3500s before attempting to connect. If no *timeout* is supplied, the 3500s global default timeout setting returned by :func:`getdefaulttimeout` 3500s is used. If *source_address* is set it must be a tuple of (host, port) 3500s for the socket to bind as a source address before making the connection. 3500s A host of '' or port 0 tells the OS to use the default. When a connection 3500s cannot be created, raises the last error if *all_errors* is False, 3500s and an ExceptionGroup of all errors if *all_errors* is True. 3500s """ 3500s 3500s host, port = address 3500s exceptions = [] 3500s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 3500s af, socktype, proto, canonname, sa = res 3500s sock = None 3500s try: 3500s sock = socket(af, socktype, proto) 3500s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 3500s sock.settimeout(timeout) 3500s if source_address: 3500s sock.bind(source_address) 3500s sock.connect(sa) 3500s # Break explicitly a reference cycle 3500s exceptions.clear() 3500s return sock 3500s 3500s except error as exc: 3500s if not all_errors: 3500s exceptions.clear() # raise only the last error 3500s exceptions.append(exc) 3500s if sock is not None: 3500s sock.close() 3500s 3500s if len(exceptions): 3500s try: 3500s if not all_errors: 3500s > raise exceptions[0] 3500s 3500s /usr/lib/python3.12/socket.py:853: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s address = ('localhost', 3306), timeout = 10, source_address = None 3500s 3500s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 3500s source_address=None, *, all_errors=False): 3500s """Connect to *address* and return the socket object. 3500s 3500s Convenience function. Connect to *address* (a 2-tuple ``(host, 3500s port)``) and return the socket object. Passing the optional 3500s *timeout* parameter will set the timeout on the socket instance 3500s before attempting to connect. If no *timeout* is supplied, the 3500s global default timeout setting returned by :func:`getdefaulttimeout` 3500s is used. If *source_address* is set it must be a tuple of (host, port) 3500s for the socket to bind as a source address before making the connection. 3500s A host of '' or port 0 tells the OS to use the default. When a connection 3500s cannot be created, raises the last error if *all_errors* is False, 3500s and an ExceptionGroup of all errors if *all_errors* is True. 3500s """ 3500s 3500s host, port = address 3500s exceptions = [] 3500s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 3500s af, socktype, proto, canonname, sa = res 3500s sock = None 3500s try: 3500s sock = socket(af, socktype, proto) 3500s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 3500s sock.settimeout(timeout) 3500s if source_address: 3500s sock.bind(source_address) 3500s > sock.connect(sa) 3500s E ConnectionRefusedError: [Errno 111] Connection refused 3500s 3500s /usr/lib/python3.12/socket.py:838: ConnectionRefusedError 3500s 3500s During handling of the above exception, another exception occurred: 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __init__( 3500s self, 3500s *, 3500s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 3500s password="", 3500s host=None, 3500s database=None, 3500s unix_socket=None, 3500s port=0, 3500s charset="", 3500s collation=None, 3500s sql_mode=None, 3500s read_default_file=None, 3500s conv=None, 3500s use_unicode=True, 3500s client_flag=0, 3500s cursorclass=Cursor, 3500s init_command=None, 3500s connect_timeout=10, 3500s read_default_group=None, 3500s autocommit=False, 3500s local_infile=False, 3500s max_allowed_packet=16 * 1024 * 1024, 3500s defer_connect=False, 3500s auth_plugin_map=None, 3500s read_timeout=None, 3500s write_timeout=None, 3500s bind_address=None, 3500s binary_prefix=False, 3500s program_name=None, 3500s server_public_key=None, 3500s ssl=None, 3500s ssl_ca=None, 3500s ssl_cert=None, 3500s ssl_disabled=None, 3500s ssl_key=None, 3500s ssl_key_password=None, 3500s ssl_verify_cert=None, 3500s ssl_verify_identity=None, 3500s compress=None, # not supported 3500s named_pipe=None, # not supported 3500s passwd=None, # deprecated 3500s db=None, # deprecated 3500s ): 3500s if db is not None and database is None: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 3500s database = db 3500s if passwd is not None and not password: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn( 3500s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 3500s # ) 3500s password = passwd 3500s 3500s if compress or named_pipe: 3500s raise NotImplementedError( 3500s "compress and named_pipe arguments are not supported" 3500s ) 3500s 3500s self._local_infile = bool(local_infile) 3500s if self._local_infile: 3500s client_flag |= CLIENT.LOCAL_FILES 3500s 3500s if read_default_group and not read_default_file: 3500s if sys.platform.startswith("win"): 3500s read_default_file = "c:\\my.ini" 3500s else: 3500s read_default_file = "/etc/my.cnf" 3500s 3500s if read_default_file: 3500s if not read_default_group: 3500s read_default_group = "client" 3500s 3500s cfg = Parser() 3500s cfg.read(os.path.expanduser(read_default_file)) 3500s 3500s def _config(key, arg): 3500s if arg: 3500s return arg 3500s try: 3500s return cfg.get(read_default_group, key) 3500s except Exception: 3500s return arg 3500s 3500s user = _config("user", user) 3500s password = _config("password", password) 3500s host = _config("host", host) 3500s database = _config("database", database) 3500s unix_socket = _config("socket", unix_socket) 3500s port = int(_config("port", port)) 3500s bind_address = _config("bind-address", bind_address) 3500s charset = _config("default-character-set", charset) 3500s if not ssl: 3500s ssl = {} 3500s if isinstance(ssl, dict): 3500s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 3500s value = _config("ssl-" + key, ssl.get(key)) 3500s if value: 3500s ssl[key] = value 3500s 3500s self.ssl = False 3500s if not ssl_disabled: 3500s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 3500s ssl = { 3500s "ca": ssl_ca, 3500s "check_hostname": bool(ssl_verify_identity), 3500s "verify_mode": ssl_verify_cert 3500s if ssl_verify_cert is not None 3500s else False, 3500s } 3500s if ssl_cert is not None: 3500s ssl["cert"] = ssl_cert 3500s if ssl_key is not None: 3500s ssl["key"] = ssl_key 3500s if ssl_key_password is not None: 3500s ssl["password"] = ssl_key_password 3500s if ssl: 3500s if not SSL_ENABLED: 3500s raise NotImplementedError("ssl module not found") 3500s self.ssl = True 3500s client_flag |= CLIENT.SSL 3500s self.ctx = self._create_ssl_ctx(ssl) 3500s 3500s self.host = host or "localhost" 3500s self.port = port or 3306 3500s if type(self.port) is not int: 3500s raise ValueError("port should be of type int") 3500s self.user = user or DEFAULT_USER 3500s self.password = password or b"" 3500s if isinstance(self.password, str): 3500s self.password = self.password.encode("latin1") 3500s self.db = database 3500s self.unix_socket = unix_socket 3500s self.bind_address = bind_address 3500s if not (0 < connect_timeout <= 31536000): 3500s raise ValueError("connect_timeout should be >0 and <=31536000") 3500s self.connect_timeout = connect_timeout or None 3500s if read_timeout is not None and read_timeout <= 0: 3500s raise ValueError("read_timeout should be > 0") 3500s self._read_timeout = read_timeout 3500s if write_timeout is not None and write_timeout <= 0: 3500s raise ValueError("write_timeout should be > 0") 3500s self._write_timeout = write_timeout 3500s 3500s self.charset = charset or DEFAULT_CHARSET 3500s self.collation = collation 3500s self.use_unicode = use_unicode 3500s 3500s self.encoding = charset_by_name(self.charset).encoding 3500s 3500s client_flag |= CLIENT.CAPABILITIES 3500s if self.db: 3500s client_flag |= CLIENT.CONNECT_WITH_DB 3500s 3500s self.client_flag = client_flag 3500s 3500s self.cursorclass = cursorclass 3500s 3500s self._result = None 3500s self._affected_rows = 0 3500s self.host_info = "Not connected" 3500s 3500s # specified autocommit mode. None means use server default. 3500s self.autocommit_mode = autocommit 3500s 3500s if conv is None: 3500s conv = converters.conversions 3500s 3500s # Need for MySQLdb compatibility. 3500s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 3500s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 3500s self.sql_mode = sql_mode 3500s self.init_command = init_command 3500s self.max_allowed_packet = max_allowed_packet 3500s self._auth_plugin_map = auth_plugin_map or {} 3500s self._binary_prefix = binary_prefix 3500s self.server_public_key = server_public_key 3500s 3500s self._connect_attrs = { 3500s "_client_name": "pymysql", 3500s "_client_version": VERSION_STRING, 3500s "_pid": str(os.getpid()), 3500s } 3500s 3500s if program_name: 3500s self._connect_attrs["program_name"] = program_name 3500s 3500s if defer_connect: 3500s self._sock = None 3500s else: 3500s > self.connect() 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = , sock = None 3500s 3500s def connect(self, sock=None): 3500s self._closed = False 3500s try: 3500s if sock is None: 3500s if self.unix_socket: 3500s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3500s sock.settimeout(self.connect_timeout) 3500s sock.connect(self.unix_socket) 3500s self.host_info = "Localhost via UNIX socket" 3500s self._secure = True 3500s if DEBUG: 3500s print("connected using unix_socket") 3500s else: 3500s kwargs = {} 3500s if self.bind_address is not None: 3500s kwargs["source_address"] = (self.bind_address, 0) 3500s while True: 3500s try: 3500s sock = socket.create_connection( 3500s (self.host, self.port), self.connect_timeout, **kwargs 3500s ) 3500s break 3500s except OSError as e: 3500s if e.errno == errno.EINTR: 3500s continue 3500s raise 3500s self.host_info = "socket %s:%d" % (self.host, self.port) 3500s if DEBUG: 3500s print("connected using socket") 3500s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 3500s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 3500s sock.settimeout(None) 3500s 3500s self._sock = sock 3500s self._rfile = sock.makefile("rb") 3500s self._next_seq_id = 0 3500s 3500s self._get_server_information() 3500s self._request_authentication() 3500s 3500s # Send "SET NAMES" query on init for: 3500s # - Ensure charaset (and collation) is set to the server. 3500s # - collation_id in handshake packet may be ignored. 3500s # - If collation is not specified, we don't know what is server's 3500s # default collation for the charset. For example, default collation 3500s # of utf8mb4 is: 3500s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 3500s # - MySQL 8.0: utf8mb4_0900_ai_ci 3500s # 3500s # Reference: 3500s # - https://github.com/PyMySQL/PyMySQL/issues/1092 3500s # - https://github.com/wagtail/wagtail/issues/9477 3500s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 3500s self.set_character_set(self.charset, self.collation) 3500s 3500s if self.sql_mode is not None: 3500s c = self.cursor() 3500s c.execute("SET sql_mode=%s", (self.sql_mode,)) 3500s c.close() 3500s 3500s if self.init_command is not None: 3500s c = self.cursor() 3500s c.execute(self.init_command) 3500s c.close() 3500s 3500s if self.autocommit_mode is not None: 3500s self.autocommit(self.autocommit_mode) 3500s except BaseException as e: 3500s self._rfile = None 3500s if sock is not None: 3500s try: 3500s sock.close() 3500s except: # noqa 3500s pass 3500s 3500s if isinstance(e, (OSError, IOError)): 3500s exc = err.OperationalError( 3500s CR.CR_CONN_HOST_ERROR, 3500s f"Can't connect to MySQL server on {self.host!r} ({e})", 3500s ) 3500s # Keep original exception and traceback to investigate error. 3500s exc.original_exception = e 3500s exc.traceback = traceback.format_exc() 3500s if DEBUG: 3500s print(exc.traceback) 3500s > raise exc 3500s E pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 3500s 3500s The above exception was the direct cause of the following exception: 3500s 3500s conn = 'mysql_pymysql_engine' 3500s test_frame1 = index A B C D 3500s 0 2000-01-03 00:00:00 0.980269 3.685731 -0.364217 -1...0-01-05 00:00:00 0.498581 0.731168 -0.537677 1.346270 3500s 3 2000-01-06 00:00:00 1.120202 1.567621 0.003641 0.675253 3500s request = > 3500s 3500s @pytest.mark.db 3500s @pytest.mark.parametrize("conn", sqlalchemy_connectable) 3500s def test_to_sql_callable(conn, test_frame1, request): 3500s > conn = request.getfixturevalue(conn) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:712: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'mysql_pymysql_engine' 3500s 3500s def getfixturevalue(self, argname: str) -> Any: 3500s """Dynamically run a named fixture function. 3500s 3500s Declaring fixtures via function argument is recommended where possible. 3500s But if you can only decide whether to use another fixture at test 3500s setup time, you may use this function to retrieve it inside a fixture 3500s or test function body. 3500s 3500s This method can be used during the test setup phase or the test run 3500s phase, but during the test teardown phase a fixture's value may not 3500s be available. 3500s 3500s :param argname: 3500s The fixture name. 3500s :raises pytest.FixtureLookupError: 3500s If the given fixture could not be found. 3500s """ 3500s > fixturedef = self._get_active_fixturedef(argname) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:585: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'mysql_pymysql_engine' 3500s 3500s def _get_active_fixturedef( 3500s self, argname: str 3500s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3500s try: 3500s return self._fixture_defs[argname] 3500s except KeyError: 3500s try: 3500s fixturedef = self._getnextfixturedef(argname) 3500s except FixtureLookupError: 3500s if argname == "request": 3500s cached_result = (self, [0], None) 3500s return PseudoFixtureDef(cached_result, Scope.Function) 3500s raise 3500s # Remove indent to prevent the python3 exception 3500s # from leaking into the call. 3500s > self._compute_fixture_value(fixturedef) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s fixturedef = 3500s 3500s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3500s """Create a SubRequest based on "self" and call the execute method 3500s of the given FixtureDef object. 3500s 3500s This will force the FixtureDef object to throw away any previous 3500s results and compute a new fixture value, which will be stored into 3500s the FixtureDef object itself. 3500s """ 3500s # prepare a subrequest object before calling fixture function 3500s # (latter managed by fixturedef) 3500s argname = fixturedef.argname 3500s funcitem = self._pyfuncitem 3500s scope = fixturedef._scope 3500s try: 3500s callspec = funcitem.callspec 3500s except AttributeError: 3500s callspec = None 3500s if callspec is not None and argname in callspec.params: 3500s param = callspec.params[argname] 3500s param_index = callspec.indices[argname] 3500s # If a parametrize invocation set a scope it will override 3500s # the static scope defined with the fixture function. 3500s with suppress(KeyError): 3500s scope = callspec._arg2scope[argname] 3500s else: 3500s param = NOTSET 3500s param_index = 0 3500s has_params = fixturedef.params is not None 3500s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3500s if has_params and fixtures_not_supported: 3500s msg = ( 3500s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3500s "Node id: {nodeid}\n" 3500s "Function type: {typename}" 3500s ).format( 3500s name=funcitem.name, 3500s nodeid=funcitem.nodeid, 3500s typename=type(funcitem).__name__, 3500s ) 3500s fail(msg, pytrace=False) 3500s if has_params: 3500s frame = inspect.stack()[3] 3500s frameinfo = inspect.getframeinfo(frame[0]) 3500s source_path = absolutepath(frameinfo.filename) 3500s source_lineno = frameinfo.lineno 3500s try: 3500s source_path_str = str( 3500s source_path.relative_to(funcitem.config.rootpath) 3500s ) 3500s except ValueError: 3500s source_path_str = str(source_path) 3500s msg = ( 3500s "The requested fixture has no parameter defined for test:\n" 3500s " {}\n\n" 3500s "Requested fixture '{}' defined in:\n{}" 3500s "\n\nRequested here:\n{}:{}".format( 3500s funcitem.nodeid, 3500s fixturedef.argname, 3500s getlocation(fixturedef.func, funcitem.config.rootpath), 3500s source_path_str, 3500s source_lineno, 3500s ) 3500s ) 3500s fail(msg, pytrace=False) 3500s 3500s subrequest = SubRequest( 3500s self, scope, param, param_index, fixturedef, _ispytest=True 3500s ) 3500s 3500s # Check if a higher-level scoped fixture accesses a lower level one. 3500s subrequest._check_scope(argname, self._scope, scope) 3500s try: 3500s # Call the fixture function. 3500s > fixturedef.execute(request=subrequest) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s request = > 3500s 3500s def execute(self, request: SubRequest) -> FixtureValue: 3500s # Get required arguments and register our own finish() 3500s # with their finalization. 3500s for argname in self.argnames: 3500s fixturedef = request._get_active_fixturedef(argname) 3500s if argname != "request": 3500s # PseudoFixtureDef is only for "request". 3500s assert isinstance(fixturedef, FixtureDef) 3500s fixturedef.addfinalizer(functools.partial(self.finish, request=request)) 3500s 3500s my_cache_key = self.cache_key(request) 3500s if self.cached_result is not None: 3500s # note: comparison with `==` can fail (or be expensive) for e.g. 3500s # numpy arrays (#6497). 3500s cache_key = self.cached_result[1] 3500s if my_cache_key is cache_key: 3500s if self.cached_result[2] is not None: 3500s _, val, tb = self.cached_result[2] 3500s raise val.with_traceback(tb) 3500s else: 3500s result = self.cached_result[0] 3500s return result 3500s # We have a previous but differently parametrized fixture instance 3500s # so we need to tear it down before creating a new one. 3500s self.finish(request) 3500s assert self.cached_result is None 3500s 3500s ihook = request.node.ihook 3500s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1069: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s kwargs = {'fixturedef': , 'request': >} 3500s firstresult = True 3500s 3500s def __call__(self, **kwargs: object) -> Any: 3500s """Call the hook. 3500s 3500s Only accepts keyword arguments, which should match the hook 3500s specification. 3500s 3500s Returns the result(s) of calling all registered plugins, see 3500s :ref:`calling`. 3500s """ 3500s assert ( 3500s not self.is_historic() 3500s ), "Cannot directly call a historic hook - use call_historic instead." 3500s self._verify_all_args_are_provided(kwargs) 3500s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 3500s # Copy because plugins may register other plugins during iteration (#438). 3500s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = <_pytest.config.PytestPluginManager object at 0xe9079168> 3500s hook_name = 'pytest_fixture_setup' 3500s methods = [>] 3500s kwargs = {'fixturedef': , 'request': >} 3500s firstresult = True 3500s 3500s def _hookexec( 3500s self, 3500s hook_name: str, 3500s methods: Sequence[HookImpl], 3500s kwargs: Mapping[str, object], 3500s firstresult: bool, 3500s ) -> object | list[object]: 3500s # called from all hookcaller instances. 3500s # enable_tracing will set its own wrapping function at self._inner_hookexec 3500s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturedef = 3500s request = > 3500s 3500s def pytest_fixture_setup( 3500s fixturedef: FixtureDef[FixtureValue], request: SubRequest 3500s ) -> FixtureValue: 3500s """Execution of fixture setup.""" 3500s kwargs = {} 3500s for argname in fixturedef.argnames: 3500s fixdef = request._get_active_fixturedef(argname) 3500s assert fixdef.cached_result is not None 3500s result, arg_cache_key, exc = fixdef.cached_result 3500s request._check_scope(argname, request._scope, fixdef._scope) 3500s kwargs[argname] = result 3500s 3500s fixturefunc = resolve_fixture_function(fixturedef, request) 3500s my_cache_key = fixturedef.cache_key(request) 3500s try: 3500s > result = call_fixture_func(fixturefunc, request, kwargs) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1123: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturefunc = 3500s request = > 3500s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv'), 'types_data': [{'B... False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}]} 3500s 3500s def call_fixture_func( 3500s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 3500s ) -> FixtureValue: 3500s if is_generator(fixturefunc): 3500s fixturefunc = cast( 3500s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 3500s ) 3500s generator = fixturefunc(**kwargs) 3500s try: 3500s > fixture_result = next(generator) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:895: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s iris_path = PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv') 3500s types_data = [{'BoolCol': False, 'BoolColWithNull': False, 'DateCol': '2000-01-03 00:00:00', 'DateColWithTz': '2000-01-01 00:00:00-...: False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}] 3500s 3500s @pytest.fixture 3500s def mysql_pymysql_engine(iris_path, types_data): 3500s sqlalchemy = pytest.importorskip("sqlalchemy") 3500s pymysql = pytest.importorskip("pymysql") 3500s engine = sqlalchemy.create_engine( 3500s "mysql+pymysql://root@localhost:3306/pandas", 3500s connect_args={"client_flag": pymysql.constants.CLIENT.MULTI_STATEMENTS}, 3500s poolclass=sqlalchemy.pool.NullPool, 3500s ) 3500s > insp = sqlalchemy.inspect(engine) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:409: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s subject = Engine(mysql+pymysql://root@localhost:3306/pandas), raiseerr = True 3500s 3500s def inspect(subject, raiseerr=True): 3500s """Produce an inspection object for the given target. 3500s 3500s The returned value in some cases may be the 3500s same object as the one given, such as if a 3500s :class:`_orm.Mapper` object is passed. In other 3500s cases, it will be an instance of the registered 3500s inspection type for the given object, such as 3500s if an :class:`_engine.Engine` is passed, an 3500s :class:`_reflection.Inspector` object is returned. 3500s 3500s :param subject: the subject to be inspected. 3500s :param raiseerr: When ``True``, if the given subject 3500s does not 3500s correspond to a known SQLAlchemy inspected type, 3500s :class:`sqlalchemy.exc.NoInspectionAvailable` 3500s is raised. If ``False``, ``None`` is returned. 3500s 3500s """ 3500s type_ = type(subject) 3500s for cls in type_.__mro__: 3500s if cls in _registrars: 3500s reg = _registrars[cls] 3500s if reg is True: 3500s return subject 3500s > ret = reg(subject) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:64: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s @inspection._inspects(Engine) 3500s def _engine_insp(bind): 3500s > return Inspector._construct(Inspector._init_engine, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:182: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s init = 3500s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s @classmethod 3500s def _construct(cls, init, bind): 3500s 3500s if hasattr(bind.dialect, "inspector"): 3500s cls = bind.dialect.inspector 3500s 3500s self = cls.__new__(cls) 3500s > init(self, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:117: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s def _init_engine(self, engine): 3500s self.bind = self.engine = engine 3500s > engine.connect().close() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:128: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s close_with_result = False 3500s 3500s def connect(self, close_with_result=False): 3500s """Return a new :class:`_engine.Connection` object. 3500s 3500s The :class:`_engine.Connection` object is a facade that uses a DBAPI 3500s connection internally in order to communicate with the database. This 3500s connection is procured from the connection-holding :class:`_pool.Pool` 3500s referenced by this :class:`_engine.Engine`. When the 3500s :meth:`_engine.Connection.close` method of the 3500s :class:`_engine.Connection` object 3500s is called, the underlying DBAPI connection is then returned to the 3500s connection pool, where it may be used again in a subsequent call to 3500s :meth:`_engine.Engine.connect`. 3500s 3500s """ 3500s 3500s > return self._connection_cls(self, close_with_result=close_with_result) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3325: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 3500s close_with_result = False, _branch_from = None, _execution_options = None 3500s _dispatch = None, _has_events = None, _allow_revalidate = True 3500s 3500s def __init__( 3500s self, 3500s engine, 3500s connection=None, 3500s close_with_result=False, 3500s _branch_from=None, 3500s _execution_options=None, 3500s _dispatch=None, 3500s _has_events=None, 3500s _allow_revalidate=True, 3500s ): 3500s """Construct a new Connection.""" 3500s self.engine = engine 3500s self.dialect = engine.dialect 3500s self.__branch_from = _branch_from 3500s 3500s if _branch_from: 3500s # branching is always "from" the root connection 3500s assert _branch_from.__branch_from is None 3500s self._dbapi_connection = connection 3500s self._execution_options = _execution_options 3500s self._echo = _branch_from._echo 3500s self.should_close_with_result = False 3500s self.dispatch = _dispatch 3500s self._has_events = _branch_from._has_events 3500s else: 3500s self._dbapi_connection = ( 3500s connection 3500s if connection is not None 3500s > else engine.raw_connection() 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:96: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas), _connection = None 3500s 3500s def raw_connection(self, _connection=None): 3500s """Return a "raw" DBAPI connection from the connection pool. 3500s 3500s The returned object is a proxied version of the DBAPI 3500s connection object used by the underlying driver in use. 3500s The object will have all the same behavior as the real DBAPI 3500s connection, except that its ``close()`` method will result in the 3500s connection being returned to the pool, rather than being closed 3500s for real. 3500s 3500s This method provides direct DBAPI connection access for 3500s special situations when the API provided by 3500s :class:`_engine.Connection` 3500s is not needed. When a :class:`_engine.Connection` object is already 3500s present, the DBAPI connection is available using 3500s the :attr:`_engine.Connection.connection` accessor. 3500s 3500s .. seealso:: 3500s 3500s :ref:`dbapi_connections` 3500s 3500s """ 3500s > return self._wrap_pool_connect(self.pool.connect, _connection) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3404: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s return fn() 3500s except dialect.dbapi.Error as e: 3500s if connection is None: 3500s > Connection._handle_dbapi_exception_noconnection( 3500s e, dialect, self 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3374: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s e = OperationalError(2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3500s dialect = 3500s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s @classmethod 3500s def _handle_dbapi_exception_noconnection(cls, e, dialect, engine): 3500s exc_info = sys.exc_info() 3500s 3500s is_disconnect = dialect.is_disconnect(e, None, None) 3500s 3500s should_wrap = isinstance(e, dialect.dbapi.Error) 3500s 3500s if should_wrap: 3500s sqlalchemy_exception = exc.DBAPIError.instance( 3500s None, 3500s None, 3500s e, 3500s dialect.dbapi.Error, 3500s hide_parameters=engine.hide_parameters, 3500s connection_invalidated=is_disconnect, 3500s ) 3500s else: 3500s sqlalchemy_exception = None 3500s 3500s newraise = None 3500s 3500s if engine._has_events: 3500s ctx = ExceptionContextImpl( 3500s e, 3500s sqlalchemy_exception, 3500s engine, 3500s None, 3500s None, 3500s None, 3500s None, 3500s None, 3500s is_disconnect, 3500s True, 3500s ) 3500s for fn in engine.dispatch.handle_error: 3500s try: 3500s # handler returns an exception; 3500s # call next handler in a chain 3500s per_fn = fn(ctx) 3500s if per_fn is not None: 3500s ctx.chained_exception = newraise = per_fn 3500s except Exception as _raised: 3500s # handler raises an exception - stop processing 3500s newraise = _raised 3500s break 3500s 3500s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 3500s sqlalchemy_exception.connection_invalidated = ( 3500s is_disconnect 3500s ) = ctx.is_disconnect 3500s 3500s if newraise: 3500s util.raise_(newraise, with_traceback=exc_info[2], from_=e) 3500s elif should_wrap: 3500s > util.raise_( 3500s sqlalchemy_exception, with_traceback=exc_info[2], from_=e 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2208: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __init__( 3500s self, 3500s *, 3500s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 3500s password="", 3500s host=None, 3500s database=None, 3500s unix_socket=None, 3500s port=0, 3500s charset="", 3500s collation=None, 3500s sql_mode=None, 3500s read_default_file=None, 3500s conv=None, 3500s use_unicode=True, 3500s client_flag=0, 3500s cursorclass=Cursor, 3500s init_command=None, 3500s connect_timeout=10, 3500s read_default_group=None, 3500s autocommit=False, 3500s local_infile=False, 3500s max_allowed_packet=16 * 1024 * 1024, 3500s defer_connect=False, 3500s auth_plugin_map=None, 3500s read_timeout=None, 3500s write_timeout=None, 3500s bind_address=None, 3500s binary_prefix=False, 3500s program_name=None, 3500s server_public_key=None, 3500s ssl=None, 3500s ssl_ca=None, 3500s ssl_cert=None, 3500s ssl_disabled=None, 3500s ssl_key=None, 3500s ssl_key_password=None, 3500s ssl_verify_cert=None, 3500s ssl_verify_identity=None, 3500s compress=None, # not supported 3500s named_pipe=None, # not supported 3500s passwd=None, # deprecated 3500s db=None, # deprecated 3500s ): 3500s if db is not None and database is None: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 3500s database = db 3500s if passwd is not None and not password: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn( 3500s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 3500s # ) 3500s password = passwd 3500s 3500s if compress or named_pipe: 3500s raise NotImplementedError( 3500s "compress and named_pipe arguments are not supported" 3500s ) 3500s 3500s self._local_infile = bool(local_infile) 3500s if self._local_infile: 3500s client_flag |= CLIENT.LOCAL_FILES 3500s 3500s if read_default_group and not read_default_file: 3500s if sys.platform.startswith("win"): 3500s read_default_file = "c:\\my.ini" 3500s else: 3500s read_default_file = "/etc/my.cnf" 3500s 3500s if read_default_file: 3500s if not read_default_group: 3500s read_default_group = "client" 3500s 3500s cfg = Parser() 3500s cfg.read(os.path.expanduser(read_default_file)) 3500s 3500s def _config(key, arg): 3500s if arg: 3500s return arg 3500s try: 3500s return cfg.get(read_default_group, key) 3500s except Exception: 3500s return arg 3500s 3500s user = _config("user", user) 3500s password = _config("password", password) 3500s host = _config("host", host) 3500s database = _config("database", database) 3500s unix_socket = _config("socket", unix_socket) 3500s port = int(_config("port", port)) 3500s bind_address = _config("bind-address", bind_address) 3500s charset = _config("default-character-set", charset) 3500s if not ssl: 3500s ssl = {} 3500s if isinstance(ssl, dict): 3500s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 3500s value = _config("ssl-" + key, ssl.get(key)) 3500s if value: 3500s ssl[key] = value 3500s 3500s self.ssl = False 3500s if not ssl_disabled: 3500s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 3500s ssl = { 3500s "ca": ssl_ca, 3500s "check_hostname": bool(ssl_verify_identity), 3500s "verify_mode": ssl_verify_cert 3500s if ssl_verify_cert is not None 3500s else False, 3500s } 3500s if ssl_cert is not None: 3500s ssl["cert"] = ssl_cert 3500s if ssl_key is not None: 3500s ssl["key"] = ssl_key 3500s if ssl_key_password is not None: 3500s ssl["password"] = ssl_key_password 3500s if ssl: 3500s if not SSL_ENABLED: 3500s raise NotImplementedError("ssl module not found") 3500s self.ssl = True 3500s client_flag |= CLIENT.SSL 3500s self.ctx = self._create_ssl_ctx(ssl) 3500s 3500s self.host = host or "localhost" 3500s self.port = port or 3306 3500s if type(self.port) is not int: 3500s raise ValueError("port should be of type int") 3500s self.user = user or DEFAULT_USER 3500s self.password = password or b"" 3500s if isinstance(self.password, str): 3500s self.password = self.password.encode("latin1") 3500s self.db = database 3500s self.unix_socket = unix_socket 3500s self.bind_address = bind_address 3500s if not (0 < connect_timeout <= 31536000): 3500s raise ValueError("connect_timeout should be >0 and <=31536000") 3500s self.connect_timeout = connect_timeout or None 3500s if read_timeout is not None and read_timeout <= 0: 3500s raise ValueError("read_timeout should be > 0") 3500s self._read_timeout = read_timeout 3500s if write_timeout is not None and write_timeout <= 0: 3500s raise ValueError("write_timeout should be > 0") 3500s self._write_timeout = write_timeout 3500s 3500s self.charset = charset or DEFAULT_CHARSET 3500s self.collation = collation 3500s self.use_unicode = use_unicode 3500s 3500s self.encoding = charset_by_name(self.charset).encoding 3500s 3500s client_flag |= CLIENT.CAPABILITIES 3500s if self.db: 3500s client_flag |= CLIENT.CONNECT_WITH_DB 3500s 3500s self.client_flag = client_flag 3500s 3500s self.cursorclass = cursorclass 3500s 3500s self._result = None 3500s self._affected_rows = 0 3500s self.host_info = "Not connected" 3500s 3500s # specified autocommit mode. None means use server default. 3500s self.autocommit_mode = autocommit 3500s 3500s if conv is None: 3500s conv = converters.conversions 3500s 3500s # Need for MySQLdb compatibility. 3500s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 3500s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 3500s self.sql_mode = sql_mode 3500s self.init_command = init_command 3500s self.max_allowed_packet = max_allowed_packet 3500s self._auth_plugin_map = auth_plugin_map or {} 3500s self._binary_prefix = binary_prefix 3500s self.server_public_key = server_public_key 3500s 3500s self._connect_attrs = { 3500s "_client_name": "pymysql", 3500s "_client_version": VERSION_STRING, 3500s "_pid": str(os.getpid()), 3500s } 3500s 3500s if program_name: 3500s self._connect_attrs["program_name"] = program_name 3500s 3500s if defer_connect: 3500s self._sock = None 3500s else: 3500s > self.connect() 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = , sock = None 3500s 3500s def connect(self, sock=None): 3500s self._closed = False 3500s try: 3500s if sock is None: 3500s if self.unix_socket: 3500s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3500s sock.settimeout(self.connect_timeout) 3500s sock.connect(self.unix_socket) 3500s self.host_info = "Localhost via UNIX socket" 3500s self._secure = True 3500s if DEBUG: 3500s print("connected using unix_socket") 3500s else: 3500s kwargs = {} 3500s if self.bind_address is not None: 3500s kwargs["source_address"] = (self.bind_address, 0) 3500s while True: 3500s try: 3500s sock = socket.create_connection( 3500s (self.host, self.port), self.connect_timeout, **kwargs 3500s ) 3500s break 3500s except OSError as e: 3500s if e.errno == errno.EINTR: 3500s continue 3500s raise 3500s self.host_info = "socket %s:%d" % (self.host, self.port) 3500s if DEBUG: 3500s print("connected using socket") 3500s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 3500s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 3500s sock.settimeout(None) 3500s 3500s self._sock = sock 3500s self._rfile = sock.makefile("rb") 3500s self._next_seq_id = 0 3500s 3500s self._get_server_information() 3500s self._request_authentication() 3500s 3500s # Send "SET NAMES" query on init for: 3500s # - Ensure charaset (and collation) is set to the server. 3500s # - collation_id in handshake packet may be ignored. 3500s # - If collation is not specified, we don't know what is server's 3500s # default collation for the charset. For example, default collation 3500s # of utf8mb4 is: 3500s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 3500s # - MySQL 8.0: utf8mb4_0900_ai_ci 3500s # 3500s # Reference: 3500s # - https://github.com/PyMySQL/PyMySQL/issues/1092 3500s # - https://github.com/wagtail/wagtail/issues/9477 3500s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 3500s self.set_character_set(self.charset, self.collation) 3500s 3500s if self.sql_mode is not None: 3500s c = self.cursor() 3500s c.execute("SET sql_mode=%s", (self.sql_mode,)) 3500s c.close() 3500s 3500s if self.init_command is not None: 3500s c = self.cursor() 3500s c.execute(self.init_command) 3500s c.close() 3500s 3500s if self.autocommit_mode is not None: 3500s self.autocommit(self.autocommit_mode) 3500s except BaseException as e: 3500s self._rfile = None 3500s if sock is not None: 3500s try: 3500s sock.close() 3500s except: # noqa 3500s pass 3500s 3500s if isinstance(e, (OSError, IOError)): 3500s exc = err.OperationalError( 3500s CR.CR_CONN_HOST_ERROR, 3500s f"Can't connect to MySQL server on {self.host!r} ({e})", 3500s ) 3500s # Keep original exception and traceback to investigate error. 3500s exc.original_exception = e 3500s exc.traceback = traceback.format_exc() 3500s if DEBUG: 3500s print(exc.traceback) 3500s > raise exc 3500s E sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3500s E (Background on this error at: https://sqlalche.me/e/14/e3q8) 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 3500s ___________________ test_to_sql_callable[mysql_pymysql_conn] ___________________ 3500s self = , sock = None 3500s 3500s def connect(self, sock=None): 3500s self._closed = False 3500s try: 3500s if sock is None: 3500s if self.unix_socket: 3500s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3500s sock.settimeout(self.connect_timeout) 3500s sock.connect(self.unix_socket) 3500s self.host_info = "Localhost via UNIX socket" 3500s self._secure = True 3500s if DEBUG: 3500s print("connected using unix_socket") 3500s else: 3500s kwargs = {} 3500s if self.bind_address is not None: 3500s kwargs["source_address"] = (self.bind_address, 0) 3500s while True: 3500s try: 3500s > sock = socket.create_connection( 3500s (self.host, self.port), self.connect_timeout, **kwargs 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:649: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s address = ('localhost', 3306), timeout = 10, source_address = None 3500s 3500s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 3500s source_address=None, *, all_errors=False): 3500s """Connect to *address* and return the socket object. 3500s 3500s Convenience function. Connect to *address* (a 2-tuple ``(host, 3500s port)``) and return the socket object. Passing the optional 3500s *timeout* parameter will set the timeout on the socket instance 3500s before attempting to connect. If no *timeout* is supplied, the 3500s global default timeout setting returned by :func:`getdefaulttimeout` 3500s is used. If *source_address* is set it must be a tuple of (host, port) 3500s for the socket to bind as a source address before making the connection. 3500s A host of '' or port 0 tells the OS to use the default. When a connection 3500s cannot be created, raises the last error if *all_errors* is False, 3500s and an ExceptionGroup of all errors if *all_errors* is True. 3500s """ 3500s 3500s host, port = address 3500s exceptions = [] 3500s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 3500s af, socktype, proto, canonname, sa = res 3500s sock = None 3500s try: 3500s sock = socket(af, socktype, proto) 3500s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 3500s sock.settimeout(timeout) 3500s if source_address: 3500s sock.bind(source_address) 3500s sock.connect(sa) 3500s # Break explicitly a reference cycle 3500s exceptions.clear() 3500s return sock 3500s 3500s except error as exc: 3500s if not all_errors: 3500s exceptions.clear() # raise only the last error 3500s exceptions.append(exc) 3500s if sock is not None: 3500s sock.close() 3500s 3500s if len(exceptions): 3500s try: 3500s if not all_errors: 3500s > raise exceptions[0] 3500s 3500s /usr/lib/python3.12/socket.py:853: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s address = ('localhost', 3306), timeout = 10, source_address = None 3500s 3500s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 3500s source_address=None, *, all_errors=False): 3500s """Connect to *address* and return the socket object. 3500s 3500s Convenience function. Connect to *address* (a 2-tuple ``(host, 3500s port)``) and return the socket object. Passing the optional 3500s *timeout* parameter will set the timeout on the socket instance 3500s before attempting to connect. If no *timeout* is supplied, the 3500s global default timeout setting returned by :func:`getdefaulttimeout` 3500s is used. If *source_address* is set it must be a tuple of (host, port) 3500s for the socket to bind as a source address before making the connection. 3500s A host of '' or port 0 tells the OS to use the default. When a connection 3500s cannot be created, raises the last error if *all_errors* is False, 3500s and an ExceptionGroup of all errors if *all_errors* is True. 3500s """ 3500s 3500s host, port = address 3500s exceptions = [] 3500s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 3500s af, socktype, proto, canonname, sa = res 3500s sock = None 3500s try: 3500s sock = socket(af, socktype, proto) 3500s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 3500s sock.settimeout(timeout) 3500s if source_address: 3500s sock.bind(source_address) 3500s > sock.connect(sa) 3500s E ConnectionRefusedError: [Errno 111] Connection refused 3500s 3500s /usr/lib/python3.12/socket.py:838: ConnectionRefusedError 3500s 3500s During handling of the above exception, another exception occurred: 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __init__( 3500s self, 3500s *, 3500s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 3500s password="", 3500s host=None, 3500s database=None, 3500s unix_socket=None, 3500s port=0, 3500s charset="", 3500s collation=None, 3500s sql_mode=None, 3500s read_default_file=None, 3500s conv=None, 3500s use_unicode=True, 3500s client_flag=0, 3500s cursorclass=Cursor, 3500s init_command=None, 3500s connect_timeout=10, 3500s read_default_group=None, 3500s autocommit=False, 3500s local_infile=False, 3500s max_allowed_packet=16 * 1024 * 1024, 3500s defer_connect=False, 3500s auth_plugin_map=None, 3500s read_timeout=None, 3500s write_timeout=None, 3500s bind_address=None, 3500s binary_prefix=False, 3500s program_name=None, 3500s server_public_key=None, 3500s ssl=None, 3500s ssl_ca=None, 3500s ssl_cert=None, 3500s ssl_disabled=None, 3500s ssl_key=None, 3500s ssl_key_password=None, 3500s ssl_verify_cert=None, 3500s ssl_verify_identity=None, 3500s compress=None, # not supported 3500s named_pipe=None, # not supported 3500s passwd=None, # deprecated 3500s db=None, # deprecated 3500s ): 3500s if db is not None and database is None: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 3500s database = db 3500s if passwd is not None and not password: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn( 3500s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 3500s # ) 3500s password = passwd 3500s 3500s if compress or named_pipe: 3500s raise NotImplementedError( 3500s "compress and named_pipe arguments are not supported" 3500s ) 3500s 3500s self._local_infile = bool(local_infile) 3500s if self._local_infile: 3500s client_flag |= CLIENT.LOCAL_FILES 3500s 3500s if read_default_group and not read_default_file: 3500s if sys.platform.startswith("win"): 3500s read_default_file = "c:\\my.ini" 3500s else: 3500s read_default_file = "/etc/my.cnf" 3500s 3500s if read_default_file: 3500s if not read_default_group: 3500s read_default_group = "client" 3500s 3500s cfg = Parser() 3500s cfg.read(os.path.expanduser(read_default_file)) 3500s 3500s def _config(key, arg): 3500s if arg: 3500s return arg 3500s try: 3500s return cfg.get(read_default_group, key) 3500s except Exception: 3500s return arg 3500s 3500s user = _config("user", user) 3500s password = _config("password", password) 3500s host = _config("host", host) 3500s database = _config("database", database) 3500s unix_socket = _config("socket", unix_socket) 3500s port = int(_config("port", port)) 3500s bind_address = _config("bind-address", bind_address) 3500s charset = _config("default-character-set", charset) 3500s if not ssl: 3500s ssl = {} 3500s if isinstance(ssl, dict): 3500s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 3500s value = _config("ssl-" + key, ssl.get(key)) 3500s if value: 3500s ssl[key] = value 3500s 3500s self.ssl = False 3500s if not ssl_disabled: 3500s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 3500s ssl = { 3500s "ca": ssl_ca, 3500s "check_hostname": bool(ssl_verify_identity), 3500s "verify_mode": ssl_verify_cert 3500s if ssl_verify_cert is not None 3500s else False, 3500s } 3500s if ssl_cert is not None: 3500s ssl["cert"] = ssl_cert 3500s if ssl_key is not None: 3500s ssl["key"] = ssl_key 3500s if ssl_key_password is not None: 3500s ssl["password"] = ssl_key_password 3500s if ssl: 3500s if not SSL_ENABLED: 3500s raise NotImplementedError("ssl module not found") 3500s self.ssl = True 3500s client_flag |= CLIENT.SSL 3500s self.ctx = self._create_ssl_ctx(ssl) 3500s 3500s self.host = host or "localhost" 3500s self.port = port or 3306 3500s if type(self.port) is not int: 3500s raise ValueError("port should be of type int") 3500s self.user = user or DEFAULT_USER 3500s self.password = password or b"" 3500s if isinstance(self.password, str): 3500s self.password = self.password.encode("latin1") 3500s self.db = database 3500s self.unix_socket = unix_socket 3500s self.bind_address = bind_address 3500s if not (0 < connect_timeout <= 31536000): 3500s raise ValueError("connect_timeout should be >0 and <=31536000") 3500s self.connect_timeout = connect_timeout or None 3500s if read_timeout is not None and read_timeout <= 0: 3500s raise ValueError("read_timeout should be > 0") 3500s self._read_timeout = read_timeout 3500s if write_timeout is not None and write_timeout <= 0: 3500s raise ValueError("write_timeout should be > 0") 3500s self._write_timeout = write_timeout 3500s 3500s self.charset = charset or DEFAULT_CHARSET 3500s self.collation = collation 3500s self.use_unicode = use_unicode 3500s 3500s self.encoding = charset_by_name(self.charset).encoding 3500s 3500s client_flag |= CLIENT.CAPABILITIES 3500s if self.db: 3500s client_flag |= CLIENT.CONNECT_WITH_DB 3500s 3500s self.client_flag = client_flag 3500s 3500s self.cursorclass = cursorclass 3500s 3500s self._result = None 3500s self._affected_rows = 0 3500s self.host_info = "Not connected" 3500s 3500s # specified autocommit mode. None means use server default. 3500s self.autocommit_mode = autocommit 3500s 3500s if conv is None: 3500s conv = converters.conversions 3500s 3500s # Need for MySQLdb compatibility. 3500s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 3500s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 3500s self.sql_mode = sql_mode 3500s self.init_command = init_command 3500s self.max_allowed_packet = max_allowed_packet 3500s self._auth_plugin_map = auth_plugin_map or {} 3500s self._binary_prefix = binary_prefix 3500s self.server_public_key = server_public_key 3500s 3500s self._connect_attrs = { 3500s "_client_name": "pymysql", 3500s "_client_version": VERSION_STRING, 3500s "_pid": str(os.getpid()), 3500s } 3500s 3500s if program_name: 3500s self._connect_attrs["program_name"] = program_name 3500s 3500s if defer_connect: 3500s self._sock = None 3500s else: 3500s > self.connect() 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = , sock = None 3500s 3500s def connect(self, sock=None): 3500s self._closed = False 3500s try: 3500s if sock is None: 3500s if self.unix_socket: 3500s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3500s sock.settimeout(self.connect_timeout) 3500s sock.connect(self.unix_socket) 3500s self.host_info = "Localhost via UNIX socket" 3500s self._secure = True 3500s if DEBUG: 3500s print("connected using unix_socket") 3500s else: 3500s kwargs = {} 3500s if self.bind_address is not None: 3500s kwargs["source_address"] = (self.bind_address, 0) 3500s while True: 3500s try: 3500s sock = socket.create_connection( 3500s (self.host, self.port), self.connect_timeout, **kwargs 3500s ) 3500s break 3500s except OSError as e: 3500s if e.errno == errno.EINTR: 3500s continue 3500s raise 3500s self.host_info = "socket %s:%d" % (self.host, self.port) 3500s if DEBUG: 3500s print("connected using socket") 3500s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 3500s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 3500s sock.settimeout(None) 3500s 3500s self._sock = sock 3500s self._rfile = sock.makefile("rb") 3500s self._next_seq_id = 0 3500s 3500s self._get_server_information() 3500s self._request_authentication() 3500s 3500s # Send "SET NAMES" query on init for: 3500s # - Ensure charaset (and collation) is set to the server. 3500s # - collation_id in handshake packet may be ignored. 3500s # - If collation is not specified, we don't know what is server's 3500s # default collation for the charset. For example, default collation 3500s # of utf8mb4 is: 3500s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 3500s # - MySQL 8.0: utf8mb4_0900_ai_ci 3500s # 3500s # Reference: 3500s # - https://github.com/PyMySQL/PyMySQL/issues/1092 3500s # - https://github.com/wagtail/wagtail/issues/9477 3500s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 3500s self.set_character_set(self.charset, self.collation) 3500s 3500s if self.sql_mode is not None: 3500s c = self.cursor() 3500s c.execute("SET sql_mode=%s", (self.sql_mode,)) 3500s c.close() 3500s 3500s if self.init_command is not None: 3500s c = self.cursor() 3500s c.execute(self.init_command) 3500s c.close() 3500s 3500s if self.autocommit_mode is not None: 3500s self.autocommit(self.autocommit_mode) 3500s except BaseException as e: 3500s self._rfile = None 3500s if sock is not None: 3500s try: 3500s sock.close() 3500s except: # noqa 3500s pass 3500s 3500s if isinstance(e, (OSError, IOError)): 3500s exc = err.OperationalError( 3500s CR.CR_CONN_HOST_ERROR, 3500s f"Can't connect to MySQL server on {self.host!r} ({e})", 3500s ) 3500s # Keep original exception and traceback to investigate error. 3500s exc.original_exception = e 3500s exc.traceback = traceback.format_exc() 3500s if DEBUG: 3500s print(exc.traceback) 3500s > raise exc 3500s E pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 3500s 3500s The above exception was the direct cause of the following exception: 3500s 3500s conn = 'mysql_pymysql_conn' 3500s test_frame1 = index A B C D 3500s 0 2000-01-03 00:00:00 0.980269 3.685731 -0.364217 -1...0-01-05 00:00:00 0.498581 0.731168 -0.537677 1.346270 3500s 3 2000-01-06 00:00:00 1.120202 1.567621 0.003641 0.675253 3500s request = > 3500s 3500s @pytest.mark.db 3500s @pytest.mark.parametrize("conn", sqlalchemy_connectable) 3500s def test_to_sql_callable(conn, test_frame1, request): 3500s > conn = request.getfixturevalue(conn) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:712: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'mysql_pymysql_conn' 3500s 3500s def getfixturevalue(self, argname: str) -> Any: 3500s """Dynamically run a named fixture function. 3500s 3500s Declaring fixtures via function argument is recommended where possible. 3500s But if you can only decide whether to use another fixture at test 3500s setup time, you may use this function to retrieve it inside a fixture 3500s or test function body. 3500s 3500s This method can be used during the test setup phase or the test run 3500s phase, but during the test teardown phase a fixture's value may not 3500s be available. 3500s 3500s :param argname: 3500s The fixture name. 3500s :raises pytest.FixtureLookupError: 3500s If the given fixture could not be found. 3500s """ 3500s > fixturedef = self._get_active_fixturedef(argname) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:585: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'mysql_pymysql_conn' 3500s 3500s def _get_active_fixturedef( 3500s self, argname: str 3500s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3500s try: 3500s return self._fixture_defs[argname] 3500s except KeyError: 3500s try: 3500s fixturedef = self._getnextfixturedef(argname) 3500s except FixtureLookupError: 3500s if argname == "request": 3500s cached_result = (self, [0], None) 3500s return PseudoFixtureDef(cached_result, Scope.Function) 3500s raise 3500s # Remove indent to prevent the python3 exception 3500s # from leaking into the call. 3500s > self._compute_fixture_value(fixturedef) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s fixturedef = 3500s 3500s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3500s """Create a SubRequest based on "self" and call the execute method 3500s of the given FixtureDef object. 3500s 3500s This will force the FixtureDef object to throw away any previous 3500s results and compute a new fixture value, which will be stored into 3500s the FixtureDef object itself. 3500s """ 3500s # prepare a subrequest object before calling fixture function 3500s # (latter managed by fixturedef) 3500s argname = fixturedef.argname 3500s funcitem = self._pyfuncitem 3500s scope = fixturedef._scope 3500s try: 3500s callspec = funcitem.callspec 3500s except AttributeError: 3500s callspec = None 3500s if callspec is not None and argname in callspec.params: 3500s param = callspec.params[argname] 3500s param_index = callspec.indices[argname] 3500s # If a parametrize invocation set a scope it will override 3500s # the static scope defined with the fixture function. 3500s with suppress(KeyError): 3500s scope = callspec._arg2scope[argname] 3500s else: 3500s param = NOTSET 3500s param_index = 0 3500s has_params = fixturedef.params is not None 3500s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3500s if has_params and fixtures_not_supported: 3500s msg = ( 3500s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3500s "Node id: {nodeid}\n" 3500s "Function type: {typename}" 3500s ).format( 3500s name=funcitem.name, 3500s nodeid=funcitem.nodeid, 3500s typename=type(funcitem).__name__, 3500s ) 3500s fail(msg, pytrace=False) 3500s if has_params: 3500s frame = inspect.stack()[3] 3500s frameinfo = inspect.getframeinfo(frame[0]) 3500s source_path = absolutepath(frameinfo.filename) 3500s source_lineno = frameinfo.lineno 3500s try: 3500s source_path_str = str( 3500s source_path.relative_to(funcitem.config.rootpath) 3500s ) 3500s except ValueError: 3500s source_path_str = str(source_path) 3500s msg = ( 3500s "The requested fixture has no parameter defined for test:\n" 3500s " {}\n\n" 3500s "Requested fixture '{}' defined in:\n{}" 3500s "\n\nRequested here:\n{}:{}".format( 3500s funcitem.nodeid, 3500s fixturedef.argname, 3500s getlocation(fixturedef.func, funcitem.config.rootpath), 3500s source_path_str, 3500s source_lineno, 3500s ) 3500s ) 3500s fail(msg, pytrace=False) 3500s 3500s subrequest = SubRequest( 3500s self, scope, param, param_index, fixturedef, _ispytest=True 3500s ) 3500s 3500s # Check if a higher-level scoped fixture accesses a lower level one. 3500s subrequest._check_scope(argname, self._scope, scope) 3500s try: 3500s # Call the fixture function. 3500s > fixturedef.execute(request=subrequest) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s request = > 3500s 3500s def execute(self, request: SubRequest) -> FixtureValue: 3500s # Get required arguments and register our own finish() 3500s # with their finalization. 3500s for argname in self.argnames: 3500s > fixturedef = request._get_active_fixturedef(argname) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1045: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'mysql_pymysql_engine' 3500s 3500s def _get_active_fixturedef( 3500s self, argname: str 3500s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3500s try: 3500s return self._fixture_defs[argname] 3500s except KeyError: 3500s try: 3500s fixturedef = self._getnextfixturedef(argname) 3500s except FixtureLookupError: 3500s if argname == "request": 3500s cached_result = (self, [0], None) 3500s return PseudoFixtureDef(cached_result, Scope.Function) 3500s raise 3500s # Remove indent to prevent the python3 exception 3500s # from leaking into the call. 3500s > self._compute_fixture_value(fixturedef) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s fixturedef = 3500s 3500s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3500s """Create a SubRequest based on "self" and call the execute method 3500s of the given FixtureDef object. 3500s 3500s This will force the FixtureDef object to throw away any previous 3500s results and compute a new fixture value, which will be stored into 3500s the FixtureDef object itself. 3500s """ 3500s # prepare a subrequest object before calling fixture function 3500s # (latter managed by fixturedef) 3500s argname = fixturedef.argname 3500s funcitem = self._pyfuncitem 3500s scope = fixturedef._scope 3500s try: 3500s callspec = funcitem.callspec 3500s except AttributeError: 3500s callspec = None 3500s if callspec is not None and argname in callspec.params: 3500s param = callspec.params[argname] 3500s param_index = callspec.indices[argname] 3500s # If a parametrize invocation set a scope it will override 3500s # the static scope defined with the fixture function. 3500s with suppress(KeyError): 3500s scope = callspec._arg2scope[argname] 3500s else: 3500s param = NOTSET 3500s param_index = 0 3500s has_params = fixturedef.params is not None 3500s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3500s if has_params and fixtures_not_supported: 3500s msg = ( 3500s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3500s "Node id: {nodeid}\n" 3500s "Function type: {typename}" 3500s ).format( 3500s name=funcitem.name, 3500s nodeid=funcitem.nodeid, 3500s typename=type(funcitem).__name__, 3500s ) 3500s fail(msg, pytrace=False) 3500s if has_params: 3500s frame = inspect.stack()[3] 3500s frameinfo = inspect.getframeinfo(frame[0]) 3500s source_path = absolutepath(frameinfo.filename) 3500s source_lineno = frameinfo.lineno 3500s try: 3500s source_path_str = str( 3500s source_path.relative_to(funcitem.config.rootpath) 3500s ) 3500s except ValueError: 3500s source_path_str = str(source_path) 3500s msg = ( 3500s "The requested fixture has no parameter defined for test:\n" 3500s " {}\n\n" 3500s "Requested fixture '{}' defined in:\n{}" 3500s "\n\nRequested here:\n{}:{}".format( 3500s funcitem.nodeid, 3500s fixturedef.argname, 3500s getlocation(fixturedef.func, funcitem.config.rootpath), 3500s source_path_str, 3500s source_lineno, 3500s ) 3500s ) 3500s fail(msg, pytrace=False) 3500s 3500s subrequest = SubRequest( 3500s self, scope, param, param_index, fixturedef, _ispytest=True 3500s ) 3500s 3500s # Check if a higher-level scoped fixture accesses a lower level one. 3500s subrequest._check_scope(argname, self._scope, scope) 3500s try: 3500s # Call the fixture function. 3500s > fixturedef.execute(request=subrequest) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s request = > 3500s 3500s def execute(self, request: SubRequest) -> FixtureValue: 3500s # Get required arguments and register our own finish() 3500s # with their finalization. 3500s for argname in self.argnames: 3500s fixturedef = request._get_active_fixturedef(argname) 3500s if argname != "request": 3500s # PseudoFixtureDef is only for "request". 3500s assert isinstance(fixturedef, FixtureDef) 3500s fixturedef.addfinalizer(functools.partial(self.finish, request=request)) 3500s 3500s my_cache_key = self.cache_key(request) 3500s if self.cached_result is not None: 3500s # note: comparison with `==` can fail (or be expensive) for e.g. 3500s # numpy arrays (#6497). 3500s cache_key = self.cached_result[1] 3500s if my_cache_key is cache_key: 3500s if self.cached_result[2] is not None: 3500s _, val, tb = self.cached_result[2] 3500s raise val.with_traceback(tb) 3500s else: 3500s result = self.cached_result[0] 3500s return result 3500s # We have a previous but differently parametrized fixture instance 3500s # so we need to tear it down before creating a new one. 3500s self.finish(request) 3500s assert self.cached_result is None 3500s 3500s ihook = request.node.ihook 3500s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1069: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s kwargs = {'fixturedef': , 'request': >} 3500s firstresult = True 3500s 3500s def __call__(self, **kwargs: object) -> Any: 3500s """Call the hook. 3500s 3500s Only accepts keyword arguments, which should match the hook 3500s specification. 3500s 3500s Returns the result(s) of calling all registered plugins, see 3500s :ref:`calling`. 3500s """ 3500s assert ( 3500s not self.is_historic() 3500s ), "Cannot directly call a historic hook - use call_historic instead." 3500s self._verify_all_args_are_provided(kwargs) 3500s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 3500s # Copy because plugins may register other plugins during iteration (#438). 3500s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = <_pytest.config.PytestPluginManager object at 0xe9079168> 3500s hook_name = 'pytest_fixture_setup' 3500s methods = [>] 3500s kwargs = {'fixturedef': , 'request': >} 3500s firstresult = True 3500s 3500s def _hookexec( 3500s self, 3500s hook_name: str, 3500s methods: Sequence[HookImpl], 3500s kwargs: Mapping[str, object], 3500s firstresult: bool, 3500s ) -> object | list[object]: 3500s # called from all hookcaller instances. 3500s # enable_tracing will set its own wrapping function at self._inner_hookexec 3500s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturedef = 3500s request = > 3500s 3500s def pytest_fixture_setup( 3500s fixturedef: FixtureDef[FixtureValue], request: SubRequest 3500s ) -> FixtureValue: 3500s """Execution of fixture setup.""" 3500s kwargs = {} 3500s for argname in fixturedef.argnames: 3500s fixdef = request._get_active_fixturedef(argname) 3500s assert fixdef.cached_result is not None 3500s result, arg_cache_key, exc = fixdef.cached_result 3500s request._check_scope(argname, request._scope, fixdef._scope) 3500s kwargs[argname] = result 3500s 3500s fixturefunc = resolve_fixture_function(fixturedef, request) 3500s my_cache_key = fixturedef.cache_key(request) 3500s try: 3500s > result = call_fixture_func(fixturefunc, request, kwargs) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1123: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturefunc = 3500s request = > 3500s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv'), 'types_data': [{'B... False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}]} 3500s 3500s def call_fixture_func( 3500s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 3500s ) -> FixtureValue: 3500s if is_generator(fixturefunc): 3500s fixturefunc = cast( 3500s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 3500s ) 3500s generator = fixturefunc(**kwargs) 3500s try: 3500s > fixture_result = next(generator) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:895: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s iris_path = PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv') 3500s types_data = [{'BoolCol': False, 'BoolColWithNull': False, 'DateCol': '2000-01-03 00:00:00', 'DateColWithTz': '2000-01-01 00:00:00-...: False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}] 3500s 3500s @pytest.fixture 3500s def mysql_pymysql_engine(iris_path, types_data): 3500s sqlalchemy = pytest.importorskip("sqlalchemy") 3500s pymysql = pytest.importorskip("pymysql") 3500s engine = sqlalchemy.create_engine( 3500s "mysql+pymysql://root@localhost:3306/pandas", 3500s connect_args={"client_flag": pymysql.constants.CLIENT.MULTI_STATEMENTS}, 3500s poolclass=sqlalchemy.pool.NullPool, 3500s ) 3500s > insp = sqlalchemy.inspect(engine) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:409: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s subject = Engine(mysql+pymysql://root@localhost:3306/pandas), raiseerr = True 3500s 3500s def inspect(subject, raiseerr=True): 3500s """Produce an inspection object for the given target. 3500s 3500s The returned value in some cases may be the 3500s same object as the one given, such as if a 3500s :class:`_orm.Mapper` object is passed. In other 3500s cases, it will be an instance of the registered 3500s inspection type for the given object, such as 3500s if an :class:`_engine.Engine` is passed, an 3500s :class:`_reflection.Inspector` object is returned. 3500s 3500s :param subject: the subject to be inspected. 3500s :param raiseerr: When ``True``, if the given subject 3500s does not 3500s correspond to a known SQLAlchemy inspected type, 3500s :class:`sqlalchemy.exc.NoInspectionAvailable` 3500s is raised. If ``False``, ``None`` is returned. 3500s 3500s """ 3500s type_ = type(subject) 3500s for cls in type_.__mro__: 3500s if cls in _registrars: 3500s reg = _registrars[cls] 3500s if reg is True: 3500s return subject 3500s > ret = reg(subject) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:64: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s @inspection._inspects(Engine) 3500s def _engine_insp(bind): 3500s > return Inspector._construct(Inspector._init_engine, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:182: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s init = 3500s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s @classmethod 3500s def _construct(cls, init, bind): 3500s 3500s if hasattr(bind.dialect, "inspector"): 3500s cls = bind.dialect.inspector 3500s 3500s self = cls.__new__(cls) 3500s > init(self, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:117: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s def _init_engine(self, engine): 3500s self.bind = self.engine = engine 3500s > engine.connect().close() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:128: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s close_with_result = False 3500s 3500s def connect(self, close_with_result=False): 3500s """Return a new :class:`_engine.Connection` object. 3500s 3500s The :class:`_engine.Connection` object is a facade that uses a DBAPI 3500s connection internally in order to communicate with the database. This 3500s connection is procured from the connection-holding :class:`_pool.Pool` 3500s referenced by this :class:`_engine.Engine`. When the 3500s :meth:`_engine.Connection.close` method of the 3500s :class:`_engine.Connection` object 3500s is called, the underlying DBAPI connection is then returned to the 3500s connection pool, where it may be used again in a subsequent call to 3500s :meth:`_engine.Engine.connect`. 3500s 3500s """ 3500s 3500s > return self._connection_cls(self, close_with_result=close_with_result) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3325: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 3500s close_with_result = False, _branch_from = None, _execution_options = None 3500s _dispatch = None, _has_events = None, _allow_revalidate = True 3500s 3500s def __init__( 3500s self, 3500s engine, 3500s connection=None, 3500s close_with_result=False, 3500s _branch_from=None, 3500s _execution_options=None, 3500s _dispatch=None, 3500s _has_events=None, 3500s _allow_revalidate=True, 3500s ): 3500s """Construct a new Connection.""" 3500s self.engine = engine 3500s self.dialect = engine.dialect 3500s self.__branch_from = _branch_from 3500s 3500s if _branch_from: 3500s # branching is always "from" the root connection 3500s assert _branch_from.__branch_from is None 3500s self._dbapi_connection = connection 3500s self._execution_options = _execution_options 3500s self._echo = _branch_from._echo 3500s self.should_close_with_result = False 3500s self.dispatch = _dispatch 3500s self._has_events = _branch_from._has_events 3500s else: 3500s self._dbapi_connection = ( 3500s connection 3500s if connection is not None 3500s > else engine.raw_connection() 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:96: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas), _connection = None 3500s 3500s def raw_connection(self, _connection=None): 3500s """Return a "raw" DBAPI connection from the connection pool. 3500s 3500s The returned object is a proxied version of the DBAPI 3500s connection object used by the underlying driver in use. 3500s The object will have all the same behavior as the real DBAPI 3500s connection, except that its ``close()`` method will result in the 3500s connection being returned to the pool, rather than being closed 3500s for real. 3500s 3500s This method provides direct DBAPI connection access for 3500s special situations when the API provided by 3500s :class:`_engine.Connection` 3500s is not needed. When a :class:`_engine.Connection` object is already 3500s present, the DBAPI connection is available using 3500s the :attr:`_engine.Connection.connection` accessor. 3500s 3500s .. seealso:: 3500s 3500s :ref:`dbapi_connections` 3500s 3500s """ 3500s > return self._wrap_pool_connect(self.pool.connect, _connection) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3404: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s return fn() 3500s except dialect.dbapi.Error as e: 3500s if connection is None: 3500s > Connection._handle_dbapi_exception_noconnection( 3500s e, dialect, self 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3374: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s e = OperationalError(2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3500s dialect = 3500s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s @classmethod 3500s def _handle_dbapi_exception_noconnection(cls, e, dialect, engine): 3500s exc_info = sys.exc_info() 3500s 3500s is_disconnect = dialect.is_disconnect(e, None, None) 3500s 3500s should_wrap = isinstance(e, dialect.dbapi.Error) 3500s 3500s if should_wrap: 3500s sqlalchemy_exception = exc.DBAPIError.instance( 3500s None, 3500s None, 3500s e, 3500s dialect.dbapi.Error, 3500s hide_parameters=engine.hide_parameters, 3500s connection_invalidated=is_disconnect, 3500s ) 3500s else: 3500s sqlalchemy_exception = None 3500s 3500s newraise = None 3500s 3500s if engine._has_events: 3500s ctx = ExceptionContextImpl( 3500s e, 3500s sqlalchemy_exception, 3500s engine, 3500s None, 3500s None, 3500s None, 3500s None, 3500s None, 3500s is_disconnect, 3500s True, 3500s ) 3500s for fn in engine.dispatch.handle_error: 3500s try: 3500s # handler returns an exception; 3500s # call next handler in a chain 3500s per_fn = fn(ctx) 3500s if per_fn is not None: 3500s ctx.chained_exception = newraise = per_fn 3500s except Exception as _raised: 3500s # handler raises an exception - stop processing 3500s newraise = _raised 3500s break 3500s 3500s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 3500s sqlalchemy_exception.connection_invalidated = ( 3500s is_disconnect 3500s ) = ctx.is_disconnect 3500s 3500s if newraise: 3500s util.raise_(newraise, with_traceback=exc_info[2], from_=e) 3500s elif should_wrap: 3500s > util.raise_( 3500s sqlalchemy_exception, with_traceback=exc_info[2], from_=e 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2208: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __init__( 3500s self, 3500s *, 3500s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 3500s password="", 3500s host=None, 3500s database=None, 3500s unix_socket=None, 3500s port=0, 3500s charset="", 3500s collation=None, 3500s sql_mode=None, 3500s read_default_file=None, 3500s conv=None, 3500s use_unicode=True, 3500s client_flag=0, 3500s cursorclass=Cursor, 3500s init_command=None, 3500s connect_timeout=10, 3500s read_default_group=None, 3500s autocommit=False, 3500s local_infile=False, 3500s max_allowed_packet=16 * 1024 * 1024, 3500s defer_connect=False, 3500s auth_plugin_map=None, 3500s read_timeout=None, 3500s write_timeout=None, 3500s bind_address=None, 3500s binary_prefix=False, 3500s program_name=None, 3500s server_public_key=None, 3500s ssl=None, 3500s ssl_ca=None, 3500s ssl_cert=None, 3500s ssl_disabled=None, 3500s ssl_key=None, 3500s ssl_key_password=None, 3500s ssl_verify_cert=None, 3500s ssl_verify_identity=None, 3500s compress=None, # not supported 3500s named_pipe=None, # not supported 3500s passwd=None, # deprecated 3500s db=None, # deprecated 3500s ): 3500s if db is not None and database is None: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 3500s database = db 3500s if passwd is not None and not password: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn( 3500s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 3500s # ) 3500s password = passwd 3500s 3500s if compress or named_pipe: 3500s raise NotImplementedError( 3500s "compress and named_pipe arguments are not supported" 3500s ) 3500s 3500s self._local_infile = bool(local_infile) 3500s if self._local_infile: 3500s client_flag |= CLIENT.LOCAL_FILES 3500s 3500s if read_default_group and not read_default_file: 3500s if sys.platform.startswith("win"): 3500s read_default_file = "c:\\my.ini" 3500s else: 3500s read_default_file = "/etc/my.cnf" 3500s 3500s if read_default_file: 3500s if not read_default_group: 3500s read_default_group = "client" 3500s 3500s cfg = Parser() 3500s cfg.read(os.path.expanduser(read_default_file)) 3500s 3500s def _config(key, arg): 3500s if arg: 3500s return arg 3500s try: 3500s return cfg.get(read_default_group, key) 3500s except Exception: 3500s return arg 3500s 3500s user = _config("user", user) 3500s password = _config("password", password) 3500s host = _config("host", host) 3500s database = _config("database", database) 3500s unix_socket = _config("socket", unix_socket) 3500s port = int(_config("port", port)) 3500s bind_address = _config("bind-address", bind_address) 3500s charset = _config("default-character-set", charset) 3500s if not ssl: 3500s ssl = {} 3500s if isinstance(ssl, dict): 3500s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 3500s value = _config("ssl-" + key, ssl.get(key)) 3500s if value: 3500s ssl[key] = value 3500s 3500s self.ssl = False 3500s if not ssl_disabled: 3500s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 3500s ssl = { 3500s "ca": ssl_ca, 3500s "check_hostname": bool(ssl_verify_identity), 3500s "verify_mode": ssl_verify_cert 3500s if ssl_verify_cert is not None 3500s else False, 3500s } 3500s if ssl_cert is not None: 3500s ssl["cert"] = ssl_cert 3500s if ssl_key is not None: 3500s ssl["key"] = ssl_key 3500s if ssl_key_password is not None: 3500s ssl["password"] = ssl_key_password 3500s if ssl: 3500s if not SSL_ENABLED: 3500s raise NotImplementedError("ssl module not found") 3500s self.ssl = True 3500s client_flag |= CLIENT.SSL 3500s self.ctx = self._create_ssl_ctx(ssl) 3500s 3500s self.host = host or "localhost" 3500s self.port = port or 3306 3500s if type(self.port) is not int: 3500s raise ValueError("port should be of type int") 3500s self.user = user or DEFAULT_USER 3500s self.password = password or b"" 3500s if isinstance(self.password, str): 3500s self.password = self.password.encode("latin1") 3500s self.db = database 3500s self.unix_socket = unix_socket 3500s self.bind_address = bind_address 3500s if not (0 < connect_timeout <= 31536000): 3500s raise ValueError("connect_timeout should be >0 and <=31536000") 3500s self.connect_timeout = connect_timeout or None 3500s if read_timeout is not None and read_timeout <= 0: 3500s raise ValueError("read_timeout should be > 0") 3500s self._read_timeout = read_timeout 3500s if write_timeout is not None and write_timeout <= 0: 3500s raise ValueError("write_timeout should be > 0") 3500s self._write_timeout = write_timeout 3500s 3500s self.charset = charset or DEFAULT_CHARSET 3500s self.collation = collation 3500s self.use_unicode = use_unicode 3500s 3500s self.encoding = charset_by_name(self.charset).encoding 3500s 3500s client_flag |= CLIENT.CAPABILITIES 3500s if self.db: 3500s client_flag |= CLIENT.CONNECT_WITH_DB 3500s 3500s self.client_flag = client_flag 3500s 3500s self.cursorclass = cursorclass 3500s 3500s self._result = None 3500s self._affected_rows = 0 3500s self.host_info = "Not connected" 3500s 3500s # specified autocommit mode. None means use server default. 3500s self.autocommit_mode = autocommit 3500s 3500s if conv is None: 3500s conv = converters.conversions 3500s 3500s # Need for MySQLdb compatibility. 3500s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 3500s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 3500s self.sql_mode = sql_mode 3500s self.init_command = init_command 3500s self.max_allowed_packet = max_allowed_packet 3500s self._auth_plugin_map = auth_plugin_map or {} 3500s self._binary_prefix = binary_prefix 3500s self.server_public_key = server_public_key 3500s 3500s self._connect_attrs = { 3500s "_client_name": "pymysql", 3500s "_client_version": VERSION_STRING, 3500s "_pid": str(os.getpid()), 3500s } 3500s 3500s if program_name: 3500s self._connect_attrs["program_name"] = program_name 3500s 3500s if defer_connect: 3500s self._sock = None 3500s else: 3500s > self.connect() 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = , sock = None 3500s 3500s def connect(self, sock=None): 3500s self._closed = False 3500s try: 3500s if sock is None: 3500s if self.unix_socket: 3500s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3500s sock.settimeout(self.connect_timeout) 3500s sock.connect(self.unix_socket) 3500s self.host_info = "Localhost via UNIX socket" 3500s self._secure = True 3500s if DEBUG: 3500s print("connected using unix_socket") 3500s else: 3500s kwargs = {} 3500s if self.bind_address is not None: 3500s kwargs["source_address"] = (self.bind_address, 0) 3500s while True: 3500s try: 3500s sock = socket.create_connection( 3500s (self.host, self.port), self.connect_timeout, **kwargs 3500s ) 3500s break 3500s except OSError as e: 3500s if e.errno == errno.EINTR: 3500s continue 3500s raise 3500s self.host_info = "socket %s:%d" % (self.host, self.port) 3500s if DEBUG: 3500s print("connected using socket") 3500s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 3500s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 3500s sock.settimeout(None) 3500s 3500s self._sock = sock 3500s self._rfile = sock.makefile("rb") 3500s self._next_seq_id = 0 3500s 3500s self._get_server_information() 3500s self._request_authentication() 3500s 3500s # Send "SET NAMES" query on init for: 3500s # - Ensure charaset (and collation) is set to the server. 3500s # - collation_id in handshake packet may be ignored. 3500s # - If collation is not specified, we don't know what is server's 3500s # default collation for the charset. For example, default collation 3500s # of utf8mb4 is: 3500s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 3500s # - MySQL 8.0: utf8mb4_0900_ai_ci 3500s # 3500s # Reference: 3500s # - https://github.com/PyMySQL/PyMySQL/issues/1092 3500s # - https://github.com/wagtail/wagtail/issues/9477 3500s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 3500s self.set_character_set(self.charset, self.collation) 3500s 3500s if self.sql_mode is not None: 3500s c = self.cursor() 3500s c.execute("SET sql_mode=%s", (self.sql_mode,)) 3500s c.close() 3500s 3500s if self.init_command is not None: 3500s c = self.cursor() 3500s c.execute(self.init_command) 3500s c.close() 3500s 3500s if self.autocommit_mode is not None: 3500s self.autocommit(self.autocommit_mode) 3500s except BaseException as e: 3500s self._rfile = None 3500s if sock is not None: 3500s try: 3500s sock.close() 3500s except: # noqa 3500s pass 3500s 3500s if isinstance(e, (OSError, IOError)): 3500s exc = err.OperationalError( 3500s CR.CR_CONN_HOST_ERROR, 3500s f"Can't connect to MySQL server on {self.host!r} ({e})", 3500s ) 3500s # Keep original exception and traceback to investigate error. 3500s exc.original_exception = e 3500s exc.traceback = traceback.format_exc() 3500s if DEBUG: 3500s print(exc.traceback) 3500s > raise exc 3500s E sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3500s E (Background on this error at: https://sqlalche.me/e/14/e3q8) 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 3500s _______________ test_to_sql_callable[postgresql_psycopg2_engine] _______________ 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s dsn = 'host=localhost user=postgres password=postgres port=5432 dbname=pandas' 3500s connection_factory = None, cursor_factory = None 3500s kwargs = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s kwasync = {} 3500s 3500s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 3500s """ 3500s Create a new database connection. 3500s 3500s The connection parameters can be specified as a string: 3500s 3500s conn = psycopg2.connect("dbname=test user=postgres password=secret") 3500s 3500s or using a set of keyword arguments: 3500s 3500s conn = psycopg2.connect(database="test", user="postgres", password="secret") 3500s 3500s Or as a mix of both. The basic connection parameters are: 3500s 3500s - *dbname*: the database name 3500s - *database*: the database name (only as keyword argument) 3500s - *user*: user name used to authenticate 3500s - *password*: password used to authenticate 3500s - *host*: database host address (defaults to UNIX socket if not provided) 3500s - *port*: connection port number (defaults to 5432 if not provided) 3500s 3500s Using the *connection_factory* parameter a different class or connections 3500s factory can be specified. It should be a callable object taking a dsn 3500s argument. 3500s 3500s Using the *cursor_factory* parameter, a new default cursor factory will be 3500s used by cursor(). 3500s 3500s Using *async*=True an asynchronous connection will be created. *async_* is 3500s a valid alias (for Python versions where ``async`` is a keyword). 3500s 3500s Any other keyword parameter will be passed to the underlying client 3500s library: the list of supported parameters depends on the library version. 3500s 3500s """ 3500s kwasync = {} 3500s if 'async' in kwargs: 3500s kwasync['async'] = kwargs.pop('async') 3500s if 'async_' in kwargs: 3500s kwasync['async_'] = kwargs.pop('async_') 3500s 3500s dsn = _ext.make_dsn(dsn, **kwargs) 3500s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 3500s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 3500s E Is the server running on that host and accepting TCP/IP connections? 3500s 3500s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 3500s 3500s The above exception was the direct cause of the following exception: 3500s 3500s conn = 'postgresql_psycopg2_engine' 3500s test_frame1 = index A B C D 3500s 0 2000-01-03 00:00:00 0.980269 3.685731 -0.364217 -1...0-01-05 00:00:00 0.498581 0.731168 -0.537677 1.346270 3500s 3 2000-01-06 00:00:00 1.120202 1.567621 0.003641 0.675253 3500s request = > 3500s 3500s @pytest.mark.db 3500s @pytest.mark.parametrize("conn", sqlalchemy_connectable) 3500s def test_to_sql_callable(conn, test_frame1, request): 3500s > conn = request.getfixturevalue(conn) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:712: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'postgresql_psycopg2_engine' 3500s 3500s def getfixturevalue(self, argname: str) -> Any: 3500s """Dynamically run a named fixture function. 3500s 3500s Declaring fixtures via function argument is recommended where possible. 3500s But if you can only decide whether to use another fixture at test 3500s setup time, you may use this function to retrieve it inside a fixture 3500s or test function body. 3500s 3500s This method can be used during the test setup phase or the test run 3500s phase, but during the test teardown phase a fixture's value may not 3500s be available. 3500s 3500s :param argname: 3500s The fixture name. 3500s :raises pytest.FixtureLookupError: 3500s If the given fixture could not be found. 3500s """ 3500s > fixturedef = self._get_active_fixturedef(argname) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:585: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'postgresql_psycopg2_engine' 3500s 3500s def _get_active_fixturedef( 3500s self, argname: str 3500s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3500s try: 3500s return self._fixture_defs[argname] 3500s except KeyError: 3500s try: 3500s fixturedef = self._getnextfixturedef(argname) 3500s except FixtureLookupError: 3500s if argname == "request": 3500s cached_result = (self, [0], None) 3500s return PseudoFixtureDef(cached_result, Scope.Function) 3500s raise 3500s # Remove indent to prevent the python3 exception 3500s # from leaking into the call. 3500s > self._compute_fixture_value(fixturedef) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s fixturedef = 3500s 3500s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3500s """Create a SubRequest based on "self" and call the execute method 3500s of the given FixtureDef object. 3500s 3500s This will force the FixtureDef object to throw away any previous 3500s results and compute a new fixture value, which will be stored into 3500s the FixtureDef object itself. 3500s """ 3500s # prepare a subrequest object before calling fixture function 3500s # (latter managed by fixturedef) 3500s argname = fixturedef.argname 3500s funcitem = self._pyfuncitem 3500s scope = fixturedef._scope 3500s try: 3500s callspec = funcitem.callspec 3500s except AttributeError: 3500s callspec = None 3500s if callspec is not None and argname in callspec.params: 3500s param = callspec.params[argname] 3500s param_index = callspec.indices[argname] 3500s # If a parametrize invocation set a scope it will override 3500s # the static scope defined with the fixture function. 3500s with suppress(KeyError): 3500s scope = callspec._arg2scope[argname] 3500s else: 3500s param = NOTSET 3500s param_index = 0 3500s has_params = fixturedef.params is not None 3500s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3500s if has_params and fixtures_not_supported: 3500s msg = ( 3500s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3500s "Node id: {nodeid}\n" 3500s "Function type: {typename}" 3500s ).format( 3500s name=funcitem.name, 3500s nodeid=funcitem.nodeid, 3500s typename=type(funcitem).__name__, 3500s ) 3500s fail(msg, pytrace=False) 3500s if has_params: 3500s frame = inspect.stack()[3] 3500s frameinfo = inspect.getframeinfo(frame[0]) 3500s source_path = absolutepath(frameinfo.filename) 3500s source_lineno = frameinfo.lineno 3500s try: 3500s source_path_str = str( 3500s source_path.relative_to(funcitem.config.rootpath) 3500s ) 3500s except ValueError: 3500s source_path_str = str(source_path) 3500s msg = ( 3500s "The requested fixture has no parameter defined for test:\n" 3500s " {}\n\n" 3500s "Requested fixture '{}' defined in:\n{}" 3500s "\n\nRequested here:\n{}:{}".format( 3500s funcitem.nodeid, 3500s fixturedef.argname, 3500s getlocation(fixturedef.func, funcitem.config.rootpath), 3500s source_path_str, 3500s source_lineno, 3500s ) 3500s ) 3500s fail(msg, pytrace=False) 3500s 3500s subrequest = SubRequest( 3500s self, scope, param, param_index, fixturedef, _ispytest=True 3500s ) 3500s 3500s # Check if a higher-level scoped fixture accesses a lower level one. 3500s subrequest._check_scope(argname, self._scope, scope) 3500s try: 3500s # Call the fixture function. 3500s > fixturedef.execute(request=subrequest) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s request = > 3500s 3500s def execute(self, request: SubRequest) -> FixtureValue: 3500s # Get required arguments and register our own finish() 3500s # with their finalization. 3500s for argname in self.argnames: 3500s fixturedef = request._get_active_fixturedef(argname) 3500s if argname != "request": 3500s # PseudoFixtureDef is only for "request". 3500s assert isinstance(fixturedef, FixtureDef) 3500s fixturedef.addfinalizer(functools.partial(self.finish, request=request)) 3500s 3500s my_cache_key = self.cache_key(request) 3500s if self.cached_result is not None: 3500s # note: comparison with `==` can fail (or be expensive) for e.g. 3500s # numpy arrays (#6497). 3500s cache_key = self.cached_result[1] 3500s if my_cache_key is cache_key: 3500s if self.cached_result[2] is not None: 3500s _, val, tb = self.cached_result[2] 3500s raise val.with_traceback(tb) 3500s else: 3500s result = self.cached_result[0] 3500s return result 3500s # We have a previous but differently parametrized fixture instance 3500s # so we need to tear it down before creating a new one. 3500s self.finish(request) 3500s assert self.cached_result is None 3500s 3500s ihook = request.node.ihook 3500s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1069: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s kwargs = {'fixturedef': , 'request': >} 3500s firstresult = True 3500s 3500s def __call__(self, **kwargs: object) -> Any: 3500s """Call the hook. 3500s 3500s Only accepts keyword arguments, which should match the hook 3500s specification. 3500s 3500s Returns the result(s) of calling all registered plugins, see 3500s :ref:`calling`. 3500s """ 3500s assert ( 3500s not self.is_historic() 3500s ), "Cannot directly call a historic hook - use call_historic instead." 3500s self._verify_all_args_are_provided(kwargs) 3500s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 3500s # Copy because plugins may register other plugins during iteration (#438). 3500s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = <_pytest.config.PytestPluginManager object at 0xe9079168> 3500s hook_name = 'pytest_fixture_setup' 3500s methods = [>] 3500s kwargs = {'fixturedef': , 'request': >} 3500s firstresult = True 3500s 3500s def _hookexec( 3500s self, 3500s hook_name: str, 3500s methods: Sequence[HookImpl], 3500s kwargs: Mapping[str, object], 3500s firstresult: bool, 3500s ) -> object | list[object]: 3500s # called from all hookcaller instances. 3500s # enable_tracing will set its own wrapping function at self._inner_hookexec 3500s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturedef = 3500s request = > 3500s 3500s def pytest_fixture_setup( 3500s fixturedef: FixtureDef[FixtureValue], request: SubRequest 3500s ) -> FixtureValue: 3500s """Execution of fixture setup.""" 3500s kwargs = {} 3500s for argname in fixturedef.argnames: 3500s fixdef = request._get_active_fixturedef(argname) 3500s assert fixdef.cached_result is not None 3500s result, arg_cache_key, exc = fixdef.cached_result 3500s request._check_scope(argname, request._scope, fixdef._scope) 3500s kwargs[argname] = result 3500s 3500s fixturefunc = resolve_fixture_function(fixturedef, request) 3500s my_cache_key = fixturedef.cache_key(request) 3500s try: 3500s > result = call_fixture_func(fixturefunc, request, kwargs) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1123: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturefunc = 3500s request = > 3500s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv'), 'types_data': [{'B... False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}]} 3500s 3500s def call_fixture_func( 3500s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 3500s ) -> FixtureValue: 3500s if is_generator(fixturefunc): 3500s fixturefunc = cast( 3500s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 3500s ) 3500s generator = fixturefunc(**kwargs) 3500s try: 3500s > fixture_result = next(generator) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:895: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s iris_path = PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv') 3500s types_data = [{'BoolCol': False, 'BoolColWithNull': False, 'DateCol': '2000-01-03 00:00:00', 'DateColWithTz': '2000-01-01 00:00:00-...: False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}] 3500s 3500s @pytest.fixture 3500s def postgresql_psycopg2_engine(iris_path, types_data): 3500s sqlalchemy = pytest.importorskip("sqlalchemy") 3500s pytest.importorskip("psycopg2") 3500s engine = sqlalchemy.create_engine( 3500s "postgresql+psycopg2://postgres:postgres@localhost:5432/pandas", 3500s poolclass=sqlalchemy.pool.NullPool, 3500s ) 3500s > insp = sqlalchemy.inspect(engine) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:438: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s subject = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s raiseerr = True 3500s 3500s def inspect(subject, raiseerr=True): 3500s """Produce an inspection object for the given target. 3500s 3500s The returned value in some cases may be the 3500s same object as the one given, such as if a 3500s :class:`_orm.Mapper` object is passed. In other 3500s cases, it will be an instance of the registered 3500s inspection type for the given object, such as 3500s if an :class:`_engine.Engine` is passed, an 3500s :class:`_reflection.Inspector` object is returned. 3500s 3500s :param subject: the subject to be inspected. 3500s :param raiseerr: When ``True``, if the given subject 3500s does not 3500s correspond to a known SQLAlchemy inspected type, 3500s :class:`sqlalchemy.exc.NoInspectionAvailable` 3500s is raised. If ``False``, ``None`` is returned. 3500s 3500s """ 3500s type_ = type(subject) 3500s for cls in type_.__mro__: 3500s if cls in _registrars: 3500s reg = _registrars[cls] 3500s if reg is True: 3500s return subject 3500s > ret = reg(subject) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:64: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s @inspection._inspects(Engine) 3500s def _engine_insp(bind): 3500s > return Inspector._construct(Inspector._init_engine, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:182: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s init = 3500s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s @classmethod 3500s def _construct(cls, init, bind): 3500s 3500s if hasattr(bind.dialect, "inspector"): 3500s cls = bind.dialect.inspector 3500s 3500s self = cls.__new__(cls) 3500s > init(self, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:117: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s def _init_engine(self, engine): 3500s self.bind = self.engine = engine 3500s > engine.connect().close() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:128: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s close_with_result = False 3500s 3500s def connect(self, close_with_result=False): 3500s """Return a new :class:`_engine.Connection` object. 3500s 3500s The :class:`_engine.Connection` object is a facade that uses a DBAPI 3500s connection internally in order to communicate with the database. This 3500s connection is procured from the connection-holding :class:`_pool.Pool` 3500s referenced by this :class:`_engine.Engine`. When the 3500s :meth:`_engine.Connection.close` method of the 3500s :class:`_engine.Connection` object 3500s is called, the underlying DBAPI connection is then returned to the 3500s connection pool, where it may be used again in a subsequent call to 3500s :meth:`_engine.Engine.connect`. 3500s 3500s """ 3500s 3500s > return self._connection_cls(self, close_with_result=close_with_result) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3325: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s connection = None, close_with_result = False, _branch_from = None 3500s _execution_options = None, _dispatch = None, _has_events = None 3500s _allow_revalidate = True 3500s 3500s def __init__( 3500s self, 3500s engine, 3500s connection=None, 3500s close_with_result=False, 3500s _branch_from=None, 3500s _execution_options=None, 3500s _dispatch=None, 3500s _has_events=None, 3500s _allow_revalidate=True, 3500s ): 3500s """Construct a new Connection.""" 3500s self.engine = engine 3500s self.dialect = engine.dialect 3500s self.__branch_from = _branch_from 3500s 3500s if _branch_from: 3500s # branching is always "from" the root connection 3500s assert _branch_from.__branch_from is None 3500s self._dbapi_connection = connection 3500s self._execution_options = _execution_options 3500s self._echo = _branch_from._echo 3500s self.should_close_with_result = False 3500s self.dispatch = _dispatch 3500s self._has_events = _branch_from._has_events 3500s else: 3500s self._dbapi_connection = ( 3500s connection 3500s if connection is not None 3500s > else engine.raw_connection() 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:96: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s _connection = None 3500s 3500s def raw_connection(self, _connection=None): 3500s """Return a "raw" DBAPI connection from the connection pool. 3500s 3500s The returned object is a proxied version of the DBAPI 3500s connection object used by the underlying driver in use. 3500s The object will have all the same behavior as the real DBAPI 3500s connection, except that its ``close()`` method will result in the 3500s connection being returned to the pool, rather than being closed 3500s for real. 3500s 3500s This method provides direct DBAPI connection access for 3500s special situations when the API provided by 3500s :class:`_engine.Connection` 3500s is not needed. When a :class:`_engine.Connection` object is already 3500s present, the DBAPI connection is available using 3500s the :attr:`_engine.Connection.connection` accessor. 3500s 3500s .. seealso:: 3500s 3500s :ref:`dbapi_connections` 3500s 3500s """ 3500s > return self._wrap_pool_connect(self.pool.connect, _connection) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3404: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s return fn() 3500s except dialect.dbapi.Error as e: 3500s if connection is None: 3500s > Connection._handle_dbapi_exception_noconnection( 3500s e, dialect, self 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3374: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s e = OperationalError('connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused\n\tIs the server running on that host and accepting TCP/IP connections?\n') 3500s dialect = 3500s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s @classmethod 3500s def _handle_dbapi_exception_noconnection(cls, e, dialect, engine): 3500s exc_info = sys.exc_info() 3500s 3500s is_disconnect = dialect.is_disconnect(e, None, None) 3500s 3500s should_wrap = isinstance(e, dialect.dbapi.Error) 3500s 3500s if should_wrap: 3500s sqlalchemy_exception = exc.DBAPIError.instance( 3500s None, 3500s None, 3500s e, 3500s dialect.dbapi.Error, 3500s hide_parameters=engine.hide_parameters, 3500s connection_invalidated=is_disconnect, 3500s ) 3500s else: 3500s sqlalchemy_exception = None 3500s 3500s newraise = None 3500s 3500s if engine._has_events: 3500s ctx = ExceptionContextImpl( 3500s e, 3500s sqlalchemy_exception, 3500s engine, 3500s None, 3500s None, 3500s None, 3500s None, 3500s None, 3500s is_disconnect, 3500s True, 3500s ) 3500s for fn in engine.dispatch.handle_error: 3500s try: 3500s # handler returns an exception; 3500s # call next handler in a chain 3500s per_fn = fn(ctx) 3500s if per_fn is not None: 3500s ctx.chained_exception = newraise = per_fn 3500s except Exception as _raised: 3500s # handler raises an exception - stop processing 3500s newraise = _raised 3500s break 3500s 3500s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 3500s sqlalchemy_exception.connection_invalidated = ( 3500s is_disconnect 3500s ) = ctx.is_disconnect 3500s 3500s if newraise: 3500s util.raise_(newraise, with_traceback=exc_info[2], from_=e) 3500s elif should_wrap: 3500s > util.raise_( 3500s sqlalchemy_exception, with_traceback=exc_info[2], from_=e 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2208: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s dsn = 'host=localhost user=postgres password=postgres port=5432 dbname=pandas' 3500s connection_factory = None, cursor_factory = None 3500s kwargs = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s kwasync = {} 3500s 3500s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 3500s """ 3500s Create a new database connection. 3500s 3500s The connection parameters can be specified as a string: 3500s 3500s conn = psycopg2.connect("dbname=test user=postgres password=secret") 3500s 3500s or using a set of keyword arguments: 3500s 3500s conn = psycopg2.connect(database="test", user="postgres", password="secret") 3500s 3500s Or as a mix of both. The basic connection parameters are: 3500s 3500s - *dbname*: the database name 3500s - *database*: the database name (only as keyword argument) 3500s - *user*: user name used to authenticate 3500s - *password*: password used to authenticate 3500s - *host*: database host address (defaults to UNIX socket if not provided) 3500s - *port*: connection port number (defaults to 5432 if not provided) 3500s 3500s Using the *connection_factory* parameter a different class or connections 3500s factory can be specified. It should be a callable object taking a dsn 3500s argument. 3500s 3500s Using the *cursor_factory* parameter, a new default cursor factory will be 3500s used by cursor(). 3500s 3500s Using *async*=True an asynchronous connection will be created. *async_* is 3500s a valid alias (for Python versions where ``async`` is a keyword). 3500s 3500s Any other keyword parameter will be passed to the underlying client 3500s library: the list of supported parameters depends on the library version. 3500s 3500s """ 3500s kwasync = {} 3500s if 'async' in kwargs: 3500s kwasync['async'] = kwargs.pop('async') 3500s if 'async_' in kwargs: 3500s kwasync['async_'] = kwargs.pop('async_') 3500s 3500s dsn = _ext.make_dsn(dsn, **kwargs) 3500s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 3500s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 3500s E Is the server running on that host and accepting TCP/IP connections? 3500s E 3500s E (Background on this error at: https://sqlalche.me/e/14/e3q8) 3500s 3500s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 3500s ________________ test_to_sql_callable[postgresql_psycopg2_conn] ________________ 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s dsn = 'host=localhost user=postgres password=postgres port=5432 dbname=pandas' 3500s connection_factory = None, cursor_factory = None 3500s kwargs = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s kwasync = {} 3500s 3500s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 3500s """ 3500s Create a new database connection. 3500s 3500s The connection parameters can be specified as a string: 3500s 3500s conn = psycopg2.connect("dbname=test user=postgres password=secret") 3500s 3500s or using a set of keyword arguments: 3500s 3500s conn = psycopg2.connect(database="test", user="postgres", password="secret") 3500s 3500s Or as a mix of both. The basic connection parameters are: 3500s 3500s - *dbname*: the database name 3500s - *database*: the database name (only as keyword argument) 3500s - *user*: user name used to authenticate 3500s - *password*: password used to authenticate 3500s - *host*: database host address (defaults to UNIX socket if not provided) 3500s - *port*: connection port number (defaults to 5432 if not provided) 3500s 3500s Using the *connection_factory* parameter a different class or connections 3500s factory can be specified. It should be a callable object taking a dsn 3500s argument. 3500s 3500s Using the *cursor_factory* parameter, a new default cursor factory will be 3500s used by cursor(). 3500s 3500s Using *async*=True an asynchronous connection will be created. *async_* is 3500s a valid alias (for Python versions where ``async`` is a keyword). 3500s 3500s Any other keyword parameter will be passed to the underlying client 3500s library: the list of supported parameters depends on the library version. 3500s 3500s """ 3500s kwasync = {} 3500s if 'async' in kwargs: 3500s kwasync['async'] = kwargs.pop('async') 3500s if 'async_' in kwargs: 3500s kwasync['async_'] = kwargs.pop('async_') 3500s 3500s dsn = _ext.make_dsn(dsn, **kwargs) 3500s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 3500s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 3500s E Is the server running on that host and accepting TCP/IP connections? 3500s 3500s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 3500s 3500s The above exception was the direct cause of the following exception: 3500s 3500s conn = 'postgresql_psycopg2_conn' 3500s test_frame1 = index A B C D 3500s 0 2000-01-03 00:00:00 0.980269 3.685731 -0.364217 -1...0-01-05 00:00:00 0.498581 0.731168 -0.537677 1.346270 3500s 3 2000-01-06 00:00:00 1.120202 1.567621 0.003641 0.675253 3500s request = > 3500s 3500s @pytest.mark.db 3500s @pytest.mark.parametrize("conn", sqlalchemy_connectable) 3500s def test_to_sql_callable(conn, test_frame1, request): 3500s > conn = request.getfixturevalue(conn) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:712: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'postgresql_psycopg2_conn' 3500s 3500s def getfixturevalue(self, argname: str) -> Any: 3500s """Dynamically run a named fixture function. 3500s 3500s Declaring fixtures via function argument is recommended where possible. 3500s But if you can only decide whether to use another fixture at test 3500s setup time, you may use this function to retrieve it inside a fixture 3500s or test function body. 3500s 3500s This method can be used during the test setup phase or the test run 3500s phase, but during the test teardown phase a fixture's value may not 3500s be available. 3500s 3500s :param argname: 3500s The fixture name. 3500s :raises pytest.FixtureLookupError: 3500s If the given fixture could not be found. 3500s """ 3500s > fixturedef = self._get_active_fixturedef(argname) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:585: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'postgresql_psycopg2_conn' 3500s 3500s def _get_active_fixturedef( 3500s self, argname: str 3500s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3500s try: 3500s return self._fixture_defs[argname] 3500s except KeyError: 3500s try: 3500s fixturedef = self._getnextfixturedef(argname) 3500s except FixtureLookupError: 3500s if argname == "request": 3500s cached_result = (self, [0], None) 3500s return PseudoFixtureDef(cached_result, Scope.Function) 3500s raise 3500s # Remove indent to prevent the python3 exception 3500s # from leaking into the call. 3500s > self._compute_fixture_value(fixturedef) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s fixturedef = 3500s 3500s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3500s """Create a SubRequest based on "self" and call the execute method 3500s of the given FixtureDef object. 3500s 3500s This will force the FixtureDef object to throw away any previous 3500s results and compute a new fixture value, which will be stored into 3500s the FixtureDef object itself. 3500s """ 3500s # prepare a subrequest object before calling fixture function 3500s # (latter managed by fixturedef) 3500s argname = fixturedef.argname 3500s funcitem = self._pyfuncitem 3500s scope = fixturedef._scope 3500s try: 3500s callspec = funcitem.callspec 3500s except AttributeError: 3500s callspec = None 3500s if callspec is not None and argname in callspec.params: 3500s param = callspec.params[argname] 3500s param_index = callspec.indices[argname] 3500s # If a parametrize invocation set a scope it will override 3500s # the static scope defined with the fixture function. 3500s with suppress(KeyError): 3500s scope = callspec._arg2scope[argname] 3500s else: 3500s param = NOTSET 3500s param_index = 0 3500s has_params = fixturedef.params is not None 3500s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3500s if has_params and fixtures_not_supported: 3500s msg = ( 3500s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3500s "Node id: {nodeid}\n" 3500s "Function type: {typename}" 3500s ).format( 3500s name=funcitem.name, 3500s nodeid=funcitem.nodeid, 3500s typename=type(funcitem).__name__, 3500s ) 3500s fail(msg, pytrace=False) 3500s if has_params: 3500s frame = inspect.stack()[3] 3500s frameinfo = inspect.getframeinfo(frame[0]) 3500s source_path = absolutepath(frameinfo.filename) 3500s source_lineno = frameinfo.lineno 3500s try: 3500s source_path_str = str( 3500s source_path.relative_to(funcitem.config.rootpath) 3500s ) 3500s except ValueError: 3500s source_path_str = str(source_path) 3500s msg = ( 3500s "The requested fixture has no parameter defined for test:\n" 3500s " {}\n\n" 3500s "Requested fixture '{}' defined in:\n{}" 3500s "\n\nRequested here:\n{}:{}".format( 3500s funcitem.nodeid, 3500s fixturedef.argname, 3500s getlocation(fixturedef.func, funcitem.config.rootpath), 3500s source_path_str, 3500s source_lineno, 3500s ) 3500s ) 3500s fail(msg, pytrace=False) 3500s 3500s subrequest = SubRequest( 3500s self, scope, param, param_index, fixturedef, _ispytest=True 3500s ) 3500s 3500s # Check if a higher-level scoped fixture accesses a lower level one. 3500s subrequest._check_scope(argname, self._scope, scope) 3500s try: 3500s # Call the fixture function. 3500s > fixturedef.execute(request=subrequest) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s request = > 3500s 3500s def execute(self, request: SubRequest) -> FixtureValue: 3500s # Get required arguments and register our own finish() 3500s # with their finalization. 3500s for argname in self.argnames: 3500s > fixturedef = request._get_active_fixturedef(argname) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1045: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'postgresql_psycopg2_engine' 3500s 3500s def _get_active_fixturedef( 3500s self, argname: str 3500s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3500s try: 3500s return self._fixture_defs[argname] 3500s except KeyError: 3500s try: 3500s fixturedef = self._getnextfixturedef(argname) 3500s except FixtureLookupError: 3500s if argname == "request": 3500s cached_result = (self, [0], None) 3500s return PseudoFixtureDef(cached_result, Scope.Function) 3500s raise 3500s # Remove indent to prevent the python3 exception 3500s # from leaking into the call. 3500s > self._compute_fixture_value(fixturedef) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s fixturedef = 3500s 3500s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3500s """Create a SubRequest based on "self" and call the execute method 3500s of the given FixtureDef object. 3500s 3500s This will force the FixtureDef object to throw away any previous 3500s results and compute a new fixture value, which will be stored into 3500s the FixtureDef object itself. 3500s """ 3500s # prepare a subrequest object before calling fixture function 3500s # (latter managed by fixturedef) 3500s argname = fixturedef.argname 3500s funcitem = self._pyfuncitem 3500s scope = fixturedef._scope 3500s try: 3500s callspec = funcitem.callspec 3500s except AttributeError: 3500s callspec = None 3500s if callspec is not None and argname in callspec.params: 3500s param = callspec.params[argname] 3500s param_index = callspec.indices[argname] 3500s # If a parametrize invocation set a scope it will override 3500s # the static scope defined with the fixture function. 3500s with suppress(KeyError): 3500s scope = callspec._arg2scope[argname] 3500s else: 3500s param = NOTSET 3500s param_index = 0 3500s has_params = fixturedef.params is not None 3500s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3500s if has_params and fixtures_not_supported: 3500s msg = ( 3500s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3500s "Node id: {nodeid}\n" 3500s "Function type: {typename}" 3500s ).format( 3500s name=funcitem.name, 3500s nodeid=funcitem.nodeid, 3500s typename=type(funcitem).__name__, 3500s ) 3500s fail(msg, pytrace=False) 3500s if has_params: 3500s frame = inspect.stack()[3] 3500s frameinfo = inspect.getframeinfo(frame[0]) 3500s source_path = absolutepath(frameinfo.filename) 3500s source_lineno = frameinfo.lineno 3500s try: 3500s source_path_str = str( 3500s source_path.relative_to(funcitem.config.rootpath) 3500s ) 3500s except ValueError: 3500s source_path_str = str(source_path) 3500s msg = ( 3500s "The requested fixture has no parameter defined for test:\n" 3500s " {}\n\n" 3500s "Requested fixture '{}' defined in:\n{}" 3500s "\n\nRequested here:\n{}:{}".format( 3500s funcitem.nodeid, 3500s fixturedef.argname, 3500s getlocation(fixturedef.func, funcitem.config.rootpath), 3500s source_path_str, 3500s source_lineno, 3500s ) 3500s ) 3500s fail(msg, pytrace=False) 3500s 3500s subrequest = SubRequest( 3500s self, scope, param, param_index, fixturedef, _ispytest=True 3500s ) 3500s 3500s # Check if a higher-level scoped fixture accesses a lower level one. 3500s subrequest._check_scope(argname, self._scope, scope) 3500s try: 3500s # Call the fixture function. 3500s > fixturedef.execute(request=subrequest) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s request = > 3500s 3500s def execute(self, request: SubRequest) -> FixtureValue: 3500s # Get required arguments and register our own finish() 3500s # with their finalization. 3500s for argname in self.argnames: 3500s fixturedef = request._get_active_fixturedef(argname) 3500s if argname != "request": 3500s # PseudoFixtureDef is only for "request". 3500s assert isinstance(fixturedef, FixtureDef) 3500s fixturedef.addfinalizer(functools.partial(self.finish, request=request)) 3500s 3500s my_cache_key = self.cache_key(request) 3500s if self.cached_result is not None: 3500s # note: comparison with `==` can fail (or be expensive) for e.g. 3500s # numpy arrays (#6497). 3500s cache_key = self.cached_result[1] 3500s if my_cache_key is cache_key: 3500s if self.cached_result[2] is not None: 3500s _, val, tb = self.cached_result[2] 3500s raise val.with_traceback(tb) 3500s else: 3500s result = self.cached_result[0] 3500s return result 3500s # We have a previous but differently parametrized fixture instance 3500s # so we need to tear it down before creating a new one. 3500s self.finish(request) 3500s assert self.cached_result is None 3500s 3500s ihook = request.node.ihook 3500s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1069: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s kwargs = {'fixturedef': , 'request': >} 3500s firstresult = True 3500s 3500s def __call__(self, **kwargs: object) -> Any: 3500s """Call the hook. 3500s 3500s Only accepts keyword arguments, which should match the hook 3500s specification. 3500s 3500s Returns the result(s) of calling all registered plugins, see 3500s :ref:`calling`. 3500s """ 3500s assert ( 3500s not self.is_historic() 3500s ), "Cannot directly call a historic hook - use call_historic instead." 3500s self._verify_all_args_are_provided(kwargs) 3500s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 3500s # Copy because plugins may register other plugins during iteration (#438). 3500s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = <_pytest.config.PytestPluginManager object at 0xe9079168> 3500s hook_name = 'pytest_fixture_setup' 3500s methods = [>] 3500s kwargs = {'fixturedef': , 'request': >} 3500s firstresult = True 3500s 3500s def _hookexec( 3500s self, 3500s hook_name: str, 3500s methods: Sequence[HookImpl], 3500s kwargs: Mapping[str, object], 3500s firstresult: bool, 3500s ) -> object | list[object]: 3500s # called from all hookcaller instances. 3500s # enable_tracing will set its own wrapping function at self._inner_hookexec 3500s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturedef = 3500s request = > 3500s 3500s def pytest_fixture_setup( 3500s fixturedef: FixtureDef[FixtureValue], request: SubRequest 3500s ) -> FixtureValue: 3500s """Execution of fixture setup.""" 3500s kwargs = {} 3500s for argname in fixturedef.argnames: 3500s fixdef = request._get_active_fixturedef(argname) 3500s assert fixdef.cached_result is not None 3500s result, arg_cache_key, exc = fixdef.cached_result 3500s request._check_scope(argname, request._scope, fixdef._scope) 3500s kwargs[argname] = result 3500s 3500s fixturefunc = resolve_fixture_function(fixturedef, request) 3500s my_cache_key = fixturedef.cache_key(request) 3500s try: 3500s > result = call_fixture_func(fixturefunc, request, kwargs) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1123: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturefunc = 3500s request = > 3500s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv'), 'types_data': [{'B... False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}]} 3500s 3500s def call_fixture_func( 3500s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 3500s ) -> FixtureValue: 3500s if is_generator(fixturefunc): 3500s fixturefunc = cast( 3500s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 3500s ) 3500s generator = fixturefunc(**kwargs) 3500s try: 3500s > fixture_result = next(generator) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:895: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s iris_path = PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv') 3500s types_data = [{'BoolCol': False, 'BoolColWithNull': False, 'DateCol': '2000-01-03 00:00:00', 'DateColWithTz': '2000-01-01 00:00:00-...: False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}] 3500s 3500s @pytest.fixture 3500s def postgresql_psycopg2_engine(iris_path, types_data): 3500s sqlalchemy = pytest.importorskip("sqlalchemy") 3500s pytest.importorskip("psycopg2") 3500s engine = sqlalchemy.create_engine( 3500s "postgresql+psycopg2://postgres:postgres@localhost:5432/pandas", 3500s poolclass=sqlalchemy.pool.NullPool, 3500s ) 3500s > insp = sqlalchemy.inspect(engine) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:438: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s subject = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s raiseerr = True 3500s 3500s def inspect(subject, raiseerr=True): 3500s """Produce an inspection object for the given target. 3500s 3500s The returned value in some cases may be the 3500s same object as the one given, such as if a 3500s :class:`_orm.Mapper` object is passed. In other 3500s cases, it will be an instance of the registered 3500s inspection type for the given object, such as 3500s if an :class:`_engine.Engine` is passed, an 3500s :class:`_reflection.Inspector` object is returned. 3500s 3500s :param subject: the subject to be inspected. 3500s :param raiseerr: When ``True``, if the given subject 3500s does not 3500s correspond to a known SQLAlchemy inspected type, 3500s :class:`sqlalchemy.exc.NoInspectionAvailable` 3500s is raised. If ``False``, ``None`` is returned. 3500s 3500s """ 3500s type_ = type(subject) 3500s for cls in type_.__mro__: 3500s if cls in _registrars: 3500s reg = _registrars[cls] 3500s if reg is True: 3500s return subject 3500s > ret = reg(subject) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:64: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s @inspection._inspects(Engine) 3500s def _engine_insp(bind): 3500s > return Inspector._construct(Inspector._init_engine, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:182: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s init = 3500s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s @classmethod 3500s def _construct(cls, init, bind): 3500s 3500s if hasattr(bind.dialect, "inspector"): 3500s cls = bind.dialect.inspector 3500s 3500s self = cls.__new__(cls) 3500s > init(self, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:117: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s def _init_engine(self, engine): 3500s self.bind = self.engine = engine 3500s > engine.connect().close() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:128: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s close_with_result = False 3500s 3500s def connect(self, close_with_result=False): 3500s """Return a new :class:`_engine.Connection` object. 3500s 3500s The :class:`_engine.Connection` object is a facade that uses a DBAPI 3500s connection internally in order to communicate with the database. This 3500s connection is procured from the connection-holding :class:`_pool.Pool` 3500s referenced by this :class:`_engine.Engine`. When the 3500s :meth:`_engine.Connection.close` method of the 3500s :class:`_engine.Connection` object 3500s is called, the underlying DBAPI connection is then returned to the 3500s connection pool, where it may be used again in a subsequent call to 3500s :meth:`_engine.Engine.connect`. 3500s 3500s """ 3500s 3500s > return self._connection_cls(self, close_with_result=close_with_result) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3325: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s connection = None, close_with_result = False, _branch_from = None 3500s _execution_options = None, _dispatch = None, _has_events = None 3500s _allow_revalidate = True 3500s 3500s def __init__( 3500s self, 3500s engine, 3500s connection=None, 3500s close_with_result=False, 3500s _branch_from=None, 3500s _execution_options=None, 3500s _dispatch=None, 3500s _has_events=None, 3500s _allow_revalidate=True, 3500s ): 3500s """Construct a new Connection.""" 3500s self.engine = engine 3500s self.dialect = engine.dialect 3500s self.__branch_from = _branch_from 3500s 3500s if _branch_from: 3500s # branching is always "from" the root connection 3500s assert _branch_from.__branch_from is None 3500s self._dbapi_connection = connection 3500s self._execution_options = _execution_options 3500s self._echo = _branch_from._echo 3500s self.should_close_with_result = False 3500s self.dispatch = _dispatch 3500s self._has_events = _branch_from._has_events 3500s else: 3500s self._dbapi_connection = ( 3500s connection 3500s if connection is not None 3500s > else engine.raw_connection() 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:96: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s _connection = None 3500s 3500s def raw_connection(self, _connection=None): 3500s """Return a "raw" DBAPI connection from the connection pool. 3500s 3500s The returned object is a proxied version of the DBAPI 3500s connection object used by the underlying driver in use. 3500s The object will have all the same behavior as the real DBAPI 3500s connection, except that its ``close()`` method will result in the 3500s connection being returned to the pool, rather than being closed 3500s for real. 3500s 3500s This method provides direct DBAPI connection access for 3500s special situations when the API provided by 3500s :class:`_engine.Connection` 3500s is not needed. When a :class:`_engine.Connection` object is already 3500s present, the DBAPI connection is available using 3500s the :attr:`_engine.Connection.connection` accessor. 3500s 3500s .. seealso:: 3500s 3500s :ref:`dbapi_connections` 3500s 3500s """ 3500s > return self._wrap_pool_connect(self.pool.connect, _connection) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3404: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s return fn() 3500s except dialect.dbapi.Error as e: 3500s if connection is None: 3500s > Connection._handle_dbapi_exception_noconnection( 3500s e, dialect, self 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3374: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s e = OperationalError('connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused\n\tIs the server running on that host and accepting TCP/IP connections?\n') 3500s dialect = 3500s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s @classmethod 3500s def _handle_dbapi_exception_noconnection(cls, e, dialect, engine): 3500s exc_info = sys.exc_info() 3500s 3500s is_disconnect = dialect.is_disconnect(e, None, None) 3500s 3500s should_wrap = isinstance(e, dialect.dbapi.Error) 3500s 3500s if should_wrap: 3500s sqlalchemy_exception = exc.DBAPIError.instance( 3500s None, 3500s None, 3500s e, 3500s dialect.dbapi.Error, 3500s hide_parameters=engine.hide_parameters, 3500s connection_invalidated=is_disconnect, 3500s ) 3500s else: 3500s sqlalchemy_exception = None 3500s 3500s newraise = None 3500s 3500s if engine._has_events: 3500s ctx = ExceptionContextImpl( 3500s e, 3500s sqlalchemy_exception, 3500s engine, 3500s None, 3500s None, 3500s None, 3500s None, 3500s None, 3500s is_disconnect, 3500s True, 3500s ) 3500s for fn in engine.dispatch.handle_error: 3500s try: 3500s # handler returns an exception; 3500s # call next handler in a chain 3500s per_fn = fn(ctx) 3500s if per_fn is not None: 3500s ctx.chained_exception = newraise = per_fn 3500s except Exception as _raised: 3500s # handler raises an exception - stop processing 3500s newraise = _raised 3500s break 3500s 3500s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 3500s sqlalchemy_exception.connection_invalidated = ( 3500s is_disconnect 3500s ) = ctx.is_disconnect 3500s 3500s if newraise: 3500s util.raise_(newraise, with_traceback=exc_info[2], from_=e) 3500s elif should_wrap: 3500s > util.raise_( 3500s sqlalchemy_exception, with_traceback=exc_info[2], from_=e 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2208: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s dsn = 'host=localhost user=postgres password=postgres port=5432 dbname=pandas' 3500s connection_factory = None, cursor_factory = None 3500s kwargs = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s kwasync = {} 3500s 3500s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 3500s """ 3500s Create a new database connection. 3500s 3500s The connection parameters can be specified as a string: 3500s 3500s conn = psycopg2.connect("dbname=test user=postgres password=secret") 3500s 3500s or using a set of keyword arguments: 3500s 3500s conn = psycopg2.connect(database="test", user="postgres", password="secret") 3500s 3500s Or as a mix of both. The basic connection parameters are: 3500s 3500s - *dbname*: the database name 3500s - *database*: the database name (only as keyword argument) 3500s - *user*: user name used to authenticate 3500s - *password*: password used to authenticate 3500s - *host*: database host address (defaults to UNIX socket if not provided) 3500s - *port*: connection port number (defaults to 5432 if not provided) 3500s 3500s Using the *connection_factory* parameter a different class or connections 3500s factory can be specified. It should be a callable object taking a dsn 3500s argument. 3500s 3500s Using the *cursor_factory* parameter, a new default cursor factory will be 3500s used by cursor(). 3500s 3500s Using *async*=True an asynchronous connection will be created. *async_* is 3500s a valid alias (for Python versions where ``async`` is a keyword). 3500s 3500s Any other keyword parameter will be passed to the underlying client 3500s library: the list of supported parameters depends on the library version. 3500s 3500s """ 3500s kwasync = {} 3500s if 'async' in kwargs: 3500s kwasync['async'] = kwargs.pop('async') 3500s if 'async_' in kwargs: 3500s kwasync['async_'] = kwargs.pop('async_') 3500s 3500s dsn = _ext.make_dsn(dsn, **kwargs) 3500s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 3500s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 3500s E Is the server running on that host and accepting TCP/IP connections? 3500s E 3500s E (Background on this error at: https://sqlalche.me/e/14/e3q8) 3500s 3500s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 3500s ______________ test_default_type_conversion[mysql_pymysql_engine] ______________ 3500s self = , sock = None 3500s 3500s def connect(self, sock=None): 3500s self._closed = False 3500s try: 3500s if sock is None: 3500s if self.unix_socket: 3500s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3500s sock.settimeout(self.connect_timeout) 3500s sock.connect(self.unix_socket) 3500s self.host_info = "Localhost via UNIX socket" 3500s self._secure = True 3500s if DEBUG: 3500s print("connected using unix_socket") 3500s else: 3500s kwargs = {} 3500s if self.bind_address is not None: 3500s kwargs["source_address"] = (self.bind_address, 0) 3500s while True: 3500s try: 3500s > sock = socket.create_connection( 3500s (self.host, self.port), self.connect_timeout, **kwargs 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:649: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s address = ('localhost', 3306), timeout = 10, source_address = None 3500s 3500s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 3500s source_address=None, *, all_errors=False): 3500s """Connect to *address* and return the socket object. 3500s 3500s Convenience function. Connect to *address* (a 2-tuple ``(host, 3500s port)``) and return the socket object. Passing the optional 3500s *timeout* parameter will set the timeout on the socket instance 3500s before attempting to connect. If no *timeout* is supplied, the 3500s global default timeout setting returned by :func:`getdefaulttimeout` 3500s is used. If *source_address* is set it must be a tuple of (host, port) 3500s for the socket to bind as a source address before making the connection. 3500s A host of '' or port 0 tells the OS to use the default. When a connection 3500s cannot be created, raises the last error if *all_errors* is False, 3500s and an ExceptionGroup of all errors if *all_errors* is True. 3500s """ 3500s 3500s host, port = address 3500s exceptions = [] 3500s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 3500s af, socktype, proto, canonname, sa = res 3500s sock = None 3500s try: 3500s sock = socket(af, socktype, proto) 3500s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 3500s sock.settimeout(timeout) 3500s if source_address: 3500s sock.bind(source_address) 3500s sock.connect(sa) 3500s # Break explicitly a reference cycle 3500s exceptions.clear() 3500s return sock 3500s 3500s except error as exc: 3500s if not all_errors: 3500s exceptions.clear() # raise only the last error 3500s exceptions.append(exc) 3500s if sock is not None: 3500s sock.close() 3500s 3500s if len(exceptions): 3500s try: 3500s if not all_errors: 3500s > raise exceptions[0] 3500s 3500s /usr/lib/python3.12/socket.py:853: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s address = ('localhost', 3306), timeout = 10, source_address = None 3500s 3500s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 3500s source_address=None, *, all_errors=False): 3500s """Connect to *address* and return the socket object. 3500s 3500s Convenience function. Connect to *address* (a 2-tuple ``(host, 3500s port)``) and return the socket object. Passing the optional 3500s *timeout* parameter will set the timeout on the socket instance 3500s before attempting to connect. If no *timeout* is supplied, the 3500s global default timeout setting returned by :func:`getdefaulttimeout` 3500s is used. If *source_address* is set it must be a tuple of (host, port) 3500s for the socket to bind as a source address before making the connection. 3500s A host of '' or port 0 tells the OS to use the default. When a connection 3500s cannot be created, raises the last error if *all_errors* is False, 3500s and an ExceptionGroup of all errors if *all_errors* is True. 3500s """ 3500s 3500s host, port = address 3500s exceptions = [] 3500s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 3500s af, socktype, proto, canonname, sa = res 3500s sock = None 3500s try: 3500s sock = socket(af, socktype, proto) 3500s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 3500s sock.settimeout(timeout) 3500s if source_address: 3500s sock.bind(source_address) 3500s > sock.connect(sa) 3500s E ConnectionRefusedError: [Errno 111] Connection refused 3500s 3500s /usr/lib/python3.12/socket.py:838: ConnectionRefusedError 3500s 3500s During handling of the above exception, another exception occurred: 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __init__( 3500s self, 3500s *, 3500s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 3500s password="", 3500s host=None, 3500s database=None, 3500s unix_socket=None, 3500s port=0, 3500s charset="", 3500s collation=None, 3500s sql_mode=None, 3500s read_default_file=None, 3500s conv=None, 3500s use_unicode=True, 3500s client_flag=0, 3500s cursorclass=Cursor, 3500s init_command=None, 3500s connect_timeout=10, 3500s read_default_group=None, 3500s autocommit=False, 3500s local_infile=False, 3500s max_allowed_packet=16 * 1024 * 1024, 3500s defer_connect=False, 3500s auth_plugin_map=None, 3500s read_timeout=None, 3500s write_timeout=None, 3500s bind_address=None, 3500s binary_prefix=False, 3500s program_name=None, 3500s server_public_key=None, 3500s ssl=None, 3500s ssl_ca=None, 3500s ssl_cert=None, 3500s ssl_disabled=None, 3500s ssl_key=None, 3500s ssl_key_password=None, 3500s ssl_verify_cert=None, 3500s ssl_verify_identity=None, 3500s compress=None, # not supported 3500s named_pipe=None, # not supported 3500s passwd=None, # deprecated 3500s db=None, # deprecated 3500s ): 3500s if db is not None and database is None: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 3500s database = db 3500s if passwd is not None and not password: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn( 3500s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 3500s # ) 3500s password = passwd 3500s 3500s if compress or named_pipe: 3500s raise NotImplementedError( 3500s "compress and named_pipe arguments are not supported" 3500s ) 3500s 3500s self._local_infile = bool(local_infile) 3500s if self._local_infile: 3500s client_flag |= CLIENT.LOCAL_FILES 3500s 3500s if read_default_group and not read_default_file: 3500s if sys.platform.startswith("win"): 3500s read_default_file = "c:\\my.ini" 3500s else: 3500s read_default_file = "/etc/my.cnf" 3500s 3500s if read_default_file: 3500s if not read_default_group: 3500s read_default_group = "client" 3500s 3500s cfg = Parser() 3500s cfg.read(os.path.expanduser(read_default_file)) 3500s 3500s def _config(key, arg): 3500s if arg: 3500s return arg 3500s try: 3500s return cfg.get(read_default_group, key) 3500s except Exception: 3500s return arg 3500s 3500s user = _config("user", user) 3500s password = _config("password", password) 3500s host = _config("host", host) 3500s database = _config("database", database) 3500s unix_socket = _config("socket", unix_socket) 3500s port = int(_config("port", port)) 3500s bind_address = _config("bind-address", bind_address) 3500s charset = _config("default-character-set", charset) 3500s if not ssl: 3500s ssl = {} 3500s if isinstance(ssl, dict): 3500s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 3500s value = _config("ssl-" + key, ssl.get(key)) 3500s if value: 3500s ssl[key] = value 3500s 3500s self.ssl = False 3500s if not ssl_disabled: 3500s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 3500s ssl = { 3500s "ca": ssl_ca, 3500s "check_hostname": bool(ssl_verify_identity), 3500s "verify_mode": ssl_verify_cert 3500s if ssl_verify_cert is not None 3500s else False, 3500s } 3500s if ssl_cert is not None: 3500s ssl["cert"] = ssl_cert 3500s if ssl_key is not None: 3500s ssl["key"] = ssl_key 3500s if ssl_key_password is not None: 3500s ssl["password"] = ssl_key_password 3500s if ssl: 3500s if not SSL_ENABLED: 3500s raise NotImplementedError("ssl module not found") 3500s self.ssl = True 3500s client_flag |= CLIENT.SSL 3500s self.ctx = self._create_ssl_ctx(ssl) 3500s 3500s self.host = host or "localhost" 3500s self.port = port or 3306 3500s if type(self.port) is not int: 3500s raise ValueError("port should be of type int") 3500s self.user = user or DEFAULT_USER 3500s self.password = password or b"" 3500s if isinstance(self.password, str): 3500s self.password = self.password.encode("latin1") 3500s self.db = database 3500s self.unix_socket = unix_socket 3500s self.bind_address = bind_address 3500s if not (0 < connect_timeout <= 31536000): 3500s raise ValueError("connect_timeout should be >0 and <=31536000") 3500s self.connect_timeout = connect_timeout or None 3500s if read_timeout is not None and read_timeout <= 0: 3500s raise ValueError("read_timeout should be > 0") 3500s self._read_timeout = read_timeout 3500s if write_timeout is not None and write_timeout <= 0: 3500s raise ValueError("write_timeout should be > 0") 3500s self._write_timeout = write_timeout 3500s 3500s self.charset = charset or DEFAULT_CHARSET 3500s self.collation = collation 3500s self.use_unicode = use_unicode 3500s 3500s self.encoding = charset_by_name(self.charset).encoding 3500s 3500s client_flag |= CLIENT.CAPABILITIES 3500s if self.db: 3500s client_flag |= CLIENT.CONNECT_WITH_DB 3500s 3500s self.client_flag = client_flag 3500s 3500s self.cursorclass = cursorclass 3500s 3500s self._result = None 3500s self._affected_rows = 0 3500s self.host_info = "Not connected" 3500s 3500s # specified autocommit mode. None means use server default. 3500s self.autocommit_mode = autocommit 3500s 3500s if conv is None: 3500s conv = converters.conversions 3500s 3500s # Need for MySQLdb compatibility. 3500s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 3500s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 3500s self.sql_mode = sql_mode 3500s self.init_command = init_command 3500s self.max_allowed_packet = max_allowed_packet 3500s self._auth_plugin_map = auth_plugin_map or {} 3500s self._binary_prefix = binary_prefix 3500s self.server_public_key = server_public_key 3500s 3500s self._connect_attrs = { 3500s "_client_name": "pymysql", 3500s "_client_version": VERSION_STRING, 3500s "_pid": str(os.getpid()), 3500s } 3500s 3500s if program_name: 3500s self._connect_attrs["program_name"] = program_name 3500s 3500s if defer_connect: 3500s self._sock = None 3500s else: 3500s > self.connect() 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = , sock = None 3500s 3500s def connect(self, sock=None): 3500s self._closed = False 3500s try: 3500s if sock is None: 3500s if self.unix_socket: 3500s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3500s sock.settimeout(self.connect_timeout) 3500s sock.connect(self.unix_socket) 3500s self.host_info = "Localhost via UNIX socket" 3500s self._secure = True 3500s if DEBUG: 3500s print("connected using unix_socket") 3500s else: 3500s kwargs = {} 3500s if self.bind_address is not None: 3500s kwargs["source_address"] = (self.bind_address, 0) 3500s while True: 3500s try: 3500s sock = socket.create_connection( 3500s (self.host, self.port), self.connect_timeout, **kwargs 3500s ) 3500s break 3500s except OSError as e: 3500s if e.errno == errno.EINTR: 3500s continue 3500s raise 3500s self.host_info = "socket %s:%d" % (self.host, self.port) 3500s if DEBUG: 3500s print("connected using socket") 3500s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 3500s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 3500s sock.settimeout(None) 3500s 3500s self._sock = sock 3500s self._rfile = sock.makefile("rb") 3500s self._next_seq_id = 0 3500s 3500s self._get_server_information() 3500s self._request_authentication() 3500s 3500s # Send "SET NAMES" query on init for: 3500s # - Ensure charaset (and collation) is set to the server. 3500s # - collation_id in handshake packet may be ignored. 3500s # - If collation is not specified, we don't know what is server's 3500s # default collation for the charset. For example, default collation 3500s # of utf8mb4 is: 3500s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 3500s # - MySQL 8.0: utf8mb4_0900_ai_ci 3500s # 3500s # Reference: 3500s # - https://github.com/PyMySQL/PyMySQL/issues/1092 3500s # - https://github.com/wagtail/wagtail/issues/9477 3500s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 3500s self.set_character_set(self.charset, self.collation) 3500s 3500s if self.sql_mode is not None: 3500s c = self.cursor() 3500s c.execute("SET sql_mode=%s", (self.sql_mode,)) 3500s c.close() 3500s 3500s if self.init_command is not None: 3500s c = self.cursor() 3500s c.execute(self.init_command) 3500s c.close() 3500s 3500s if self.autocommit_mode is not None: 3500s self.autocommit(self.autocommit_mode) 3500s except BaseException as e: 3500s self._rfile = None 3500s if sock is not None: 3500s try: 3500s sock.close() 3500s except: # noqa 3500s pass 3500s 3500s if isinstance(e, (OSError, IOError)): 3500s exc = err.OperationalError( 3500s CR.CR_CONN_HOST_ERROR, 3500s f"Can't connect to MySQL server on {self.host!r} ({e})", 3500s ) 3500s # Keep original exception and traceback to investigate error. 3500s exc.original_exception = e 3500s exc.traceback = traceback.format_exc() 3500s if DEBUG: 3500s print(exc.traceback) 3500s > raise exc 3500s E pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 3500s 3500s The above exception was the direct cause of the following exception: 3500s 3500s conn = 'mysql_pymysql_engine' 3500s request = > 3500s 3500s @pytest.mark.db 3500s @pytest.mark.parametrize("conn", mysql_connectable) 3500s def test_default_type_conversion(conn, request): 3500s > conn = request.getfixturevalue(conn) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:731: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'mysql_pymysql_engine' 3500s 3500s def getfixturevalue(self, argname: str) -> Any: 3500s """Dynamically run a named fixture function. 3500s 3500s Declaring fixtures via function argument is recommended where possible. 3500s But if you can only decide whether to use another fixture at test 3500s setup time, you may use this function to retrieve it inside a fixture 3500s or test function body. 3500s 3500s This method can be used during the test setup phase or the test run 3500s phase, but during the test teardown phase a fixture's value may not 3500s be available. 3500s 3500s :param argname: 3500s The fixture name. 3500s :raises pytest.FixtureLookupError: 3500s If the given fixture could not be found. 3500s """ 3500s > fixturedef = self._get_active_fixturedef(argname) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:585: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'mysql_pymysql_engine' 3500s 3500s def _get_active_fixturedef( 3500s self, argname: str 3500s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3500s try: 3500s return self._fixture_defs[argname] 3500s except KeyError: 3500s try: 3500s fixturedef = self._getnextfixturedef(argname) 3500s except FixtureLookupError: 3500s if argname == "request": 3500s cached_result = (self, [0], None) 3500s return PseudoFixtureDef(cached_result, Scope.Function) 3500s raise 3500s # Remove indent to prevent the python3 exception 3500s # from leaking into the call. 3500s > self._compute_fixture_value(fixturedef) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s fixturedef = 3500s 3500s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3500s """Create a SubRequest based on "self" and call the execute method 3500s of the given FixtureDef object. 3500s 3500s This will force the FixtureDef object to throw away any previous 3500s results and compute a new fixture value, which will be stored into 3500s the FixtureDef object itself. 3500s """ 3500s # prepare a subrequest object before calling fixture function 3500s # (latter managed by fixturedef) 3500s argname = fixturedef.argname 3500s funcitem = self._pyfuncitem 3500s scope = fixturedef._scope 3500s try: 3500s callspec = funcitem.callspec 3500s except AttributeError: 3500s callspec = None 3500s if callspec is not None and argname in callspec.params: 3500s param = callspec.params[argname] 3500s param_index = callspec.indices[argname] 3500s # If a parametrize invocation set a scope it will override 3500s # the static scope defined with the fixture function. 3500s with suppress(KeyError): 3500s scope = callspec._arg2scope[argname] 3500s else: 3500s param = NOTSET 3500s param_index = 0 3500s has_params = fixturedef.params is not None 3500s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3500s if has_params and fixtures_not_supported: 3500s msg = ( 3500s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3500s "Node id: {nodeid}\n" 3500s "Function type: {typename}" 3500s ).format( 3500s name=funcitem.name, 3500s nodeid=funcitem.nodeid, 3500s typename=type(funcitem).__name__, 3500s ) 3500s fail(msg, pytrace=False) 3500s if has_params: 3500s frame = inspect.stack()[3] 3500s frameinfo = inspect.getframeinfo(frame[0]) 3500s source_path = absolutepath(frameinfo.filename) 3500s source_lineno = frameinfo.lineno 3500s try: 3500s source_path_str = str( 3500s source_path.relative_to(funcitem.config.rootpath) 3500s ) 3500s except ValueError: 3500s source_path_str = str(source_path) 3500s msg = ( 3500s "The requested fixture has no parameter defined for test:\n" 3500s " {}\n\n" 3500s "Requested fixture '{}' defined in:\n{}" 3500s "\n\nRequested here:\n{}:{}".format( 3500s funcitem.nodeid, 3500s fixturedef.argname, 3500s getlocation(fixturedef.func, funcitem.config.rootpath), 3500s source_path_str, 3500s source_lineno, 3500s ) 3500s ) 3500s fail(msg, pytrace=False) 3500s 3500s subrequest = SubRequest( 3500s self, scope, param, param_index, fixturedef, _ispytest=True 3500s ) 3500s 3500s # Check if a higher-level scoped fixture accesses a lower level one. 3500s subrequest._check_scope(argname, self._scope, scope) 3500s try: 3500s # Call the fixture function. 3500s > fixturedef.execute(request=subrequest) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s request = > 3500s 3500s def execute(self, request: SubRequest) -> FixtureValue: 3500s # Get required arguments and register our own finish() 3500s # with their finalization. 3500s for argname in self.argnames: 3500s fixturedef = request._get_active_fixturedef(argname) 3500s if argname != "request": 3500s # PseudoFixtureDef is only for "request". 3500s assert isinstance(fixturedef, FixtureDef) 3500s fixturedef.addfinalizer(functools.partial(self.finish, request=request)) 3500s 3500s my_cache_key = self.cache_key(request) 3500s if self.cached_result is not None: 3500s # note: comparison with `==` can fail (or be expensive) for e.g. 3500s # numpy arrays (#6497). 3500s cache_key = self.cached_result[1] 3500s if my_cache_key is cache_key: 3500s if self.cached_result[2] is not None: 3500s _, val, tb = self.cached_result[2] 3500s raise val.with_traceback(tb) 3500s else: 3500s result = self.cached_result[0] 3500s return result 3500s # We have a previous but differently parametrized fixture instance 3500s # so we need to tear it down before creating a new one. 3500s self.finish(request) 3500s assert self.cached_result is None 3500s 3500s ihook = request.node.ihook 3500s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1069: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s kwargs = {'fixturedef': , 'request': >} 3500s firstresult = True 3500s 3500s def __call__(self, **kwargs: object) -> Any: 3500s """Call the hook. 3500s 3500s Only accepts keyword arguments, which should match the hook 3500s specification. 3500s 3500s Returns the result(s) of calling all registered plugins, see 3500s :ref:`calling`. 3500s """ 3500s assert ( 3500s not self.is_historic() 3500s ), "Cannot directly call a historic hook - use call_historic instead." 3500s self._verify_all_args_are_provided(kwargs) 3500s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 3500s # Copy because plugins may register other plugins during iteration (#438). 3500s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = <_pytest.config.PytestPluginManager object at 0xe9079168> 3500s hook_name = 'pytest_fixture_setup' 3500s methods = [>] 3500s kwargs = {'fixturedef': , 'request': >} 3500s firstresult = True 3500s 3500s def _hookexec( 3500s self, 3500s hook_name: str, 3500s methods: Sequence[HookImpl], 3500s kwargs: Mapping[str, object], 3500s firstresult: bool, 3500s ) -> object | list[object]: 3500s # called from all hookcaller instances. 3500s # enable_tracing will set its own wrapping function at self._inner_hookexec 3500s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturedef = 3500s request = > 3500s 3500s def pytest_fixture_setup( 3500s fixturedef: FixtureDef[FixtureValue], request: SubRequest 3500s ) -> FixtureValue: 3500s """Execution of fixture setup.""" 3500s kwargs = {} 3500s for argname in fixturedef.argnames: 3500s fixdef = request._get_active_fixturedef(argname) 3500s assert fixdef.cached_result is not None 3500s result, arg_cache_key, exc = fixdef.cached_result 3500s request._check_scope(argname, request._scope, fixdef._scope) 3500s kwargs[argname] = result 3500s 3500s fixturefunc = resolve_fixture_function(fixturedef, request) 3500s my_cache_key = fixturedef.cache_key(request) 3500s try: 3500s > result = call_fixture_func(fixturefunc, request, kwargs) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1123: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturefunc = 3500s request = > 3500s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv'), 'types_data': [{'B... False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}]} 3500s 3500s def call_fixture_func( 3500s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 3500s ) -> FixtureValue: 3500s if is_generator(fixturefunc): 3500s fixturefunc = cast( 3500s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 3500s ) 3500s generator = fixturefunc(**kwargs) 3500s try: 3500s > fixture_result = next(generator) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:895: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s iris_path = PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv') 3500s types_data = [{'BoolCol': False, 'BoolColWithNull': False, 'DateCol': '2000-01-03 00:00:00', 'DateColWithTz': '2000-01-01 00:00:00-...: False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}] 3500s 3500s @pytest.fixture 3500s def mysql_pymysql_engine(iris_path, types_data): 3500s sqlalchemy = pytest.importorskip("sqlalchemy") 3500s pymysql = pytest.importorskip("pymysql") 3500s engine = sqlalchemy.create_engine( 3500s "mysql+pymysql://root@localhost:3306/pandas", 3500s connect_args={"client_flag": pymysql.constants.CLIENT.MULTI_STATEMENTS}, 3500s poolclass=sqlalchemy.pool.NullPool, 3500s ) 3500s > insp = sqlalchemy.inspect(engine) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:409: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s subject = Engine(mysql+pymysql://root@localhost:3306/pandas), raiseerr = True 3500s 3500s def inspect(subject, raiseerr=True): 3500s """Produce an inspection object for the given target. 3500s 3500s The returned value in some cases may be the 3500s same object as the one given, such as if a 3500s :class:`_orm.Mapper` object is passed. In other 3500s cases, it will be an instance of the registered 3500s inspection type for the given object, such as 3500s if an :class:`_engine.Engine` is passed, an 3500s :class:`_reflection.Inspector` object is returned. 3500s 3500s :param subject: the subject to be inspected. 3500s :param raiseerr: When ``True``, if the given subject 3500s does not 3500s correspond to a known SQLAlchemy inspected type, 3500s :class:`sqlalchemy.exc.NoInspectionAvailable` 3500s is raised. If ``False``, ``None`` is returned. 3500s 3500s """ 3500s type_ = type(subject) 3500s for cls in type_.__mro__: 3500s if cls in _registrars: 3500s reg = _registrars[cls] 3500s if reg is True: 3500s return subject 3500s > ret = reg(subject) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:64: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s @inspection._inspects(Engine) 3500s def _engine_insp(bind): 3500s > return Inspector._construct(Inspector._init_engine, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:182: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s init = 3500s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s @classmethod 3500s def _construct(cls, init, bind): 3500s 3500s if hasattr(bind.dialect, "inspector"): 3500s cls = bind.dialect.inspector 3500s 3500s self = cls.__new__(cls) 3500s > init(self, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:117: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s def _init_engine(self, engine): 3500s self.bind = self.engine = engine 3500s > engine.connect().close() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:128: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s close_with_result = False 3500s 3500s def connect(self, close_with_result=False): 3500s """Return a new :class:`_engine.Connection` object. 3500s 3500s The :class:`_engine.Connection` object is a facade that uses a DBAPI 3500s connection internally in order to communicate with the database. This 3500s connection is procured from the connection-holding :class:`_pool.Pool` 3500s referenced by this :class:`_engine.Engine`. When the 3500s :meth:`_engine.Connection.close` method of the 3500s :class:`_engine.Connection` object 3500s is called, the underlying DBAPI connection is then returned to the 3500s connection pool, where it may be used again in a subsequent call to 3500s :meth:`_engine.Engine.connect`. 3500s 3500s """ 3500s 3500s > return self._connection_cls(self, close_with_result=close_with_result) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3325: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 3500s close_with_result = False, _branch_from = None, _execution_options = None 3500s _dispatch = None, _has_events = None, _allow_revalidate = True 3500s 3500s def __init__( 3500s self, 3500s engine, 3500s connection=None, 3500s close_with_result=False, 3500s _branch_from=None, 3500s _execution_options=None, 3500s _dispatch=None, 3500s _has_events=None, 3500s _allow_revalidate=True, 3500s ): 3500s """Construct a new Connection.""" 3500s self.engine = engine 3500s self.dialect = engine.dialect 3500s self.__branch_from = _branch_from 3500s 3500s if _branch_from: 3500s # branching is always "from" the root connection 3500s assert _branch_from.__branch_from is None 3500s self._dbapi_connection = connection 3500s self._execution_options = _execution_options 3500s self._echo = _branch_from._echo 3500s self.should_close_with_result = False 3500s self.dispatch = _dispatch 3500s self._has_events = _branch_from._has_events 3500s else: 3500s self._dbapi_connection = ( 3500s connection 3500s if connection is not None 3500s > else engine.raw_connection() 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:96: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas), _connection = None 3500s 3500s def raw_connection(self, _connection=None): 3500s """Return a "raw" DBAPI connection from the connection pool. 3500s 3500s The returned object is a proxied version of the DBAPI 3500s connection object used by the underlying driver in use. 3500s The object will have all the same behavior as the real DBAPI 3500s connection, except that its ``close()`` method will result in the 3500s connection being returned to the pool, rather than being closed 3500s for real. 3500s 3500s This method provides direct DBAPI connection access for 3500s special situations when the API provided by 3500s :class:`_engine.Connection` 3500s is not needed. When a :class:`_engine.Connection` object is already 3500s present, the DBAPI connection is available using 3500s the :attr:`_engine.Connection.connection` accessor. 3500s 3500s .. seealso:: 3500s 3500s :ref:`dbapi_connections` 3500s 3500s """ 3500s > return self._wrap_pool_connect(self.pool.connect, _connection) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3404: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s return fn() 3500s except dialect.dbapi.Error as e: 3500s if connection is None: 3500s > Connection._handle_dbapi_exception_noconnection( 3500s e, dialect, self 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3374: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s e = OperationalError(2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3500s dialect = 3500s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s @classmethod 3500s def _handle_dbapi_exception_noconnection(cls, e, dialect, engine): 3500s exc_info = sys.exc_info() 3500s 3500s is_disconnect = dialect.is_disconnect(e, None, None) 3500s 3500s should_wrap = isinstance(e, dialect.dbapi.Error) 3500s 3500s if should_wrap: 3500s sqlalchemy_exception = exc.DBAPIError.instance( 3500s None, 3500s None, 3500s e, 3500s dialect.dbapi.Error, 3500s hide_parameters=engine.hide_parameters, 3500s connection_invalidated=is_disconnect, 3500s ) 3500s else: 3500s sqlalchemy_exception = None 3500s 3500s newraise = None 3500s 3500s if engine._has_events: 3500s ctx = ExceptionContextImpl( 3500s e, 3500s sqlalchemy_exception, 3500s engine, 3500s None, 3500s None, 3500s None, 3500s None, 3500s None, 3500s is_disconnect, 3500s True, 3500s ) 3500s for fn in engine.dispatch.handle_error: 3500s try: 3500s # handler returns an exception; 3500s # call next handler in a chain 3500s per_fn = fn(ctx) 3500s if per_fn is not None: 3500s ctx.chained_exception = newraise = per_fn 3500s except Exception as _raised: 3500s # handler raises an exception - stop processing 3500s newraise = _raised 3500s break 3500s 3500s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 3500s sqlalchemy_exception.connection_invalidated = ( 3500s is_disconnect 3500s ) = ctx.is_disconnect 3500s 3500s if newraise: 3500s util.raise_(newraise, with_traceback=exc_info[2], from_=e) 3500s elif should_wrap: 3500s > util.raise_( 3500s sqlalchemy_exception, with_traceback=exc_info[2], from_=e 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2208: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __init__( 3500s self, 3500s *, 3500s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 3500s password="", 3500s host=None, 3500s database=None, 3500s unix_socket=None, 3500s port=0, 3500s charset="", 3500s collation=None, 3500s sql_mode=None, 3500s read_default_file=None, 3500s conv=None, 3500s use_unicode=True, 3500s client_flag=0, 3500s cursorclass=Cursor, 3500s init_command=None, 3500s connect_timeout=10, 3500s read_default_group=None, 3500s autocommit=False, 3500s local_infile=False, 3500s max_allowed_packet=16 * 1024 * 1024, 3500s defer_connect=False, 3500s auth_plugin_map=None, 3500s read_timeout=None, 3500s write_timeout=None, 3500s bind_address=None, 3500s binary_prefix=False, 3500s program_name=None, 3500s server_public_key=None, 3500s ssl=None, 3500s ssl_ca=None, 3500s ssl_cert=None, 3500s ssl_disabled=None, 3500s ssl_key=None, 3500s ssl_key_password=None, 3500s ssl_verify_cert=None, 3500s ssl_verify_identity=None, 3500s compress=None, # not supported 3500s named_pipe=None, # not supported 3500s passwd=None, # deprecated 3500s db=None, # deprecated 3500s ): 3500s if db is not None and database is None: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 3500s database = db 3500s if passwd is not None and not password: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn( 3500s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 3500s # ) 3500s password = passwd 3500s 3500s if compress or named_pipe: 3500s raise NotImplementedError( 3500s "compress and named_pipe arguments are not supported" 3500s ) 3500s 3500s self._local_infile = bool(local_infile) 3500s if self._local_infile: 3500s client_flag |= CLIENT.LOCAL_FILES 3500s 3500s if read_default_group and not read_default_file: 3500s if sys.platform.startswith("win"): 3500s read_default_file = "c:\\my.ini" 3500s else: 3500s read_default_file = "/etc/my.cnf" 3500s 3500s if read_default_file: 3500s if not read_default_group: 3500s read_default_group = "client" 3500s 3500s cfg = Parser() 3500s cfg.read(os.path.expanduser(read_default_file)) 3500s 3500s def _config(key, arg): 3500s if arg: 3500s return arg 3500s try: 3500s return cfg.get(read_default_group, key) 3500s except Exception: 3500s return arg 3500s 3500s user = _config("user", user) 3500s password = _config("password", password) 3500s host = _config("host", host) 3500s database = _config("database", database) 3500s unix_socket = _config("socket", unix_socket) 3500s port = int(_config("port", port)) 3500s bind_address = _config("bind-address", bind_address) 3500s charset = _config("default-character-set", charset) 3500s if not ssl: 3500s ssl = {} 3500s if isinstance(ssl, dict): 3500s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 3500s value = _config("ssl-" + key, ssl.get(key)) 3500s if value: 3500s ssl[key] = value 3500s 3500s self.ssl = False 3500s if not ssl_disabled: 3500s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 3500s ssl = { 3500s "ca": ssl_ca, 3500s "check_hostname": bool(ssl_verify_identity), 3500s "verify_mode": ssl_verify_cert 3500s if ssl_verify_cert is not None 3500s else False, 3500s } 3500s if ssl_cert is not None: 3500s ssl["cert"] = ssl_cert 3500s if ssl_key is not None: 3500s ssl["key"] = ssl_key 3500s if ssl_key_password is not None: 3500s ssl["password"] = ssl_key_password 3500s if ssl: 3500s if not SSL_ENABLED: 3500s raise NotImplementedError("ssl module not found") 3500s self.ssl = True 3500s client_flag |= CLIENT.SSL 3500s self.ctx = self._create_ssl_ctx(ssl) 3500s 3500s self.host = host or "localhost" 3500s self.port = port or 3306 3500s if type(self.port) is not int: 3500s raise ValueError("port should be of type int") 3500s self.user = user or DEFAULT_USER 3500s self.password = password or b"" 3500s if isinstance(self.password, str): 3500s self.password = self.password.encode("latin1") 3500s self.db = database 3500s self.unix_socket = unix_socket 3500s self.bind_address = bind_address 3500s if not (0 < connect_timeout <= 31536000): 3500s raise ValueError("connect_timeout should be >0 and <=31536000") 3500s self.connect_timeout = connect_timeout or None 3500s if read_timeout is not None and read_timeout <= 0: 3500s raise ValueError("read_timeout should be > 0") 3500s self._read_timeout = read_timeout 3500s if write_timeout is not None and write_timeout <= 0: 3500s raise ValueError("write_timeout should be > 0") 3500s self._write_timeout = write_timeout 3500s 3500s self.charset = charset or DEFAULT_CHARSET 3500s self.collation = collation 3500s self.use_unicode = use_unicode 3500s 3500s self.encoding = charset_by_name(self.charset).encoding 3500s 3500s client_flag |= CLIENT.CAPABILITIES 3500s if self.db: 3500s client_flag |= CLIENT.CONNECT_WITH_DB 3500s 3500s self.client_flag = client_flag 3500s 3500s self.cursorclass = cursorclass 3500s 3500s self._result = None 3500s self._affected_rows = 0 3500s self.host_info = "Not connected" 3500s 3500s # specified autocommit mode. None means use server default. 3500s self.autocommit_mode = autocommit 3500s 3500s if conv is None: 3500s conv = converters.conversions 3500s 3500s # Need for MySQLdb compatibility. 3500s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 3500s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 3500s self.sql_mode = sql_mode 3500s self.init_command = init_command 3500s self.max_allowed_packet = max_allowed_packet 3500s self._auth_plugin_map = auth_plugin_map or {} 3500s self._binary_prefix = binary_prefix 3500s self.server_public_key = server_public_key 3500s 3500s self._connect_attrs = { 3500s "_client_name": "pymysql", 3500s "_client_version": VERSION_STRING, 3500s "_pid": str(os.getpid()), 3500s } 3500s 3500s if program_name: 3500s self._connect_attrs["program_name"] = program_name 3500s 3500s if defer_connect: 3500s self._sock = None 3500s else: 3500s > self.connect() 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = , sock = None 3500s 3500s def connect(self, sock=None): 3500s self._closed = False 3500s try: 3500s if sock is None: 3500s if self.unix_socket: 3500s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3500s sock.settimeout(self.connect_timeout) 3500s sock.connect(self.unix_socket) 3500s self.host_info = "Localhost via UNIX socket" 3500s self._secure = True 3500s if DEBUG: 3500s print("connected using unix_socket") 3500s else: 3500s kwargs = {} 3500s if self.bind_address is not None: 3500s kwargs["source_address"] = (self.bind_address, 0) 3500s while True: 3500s try: 3500s sock = socket.create_connection( 3500s (self.host, self.port), self.connect_timeout, **kwargs 3500s ) 3500s break 3500s except OSError as e: 3500s if e.errno == errno.EINTR: 3500s continue 3500s raise 3500s self.host_info = "socket %s:%d" % (self.host, self.port) 3500s if DEBUG: 3500s print("connected using socket") 3500s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 3500s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 3500s sock.settimeout(None) 3500s 3500s self._sock = sock 3500s self._rfile = sock.makefile("rb") 3500s self._next_seq_id = 0 3500s 3500s self._get_server_information() 3500s self._request_authentication() 3500s 3500s # Send "SET NAMES" query on init for: 3500s # - Ensure charaset (and collation) is set to the server. 3500s # - collation_id in handshake packet may be ignored. 3500s # - If collation is not specified, we don't know what is server's 3500s # default collation for the charset. For example, default collation 3500s # of utf8mb4 is: 3500s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 3500s # - MySQL 8.0: utf8mb4_0900_ai_ci 3500s # 3500s # Reference: 3500s # - https://github.com/PyMySQL/PyMySQL/issues/1092 3500s # - https://github.com/wagtail/wagtail/issues/9477 3500s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 3500s self.set_character_set(self.charset, self.collation) 3500s 3500s if self.sql_mode is not None: 3500s c = self.cursor() 3500s c.execute("SET sql_mode=%s", (self.sql_mode,)) 3500s c.close() 3500s 3500s if self.init_command is not None: 3500s c = self.cursor() 3500s c.execute(self.init_command) 3500s c.close() 3500s 3500s if self.autocommit_mode is not None: 3500s self.autocommit(self.autocommit_mode) 3500s except BaseException as e: 3500s self._rfile = None 3500s if sock is not None: 3500s try: 3500s sock.close() 3500s except: # noqa 3500s pass 3500s 3500s if isinstance(e, (OSError, IOError)): 3500s exc = err.OperationalError( 3500s CR.CR_CONN_HOST_ERROR, 3500s f"Can't connect to MySQL server on {self.host!r} ({e})", 3500s ) 3500s # Keep original exception and traceback to investigate error. 3500s exc.original_exception = e 3500s exc.traceback = traceback.format_exc() 3500s if DEBUG: 3500s print(exc.traceback) 3500s > raise exc 3500s E sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3500s E (Background on this error at: https://sqlalche.me/e/14/e3q8) 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 3500s _______________ test_default_type_conversion[mysql_pymysql_conn] _______________ 3500s self = , sock = None 3500s 3500s def connect(self, sock=None): 3500s self._closed = False 3500s try: 3500s if sock is None: 3500s if self.unix_socket: 3500s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3500s sock.settimeout(self.connect_timeout) 3500s sock.connect(self.unix_socket) 3500s self.host_info = "Localhost via UNIX socket" 3500s self._secure = True 3500s if DEBUG: 3500s print("connected using unix_socket") 3500s else: 3500s kwargs = {} 3500s if self.bind_address is not None: 3500s kwargs["source_address"] = (self.bind_address, 0) 3500s while True: 3500s try: 3500s > sock = socket.create_connection( 3500s (self.host, self.port), self.connect_timeout, **kwargs 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:649: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s address = ('localhost', 3306), timeout = 10, source_address = None 3500s 3500s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 3500s source_address=None, *, all_errors=False): 3500s """Connect to *address* and return the socket object. 3500s 3500s Convenience function. Connect to *address* (a 2-tuple ``(host, 3500s port)``) and return the socket object. Passing the optional 3500s *timeout* parameter will set the timeout on the socket instance 3500s before attempting to connect. If no *timeout* is supplied, the 3500s global default timeout setting returned by :func:`getdefaulttimeout` 3500s is used. If *source_address* is set it must be a tuple of (host, port) 3500s for the socket to bind as a source address before making the connection. 3500s A host of '' or port 0 tells the OS to use the default. When a connection 3500s cannot be created, raises the last error if *all_errors* is False, 3500s and an ExceptionGroup of all errors if *all_errors* is True. 3500s """ 3500s 3500s host, port = address 3500s exceptions = [] 3500s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 3500s af, socktype, proto, canonname, sa = res 3500s sock = None 3500s try: 3500s sock = socket(af, socktype, proto) 3500s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 3500s sock.settimeout(timeout) 3500s if source_address: 3500s sock.bind(source_address) 3500s sock.connect(sa) 3500s # Break explicitly a reference cycle 3500s exceptions.clear() 3500s return sock 3500s 3500s except error as exc: 3500s if not all_errors: 3500s exceptions.clear() # raise only the last error 3500s exceptions.append(exc) 3500s if sock is not None: 3500s sock.close() 3500s 3500s if len(exceptions): 3500s try: 3500s if not all_errors: 3500s > raise exceptions[0] 3500s 3500s /usr/lib/python3.12/socket.py:853: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s address = ('localhost', 3306), timeout = 10, source_address = None 3500s 3500s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 3500s source_address=None, *, all_errors=False): 3500s """Connect to *address* and return the socket object. 3500s 3500s Convenience function. Connect to *address* (a 2-tuple ``(host, 3500s port)``) and return the socket object. Passing the optional 3500s *timeout* parameter will set the timeout on the socket instance 3500s before attempting to connect. If no *timeout* is supplied, the 3500s global default timeout setting returned by :func:`getdefaulttimeout` 3500s is used. If *source_address* is set it must be a tuple of (host, port) 3500s for the socket to bind as a source address before making the connection. 3500s A host of '' or port 0 tells the OS to use the default. When a connection 3500s cannot be created, raises the last error if *all_errors* is False, 3500s and an ExceptionGroup of all errors if *all_errors* is True. 3500s """ 3500s 3500s host, port = address 3500s exceptions = [] 3500s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 3500s af, socktype, proto, canonname, sa = res 3500s sock = None 3500s try: 3500s sock = socket(af, socktype, proto) 3500s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 3500s sock.settimeout(timeout) 3500s if source_address: 3500s sock.bind(source_address) 3500s > sock.connect(sa) 3500s E ConnectionRefusedError: [Errno 111] Connection refused 3500s 3500s /usr/lib/python3.12/socket.py:838: ConnectionRefusedError 3500s 3500s During handling of the above exception, another exception occurred: 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __init__( 3500s self, 3500s *, 3500s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 3500s password="", 3500s host=None, 3500s database=None, 3500s unix_socket=None, 3500s port=0, 3500s charset="", 3500s collation=None, 3500s sql_mode=None, 3500s read_default_file=None, 3500s conv=None, 3500s use_unicode=True, 3500s client_flag=0, 3500s cursorclass=Cursor, 3500s init_command=None, 3500s connect_timeout=10, 3500s read_default_group=None, 3500s autocommit=False, 3500s local_infile=False, 3500s max_allowed_packet=16 * 1024 * 1024, 3500s defer_connect=False, 3500s auth_plugin_map=None, 3500s read_timeout=None, 3500s write_timeout=None, 3500s bind_address=None, 3500s binary_prefix=False, 3500s program_name=None, 3500s server_public_key=None, 3500s ssl=None, 3500s ssl_ca=None, 3500s ssl_cert=None, 3500s ssl_disabled=None, 3500s ssl_key=None, 3500s ssl_key_password=None, 3500s ssl_verify_cert=None, 3500s ssl_verify_identity=None, 3500s compress=None, # not supported 3500s named_pipe=None, # not supported 3500s passwd=None, # deprecated 3500s db=None, # deprecated 3500s ): 3500s if db is not None and database is None: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 3500s database = db 3500s if passwd is not None and not password: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn( 3500s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 3500s # ) 3500s password = passwd 3500s 3500s if compress or named_pipe: 3500s raise NotImplementedError( 3500s "compress and named_pipe arguments are not supported" 3500s ) 3500s 3500s self._local_infile = bool(local_infile) 3500s if self._local_infile: 3500s client_flag |= CLIENT.LOCAL_FILES 3500s 3500s if read_default_group and not read_default_file: 3500s if sys.platform.startswith("win"): 3500s read_default_file = "c:\\my.ini" 3500s else: 3500s read_default_file = "/etc/my.cnf" 3500s 3500s if read_default_file: 3500s if not read_default_group: 3500s read_default_group = "client" 3500s 3500s cfg = Parser() 3500s cfg.read(os.path.expanduser(read_default_file)) 3500s 3500s def _config(key, arg): 3500s if arg: 3500s return arg 3500s try: 3500s return cfg.get(read_default_group, key) 3500s except Exception: 3500s return arg 3500s 3500s user = _config("user", user) 3500s password = _config("password", password) 3500s host = _config("host", host) 3500s database = _config("database", database) 3500s unix_socket = _config("socket", unix_socket) 3500s port = int(_config("port", port)) 3500s bind_address = _config("bind-address", bind_address) 3500s charset = _config("default-character-set", charset) 3500s if not ssl: 3500s ssl = {} 3500s if isinstance(ssl, dict): 3500s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 3500s value = _config("ssl-" + key, ssl.get(key)) 3500s if value: 3500s ssl[key] = value 3500s 3500s self.ssl = False 3500s if not ssl_disabled: 3500s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 3500s ssl = { 3500s "ca": ssl_ca, 3500s "check_hostname": bool(ssl_verify_identity), 3500s "verify_mode": ssl_verify_cert 3500s if ssl_verify_cert is not None 3500s else False, 3500s } 3500s if ssl_cert is not None: 3500s ssl["cert"] = ssl_cert 3500s if ssl_key is not None: 3500s ssl["key"] = ssl_key 3500s if ssl_key_password is not None: 3500s ssl["password"] = ssl_key_password 3500s if ssl: 3500s if not SSL_ENABLED: 3500s raise NotImplementedError("ssl module not found") 3500s self.ssl = True 3500s client_flag |= CLIENT.SSL 3500s self.ctx = self._create_ssl_ctx(ssl) 3500s 3500s self.host = host or "localhost" 3500s self.port = port or 3306 3500s if type(self.port) is not int: 3500s raise ValueError("port should be of type int") 3500s self.user = user or DEFAULT_USER 3500s self.password = password or b"" 3500s if isinstance(self.password, str): 3500s self.password = self.password.encode("latin1") 3500s self.db = database 3500s self.unix_socket = unix_socket 3500s self.bind_address = bind_address 3500s if not (0 < connect_timeout <= 31536000): 3500s raise ValueError("connect_timeout should be >0 and <=31536000") 3500s self.connect_timeout = connect_timeout or None 3500s if read_timeout is not None and read_timeout <= 0: 3500s raise ValueError("read_timeout should be > 0") 3500s self._read_timeout = read_timeout 3500s if write_timeout is not None and write_timeout <= 0: 3500s raise ValueError("write_timeout should be > 0") 3500s self._write_timeout = write_timeout 3500s 3500s self.charset = charset or DEFAULT_CHARSET 3500s self.collation = collation 3500s self.use_unicode = use_unicode 3500s 3500s self.encoding = charset_by_name(self.charset).encoding 3500s 3500s client_flag |= CLIENT.CAPABILITIES 3500s if self.db: 3500s client_flag |= CLIENT.CONNECT_WITH_DB 3500s 3500s self.client_flag = client_flag 3500s 3500s self.cursorclass = cursorclass 3500s 3500s self._result = None 3500s self._affected_rows = 0 3500s self.host_info = "Not connected" 3500s 3500s # specified autocommit mode. None means use server default. 3500s self.autocommit_mode = autocommit 3500s 3500s if conv is None: 3500s conv = converters.conversions 3500s 3500s # Need for MySQLdb compatibility. 3500s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 3500s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 3500s self.sql_mode = sql_mode 3500s self.init_command = init_command 3500s self.max_allowed_packet = max_allowed_packet 3500s self._auth_plugin_map = auth_plugin_map or {} 3500s self._binary_prefix = binary_prefix 3500s self.server_public_key = server_public_key 3500s 3500s self._connect_attrs = { 3500s "_client_name": "pymysql", 3500s "_client_version": VERSION_STRING, 3500s "_pid": str(os.getpid()), 3500s } 3500s 3500s if program_name: 3500s self._connect_attrs["program_name"] = program_name 3500s 3500s if defer_connect: 3500s self._sock = None 3500s else: 3500s > self.connect() 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = , sock = None 3500s 3500s def connect(self, sock=None): 3500s self._closed = False 3500s try: 3500s if sock is None: 3500s if self.unix_socket: 3500s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3500s sock.settimeout(self.connect_timeout) 3500s sock.connect(self.unix_socket) 3500s self.host_info = "Localhost via UNIX socket" 3500s self._secure = True 3500s if DEBUG: 3500s print("connected using unix_socket") 3500s else: 3500s kwargs = {} 3500s if self.bind_address is not None: 3500s kwargs["source_address"] = (self.bind_address, 0) 3500s while True: 3500s try: 3500s sock = socket.create_connection( 3500s (self.host, self.port), self.connect_timeout, **kwargs 3500s ) 3500s break 3500s except OSError as e: 3500s if e.errno == errno.EINTR: 3500s continue 3500s raise 3500s self.host_info = "socket %s:%d" % (self.host, self.port) 3500s if DEBUG: 3500s print("connected using socket") 3500s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 3500s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 3500s sock.settimeout(None) 3500s 3500s self._sock = sock 3500s self._rfile = sock.makefile("rb") 3500s self._next_seq_id = 0 3500s 3500s self._get_server_information() 3500s self._request_authentication() 3500s 3500s # Send "SET NAMES" query on init for: 3500s # - Ensure charaset (and collation) is set to the server. 3500s # - collation_id in handshake packet may be ignored. 3500s # - If collation is not specified, we don't know what is server's 3500s # default collation for the charset. For example, default collation 3500s # of utf8mb4 is: 3500s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 3500s # - MySQL 8.0: utf8mb4_0900_ai_ci 3500s # 3500s # Reference: 3500s # - https://github.com/PyMySQL/PyMySQL/issues/1092 3500s # - https://github.com/wagtail/wagtail/issues/9477 3500s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 3500s self.set_character_set(self.charset, self.collation) 3500s 3500s if self.sql_mode is not None: 3500s c = self.cursor() 3500s c.execute("SET sql_mode=%s", (self.sql_mode,)) 3500s c.close() 3500s 3500s if self.init_command is not None: 3500s c = self.cursor() 3500s c.execute(self.init_command) 3500s c.close() 3500s 3500s if self.autocommit_mode is not None: 3500s self.autocommit(self.autocommit_mode) 3500s except BaseException as e: 3500s self._rfile = None 3500s if sock is not None: 3500s try: 3500s sock.close() 3500s except: # noqa 3500s pass 3500s 3500s if isinstance(e, (OSError, IOError)): 3500s exc = err.OperationalError( 3500s CR.CR_CONN_HOST_ERROR, 3500s f"Can't connect to MySQL server on {self.host!r} ({e})", 3500s ) 3500s # Keep original exception and traceback to investigate error. 3500s exc.original_exception = e 3500s exc.traceback = traceback.format_exc() 3500s if DEBUG: 3500s print(exc.traceback) 3500s > raise exc 3500s E pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 3500s 3500s The above exception was the direct cause of the following exception: 3500s 3500s conn = 'mysql_pymysql_conn' 3500s request = > 3500s 3500s @pytest.mark.db 3500s @pytest.mark.parametrize("conn", mysql_connectable) 3500s def test_default_type_conversion(conn, request): 3500s > conn = request.getfixturevalue(conn) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:731: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'mysql_pymysql_conn' 3500s 3500s def getfixturevalue(self, argname: str) -> Any: 3500s """Dynamically run a named fixture function. 3500s 3500s Declaring fixtures via function argument is recommended where possible. 3500s But if you can only decide whether to use another fixture at test 3500s setup time, you may use this function to retrieve it inside a fixture 3500s or test function body. 3500s 3500s This method can be used during the test setup phase or the test run 3500s phase, but during the test teardown phase a fixture's value may not 3500s be available. 3500s 3500s :param argname: 3500s The fixture name. 3500s :raises pytest.FixtureLookupError: 3500s If the given fixture could not be found. 3500s """ 3500s > fixturedef = self._get_active_fixturedef(argname) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:585: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'mysql_pymysql_conn' 3500s 3500s def _get_active_fixturedef( 3500s self, argname: str 3500s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3500s try: 3500s return self._fixture_defs[argname] 3500s except KeyError: 3500s try: 3500s fixturedef = self._getnextfixturedef(argname) 3500s except FixtureLookupError: 3500s if argname == "request": 3500s cached_result = (self, [0], None) 3500s return PseudoFixtureDef(cached_result, Scope.Function) 3500s raise 3500s # Remove indent to prevent the python3 exception 3500s # from leaking into the call. 3500s > self._compute_fixture_value(fixturedef) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s fixturedef = 3500s 3500s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3500s """Create a SubRequest based on "self" and call the execute method 3500s of the given FixtureDef object. 3500s 3500s This will force the FixtureDef object to throw away any previous 3500s results and compute a new fixture value, which will be stored into 3500s the FixtureDef object itself. 3500s """ 3500s # prepare a subrequest object before calling fixture function 3500s # (latter managed by fixturedef) 3500s argname = fixturedef.argname 3500s funcitem = self._pyfuncitem 3500s scope = fixturedef._scope 3500s try: 3500s callspec = funcitem.callspec 3500s except AttributeError: 3500s callspec = None 3500s if callspec is not None and argname in callspec.params: 3500s param = callspec.params[argname] 3500s param_index = callspec.indices[argname] 3500s # If a parametrize invocation set a scope it will override 3500s # the static scope defined with the fixture function. 3500s with suppress(KeyError): 3500s scope = callspec._arg2scope[argname] 3500s else: 3500s param = NOTSET 3500s param_index = 0 3500s has_params = fixturedef.params is not None 3500s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3500s if has_params and fixtures_not_supported: 3500s msg = ( 3500s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3500s "Node id: {nodeid}\n" 3500s "Function type: {typename}" 3500s ).format( 3500s name=funcitem.name, 3500s nodeid=funcitem.nodeid, 3500s typename=type(funcitem).__name__, 3500s ) 3500s fail(msg, pytrace=False) 3500s if has_params: 3500s frame = inspect.stack()[3] 3500s frameinfo = inspect.getframeinfo(frame[0]) 3500s source_path = absolutepath(frameinfo.filename) 3500s source_lineno = frameinfo.lineno 3500s try: 3500s source_path_str = str( 3500s source_path.relative_to(funcitem.config.rootpath) 3500s ) 3500s except ValueError: 3500s source_path_str = str(source_path) 3500s msg = ( 3500s "The requested fixture has no parameter defined for test:\n" 3500s " {}\n\n" 3500s "Requested fixture '{}' defined in:\n{}" 3500s "\n\nRequested here:\n{}:{}".format( 3500s funcitem.nodeid, 3500s fixturedef.argname, 3500s getlocation(fixturedef.func, funcitem.config.rootpath), 3500s source_path_str, 3500s source_lineno, 3500s ) 3500s ) 3500s fail(msg, pytrace=False) 3500s 3500s subrequest = SubRequest( 3500s self, scope, param, param_index, fixturedef, _ispytest=True 3500s ) 3500s 3500s # Check if a higher-level scoped fixture accesses a lower level one. 3500s subrequest._check_scope(argname, self._scope, scope) 3500s try: 3500s # Call the fixture function. 3500s > fixturedef.execute(request=subrequest) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s request = > 3500s 3500s def execute(self, request: SubRequest) -> FixtureValue: 3500s # Get required arguments and register our own finish() 3500s # with their finalization. 3500s for argname in self.argnames: 3500s > fixturedef = request._get_active_fixturedef(argname) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1045: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'mysql_pymysql_engine' 3500s 3500s def _get_active_fixturedef( 3500s self, argname: str 3500s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3500s try: 3500s return self._fixture_defs[argname] 3500s except KeyError: 3500s try: 3500s fixturedef = self._getnextfixturedef(argname) 3500s except FixtureLookupError: 3500s if argname == "request": 3500s cached_result = (self, [0], None) 3500s return PseudoFixtureDef(cached_result, Scope.Function) 3500s raise 3500s # Remove indent to prevent the python3 exception 3500s # from leaking into the call. 3500s > self._compute_fixture_value(fixturedef) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s fixturedef = 3500s 3500s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3500s """Create a SubRequest based on "self" and call the execute method 3500s of the given FixtureDef object. 3500s 3500s This will force the FixtureDef object to throw away any previous 3500s results and compute a new fixture value, which will be stored into 3500s the FixtureDef object itself. 3500s """ 3500s # prepare a subrequest object before calling fixture function 3500s # (latter managed by fixturedef) 3500s argname = fixturedef.argname 3500s funcitem = self._pyfuncitem 3500s scope = fixturedef._scope 3500s try: 3500s callspec = funcitem.callspec 3500s except AttributeError: 3500s callspec = None 3500s if callspec is not None and argname in callspec.params: 3500s param = callspec.params[argname] 3500s param_index = callspec.indices[argname] 3500s # If a parametrize invocation set a scope it will override 3500s # the static scope defined with the fixture function. 3500s with suppress(KeyError): 3500s scope = callspec._arg2scope[argname] 3500s else: 3500s param = NOTSET 3500s param_index = 0 3500s has_params = fixturedef.params is not None 3500s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3500s if has_params and fixtures_not_supported: 3500s msg = ( 3500s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3500s "Node id: {nodeid}\n" 3500s "Function type: {typename}" 3500s ).format( 3500s name=funcitem.name, 3500s nodeid=funcitem.nodeid, 3500s typename=type(funcitem).__name__, 3500s ) 3500s fail(msg, pytrace=False) 3500s if has_params: 3500s frame = inspect.stack()[3] 3500s frameinfo = inspect.getframeinfo(frame[0]) 3500s source_path = absolutepath(frameinfo.filename) 3500s source_lineno = frameinfo.lineno 3500s try: 3500s source_path_str = str( 3500s source_path.relative_to(funcitem.config.rootpath) 3500s ) 3500s except ValueError: 3500s source_path_str = str(source_path) 3500s msg = ( 3500s "The requested fixture has no parameter defined for test:\n" 3500s " {}\n\n" 3500s "Requested fixture '{}' defined in:\n{}" 3500s "\n\nRequested here:\n{}:{}".format( 3500s funcitem.nodeid, 3500s fixturedef.argname, 3500s getlocation(fixturedef.func, funcitem.config.rootpath), 3500s source_path_str, 3500s source_lineno, 3500s ) 3500s ) 3500s fail(msg, pytrace=False) 3500s 3500s subrequest = SubRequest( 3500s self, scope, param, param_index, fixturedef, _ispytest=True 3500s ) 3500s 3500s # Check if a higher-level scoped fixture accesses a lower level one. 3500s subrequest._check_scope(argname, self._scope, scope) 3500s try: 3500s # Call the fixture function. 3500s > fixturedef.execute(request=subrequest) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s request = > 3500s 3500s def execute(self, request: SubRequest) -> FixtureValue: 3500s # Get required arguments and register our own finish() 3500s # with their finalization. 3500s for argname in self.argnames: 3500s fixturedef = request._get_active_fixturedef(argname) 3500s if argname != "request": 3500s # PseudoFixtureDef is only for "request". 3500s assert isinstance(fixturedef, FixtureDef) 3500s fixturedef.addfinalizer(functools.partial(self.finish, request=request)) 3500s 3500s my_cache_key = self.cache_key(request) 3500s if self.cached_result is not None: 3500s # note: comparison with `==` can fail (or be expensive) for e.g. 3500s # numpy arrays (#6497). 3500s cache_key = self.cached_result[1] 3500s if my_cache_key is cache_key: 3500s if self.cached_result[2] is not None: 3500s _, val, tb = self.cached_result[2] 3500s raise val.with_traceback(tb) 3500s else: 3500s result = self.cached_result[0] 3500s return result 3500s # We have a previous but differently parametrized fixture instance 3500s # so we need to tear it down before creating a new one. 3500s self.finish(request) 3500s assert self.cached_result is None 3500s 3500s ihook = request.node.ihook 3500s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1069: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s kwargs = {'fixturedef': , 'request': >} 3500s firstresult = True 3500s 3500s def __call__(self, **kwargs: object) -> Any: 3500s """Call the hook. 3500s 3500s Only accepts keyword arguments, which should match the hook 3500s specification. 3500s 3500s Returns the result(s) of calling all registered plugins, see 3500s :ref:`calling`. 3500s """ 3500s assert ( 3500s not self.is_historic() 3500s ), "Cannot directly call a historic hook - use call_historic instead." 3500s self._verify_all_args_are_provided(kwargs) 3500s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 3500s # Copy because plugins may register other plugins during iteration (#438). 3500s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = <_pytest.config.PytestPluginManager object at 0xe9079168> 3500s hook_name = 'pytest_fixture_setup' 3500s methods = [>] 3500s kwargs = {'fixturedef': , 'request': >} 3500s firstresult = True 3500s 3500s def _hookexec( 3500s self, 3500s hook_name: str, 3500s methods: Sequence[HookImpl], 3500s kwargs: Mapping[str, object], 3500s firstresult: bool, 3500s ) -> object | list[object]: 3500s # called from all hookcaller instances. 3500s # enable_tracing will set its own wrapping function at self._inner_hookexec 3500s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturedef = 3500s request = > 3500s 3500s def pytest_fixture_setup( 3500s fixturedef: FixtureDef[FixtureValue], request: SubRequest 3500s ) -> FixtureValue: 3500s """Execution of fixture setup.""" 3500s kwargs = {} 3500s for argname in fixturedef.argnames: 3500s fixdef = request._get_active_fixturedef(argname) 3500s assert fixdef.cached_result is not None 3500s result, arg_cache_key, exc = fixdef.cached_result 3500s request._check_scope(argname, request._scope, fixdef._scope) 3500s kwargs[argname] = result 3500s 3500s fixturefunc = resolve_fixture_function(fixturedef, request) 3500s my_cache_key = fixturedef.cache_key(request) 3500s try: 3500s > result = call_fixture_func(fixturefunc, request, kwargs) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1123: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturefunc = 3500s request = > 3500s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv'), 'types_data': [{'B... False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}]} 3500s 3500s def call_fixture_func( 3500s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 3500s ) -> FixtureValue: 3500s if is_generator(fixturefunc): 3500s fixturefunc = cast( 3500s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 3500s ) 3500s generator = fixturefunc(**kwargs) 3500s try: 3500s > fixture_result = next(generator) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:895: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s iris_path = PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv') 3500s types_data = [{'BoolCol': False, 'BoolColWithNull': False, 'DateCol': '2000-01-03 00:00:00', 'DateColWithTz': '2000-01-01 00:00:00-...: False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}] 3500s 3500s @pytest.fixture 3500s def mysql_pymysql_engine(iris_path, types_data): 3500s sqlalchemy = pytest.importorskip("sqlalchemy") 3500s pymysql = pytest.importorskip("pymysql") 3500s engine = sqlalchemy.create_engine( 3500s "mysql+pymysql://root@localhost:3306/pandas", 3500s connect_args={"client_flag": pymysql.constants.CLIENT.MULTI_STATEMENTS}, 3500s poolclass=sqlalchemy.pool.NullPool, 3500s ) 3500s > insp = sqlalchemy.inspect(engine) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:409: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s subject = Engine(mysql+pymysql://root@localhost:3306/pandas), raiseerr = True 3500s 3500s def inspect(subject, raiseerr=True): 3500s """Produce an inspection object for the given target. 3500s 3500s The returned value in some cases may be the 3500s same object as the one given, such as if a 3500s :class:`_orm.Mapper` object is passed. In other 3500s cases, it will be an instance of the registered 3500s inspection type for the given object, such as 3500s if an :class:`_engine.Engine` is passed, an 3500s :class:`_reflection.Inspector` object is returned. 3500s 3500s :param subject: the subject to be inspected. 3500s :param raiseerr: When ``True``, if the given subject 3500s does not 3500s correspond to a known SQLAlchemy inspected type, 3500s :class:`sqlalchemy.exc.NoInspectionAvailable` 3500s is raised. If ``False``, ``None`` is returned. 3500s 3500s """ 3500s type_ = type(subject) 3500s for cls in type_.__mro__: 3500s if cls in _registrars: 3500s reg = _registrars[cls] 3500s if reg is True: 3500s return subject 3500s > ret = reg(subject) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:64: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s @inspection._inspects(Engine) 3500s def _engine_insp(bind): 3500s > return Inspector._construct(Inspector._init_engine, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:182: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s init = 3500s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s @classmethod 3500s def _construct(cls, init, bind): 3500s 3500s if hasattr(bind.dialect, "inspector"): 3500s cls = bind.dialect.inspector 3500s 3500s self = cls.__new__(cls) 3500s > init(self, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:117: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s def _init_engine(self, engine): 3500s self.bind = self.engine = engine 3500s > engine.connect().close() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:128: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s close_with_result = False 3500s 3500s def connect(self, close_with_result=False): 3500s """Return a new :class:`_engine.Connection` object. 3500s 3500s The :class:`_engine.Connection` object is a facade that uses a DBAPI 3500s connection internally in order to communicate with the database. This 3500s connection is procured from the connection-holding :class:`_pool.Pool` 3500s referenced by this :class:`_engine.Engine`. When the 3500s :meth:`_engine.Connection.close` method of the 3500s :class:`_engine.Connection` object 3500s is called, the underlying DBAPI connection is then returned to the 3500s connection pool, where it may be used again in a subsequent call to 3500s :meth:`_engine.Engine.connect`. 3500s 3500s """ 3500s 3500s > return self._connection_cls(self, close_with_result=close_with_result) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3325: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 3500s close_with_result = False, _branch_from = None, _execution_options = None 3500s _dispatch = None, _has_events = None, _allow_revalidate = True 3500s 3500s def __init__( 3500s self, 3500s engine, 3500s connection=None, 3500s close_with_result=False, 3500s _branch_from=None, 3500s _execution_options=None, 3500s _dispatch=None, 3500s _has_events=None, 3500s _allow_revalidate=True, 3500s ): 3500s """Construct a new Connection.""" 3500s self.engine = engine 3500s self.dialect = engine.dialect 3500s self.__branch_from = _branch_from 3500s 3500s if _branch_from: 3500s # branching is always "from" the root connection 3500s assert _branch_from.__branch_from is None 3500s self._dbapi_connection = connection 3500s self._execution_options = _execution_options 3500s self._echo = _branch_from._echo 3500s self.should_close_with_result = False 3500s self.dispatch = _dispatch 3500s self._has_events = _branch_from._has_events 3500s else: 3500s self._dbapi_connection = ( 3500s connection 3500s if connection is not None 3500s > else engine.raw_connection() 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:96: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas), _connection = None 3500s 3500s def raw_connection(self, _connection=None): 3500s """Return a "raw" DBAPI connection from the connection pool. 3500s 3500s The returned object is a proxied version of the DBAPI 3500s connection object used by the underlying driver in use. 3500s The object will have all the same behavior as the real DBAPI 3500s connection, except that its ``close()`` method will result in the 3500s connection being returned to the pool, rather than being closed 3500s for real. 3500s 3500s This method provides direct DBAPI connection access for 3500s special situations when the API provided by 3500s :class:`_engine.Connection` 3500s is not needed. When a :class:`_engine.Connection` object is already 3500s present, the DBAPI connection is available using 3500s the :attr:`_engine.Connection.connection` accessor. 3500s 3500s .. seealso:: 3500s 3500s :ref:`dbapi_connections` 3500s 3500s """ 3500s > return self._wrap_pool_connect(self.pool.connect, _connection) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3404: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s return fn() 3500s except dialect.dbapi.Error as e: 3500s if connection is None: 3500s > Connection._handle_dbapi_exception_noconnection( 3500s e, dialect, self 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3374: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s e = OperationalError(2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3500s dialect = 3500s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s @classmethod 3500s def _handle_dbapi_exception_noconnection(cls, e, dialect, engine): 3500s exc_info = sys.exc_info() 3500s 3500s is_disconnect = dialect.is_disconnect(e, None, None) 3500s 3500s should_wrap = isinstance(e, dialect.dbapi.Error) 3500s 3500s if should_wrap: 3500s sqlalchemy_exception = exc.DBAPIError.instance( 3500s None, 3500s None, 3500s e, 3500s dialect.dbapi.Error, 3500s hide_parameters=engine.hide_parameters, 3500s connection_invalidated=is_disconnect, 3500s ) 3500s else: 3500s sqlalchemy_exception = None 3500s 3500s newraise = None 3500s 3500s if engine._has_events: 3500s ctx = ExceptionContextImpl( 3500s e, 3500s sqlalchemy_exception, 3500s engine, 3500s None, 3500s None, 3500s None, 3500s None, 3500s None, 3500s is_disconnect, 3500s True, 3500s ) 3500s for fn in engine.dispatch.handle_error: 3500s try: 3500s # handler returns an exception; 3500s # call next handler in a chain 3500s per_fn = fn(ctx) 3500s if per_fn is not None: 3500s ctx.chained_exception = newraise = per_fn 3500s except Exception as _raised: 3500s # handler raises an exception - stop processing 3500s newraise = _raised 3500s break 3500s 3500s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 3500s sqlalchemy_exception.connection_invalidated = ( 3500s is_disconnect 3500s ) = ctx.is_disconnect 3500s 3500s if newraise: 3500s util.raise_(newraise, with_traceback=exc_info[2], from_=e) 3500s elif should_wrap: 3500s > util.raise_( 3500s sqlalchemy_exception, with_traceback=exc_info[2], from_=e 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2208: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __init__( 3500s self, 3500s *, 3500s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 3500s password="", 3500s host=None, 3500s database=None, 3500s unix_socket=None, 3500s port=0, 3500s charset="", 3500s collation=None, 3500s sql_mode=None, 3500s read_default_file=None, 3500s conv=None, 3500s use_unicode=True, 3500s client_flag=0, 3500s cursorclass=Cursor, 3500s init_command=None, 3500s connect_timeout=10, 3500s read_default_group=None, 3500s autocommit=False, 3500s local_infile=False, 3500s max_allowed_packet=16 * 1024 * 1024, 3500s defer_connect=False, 3500s auth_plugin_map=None, 3500s read_timeout=None, 3500s write_timeout=None, 3500s bind_address=None, 3500s binary_prefix=False, 3500s program_name=None, 3500s server_public_key=None, 3500s ssl=None, 3500s ssl_ca=None, 3500s ssl_cert=None, 3500s ssl_disabled=None, 3500s ssl_key=None, 3500s ssl_key_password=None, 3500s ssl_verify_cert=None, 3500s ssl_verify_identity=None, 3500s compress=None, # not supported 3500s named_pipe=None, # not supported 3500s passwd=None, # deprecated 3500s db=None, # deprecated 3500s ): 3500s if db is not None and database is None: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 3500s database = db 3500s if passwd is not None and not password: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn( 3500s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 3500s # ) 3500s password = passwd 3500s 3500s if compress or named_pipe: 3500s raise NotImplementedError( 3500s "compress and named_pipe arguments are not supported" 3500s ) 3500s 3500s self._local_infile = bool(local_infile) 3500s if self._local_infile: 3500s client_flag |= CLIENT.LOCAL_FILES 3500s 3500s if read_default_group and not read_default_file: 3500s if sys.platform.startswith("win"): 3500s read_default_file = "c:\\my.ini" 3500s else: 3500s read_default_file = "/etc/my.cnf" 3500s 3500s if read_default_file: 3500s if not read_default_group: 3500s read_default_group = "client" 3500s 3500s cfg = Parser() 3500s cfg.read(os.path.expanduser(read_default_file)) 3500s 3500s def _config(key, arg): 3500s if arg: 3500s return arg 3500s try: 3500s return cfg.get(read_default_group, key) 3500s except Exception: 3500s return arg 3500s 3500s user = _config("user", user) 3500s password = _config("password", password) 3500s host = _config("host", host) 3500s database = _config("database", database) 3500s unix_socket = _config("socket", unix_socket) 3500s port = int(_config("port", port)) 3500s bind_address = _config("bind-address", bind_address) 3500s charset = _config("default-character-set", charset) 3500s if not ssl: 3500s ssl = {} 3500s if isinstance(ssl, dict): 3500s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 3500s value = _config("ssl-" + key, ssl.get(key)) 3500s if value: 3500s ssl[key] = value 3500s 3500s self.ssl = False 3500s if not ssl_disabled: 3500s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 3500s ssl = { 3500s "ca": ssl_ca, 3500s "check_hostname": bool(ssl_verify_identity), 3500s "verify_mode": ssl_verify_cert 3500s if ssl_verify_cert is not None 3500s else False, 3500s } 3500s if ssl_cert is not None: 3500s ssl["cert"] = ssl_cert 3500s if ssl_key is not None: 3500s ssl["key"] = ssl_key 3500s if ssl_key_password is not None: 3500s ssl["password"] = ssl_key_password 3500s if ssl: 3500s if not SSL_ENABLED: 3500s raise NotImplementedError("ssl module not found") 3500s self.ssl = True 3500s client_flag |= CLIENT.SSL 3500s self.ctx = self._create_ssl_ctx(ssl) 3500s 3500s self.host = host or "localhost" 3500s self.port = port or 3306 3500s if type(self.port) is not int: 3500s raise ValueError("port should be of type int") 3500s self.user = user or DEFAULT_USER 3500s self.password = password or b"" 3500s if isinstance(self.password, str): 3500s self.password = self.password.encode("latin1") 3500s self.db = database 3500s self.unix_socket = unix_socket 3500s self.bind_address = bind_address 3500s if not (0 < connect_timeout <= 31536000): 3500s raise ValueError("connect_timeout should be >0 and <=31536000") 3500s self.connect_timeout = connect_timeout or None 3500s if read_timeout is not None and read_timeout <= 0: 3500s raise ValueError("read_timeout should be > 0") 3500s self._read_timeout = read_timeout 3500s if write_timeout is not None and write_timeout <= 0: 3500s raise ValueError("write_timeout should be > 0") 3500s self._write_timeout = write_timeout 3500s 3500s self.charset = charset or DEFAULT_CHARSET 3500s self.collation = collation 3500s self.use_unicode = use_unicode 3500s 3500s self.encoding = charset_by_name(self.charset).encoding 3500s 3500s client_flag |= CLIENT.CAPABILITIES 3500s if self.db: 3500s client_flag |= CLIENT.CONNECT_WITH_DB 3500s 3500s self.client_flag = client_flag 3500s 3500s self.cursorclass = cursorclass 3500s 3500s self._result = None 3500s self._affected_rows = 0 3500s self.host_info = "Not connected" 3500s 3500s # specified autocommit mode. None means use server default. 3500s self.autocommit_mode = autocommit 3500s 3500s if conv is None: 3500s conv = converters.conversions 3500s 3500s # Need for MySQLdb compatibility. 3500s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 3500s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 3500s self.sql_mode = sql_mode 3500s self.init_command = init_command 3500s self.max_allowed_packet = max_allowed_packet 3500s self._auth_plugin_map = auth_plugin_map or {} 3500s self._binary_prefix = binary_prefix 3500s self.server_public_key = server_public_key 3500s 3500s self._connect_attrs = { 3500s "_client_name": "pymysql", 3500s "_client_version": VERSION_STRING, 3500s "_pid": str(os.getpid()), 3500s } 3500s 3500s if program_name: 3500s self._connect_attrs["program_name"] = program_name 3500s 3500s if defer_connect: 3500s self._sock = None 3500s else: 3500s > self.connect() 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = , sock = None 3500s 3500s def connect(self, sock=None): 3500s self._closed = False 3500s try: 3500s if sock is None: 3500s if self.unix_socket: 3500s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3500s sock.settimeout(self.connect_timeout) 3500s sock.connect(self.unix_socket) 3500s self.host_info = "Localhost via UNIX socket" 3500s self._secure = True 3500s if DEBUG: 3500s print("connected using unix_socket") 3500s else: 3500s kwargs = {} 3500s if self.bind_address is not None: 3500s kwargs["source_address"] = (self.bind_address, 0) 3500s while True: 3500s try: 3500s sock = socket.create_connection( 3500s (self.host, self.port), self.connect_timeout, **kwargs 3500s ) 3500s break 3500s except OSError as e: 3500s if e.errno == errno.EINTR: 3500s continue 3500s raise 3500s self.host_info = "socket %s:%d" % (self.host, self.port) 3500s if DEBUG: 3500s print("connected using socket") 3500s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 3500s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 3500s sock.settimeout(None) 3500s 3500s self._sock = sock 3500s self._rfile = sock.makefile("rb") 3500s self._next_seq_id = 0 3500s 3500s self._get_server_information() 3500s self._request_authentication() 3500s 3500s # Send "SET NAMES" query on init for: 3500s # - Ensure charaset (and collation) is set to the server. 3500s # - collation_id in handshake packet may be ignored. 3500s # - If collation is not specified, we don't know what is server's 3500s # default collation for the charset. For example, default collation 3500s # of utf8mb4 is: 3500s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 3500s # - MySQL 8.0: utf8mb4_0900_ai_ci 3500s # 3500s # Reference: 3500s # - https://github.com/PyMySQL/PyMySQL/issues/1092 3500s # - https://github.com/wagtail/wagtail/issues/9477 3500s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 3500s self.set_character_set(self.charset, self.collation) 3500s 3500s if self.sql_mode is not None: 3500s c = self.cursor() 3500s c.execute("SET sql_mode=%s", (self.sql_mode,)) 3500s c.close() 3500s 3500s if self.init_command is not None: 3500s c = self.cursor() 3500s c.execute(self.init_command) 3500s c.close() 3500s 3500s if self.autocommit_mode is not None: 3500s self.autocommit(self.autocommit_mode) 3500s except BaseException as e: 3500s self._rfile = None 3500s if sock is not None: 3500s try: 3500s sock.close() 3500s except: # noqa 3500s pass 3500s 3500s if isinstance(e, (OSError, IOError)): 3500s exc = err.OperationalError( 3500s CR.CR_CONN_HOST_ERROR, 3500s f"Can't connect to MySQL server on {self.host!r} ({e})", 3500s ) 3500s # Keep original exception and traceback to investigate error. 3500s exc.original_exception = e 3500s exc.traceback = traceback.format_exc() 3500s if DEBUG: 3500s print(exc.traceback) 3500s > raise exc 3500s E sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3500s E (Background on this error at: https://sqlalche.me/e/14/e3q8) 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 3500s __________________ test_read_procedure[mysql_pymysql_engine] ___________________ 3500s self = , sock = None 3500s 3500s def connect(self, sock=None): 3500s self._closed = False 3500s try: 3500s if sock is None: 3500s if self.unix_socket: 3500s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3500s sock.settimeout(self.connect_timeout) 3500s sock.connect(self.unix_socket) 3500s self.host_info = "Localhost via UNIX socket" 3500s self._secure = True 3500s if DEBUG: 3500s print("connected using unix_socket") 3500s else: 3500s kwargs = {} 3500s if self.bind_address is not None: 3500s kwargs["source_address"] = (self.bind_address, 0) 3500s while True: 3500s try: 3500s > sock = socket.create_connection( 3500s (self.host, self.port), self.connect_timeout, **kwargs 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:649: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s address = ('localhost', 3306), timeout = 10, source_address = None 3500s 3500s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 3500s source_address=None, *, all_errors=False): 3500s """Connect to *address* and return the socket object. 3500s 3500s Convenience function. Connect to *address* (a 2-tuple ``(host, 3500s port)``) and return the socket object. Passing the optional 3500s *timeout* parameter will set the timeout on the socket instance 3500s before attempting to connect. If no *timeout* is supplied, the 3500s global default timeout setting returned by :func:`getdefaulttimeout` 3500s is used. If *source_address* is set it must be a tuple of (host, port) 3500s for the socket to bind as a source address before making the connection. 3500s A host of '' or port 0 tells the OS to use the default. When a connection 3500s cannot be created, raises the last error if *all_errors* is False, 3500s and an ExceptionGroup of all errors if *all_errors* is True. 3500s """ 3500s 3500s host, port = address 3500s exceptions = [] 3500s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 3500s af, socktype, proto, canonname, sa = res 3500s sock = None 3500s try: 3500s sock = socket(af, socktype, proto) 3500s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 3500s sock.settimeout(timeout) 3500s if source_address: 3500s sock.bind(source_address) 3500s sock.connect(sa) 3500s # Break explicitly a reference cycle 3500s exceptions.clear() 3500s return sock 3500s 3500s except error as exc: 3500s if not all_errors: 3500s exceptions.clear() # raise only the last error 3500s exceptions.append(exc) 3500s if sock is not None: 3500s sock.close() 3500s 3500s if len(exceptions): 3500s try: 3500s if not all_errors: 3500s > raise exceptions[0] 3500s 3500s /usr/lib/python3.12/socket.py:853: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s address = ('localhost', 3306), timeout = 10, source_address = None 3500s 3500s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 3500s source_address=None, *, all_errors=False): 3500s """Connect to *address* and return the socket object. 3500s 3500s Convenience function. Connect to *address* (a 2-tuple ``(host, 3500s port)``) and return the socket object. Passing the optional 3500s *timeout* parameter will set the timeout on the socket instance 3500s before attempting to connect. If no *timeout* is supplied, the 3500s global default timeout setting returned by :func:`getdefaulttimeout` 3500s is used. If *source_address* is set it must be a tuple of (host, port) 3500s for the socket to bind as a source address before making the connection. 3500s A host of '' or port 0 tells the OS to use the default. When a connection 3500s cannot be created, raises the last error if *all_errors* is False, 3500s and an ExceptionGroup of all errors if *all_errors* is True. 3500s """ 3500s 3500s host, port = address 3500s exceptions = [] 3500s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 3500s af, socktype, proto, canonname, sa = res 3500s sock = None 3500s try: 3500s sock = socket(af, socktype, proto) 3500s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 3500s sock.settimeout(timeout) 3500s if source_address: 3500s sock.bind(source_address) 3500s > sock.connect(sa) 3500s E ConnectionRefusedError: [Errno 111] Connection refused 3500s 3500s /usr/lib/python3.12/socket.py:838: ConnectionRefusedError 3500s 3500s During handling of the above exception, another exception occurred: 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __init__( 3500s self, 3500s *, 3500s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 3500s password="", 3500s host=None, 3500s database=None, 3500s unix_socket=None, 3500s port=0, 3500s charset="", 3500s collation=None, 3500s sql_mode=None, 3500s read_default_file=None, 3500s conv=None, 3500s use_unicode=True, 3500s client_flag=0, 3500s cursorclass=Cursor, 3500s init_command=None, 3500s connect_timeout=10, 3500s read_default_group=None, 3500s autocommit=False, 3500s local_infile=False, 3500s max_allowed_packet=16 * 1024 * 1024, 3500s defer_connect=False, 3500s auth_plugin_map=None, 3500s read_timeout=None, 3500s write_timeout=None, 3500s bind_address=None, 3500s binary_prefix=False, 3500s program_name=None, 3500s server_public_key=None, 3500s ssl=None, 3500s ssl_ca=None, 3500s ssl_cert=None, 3500s ssl_disabled=None, 3500s ssl_key=None, 3500s ssl_key_password=None, 3500s ssl_verify_cert=None, 3500s ssl_verify_identity=None, 3500s compress=None, # not supported 3500s named_pipe=None, # not supported 3500s passwd=None, # deprecated 3500s db=None, # deprecated 3500s ): 3500s if db is not None and database is None: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 3500s database = db 3500s if passwd is not None and not password: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn( 3500s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 3500s # ) 3500s password = passwd 3500s 3500s if compress or named_pipe: 3500s raise NotImplementedError( 3500s "compress and named_pipe arguments are not supported" 3500s ) 3500s 3500s self._local_infile = bool(local_infile) 3500s if self._local_infile: 3500s client_flag |= CLIENT.LOCAL_FILES 3500s 3500s if read_default_group and not read_default_file: 3500s if sys.platform.startswith("win"): 3500s read_default_file = "c:\\my.ini" 3500s else: 3500s read_default_file = "/etc/my.cnf" 3500s 3500s if read_default_file: 3500s if not read_default_group: 3500s read_default_group = "client" 3500s 3500s cfg = Parser() 3500s cfg.read(os.path.expanduser(read_default_file)) 3500s 3500s def _config(key, arg): 3500s if arg: 3500s return arg 3500s try: 3500s return cfg.get(read_default_group, key) 3500s except Exception: 3500s return arg 3500s 3500s user = _config("user", user) 3500s password = _config("password", password) 3500s host = _config("host", host) 3500s database = _config("database", database) 3500s unix_socket = _config("socket", unix_socket) 3500s port = int(_config("port", port)) 3500s bind_address = _config("bind-address", bind_address) 3500s charset = _config("default-character-set", charset) 3500s if not ssl: 3500s ssl = {} 3500s if isinstance(ssl, dict): 3500s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 3500s value = _config("ssl-" + key, ssl.get(key)) 3500s if value: 3500s ssl[key] = value 3500s 3500s self.ssl = False 3500s if not ssl_disabled: 3500s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 3500s ssl = { 3500s "ca": ssl_ca, 3500s "check_hostname": bool(ssl_verify_identity), 3500s "verify_mode": ssl_verify_cert 3500s if ssl_verify_cert is not None 3500s else False, 3500s } 3500s if ssl_cert is not None: 3500s ssl["cert"] = ssl_cert 3500s if ssl_key is not None: 3500s ssl["key"] = ssl_key 3500s if ssl_key_password is not None: 3500s ssl["password"] = ssl_key_password 3500s if ssl: 3500s if not SSL_ENABLED: 3500s raise NotImplementedError("ssl module not found") 3500s self.ssl = True 3500s client_flag |= CLIENT.SSL 3500s self.ctx = self._create_ssl_ctx(ssl) 3500s 3500s self.host = host or "localhost" 3500s self.port = port or 3306 3500s if type(self.port) is not int: 3500s raise ValueError("port should be of type int") 3500s self.user = user or DEFAULT_USER 3500s self.password = password or b"" 3500s if isinstance(self.password, str): 3500s self.password = self.password.encode("latin1") 3500s self.db = database 3500s self.unix_socket = unix_socket 3500s self.bind_address = bind_address 3500s if not (0 < connect_timeout <= 31536000): 3500s raise ValueError("connect_timeout should be >0 and <=31536000") 3500s self.connect_timeout = connect_timeout or None 3500s if read_timeout is not None and read_timeout <= 0: 3500s raise ValueError("read_timeout should be > 0") 3500s self._read_timeout = read_timeout 3500s if write_timeout is not None and write_timeout <= 0: 3500s raise ValueError("write_timeout should be > 0") 3500s self._write_timeout = write_timeout 3500s 3500s self.charset = charset or DEFAULT_CHARSET 3500s self.collation = collation 3500s self.use_unicode = use_unicode 3500s 3500s self.encoding = charset_by_name(self.charset).encoding 3500s 3500s client_flag |= CLIENT.CAPABILITIES 3500s if self.db: 3500s client_flag |= CLIENT.CONNECT_WITH_DB 3500s 3500s self.client_flag = client_flag 3500s 3500s self.cursorclass = cursorclass 3500s 3500s self._result = None 3500s self._affected_rows = 0 3500s self.host_info = "Not connected" 3500s 3500s # specified autocommit mode. None means use server default. 3500s self.autocommit_mode = autocommit 3500s 3500s if conv is None: 3500s conv = converters.conversions 3500s 3500s # Need for MySQLdb compatibility. 3500s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 3500s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 3500s self.sql_mode = sql_mode 3500s self.init_command = init_command 3500s self.max_allowed_packet = max_allowed_packet 3500s self._auth_plugin_map = auth_plugin_map or {} 3500s self._binary_prefix = binary_prefix 3500s self.server_public_key = server_public_key 3500s 3500s self._connect_attrs = { 3500s "_client_name": "pymysql", 3500s "_client_version": VERSION_STRING, 3500s "_pid": str(os.getpid()), 3500s } 3500s 3500s if program_name: 3500s self._connect_attrs["program_name"] = program_name 3500s 3500s if defer_connect: 3500s self._sock = None 3500s else: 3500s > self.connect() 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = , sock = None 3500s 3500s def connect(self, sock=None): 3500s self._closed = False 3500s try: 3500s if sock is None: 3500s if self.unix_socket: 3500s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3500s sock.settimeout(self.connect_timeout) 3500s sock.connect(self.unix_socket) 3500s self.host_info = "Localhost via UNIX socket" 3500s self._secure = True 3500s if DEBUG: 3500s print("connected using unix_socket") 3500s else: 3500s kwargs = {} 3500s if self.bind_address is not None: 3500s kwargs["source_address"] = (self.bind_address, 0) 3500s while True: 3500s try: 3500s sock = socket.create_connection( 3500s (self.host, self.port), self.connect_timeout, **kwargs 3500s ) 3500s break 3500s except OSError as e: 3500s if e.errno == errno.EINTR: 3500s continue 3500s raise 3500s self.host_info = "socket %s:%d" % (self.host, self.port) 3500s if DEBUG: 3500s print("connected using socket") 3500s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 3500s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 3500s sock.settimeout(None) 3500s 3500s self._sock = sock 3500s self._rfile = sock.makefile("rb") 3500s self._next_seq_id = 0 3500s 3500s self._get_server_information() 3500s self._request_authentication() 3500s 3500s # Send "SET NAMES" query on init for: 3500s # - Ensure charaset (and collation) is set to the server. 3500s # - collation_id in handshake packet may be ignored. 3500s # - If collation is not specified, we don't know what is server's 3500s # default collation for the charset. For example, default collation 3500s # of utf8mb4 is: 3500s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 3500s # - MySQL 8.0: utf8mb4_0900_ai_ci 3500s # 3500s # Reference: 3500s # - https://github.com/PyMySQL/PyMySQL/issues/1092 3500s # - https://github.com/wagtail/wagtail/issues/9477 3500s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 3500s self.set_character_set(self.charset, self.collation) 3500s 3500s if self.sql_mode is not None: 3500s c = self.cursor() 3500s c.execute("SET sql_mode=%s", (self.sql_mode,)) 3500s c.close() 3500s 3500s if self.init_command is not None: 3500s c = self.cursor() 3500s c.execute(self.init_command) 3500s c.close() 3500s 3500s if self.autocommit_mode is not None: 3500s self.autocommit(self.autocommit_mode) 3500s except BaseException as e: 3500s self._rfile = None 3500s if sock is not None: 3500s try: 3500s sock.close() 3500s except: # noqa 3500s pass 3500s 3500s if isinstance(e, (OSError, IOError)): 3500s exc = err.OperationalError( 3500s CR.CR_CONN_HOST_ERROR, 3500s f"Can't connect to MySQL server on {self.host!r} ({e})", 3500s ) 3500s # Keep original exception and traceback to investigate error. 3500s exc.original_exception = e 3500s exc.traceback = traceback.format_exc() 3500s if DEBUG: 3500s print(exc.traceback) 3500s > raise exc 3500s E pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 3500s 3500s The above exception was the direct cause of the following exception: 3500s 3500s conn = 'mysql_pymysql_engine' 3500s request = > 3500s 3500s @pytest.mark.db 3500s @pytest.mark.parametrize("conn", mysql_connectable) 3500s def test_read_procedure(conn, request): 3500s > conn = request.getfixturevalue(conn) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:750: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'mysql_pymysql_engine' 3500s 3500s def getfixturevalue(self, argname: str) -> Any: 3500s """Dynamically run a named fixture function. 3500s 3500s Declaring fixtures via function argument is recommended where possible. 3500s But if you can only decide whether to use another fixture at test 3500s setup time, you may use this function to retrieve it inside a fixture 3500s or test function body. 3500s 3500s This method can be used during the test setup phase or the test run 3500s phase, but during the test teardown phase a fixture's value may not 3500s be available. 3500s 3500s :param argname: 3500s The fixture name. 3500s :raises pytest.FixtureLookupError: 3500s If the given fixture could not be found. 3500s """ 3500s > fixturedef = self._get_active_fixturedef(argname) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:585: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'mysql_pymysql_engine' 3500s 3500s def _get_active_fixturedef( 3500s self, argname: str 3500s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3500s try: 3500s return self._fixture_defs[argname] 3500s except KeyError: 3500s try: 3500s fixturedef = self._getnextfixturedef(argname) 3500s except FixtureLookupError: 3500s if argname == "request": 3500s cached_result = (self, [0], None) 3500s return PseudoFixtureDef(cached_result, Scope.Function) 3500s raise 3500s # Remove indent to prevent the python3 exception 3500s # from leaking into the call. 3500s > self._compute_fixture_value(fixturedef) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s fixturedef = 3500s 3500s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3500s """Create a SubRequest based on "self" and call the execute method 3500s of the given FixtureDef object. 3500s 3500s This will force the FixtureDef object to throw away any previous 3500s results and compute a new fixture value, which will be stored into 3500s the FixtureDef object itself. 3500s """ 3500s # prepare a subrequest object before calling fixture function 3500s # (latter managed by fixturedef) 3500s argname = fixturedef.argname 3500s funcitem = self._pyfuncitem 3500s scope = fixturedef._scope 3500s try: 3500s callspec = funcitem.callspec 3500s except AttributeError: 3500s callspec = None 3500s if callspec is not None and argname in callspec.params: 3500s param = callspec.params[argname] 3500s param_index = callspec.indices[argname] 3500s # If a parametrize invocation set a scope it will override 3500s # the static scope defined with the fixture function. 3500s with suppress(KeyError): 3500s scope = callspec._arg2scope[argname] 3500s else: 3500s param = NOTSET 3500s param_index = 0 3500s has_params = fixturedef.params is not None 3500s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3500s if has_params and fixtures_not_supported: 3500s msg = ( 3500s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3500s "Node id: {nodeid}\n" 3500s "Function type: {typename}" 3500s ).format( 3500s name=funcitem.name, 3500s nodeid=funcitem.nodeid, 3500s typename=type(funcitem).__name__, 3500s ) 3500s fail(msg, pytrace=False) 3500s if has_params: 3500s frame = inspect.stack()[3] 3500s frameinfo = inspect.getframeinfo(frame[0]) 3500s source_path = absolutepath(frameinfo.filename) 3500s source_lineno = frameinfo.lineno 3500s try: 3500s source_path_str = str( 3500s source_path.relative_to(funcitem.config.rootpath) 3500s ) 3500s except ValueError: 3500s source_path_str = str(source_path) 3500s msg = ( 3500s "The requested fixture has no parameter defined for test:\n" 3500s " {}\n\n" 3500s "Requested fixture '{}' defined in:\n{}" 3500s "\n\nRequested here:\n{}:{}".format( 3500s funcitem.nodeid, 3500s fixturedef.argname, 3500s getlocation(fixturedef.func, funcitem.config.rootpath), 3500s source_path_str, 3500s source_lineno, 3500s ) 3500s ) 3500s fail(msg, pytrace=False) 3500s 3500s subrequest = SubRequest( 3500s self, scope, param, param_index, fixturedef, _ispytest=True 3500s ) 3500s 3500s # Check if a higher-level scoped fixture accesses a lower level one. 3500s subrequest._check_scope(argname, self._scope, scope) 3500s try: 3500s # Call the fixture function. 3500s > fixturedef.execute(request=subrequest) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s request = > 3500s 3500s def execute(self, request: SubRequest) -> FixtureValue: 3500s # Get required arguments and register our own finish() 3500s # with their finalization. 3500s for argname in self.argnames: 3500s fixturedef = request._get_active_fixturedef(argname) 3500s if argname != "request": 3500s # PseudoFixtureDef is only for "request". 3500s assert isinstance(fixturedef, FixtureDef) 3500s fixturedef.addfinalizer(functools.partial(self.finish, request=request)) 3500s 3500s my_cache_key = self.cache_key(request) 3500s if self.cached_result is not None: 3500s # note: comparison with `==` can fail (or be expensive) for e.g. 3500s # numpy arrays (#6497). 3500s cache_key = self.cached_result[1] 3500s if my_cache_key is cache_key: 3500s if self.cached_result[2] is not None: 3500s _, val, tb = self.cached_result[2] 3500s raise val.with_traceback(tb) 3500s else: 3500s result = self.cached_result[0] 3500s return result 3500s # We have a previous but differently parametrized fixture instance 3500s # so we need to tear it down before creating a new one. 3500s self.finish(request) 3500s assert self.cached_result is None 3500s 3500s ihook = request.node.ihook 3500s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1069: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s kwargs = {'fixturedef': , 'request': >} 3500s firstresult = True 3500s 3500s def __call__(self, **kwargs: object) -> Any: 3500s """Call the hook. 3500s 3500s Only accepts keyword arguments, which should match the hook 3500s specification. 3500s 3500s Returns the result(s) of calling all registered plugins, see 3500s :ref:`calling`. 3500s """ 3500s assert ( 3500s not self.is_historic() 3500s ), "Cannot directly call a historic hook - use call_historic instead." 3500s self._verify_all_args_are_provided(kwargs) 3500s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 3500s # Copy because plugins may register other plugins during iteration (#438). 3500s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = <_pytest.config.PytestPluginManager object at 0xe9079168> 3500s hook_name = 'pytest_fixture_setup' 3500s methods = [>] 3500s kwargs = {'fixturedef': , 'request': >} 3500s firstresult = True 3500s 3500s def _hookexec( 3500s self, 3500s hook_name: str, 3500s methods: Sequence[HookImpl], 3500s kwargs: Mapping[str, object], 3500s firstresult: bool, 3500s ) -> object | list[object]: 3500s # called from all hookcaller instances. 3500s # enable_tracing will set its own wrapping function at self._inner_hookexec 3500s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturedef = 3500s request = > 3500s 3500s def pytest_fixture_setup( 3500s fixturedef: FixtureDef[FixtureValue], request: SubRequest 3500s ) -> FixtureValue: 3500s """Execution of fixture setup.""" 3500s kwargs = {} 3500s for argname in fixturedef.argnames: 3500s fixdef = request._get_active_fixturedef(argname) 3500s assert fixdef.cached_result is not None 3500s result, arg_cache_key, exc = fixdef.cached_result 3500s request._check_scope(argname, request._scope, fixdef._scope) 3500s kwargs[argname] = result 3500s 3500s fixturefunc = resolve_fixture_function(fixturedef, request) 3500s my_cache_key = fixturedef.cache_key(request) 3500s try: 3500s > result = call_fixture_func(fixturefunc, request, kwargs) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1123: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturefunc = 3500s request = > 3500s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv'), 'types_data': [{'B... False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}]} 3500s 3500s def call_fixture_func( 3500s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 3500s ) -> FixtureValue: 3500s if is_generator(fixturefunc): 3500s fixturefunc = cast( 3500s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 3500s ) 3500s generator = fixturefunc(**kwargs) 3500s try: 3500s > fixture_result = next(generator) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:895: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s iris_path = PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv') 3500s types_data = [{'BoolCol': False, 'BoolColWithNull': False, 'DateCol': '2000-01-03 00:00:00', 'DateColWithTz': '2000-01-01 00:00:00-...: False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}] 3500s 3500s @pytest.fixture 3500s def mysql_pymysql_engine(iris_path, types_data): 3500s sqlalchemy = pytest.importorskip("sqlalchemy") 3500s pymysql = pytest.importorskip("pymysql") 3500s engine = sqlalchemy.create_engine( 3500s "mysql+pymysql://root@localhost:3306/pandas", 3500s connect_args={"client_flag": pymysql.constants.CLIENT.MULTI_STATEMENTS}, 3500s poolclass=sqlalchemy.pool.NullPool, 3500s ) 3500s > insp = sqlalchemy.inspect(engine) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:409: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s subject = Engine(mysql+pymysql://root@localhost:3306/pandas), raiseerr = True 3500s 3500s def inspect(subject, raiseerr=True): 3500s """Produce an inspection object for the given target. 3500s 3500s The returned value in some cases may be the 3500s same object as the one given, such as if a 3500s :class:`_orm.Mapper` object is passed. In other 3500s cases, it will be an instance of the registered 3500s inspection type for the given object, such as 3500s if an :class:`_engine.Engine` is passed, an 3500s :class:`_reflection.Inspector` object is returned. 3500s 3500s :param subject: the subject to be inspected. 3500s :param raiseerr: When ``True``, if the given subject 3500s does not 3500s correspond to a known SQLAlchemy inspected type, 3500s :class:`sqlalchemy.exc.NoInspectionAvailable` 3500s is raised. If ``False``, ``None`` is returned. 3500s 3500s """ 3500s type_ = type(subject) 3500s for cls in type_.__mro__: 3500s if cls in _registrars: 3500s reg = _registrars[cls] 3500s if reg is True: 3500s return subject 3500s > ret = reg(subject) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:64: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s @inspection._inspects(Engine) 3500s def _engine_insp(bind): 3500s > return Inspector._construct(Inspector._init_engine, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:182: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s init = 3500s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s @classmethod 3500s def _construct(cls, init, bind): 3500s 3500s if hasattr(bind.dialect, "inspector"): 3500s cls = bind.dialect.inspector 3500s 3500s self = cls.__new__(cls) 3500s > init(self, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:117: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s def _init_engine(self, engine): 3500s self.bind = self.engine = engine 3500s > engine.connect().close() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:128: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s close_with_result = False 3500s 3500s def connect(self, close_with_result=False): 3500s """Return a new :class:`_engine.Connection` object. 3500s 3500s The :class:`_engine.Connection` object is a facade that uses a DBAPI 3500s connection internally in order to communicate with the database. This 3500s connection is procured from the connection-holding :class:`_pool.Pool` 3500s referenced by this :class:`_engine.Engine`. When the 3500s :meth:`_engine.Connection.close` method of the 3500s :class:`_engine.Connection` object 3500s is called, the underlying DBAPI connection is then returned to the 3500s connection pool, where it may be used again in a subsequent call to 3500s :meth:`_engine.Engine.connect`. 3500s 3500s """ 3500s 3500s > return self._connection_cls(self, close_with_result=close_with_result) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3325: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 3500s close_with_result = False, _branch_from = None, _execution_options = None 3500s _dispatch = None, _has_events = None, _allow_revalidate = True 3500s 3500s def __init__( 3500s self, 3500s engine, 3500s connection=None, 3500s close_with_result=False, 3500s _branch_from=None, 3500s _execution_options=None, 3500s _dispatch=None, 3500s _has_events=None, 3500s _allow_revalidate=True, 3500s ): 3500s """Construct a new Connection.""" 3500s self.engine = engine 3500s self.dialect = engine.dialect 3500s self.__branch_from = _branch_from 3500s 3500s if _branch_from: 3500s # branching is always "from" the root connection 3500s assert _branch_from.__branch_from is None 3500s self._dbapi_connection = connection 3500s self._execution_options = _execution_options 3500s self._echo = _branch_from._echo 3500s self.should_close_with_result = False 3500s self.dispatch = _dispatch 3500s self._has_events = _branch_from._has_events 3500s else: 3500s self._dbapi_connection = ( 3500s connection 3500s if connection is not None 3500s > else engine.raw_connection() 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:96: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas), _connection = None 3500s 3500s def raw_connection(self, _connection=None): 3500s """Return a "raw" DBAPI connection from the connection pool. 3500s 3500s The returned object is a proxied version of the DBAPI 3500s connection object used by the underlying driver in use. 3500s The object will have all the same behavior as the real DBAPI 3500s connection, except that its ``close()`` method will result in the 3500s connection being returned to the pool, rather than being closed 3500s for real. 3500s 3500s This method provides direct DBAPI connection access for 3500s special situations when the API provided by 3500s :class:`_engine.Connection` 3500s is not needed. When a :class:`_engine.Connection` object is already 3500s present, the DBAPI connection is available using 3500s the :attr:`_engine.Connection.connection` accessor. 3500s 3500s .. seealso:: 3500s 3500s :ref:`dbapi_connections` 3500s 3500s """ 3500s > return self._wrap_pool_connect(self.pool.connect, _connection) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3404: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s return fn() 3500s except dialect.dbapi.Error as e: 3500s if connection is None: 3500s > Connection._handle_dbapi_exception_noconnection( 3500s e, dialect, self 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3374: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s e = OperationalError(2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3500s dialect = 3500s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s @classmethod 3500s def _handle_dbapi_exception_noconnection(cls, e, dialect, engine): 3500s exc_info = sys.exc_info() 3500s 3500s is_disconnect = dialect.is_disconnect(e, None, None) 3500s 3500s should_wrap = isinstance(e, dialect.dbapi.Error) 3500s 3500s if should_wrap: 3500s sqlalchemy_exception = exc.DBAPIError.instance( 3500s None, 3500s None, 3500s e, 3500s dialect.dbapi.Error, 3500s hide_parameters=engine.hide_parameters, 3500s connection_invalidated=is_disconnect, 3500s ) 3500s else: 3500s sqlalchemy_exception = None 3500s 3500s newraise = None 3500s 3500s if engine._has_events: 3500s ctx = ExceptionContextImpl( 3500s e, 3500s sqlalchemy_exception, 3500s engine, 3500s None, 3500s None, 3500s None, 3500s None, 3500s None, 3500s is_disconnect, 3500s True, 3500s ) 3500s for fn in engine.dispatch.handle_error: 3500s try: 3500s # handler returns an exception; 3500s # call next handler in a chain 3500s per_fn = fn(ctx) 3500s if per_fn is not None: 3500s ctx.chained_exception = newraise = per_fn 3500s except Exception as _raised: 3500s # handler raises an exception - stop processing 3500s newraise = _raised 3500s break 3500s 3500s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 3500s sqlalchemy_exception.connection_invalidated = ( 3500s is_disconnect 3500s ) = ctx.is_disconnect 3500s 3500s if newraise: 3500s util.raise_(newraise, with_traceback=exc_info[2], from_=e) 3500s elif should_wrap: 3500s > util.raise_( 3500s sqlalchemy_exception, with_traceback=exc_info[2], from_=e 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2208: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __init__( 3500s self, 3500s *, 3500s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 3500s password="", 3500s host=None, 3500s database=None, 3500s unix_socket=None, 3500s port=0, 3500s charset="", 3500s collation=None, 3500s sql_mode=None, 3500s read_default_file=None, 3500s conv=None, 3500s use_unicode=True, 3500s client_flag=0, 3500s cursorclass=Cursor, 3500s init_command=None, 3500s connect_timeout=10, 3500s read_default_group=None, 3500s autocommit=False, 3500s local_infile=False, 3500s max_allowed_packet=16 * 1024 * 1024, 3500s defer_connect=False, 3500s auth_plugin_map=None, 3500s read_timeout=None, 3500s write_timeout=None, 3500s bind_address=None, 3500s binary_prefix=False, 3500s program_name=None, 3500s server_public_key=None, 3500s ssl=None, 3500s ssl_ca=None, 3500s ssl_cert=None, 3500s ssl_disabled=None, 3500s ssl_key=None, 3500s ssl_key_password=None, 3500s ssl_verify_cert=None, 3500s ssl_verify_identity=None, 3500s compress=None, # not supported 3500s named_pipe=None, # not supported 3500s passwd=None, # deprecated 3500s db=None, # deprecated 3500s ): 3500s if db is not None and database is None: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 3500s database = db 3500s if passwd is not None and not password: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn( 3500s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 3500s # ) 3500s password = passwd 3500s 3500s if compress or named_pipe: 3500s raise NotImplementedError( 3500s "compress and named_pipe arguments are not supported" 3500s ) 3500s 3500s self._local_infile = bool(local_infile) 3500s if self._local_infile: 3500s client_flag |= CLIENT.LOCAL_FILES 3500s 3500s if read_default_group and not read_default_file: 3500s if sys.platform.startswith("win"): 3500s read_default_file = "c:\\my.ini" 3500s else: 3500s read_default_file = "/etc/my.cnf" 3500s 3500s if read_default_file: 3500s if not read_default_group: 3500s read_default_group = "client" 3500s 3500s cfg = Parser() 3500s cfg.read(os.path.expanduser(read_default_file)) 3500s 3500s def _config(key, arg): 3500s if arg: 3500s return arg 3500s try: 3500s return cfg.get(read_default_group, key) 3500s except Exception: 3500s return arg 3500s 3500s user = _config("user", user) 3500s password = _config("password", password) 3500s host = _config("host", host) 3500s database = _config("database", database) 3500s unix_socket = _config("socket", unix_socket) 3500s port = int(_config("port", port)) 3500s bind_address = _config("bind-address", bind_address) 3500s charset = _config("default-character-set", charset) 3500s if not ssl: 3500s ssl = {} 3500s if isinstance(ssl, dict): 3500s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 3500s value = _config("ssl-" + key, ssl.get(key)) 3500s if value: 3500s ssl[key] = value 3500s 3500s self.ssl = False 3500s if not ssl_disabled: 3500s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 3500s ssl = { 3500s "ca": ssl_ca, 3500s "check_hostname": bool(ssl_verify_identity), 3500s "verify_mode": ssl_verify_cert 3500s if ssl_verify_cert is not None 3500s else False, 3500s } 3500s if ssl_cert is not None: 3500s ssl["cert"] = ssl_cert 3500s if ssl_key is not None: 3500s ssl["key"] = ssl_key 3500s if ssl_key_password is not None: 3500s ssl["password"] = ssl_key_password 3500s if ssl: 3500s if not SSL_ENABLED: 3500s raise NotImplementedError("ssl module not found") 3500s self.ssl = True 3500s client_flag |= CLIENT.SSL 3500s self.ctx = self._create_ssl_ctx(ssl) 3500s 3500s self.host = host or "localhost" 3500s self.port = port or 3306 3500s if type(self.port) is not int: 3500s raise ValueError("port should be of type int") 3500s self.user = user or DEFAULT_USER 3500s self.password = password or b"" 3500s if isinstance(self.password, str): 3500s self.password = self.password.encode("latin1") 3500s self.db = database 3500s self.unix_socket = unix_socket 3500s self.bind_address = bind_address 3500s if not (0 < connect_timeout <= 31536000): 3500s raise ValueError("connect_timeout should be >0 and <=31536000") 3500s self.connect_timeout = connect_timeout or None 3500s if read_timeout is not None and read_timeout <= 0: 3500s raise ValueError("read_timeout should be > 0") 3500s self._read_timeout = read_timeout 3500s if write_timeout is not None and write_timeout <= 0: 3500s raise ValueError("write_timeout should be > 0") 3500s self._write_timeout = write_timeout 3500s 3500s self.charset = charset or DEFAULT_CHARSET 3500s self.collation = collation 3500s self.use_unicode = use_unicode 3500s 3500s self.encoding = charset_by_name(self.charset).encoding 3500s 3500s client_flag |= CLIENT.CAPABILITIES 3500s if self.db: 3500s client_flag |= CLIENT.CONNECT_WITH_DB 3500s 3500s self.client_flag = client_flag 3500s 3500s self.cursorclass = cursorclass 3500s 3500s self._result = None 3500s self._affected_rows = 0 3500s self.host_info = "Not connected" 3500s 3500s # specified autocommit mode. None means use server default. 3500s self.autocommit_mode = autocommit 3500s 3500s if conv is None: 3500s conv = converters.conversions 3500s 3500s # Need for MySQLdb compatibility. 3500s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 3500s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 3500s self.sql_mode = sql_mode 3500s self.init_command = init_command 3500s self.max_allowed_packet = max_allowed_packet 3500s self._auth_plugin_map = auth_plugin_map or {} 3500s self._binary_prefix = binary_prefix 3500s self.server_public_key = server_public_key 3500s 3500s self._connect_attrs = { 3500s "_client_name": "pymysql", 3500s "_client_version": VERSION_STRING, 3500s "_pid": str(os.getpid()), 3500s } 3500s 3500s if program_name: 3500s self._connect_attrs["program_name"] = program_name 3500s 3500s if defer_connect: 3500s self._sock = None 3500s else: 3500s > self.connect() 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = , sock = None 3500s 3500s def connect(self, sock=None): 3500s self._closed = False 3500s try: 3500s if sock is None: 3500s if self.unix_socket: 3500s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3500s sock.settimeout(self.connect_timeout) 3500s sock.connect(self.unix_socket) 3500s self.host_info = "Localhost via UNIX socket" 3500s self._secure = True 3500s if DEBUG: 3500s print("connected using unix_socket") 3500s else: 3500s kwargs = {} 3500s if self.bind_address is not None: 3500s kwargs["source_address"] = (self.bind_address, 0) 3500s while True: 3500s try: 3500s sock = socket.create_connection( 3500s (self.host, self.port), self.connect_timeout, **kwargs 3500s ) 3500s break 3500s except OSError as e: 3500s if e.errno == errno.EINTR: 3500s continue 3500s raise 3500s self.host_info = "socket %s:%d" % (self.host, self.port) 3500s if DEBUG: 3500s print("connected using socket") 3500s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 3500s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 3500s sock.settimeout(None) 3500s 3500s self._sock = sock 3500s self._rfile = sock.makefile("rb") 3500s self._next_seq_id = 0 3500s 3500s self._get_server_information() 3500s self._request_authentication() 3500s 3500s # Send "SET NAMES" query on init for: 3500s # - Ensure charaset (and collation) is set to the server. 3500s # - collation_id in handshake packet may be ignored. 3500s # - If collation is not specified, we don't know what is server's 3500s # default collation for the charset. For example, default collation 3500s # of utf8mb4 is: 3500s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 3500s # - MySQL 8.0: utf8mb4_0900_ai_ci 3500s # 3500s # Reference: 3500s # - https://github.com/PyMySQL/PyMySQL/issues/1092 3500s # - https://github.com/wagtail/wagtail/issues/9477 3500s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 3500s self.set_character_set(self.charset, self.collation) 3500s 3500s if self.sql_mode is not None: 3500s c = self.cursor() 3500s c.execute("SET sql_mode=%s", (self.sql_mode,)) 3500s c.close() 3500s 3500s if self.init_command is not None: 3500s c = self.cursor() 3500s c.execute(self.init_command) 3500s c.close() 3500s 3500s if self.autocommit_mode is not None: 3500s self.autocommit(self.autocommit_mode) 3500s except BaseException as e: 3500s self._rfile = None 3500s if sock is not None: 3500s try: 3500s sock.close() 3500s except: # noqa 3500s pass 3500s 3500s if isinstance(e, (OSError, IOError)): 3500s exc = err.OperationalError( 3500s CR.CR_CONN_HOST_ERROR, 3500s f"Can't connect to MySQL server on {self.host!r} ({e})", 3500s ) 3500s # Keep original exception and traceback to investigate error. 3500s exc.original_exception = e 3500s exc.traceback = traceback.format_exc() 3500s if DEBUG: 3500s print(exc.traceback) 3500s > raise exc 3500s E sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3500s E (Background on this error at: https://sqlalche.me/e/14/e3q8) 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 3500s ___________________ test_read_procedure[mysql_pymysql_conn] ____________________ 3500s self = , sock = None 3500s 3500s def connect(self, sock=None): 3500s self._closed = False 3500s try: 3500s if sock is None: 3500s if self.unix_socket: 3500s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3500s sock.settimeout(self.connect_timeout) 3500s sock.connect(self.unix_socket) 3500s self.host_info = "Localhost via UNIX socket" 3500s self._secure = True 3500s if DEBUG: 3500s print("connected using unix_socket") 3500s else: 3500s kwargs = {} 3500s if self.bind_address is not None: 3500s kwargs["source_address"] = (self.bind_address, 0) 3500s while True: 3500s try: 3500s > sock = socket.create_connection( 3500s (self.host, self.port), self.connect_timeout, **kwargs 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:649: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s address = ('localhost', 3306), timeout = 10, source_address = None 3500s 3500s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 3500s source_address=None, *, all_errors=False): 3500s """Connect to *address* and return the socket object. 3500s 3500s Convenience function. Connect to *address* (a 2-tuple ``(host, 3500s port)``) and return the socket object. Passing the optional 3500s *timeout* parameter will set the timeout on the socket instance 3500s before attempting to connect. If no *timeout* is supplied, the 3500s global default timeout setting returned by :func:`getdefaulttimeout` 3500s is used. If *source_address* is set it must be a tuple of (host, port) 3500s for the socket to bind as a source address before making the connection. 3500s A host of '' or port 0 tells the OS to use the default. When a connection 3500s cannot be created, raises the last error if *all_errors* is False, 3500s and an ExceptionGroup of all errors if *all_errors* is True. 3500s """ 3500s 3500s host, port = address 3500s exceptions = [] 3500s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 3500s af, socktype, proto, canonname, sa = res 3500s sock = None 3500s try: 3500s sock = socket(af, socktype, proto) 3500s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 3500s sock.settimeout(timeout) 3500s if source_address: 3500s sock.bind(source_address) 3500s sock.connect(sa) 3500s # Break explicitly a reference cycle 3500s exceptions.clear() 3500s return sock 3500s 3500s except error as exc: 3500s if not all_errors: 3500s exceptions.clear() # raise only the last error 3500s exceptions.append(exc) 3500s if sock is not None: 3500s sock.close() 3500s 3500s if len(exceptions): 3500s try: 3500s if not all_errors: 3500s > raise exceptions[0] 3500s 3500s /usr/lib/python3.12/socket.py:853: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s address = ('localhost', 3306), timeout = 10, source_address = None 3500s 3500s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 3500s source_address=None, *, all_errors=False): 3500s """Connect to *address* and return the socket object. 3500s 3500s Convenience function. Connect to *address* (a 2-tuple ``(host, 3500s port)``) and return the socket object. Passing the optional 3500s *timeout* parameter will set the timeout on the socket instance 3500s before attempting to connect. If no *timeout* is supplied, the 3500s global default timeout setting returned by :func:`getdefaulttimeout` 3500s is used. If *source_address* is set it must be a tuple of (host, port) 3500s for the socket to bind as a source address before making the connection. 3500s A host of '' or port 0 tells the OS to use the default. When a connection 3500s cannot be created, raises the last error if *all_errors* is False, 3500s and an ExceptionGroup of all errors if *all_errors* is True. 3500s """ 3500s 3500s host, port = address 3500s exceptions = [] 3500s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 3500s af, socktype, proto, canonname, sa = res 3500s sock = None 3500s try: 3500s sock = socket(af, socktype, proto) 3500s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 3500s sock.settimeout(timeout) 3500s if source_address: 3500s sock.bind(source_address) 3500s > sock.connect(sa) 3500s E ConnectionRefusedError: [Errno 111] Connection refused 3500s 3500s /usr/lib/python3.12/socket.py:838: ConnectionRefusedError 3500s 3500s During handling of the above exception, another exception occurred: 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __init__( 3500s self, 3500s *, 3500s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 3500s password="", 3500s host=None, 3500s database=None, 3500s unix_socket=None, 3500s port=0, 3500s charset="", 3500s collation=None, 3500s sql_mode=None, 3500s read_default_file=None, 3500s conv=None, 3500s use_unicode=True, 3500s client_flag=0, 3500s cursorclass=Cursor, 3500s init_command=None, 3500s connect_timeout=10, 3500s read_default_group=None, 3500s autocommit=False, 3500s local_infile=False, 3500s max_allowed_packet=16 * 1024 * 1024, 3500s defer_connect=False, 3500s auth_plugin_map=None, 3500s read_timeout=None, 3500s write_timeout=None, 3500s bind_address=None, 3500s binary_prefix=False, 3500s program_name=None, 3500s server_public_key=None, 3500s ssl=None, 3500s ssl_ca=None, 3500s ssl_cert=None, 3500s ssl_disabled=None, 3500s ssl_key=None, 3500s ssl_key_password=None, 3500s ssl_verify_cert=None, 3500s ssl_verify_identity=None, 3500s compress=None, # not supported 3500s named_pipe=None, # not supported 3500s passwd=None, # deprecated 3500s db=None, # deprecated 3500s ): 3500s if db is not None and database is None: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 3500s database = db 3500s if passwd is not None and not password: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn( 3500s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 3500s # ) 3500s password = passwd 3500s 3500s if compress or named_pipe: 3500s raise NotImplementedError( 3500s "compress and named_pipe arguments are not supported" 3500s ) 3500s 3500s self._local_infile = bool(local_infile) 3500s if self._local_infile: 3500s client_flag |= CLIENT.LOCAL_FILES 3500s 3500s if read_default_group and not read_default_file: 3500s if sys.platform.startswith("win"): 3500s read_default_file = "c:\\my.ini" 3500s else: 3500s read_default_file = "/etc/my.cnf" 3500s 3500s if read_default_file: 3500s if not read_default_group: 3500s read_default_group = "client" 3500s 3500s cfg = Parser() 3500s cfg.read(os.path.expanduser(read_default_file)) 3500s 3500s def _config(key, arg): 3500s if arg: 3500s return arg 3500s try: 3500s return cfg.get(read_default_group, key) 3500s except Exception: 3500s return arg 3500s 3500s user = _config("user", user) 3500s password = _config("password", password) 3500s host = _config("host", host) 3500s database = _config("database", database) 3500s unix_socket = _config("socket", unix_socket) 3500s port = int(_config("port", port)) 3500s bind_address = _config("bind-address", bind_address) 3500s charset = _config("default-character-set", charset) 3500s if not ssl: 3500s ssl = {} 3500s if isinstance(ssl, dict): 3500s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 3500s value = _config("ssl-" + key, ssl.get(key)) 3500s if value: 3500s ssl[key] = value 3500s 3500s self.ssl = False 3500s if not ssl_disabled: 3500s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 3500s ssl = { 3500s "ca": ssl_ca, 3500s "check_hostname": bool(ssl_verify_identity), 3500s "verify_mode": ssl_verify_cert 3500s if ssl_verify_cert is not None 3500s else False, 3500s } 3500s if ssl_cert is not None: 3500s ssl["cert"] = ssl_cert 3500s if ssl_key is not None: 3500s ssl["key"] = ssl_key 3500s if ssl_key_password is not None: 3500s ssl["password"] = ssl_key_password 3500s if ssl: 3500s if not SSL_ENABLED: 3500s raise NotImplementedError("ssl module not found") 3500s self.ssl = True 3500s client_flag |= CLIENT.SSL 3500s self.ctx = self._create_ssl_ctx(ssl) 3500s 3500s self.host = host or "localhost" 3500s self.port = port or 3306 3500s if type(self.port) is not int: 3500s raise ValueError("port should be of type int") 3500s self.user = user or DEFAULT_USER 3500s self.password = password or b"" 3500s if isinstance(self.password, str): 3500s self.password = self.password.encode("latin1") 3500s self.db = database 3500s self.unix_socket = unix_socket 3500s self.bind_address = bind_address 3500s if not (0 < connect_timeout <= 31536000): 3500s raise ValueError("connect_timeout should be >0 and <=31536000") 3500s self.connect_timeout = connect_timeout or None 3500s if read_timeout is not None and read_timeout <= 0: 3500s raise ValueError("read_timeout should be > 0") 3500s self._read_timeout = read_timeout 3500s if write_timeout is not None and write_timeout <= 0: 3500s raise ValueError("write_timeout should be > 0") 3500s self._write_timeout = write_timeout 3500s 3500s self.charset = charset or DEFAULT_CHARSET 3500s self.collation = collation 3500s self.use_unicode = use_unicode 3500s 3500s self.encoding = charset_by_name(self.charset).encoding 3500s 3500s client_flag |= CLIENT.CAPABILITIES 3500s if self.db: 3500s client_flag |= CLIENT.CONNECT_WITH_DB 3500s 3500s self.client_flag = client_flag 3500s 3500s self.cursorclass = cursorclass 3500s 3500s self._result = None 3500s self._affected_rows = 0 3500s self.host_info = "Not connected" 3500s 3500s # specified autocommit mode. None means use server default. 3500s self.autocommit_mode = autocommit 3500s 3500s if conv is None: 3500s conv = converters.conversions 3500s 3500s # Need for MySQLdb compatibility. 3500s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 3500s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 3500s self.sql_mode = sql_mode 3500s self.init_command = init_command 3500s self.max_allowed_packet = max_allowed_packet 3500s self._auth_plugin_map = auth_plugin_map or {} 3500s self._binary_prefix = binary_prefix 3500s self.server_public_key = server_public_key 3500s 3500s self._connect_attrs = { 3500s "_client_name": "pymysql", 3500s "_client_version": VERSION_STRING, 3500s "_pid": str(os.getpid()), 3500s } 3500s 3500s if program_name: 3500s self._connect_attrs["program_name"] = program_name 3500s 3500s if defer_connect: 3500s self._sock = None 3500s else: 3500s > self.connect() 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = , sock = None 3500s 3500s def connect(self, sock=None): 3500s self._closed = False 3500s try: 3500s if sock is None: 3500s if self.unix_socket: 3500s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3500s sock.settimeout(self.connect_timeout) 3500s sock.connect(self.unix_socket) 3500s self.host_info = "Localhost via UNIX socket" 3500s self._secure = True 3500s if DEBUG: 3500s print("connected using unix_socket") 3500s else: 3500s kwargs = {} 3500s if self.bind_address is not None: 3500s kwargs["source_address"] = (self.bind_address, 0) 3500s while True: 3500s try: 3500s sock = socket.create_connection( 3500s (self.host, self.port), self.connect_timeout, **kwargs 3500s ) 3500s break 3500s except OSError as e: 3500s if e.errno == errno.EINTR: 3500s continue 3500s raise 3500s self.host_info = "socket %s:%d" % (self.host, self.port) 3500s if DEBUG: 3500s print("connected using socket") 3500s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 3500s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 3500s sock.settimeout(None) 3500s 3500s self._sock = sock 3500s self._rfile = sock.makefile("rb") 3500s self._next_seq_id = 0 3500s 3500s self._get_server_information() 3500s self._request_authentication() 3500s 3500s # Send "SET NAMES" query on init for: 3500s # - Ensure charaset (and collation) is set to the server. 3500s # - collation_id in handshake packet may be ignored. 3500s # - If collation is not specified, we don't know what is server's 3500s # default collation for the charset. For example, default collation 3500s # of utf8mb4 is: 3500s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 3500s # - MySQL 8.0: utf8mb4_0900_ai_ci 3500s # 3500s # Reference: 3500s # - https://github.com/PyMySQL/PyMySQL/issues/1092 3500s # - https://github.com/wagtail/wagtail/issues/9477 3500s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 3500s self.set_character_set(self.charset, self.collation) 3500s 3500s if self.sql_mode is not None: 3500s c = self.cursor() 3500s c.execute("SET sql_mode=%s", (self.sql_mode,)) 3500s c.close() 3500s 3500s if self.init_command is not None: 3500s c = self.cursor() 3500s c.execute(self.init_command) 3500s c.close() 3500s 3500s if self.autocommit_mode is not None: 3500s self.autocommit(self.autocommit_mode) 3500s except BaseException as e: 3500s self._rfile = None 3500s if sock is not None: 3500s try: 3500s sock.close() 3500s except: # noqa 3500s pass 3500s 3500s if isinstance(e, (OSError, IOError)): 3500s exc = err.OperationalError( 3500s CR.CR_CONN_HOST_ERROR, 3500s f"Can't connect to MySQL server on {self.host!r} ({e})", 3500s ) 3500s # Keep original exception and traceback to investigate error. 3500s exc.original_exception = e 3500s exc.traceback = traceback.format_exc() 3500s if DEBUG: 3500s print(exc.traceback) 3500s > raise exc 3500s E pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 3500s 3500s The above exception was the direct cause of the following exception: 3500s 3500s conn = 'mysql_pymysql_conn' 3500s request = > 3500s 3500s @pytest.mark.db 3500s @pytest.mark.parametrize("conn", mysql_connectable) 3500s def test_read_procedure(conn, request): 3500s > conn = request.getfixturevalue(conn) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:750: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'mysql_pymysql_conn' 3500s 3500s def getfixturevalue(self, argname: str) -> Any: 3500s """Dynamically run a named fixture function. 3500s 3500s Declaring fixtures via function argument is recommended where possible. 3500s But if you can only decide whether to use another fixture at test 3500s setup time, you may use this function to retrieve it inside a fixture 3500s or test function body. 3500s 3500s This method can be used during the test setup phase or the test run 3500s phase, but during the test teardown phase a fixture's value may not 3500s be available. 3500s 3500s :param argname: 3500s The fixture name. 3500s :raises pytest.FixtureLookupError: 3500s If the given fixture could not be found. 3500s """ 3500s > fixturedef = self._get_active_fixturedef(argname) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:585: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'mysql_pymysql_conn' 3500s 3500s def _get_active_fixturedef( 3500s self, argname: str 3500s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3500s try: 3500s return self._fixture_defs[argname] 3500s except KeyError: 3500s try: 3500s fixturedef = self._getnextfixturedef(argname) 3500s except FixtureLookupError: 3500s if argname == "request": 3500s cached_result = (self, [0], None) 3500s return PseudoFixtureDef(cached_result, Scope.Function) 3500s raise 3500s # Remove indent to prevent the python3 exception 3500s # from leaking into the call. 3500s > self._compute_fixture_value(fixturedef) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s fixturedef = 3500s 3500s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3500s """Create a SubRequest based on "self" and call the execute method 3500s of the given FixtureDef object. 3500s 3500s This will force the FixtureDef object to throw away any previous 3500s results and compute a new fixture value, which will be stored into 3500s the FixtureDef object itself. 3500s """ 3500s # prepare a subrequest object before calling fixture function 3500s # (latter managed by fixturedef) 3500s argname = fixturedef.argname 3500s funcitem = self._pyfuncitem 3500s scope = fixturedef._scope 3500s try: 3500s callspec = funcitem.callspec 3500s except AttributeError: 3500s callspec = None 3500s if callspec is not None and argname in callspec.params: 3500s param = callspec.params[argname] 3500s param_index = callspec.indices[argname] 3500s # If a parametrize invocation set a scope it will override 3500s # the static scope defined with the fixture function. 3500s with suppress(KeyError): 3500s scope = callspec._arg2scope[argname] 3500s else: 3500s param = NOTSET 3500s param_index = 0 3500s has_params = fixturedef.params is not None 3500s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3500s if has_params and fixtures_not_supported: 3500s msg = ( 3500s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3500s "Node id: {nodeid}\n" 3500s "Function type: {typename}" 3500s ).format( 3500s name=funcitem.name, 3500s nodeid=funcitem.nodeid, 3500s typename=type(funcitem).__name__, 3500s ) 3500s fail(msg, pytrace=False) 3500s if has_params: 3500s frame = inspect.stack()[3] 3500s frameinfo = inspect.getframeinfo(frame[0]) 3500s source_path = absolutepath(frameinfo.filename) 3500s source_lineno = frameinfo.lineno 3500s try: 3500s source_path_str = str( 3500s source_path.relative_to(funcitem.config.rootpath) 3500s ) 3500s except ValueError: 3500s source_path_str = str(source_path) 3500s msg = ( 3500s "The requested fixture has no parameter defined for test:\n" 3500s " {}\n\n" 3500s "Requested fixture '{}' defined in:\n{}" 3500s "\n\nRequested here:\n{}:{}".format( 3500s funcitem.nodeid, 3500s fixturedef.argname, 3500s getlocation(fixturedef.func, funcitem.config.rootpath), 3500s source_path_str, 3500s source_lineno, 3500s ) 3500s ) 3500s fail(msg, pytrace=False) 3500s 3500s subrequest = SubRequest( 3500s self, scope, param, param_index, fixturedef, _ispytest=True 3500s ) 3500s 3500s # Check if a higher-level scoped fixture accesses a lower level one. 3500s subrequest._check_scope(argname, self._scope, scope) 3500s try: 3500s # Call the fixture function. 3500s > fixturedef.execute(request=subrequest) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s request = > 3500s 3500s def execute(self, request: SubRequest) -> FixtureValue: 3500s # Get required arguments and register our own finish() 3500s # with their finalization. 3500s for argname in self.argnames: 3500s > fixturedef = request._get_active_fixturedef(argname) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1045: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'mysql_pymysql_engine' 3500s 3500s def _get_active_fixturedef( 3500s self, argname: str 3500s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3500s try: 3500s return self._fixture_defs[argname] 3500s except KeyError: 3500s try: 3500s fixturedef = self._getnextfixturedef(argname) 3500s except FixtureLookupError: 3500s if argname == "request": 3500s cached_result = (self, [0], None) 3500s return PseudoFixtureDef(cached_result, Scope.Function) 3500s raise 3500s # Remove indent to prevent the python3 exception 3500s # from leaking into the call. 3500s > self._compute_fixture_value(fixturedef) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s fixturedef = 3500s 3500s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3500s """Create a SubRequest based on "self" and call the execute method 3500s of the given FixtureDef object. 3500s 3500s This will force the FixtureDef object to throw away any previous 3500s results and compute a new fixture value, which will be stored into 3500s the FixtureDef object itself. 3500s """ 3500s # prepare a subrequest object before calling fixture function 3500s # (latter managed by fixturedef) 3500s argname = fixturedef.argname 3500s funcitem = self._pyfuncitem 3500s scope = fixturedef._scope 3500s try: 3500s callspec = funcitem.callspec 3500s except AttributeError: 3500s callspec = None 3500s if callspec is not None and argname in callspec.params: 3500s param = callspec.params[argname] 3500s param_index = callspec.indices[argname] 3500s # If a parametrize invocation set a scope it will override 3500s # the static scope defined with the fixture function. 3500s with suppress(KeyError): 3500s scope = callspec._arg2scope[argname] 3500s else: 3500s param = NOTSET 3500s param_index = 0 3500s has_params = fixturedef.params is not None 3500s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3500s if has_params and fixtures_not_supported: 3500s msg = ( 3500s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3500s "Node id: {nodeid}\n" 3500s "Function type: {typename}" 3500s ).format( 3500s name=funcitem.name, 3500s nodeid=funcitem.nodeid, 3500s typename=type(funcitem).__name__, 3500s ) 3500s fail(msg, pytrace=False) 3500s if has_params: 3500s frame = inspect.stack()[3] 3500s frameinfo = inspect.getframeinfo(frame[0]) 3500s source_path = absolutepath(frameinfo.filename) 3500s source_lineno = frameinfo.lineno 3500s try: 3500s source_path_str = str( 3500s source_path.relative_to(funcitem.config.rootpath) 3500s ) 3500s except ValueError: 3500s source_path_str = str(source_path) 3500s msg = ( 3500s "The requested fixture has no parameter defined for test:\n" 3500s " {}\n\n" 3500s "Requested fixture '{}' defined in:\n{}" 3500s "\n\nRequested here:\n{}:{}".format( 3500s funcitem.nodeid, 3500s fixturedef.argname, 3500s getlocation(fixturedef.func, funcitem.config.rootpath), 3500s source_path_str, 3500s source_lineno, 3500s ) 3500s ) 3500s fail(msg, pytrace=False) 3500s 3500s subrequest = SubRequest( 3500s self, scope, param, param_index, fixturedef, _ispytest=True 3500s ) 3500s 3500s # Check if a higher-level scoped fixture accesses a lower level one. 3500s subrequest._check_scope(argname, self._scope, scope) 3500s try: 3500s # Call the fixture function. 3500s > fixturedef.execute(request=subrequest) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s request = > 3500s 3500s def execute(self, request: SubRequest) -> FixtureValue: 3500s # Get required arguments and register our own finish() 3500s # with their finalization. 3500s for argname in self.argnames: 3500s fixturedef = request._get_active_fixturedef(argname) 3500s if argname != "request": 3500s # PseudoFixtureDef is only for "request". 3500s assert isinstance(fixturedef, FixtureDef) 3500s fixturedef.addfinalizer(functools.partial(self.finish, request=request)) 3500s 3500s my_cache_key = self.cache_key(request) 3500s if self.cached_result is not None: 3500s # note: comparison with `==` can fail (or be expensive) for e.g. 3500s # numpy arrays (#6497). 3500s cache_key = self.cached_result[1] 3500s if my_cache_key is cache_key: 3500s if self.cached_result[2] is not None: 3500s _, val, tb = self.cached_result[2] 3500s raise val.with_traceback(tb) 3500s else: 3500s result = self.cached_result[0] 3500s return result 3500s # We have a previous but differently parametrized fixture instance 3500s # so we need to tear it down before creating a new one. 3500s self.finish(request) 3500s assert self.cached_result is None 3500s 3500s ihook = request.node.ihook 3500s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1069: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s kwargs = {'fixturedef': , 'request': >} 3500s firstresult = True 3500s 3500s def __call__(self, **kwargs: object) -> Any: 3500s """Call the hook. 3500s 3500s Only accepts keyword arguments, which should match the hook 3500s specification. 3500s 3500s Returns the result(s) of calling all registered plugins, see 3500s :ref:`calling`. 3500s """ 3500s assert ( 3500s not self.is_historic() 3500s ), "Cannot directly call a historic hook - use call_historic instead." 3500s self._verify_all_args_are_provided(kwargs) 3500s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 3500s # Copy because plugins may register other plugins during iteration (#438). 3500s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = <_pytest.config.PytestPluginManager object at 0xe9079168> 3500s hook_name = 'pytest_fixture_setup' 3500s methods = [>] 3500s kwargs = {'fixturedef': , 'request': >} 3500s firstresult = True 3500s 3500s def _hookexec( 3500s self, 3500s hook_name: str, 3500s methods: Sequence[HookImpl], 3500s kwargs: Mapping[str, object], 3500s firstresult: bool, 3500s ) -> object | list[object]: 3500s # called from all hookcaller instances. 3500s # enable_tracing will set its own wrapping function at self._inner_hookexec 3500s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturedef = 3500s request = > 3500s 3500s def pytest_fixture_setup( 3500s fixturedef: FixtureDef[FixtureValue], request: SubRequest 3500s ) -> FixtureValue: 3500s """Execution of fixture setup.""" 3500s kwargs = {} 3500s for argname in fixturedef.argnames: 3500s fixdef = request._get_active_fixturedef(argname) 3500s assert fixdef.cached_result is not None 3500s result, arg_cache_key, exc = fixdef.cached_result 3500s request._check_scope(argname, request._scope, fixdef._scope) 3500s kwargs[argname] = result 3500s 3500s fixturefunc = resolve_fixture_function(fixturedef, request) 3500s my_cache_key = fixturedef.cache_key(request) 3500s try: 3500s > result = call_fixture_func(fixturefunc, request, kwargs) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1123: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturefunc = 3500s request = > 3500s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv'), 'types_data': [{'B... False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}]} 3500s 3500s def call_fixture_func( 3500s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 3500s ) -> FixtureValue: 3500s if is_generator(fixturefunc): 3500s fixturefunc = cast( 3500s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 3500s ) 3500s generator = fixturefunc(**kwargs) 3500s try: 3500s > fixture_result = next(generator) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:895: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s iris_path = PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv') 3500s types_data = [{'BoolCol': False, 'BoolColWithNull': False, 'DateCol': '2000-01-03 00:00:00', 'DateColWithTz': '2000-01-01 00:00:00-...: False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}] 3500s 3500s @pytest.fixture 3500s def mysql_pymysql_engine(iris_path, types_data): 3500s sqlalchemy = pytest.importorskip("sqlalchemy") 3500s pymysql = pytest.importorskip("pymysql") 3500s engine = sqlalchemy.create_engine( 3500s "mysql+pymysql://root@localhost:3306/pandas", 3500s connect_args={"client_flag": pymysql.constants.CLIENT.MULTI_STATEMENTS}, 3500s poolclass=sqlalchemy.pool.NullPool, 3500s ) 3500s > insp = sqlalchemy.inspect(engine) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:409: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s subject = Engine(mysql+pymysql://root@localhost:3306/pandas), raiseerr = True 3500s 3500s def inspect(subject, raiseerr=True): 3500s """Produce an inspection object for the given target. 3500s 3500s The returned value in some cases may be the 3500s same object as the one given, such as if a 3500s :class:`_orm.Mapper` object is passed. In other 3500s cases, it will be an instance of the registered 3500s inspection type for the given object, such as 3500s if an :class:`_engine.Engine` is passed, an 3500s :class:`_reflection.Inspector` object is returned. 3500s 3500s :param subject: the subject to be inspected. 3500s :param raiseerr: When ``True``, if the given subject 3500s does not 3500s correspond to a known SQLAlchemy inspected type, 3500s :class:`sqlalchemy.exc.NoInspectionAvailable` 3500s is raised. If ``False``, ``None`` is returned. 3500s 3500s """ 3500s type_ = type(subject) 3500s for cls in type_.__mro__: 3500s if cls in _registrars: 3500s reg = _registrars[cls] 3500s if reg is True: 3500s return subject 3500s > ret = reg(subject) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:64: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s @inspection._inspects(Engine) 3500s def _engine_insp(bind): 3500s > return Inspector._construct(Inspector._init_engine, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:182: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s init = 3500s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s @classmethod 3500s def _construct(cls, init, bind): 3500s 3500s if hasattr(bind.dialect, "inspector"): 3500s cls = bind.dialect.inspector 3500s 3500s self = cls.__new__(cls) 3500s > init(self, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:117: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s def _init_engine(self, engine): 3500s self.bind = self.engine = engine 3500s > engine.connect().close() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:128: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s close_with_result = False 3500s 3500s def connect(self, close_with_result=False): 3500s """Return a new :class:`_engine.Connection` object. 3500s 3500s The :class:`_engine.Connection` object is a facade that uses a DBAPI 3500s connection internally in order to communicate with the database. This 3500s connection is procured from the connection-holding :class:`_pool.Pool` 3500s referenced by this :class:`_engine.Engine`. When the 3500s :meth:`_engine.Connection.close` method of the 3500s :class:`_engine.Connection` object 3500s is called, the underlying DBAPI connection is then returned to the 3500s connection pool, where it may be used again in a subsequent call to 3500s :meth:`_engine.Engine.connect`. 3500s 3500s """ 3500s 3500s > return self._connection_cls(self, close_with_result=close_with_result) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3325: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 3500s close_with_result = False, _branch_from = None, _execution_options = None 3500s _dispatch = None, _has_events = None, _allow_revalidate = True 3500s 3500s def __init__( 3500s self, 3500s engine, 3500s connection=None, 3500s close_with_result=False, 3500s _branch_from=None, 3500s _execution_options=None, 3500s _dispatch=None, 3500s _has_events=None, 3500s _allow_revalidate=True, 3500s ): 3500s """Construct a new Connection.""" 3500s self.engine = engine 3500s self.dialect = engine.dialect 3500s self.__branch_from = _branch_from 3500s 3500s if _branch_from: 3500s # branching is always "from" the root connection 3500s assert _branch_from.__branch_from is None 3500s self._dbapi_connection = connection 3500s self._execution_options = _execution_options 3500s self._echo = _branch_from._echo 3500s self.should_close_with_result = False 3500s self.dispatch = _dispatch 3500s self._has_events = _branch_from._has_events 3500s else: 3500s self._dbapi_connection = ( 3500s connection 3500s if connection is not None 3500s > else engine.raw_connection() 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:96: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas), _connection = None 3500s 3500s def raw_connection(self, _connection=None): 3500s """Return a "raw" DBAPI connection from the connection pool. 3500s 3500s The returned object is a proxied version of the DBAPI 3500s connection object used by the underlying driver in use. 3500s The object will have all the same behavior as the real DBAPI 3500s connection, except that its ``close()`` method will result in the 3500s connection being returned to the pool, rather than being closed 3500s for real. 3500s 3500s This method provides direct DBAPI connection access for 3500s special situations when the API provided by 3500s :class:`_engine.Connection` 3500s is not needed. When a :class:`_engine.Connection` object is already 3500s present, the DBAPI connection is available using 3500s the :attr:`_engine.Connection.connection` accessor. 3500s 3500s .. seealso:: 3500s 3500s :ref:`dbapi_connections` 3500s 3500s """ 3500s > return self._wrap_pool_connect(self.pool.connect, _connection) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3404: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s return fn() 3500s except dialect.dbapi.Error as e: 3500s if connection is None: 3500s > Connection._handle_dbapi_exception_noconnection( 3500s e, dialect, self 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3374: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s e = OperationalError(2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3500s dialect = 3500s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s @classmethod 3500s def _handle_dbapi_exception_noconnection(cls, e, dialect, engine): 3500s exc_info = sys.exc_info() 3500s 3500s is_disconnect = dialect.is_disconnect(e, None, None) 3500s 3500s should_wrap = isinstance(e, dialect.dbapi.Error) 3500s 3500s if should_wrap: 3500s sqlalchemy_exception = exc.DBAPIError.instance( 3500s None, 3500s None, 3500s e, 3500s dialect.dbapi.Error, 3500s hide_parameters=engine.hide_parameters, 3500s connection_invalidated=is_disconnect, 3500s ) 3500s else: 3500s sqlalchemy_exception = None 3500s 3500s newraise = None 3500s 3500s if engine._has_events: 3500s ctx = ExceptionContextImpl( 3500s e, 3500s sqlalchemy_exception, 3500s engine, 3500s None, 3500s None, 3500s None, 3500s None, 3500s None, 3500s is_disconnect, 3500s True, 3500s ) 3500s for fn in engine.dispatch.handle_error: 3500s try: 3500s # handler returns an exception; 3500s # call next handler in a chain 3500s per_fn = fn(ctx) 3500s if per_fn is not None: 3500s ctx.chained_exception = newraise = per_fn 3500s except Exception as _raised: 3500s # handler raises an exception - stop processing 3500s newraise = _raised 3500s break 3500s 3500s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 3500s sqlalchemy_exception.connection_invalidated = ( 3500s is_disconnect 3500s ) = ctx.is_disconnect 3500s 3500s if newraise: 3500s util.raise_(newraise, with_traceback=exc_info[2], from_=e) 3500s elif should_wrap: 3500s > util.raise_( 3500s sqlalchemy_exception, with_traceback=exc_info[2], from_=e 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2208: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __init__( 3500s self, 3500s *, 3500s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 3500s password="", 3500s host=None, 3500s database=None, 3500s unix_socket=None, 3500s port=0, 3500s charset="", 3500s collation=None, 3500s sql_mode=None, 3500s read_default_file=None, 3500s conv=None, 3500s use_unicode=True, 3500s client_flag=0, 3500s cursorclass=Cursor, 3500s init_command=None, 3500s connect_timeout=10, 3500s read_default_group=None, 3500s autocommit=False, 3500s local_infile=False, 3500s max_allowed_packet=16 * 1024 * 1024, 3500s defer_connect=False, 3500s auth_plugin_map=None, 3500s read_timeout=None, 3500s write_timeout=None, 3500s bind_address=None, 3500s binary_prefix=False, 3500s program_name=None, 3500s server_public_key=None, 3500s ssl=None, 3500s ssl_ca=None, 3500s ssl_cert=None, 3500s ssl_disabled=None, 3500s ssl_key=None, 3500s ssl_key_password=None, 3500s ssl_verify_cert=None, 3500s ssl_verify_identity=None, 3500s compress=None, # not supported 3500s named_pipe=None, # not supported 3500s passwd=None, # deprecated 3500s db=None, # deprecated 3500s ): 3500s if db is not None and database is None: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 3500s database = db 3500s if passwd is not None and not password: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn( 3500s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 3500s # ) 3500s password = passwd 3500s 3500s if compress or named_pipe: 3500s raise NotImplementedError( 3500s "compress and named_pipe arguments are not supported" 3500s ) 3500s 3500s self._local_infile = bool(local_infile) 3500s if self._local_infile: 3500s client_flag |= CLIENT.LOCAL_FILES 3500s 3500s if read_default_group and not read_default_file: 3500s if sys.platform.startswith("win"): 3500s read_default_file = "c:\\my.ini" 3500s else: 3500s read_default_file = "/etc/my.cnf" 3500s 3500s if read_default_file: 3500s if not read_default_group: 3500s read_default_group = "client" 3500s 3500s cfg = Parser() 3500s cfg.read(os.path.expanduser(read_default_file)) 3500s 3500s def _config(key, arg): 3500s if arg: 3500s return arg 3500s try: 3500s return cfg.get(read_default_group, key) 3500s except Exception: 3500s return arg 3500s 3500s user = _config("user", user) 3500s password = _config("password", password) 3500s host = _config("host", host) 3500s database = _config("database", database) 3500s unix_socket = _config("socket", unix_socket) 3500s port = int(_config("port", port)) 3500s bind_address = _config("bind-address", bind_address) 3500s charset = _config("default-character-set", charset) 3500s if not ssl: 3500s ssl = {} 3500s if isinstance(ssl, dict): 3500s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 3500s value = _config("ssl-" + key, ssl.get(key)) 3500s if value: 3500s ssl[key] = value 3500s 3500s self.ssl = False 3500s if not ssl_disabled: 3500s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 3500s ssl = { 3500s "ca": ssl_ca, 3500s "check_hostname": bool(ssl_verify_identity), 3500s "verify_mode": ssl_verify_cert 3500s if ssl_verify_cert is not None 3500s else False, 3500s } 3500s if ssl_cert is not None: 3500s ssl["cert"] = ssl_cert 3500s if ssl_key is not None: 3500s ssl["key"] = ssl_key 3500s if ssl_key_password is not None: 3500s ssl["password"] = ssl_key_password 3500s if ssl: 3500s if not SSL_ENABLED: 3500s raise NotImplementedError("ssl module not found") 3500s self.ssl = True 3500s client_flag |= CLIENT.SSL 3500s self.ctx = self._create_ssl_ctx(ssl) 3500s 3500s self.host = host or "localhost" 3500s self.port = port or 3306 3500s if type(self.port) is not int: 3500s raise ValueError("port should be of type int") 3500s self.user = user or DEFAULT_USER 3500s self.password = password or b"" 3500s if isinstance(self.password, str): 3500s self.password = self.password.encode("latin1") 3500s self.db = database 3500s self.unix_socket = unix_socket 3500s self.bind_address = bind_address 3500s if not (0 < connect_timeout <= 31536000): 3500s raise ValueError("connect_timeout should be >0 and <=31536000") 3500s self.connect_timeout = connect_timeout or None 3500s if read_timeout is not None and read_timeout <= 0: 3500s raise ValueError("read_timeout should be > 0") 3500s self._read_timeout = read_timeout 3500s if write_timeout is not None and write_timeout <= 0: 3500s raise ValueError("write_timeout should be > 0") 3500s self._write_timeout = write_timeout 3500s 3500s self.charset = charset or DEFAULT_CHARSET 3500s self.collation = collation 3500s self.use_unicode = use_unicode 3500s 3500s self.encoding = charset_by_name(self.charset).encoding 3500s 3500s client_flag |= CLIENT.CAPABILITIES 3500s if self.db: 3500s client_flag |= CLIENT.CONNECT_WITH_DB 3500s 3500s self.client_flag = client_flag 3500s 3500s self.cursorclass = cursorclass 3500s 3500s self._result = None 3500s self._affected_rows = 0 3500s self.host_info = "Not connected" 3500s 3500s # specified autocommit mode. None means use server default. 3500s self.autocommit_mode = autocommit 3500s 3500s if conv is None: 3500s conv = converters.conversions 3500s 3500s # Need for MySQLdb compatibility. 3500s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 3500s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 3500s self.sql_mode = sql_mode 3500s self.init_command = init_command 3500s self.max_allowed_packet = max_allowed_packet 3500s self._auth_plugin_map = auth_plugin_map or {} 3500s self._binary_prefix = binary_prefix 3500s self.server_public_key = server_public_key 3500s 3500s self._connect_attrs = { 3500s "_client_name": "pymysql", 3500s "_client_version": VERSION_STRING, 3500s "_pid": str(os.getpid()), 3500s } 3500s 3500s if program_name: 3500s self._connect_attrs["program_name"] = program_name 3500s 3500s if defer_connect: 3500s self._sock = None 3500s else: 3500s > self.connect() 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = , sock = None 3500s 3500s def connect(self, sock=None): 3500s self._closed = False 3500s try: 3500s if sock is None: 3500s if self.unix_socket: 3500s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3500s sock.settimeout(self.connect_timeout) 3500s sock.connect(self.unix_socket) 3500s self.host_info = "Localhost via UNIX socket" 3500s self._secure = True 3500s if DEBUG: 3500s print("connected using unix_socket") 3500s else: 3500s kwargs = {} 3500s if self.bind_address is not None: 3500s kwargs["source_address"] = (self.bind_address, 0) 3500s while True: 3500s try: 3500s sock = socket.create_connection( 3500s (self.host, self.port), self.connect_timeout, **kwargs 3500s ) 3500s break 3500s except OSError as e: 3500s if e.errno == errno.EINTR: 3500s continue 3500s raise 3500s self.host_info = "socket %s:%d" % (self.host, self.port) 3500s if DEBUG: 3500s print("connected using socket") 3500s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 3500s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 3500s sock.settimeout(None) 3500s 3500s self._sock = sock 3500s self._rfile = sock.makefile("rb") 3500s self._next_seq_id = 0 3500s 3500s self._get_server_information() 3500s self._request_authentication() 3500s 3500s # Send "SET NAMES" query on init for: 3500s # - Ensure charaset (and collation) is set to the server. 3500s # - collation_id in handshake packet may be ignored. 3500s # - If collation is not specified, we don't know what is server's 3500s # default collation for the charset. For example, default collation 3500s # of utf8mb4 is: 3500s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 3500s # - MySQL 8.0: utf8mb4_0900_ai_ci 3500s # 3500s # Reference: 3500s # - https://github.com/PyMySQL/PyMySQL/issues/1092 3500s # - https://github.com/wagtail/wagtail/issues/9477 3500s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 3500s self.set_character_set(self.charset, self.collation) 3500s 3500s if self.sql_mode is not None: 3500s c = self.cursor() 3500s c.execute("SET sql_mode=%s", (self.sql_mode,)) 3500s c.close() 3500s 3500s if self.init_command is not None: 3500s c = self.cursor() 3500s c.execute(self.init_command) 3500s c.close() 3500s 3500s if self.autocommit_mode is not None: 3500s self.autocommit(self.autocommit_mode) 3500s except BaseException as e: 3500s self._rfile = None 3500s if sock is not None: 3500s try: 3500s sock.close() 3500s except: # noqa 3500s pass 3500s 3500s if isinstance(e, (OSError, IOError)): 3500s exc = err.OperationalError( 3500s CR.CR_CONN_HOST_ERROR, 3500s f"Can't connect to MySQL server on {self.host!r} ({e})", 3500s ) 3500s # Keep original exception and traceback to investigate error. 3500s exc.original_exception = e 3500s exc.traceback = traceback.format_exc() 3500s if DEBUG: 3500s print(exc.traceback) 3500s > raise exc 3500s E sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3500s E (Background on this error at: https://sqlalche.me/e/14/e3q8) 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 3500s ____ test_copy_from_callable_insertion_method[2-postgresql_psycopg2_engine] ____ 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s dsn = 'host=localhost user=postgres password=postgres port=5432 dbname=pandas' 3500s connection_factory = None, cursor_factory = None 3500s kwargs = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s kwasync = {} 3500s 3500s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 3500s """ 3500s Create a new database connection. 3500s 3500s The connection parameters can be specified as a string: 3500s 3500s conn = psycopg2.connect("dbname=test user=postgres password=secret") 3500s 3500s or using a set of keyword arguments: 3500s 3500s conn = psycopg2.connect(database="test", user="postgres", password="secret") 3500s 3500s Or as a mix of both. The basic connection parameters are: 3500s 3500s - *dbname*: the database name 3500s - *database*: the database name (only as keyword argument) 3500s - *user*: user name used to authenticate 3500s - *password*: password used to authenticate 3500s - *host*: database host address (defaults to UNIX socket if not provided) 3500s - *port*: connection port number (defaults to 5432 if not provided) 3500s 3500s Using the *connection_factory* parameter a different class or connections 3500s factory can be specified. It should be a callable object taking a dsn 3500s argument. 3500s 3500s Using the *cursor_factory* parameter, a new default cursor factory will be 3500s used by cursor(). 3500s 3500s Using *async*=True an asynchronous connection will be created. *async_* is 3500s a valid alias (for Python versions where ``async`` is a keyword). 3500s 3500s Any other keyword parameter will be passed to the underlying client 3500s library: the list of supported parameters depends on the library version. 3500s 3500s """ 3500s kwasync = {} 3500s if 'async' in kwargs: 3500s kwasync['async'] = kwargs.pop('async') 3500s if 'async_' in kwargs: 3500s kwasync['async_'] = kwargs.pop('async_') 3500s 3500s dsn = _ext.make_dsn(dsn, **kwargs) 3500s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 3500s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 3500s E Is the server running on that host and accepting TCP/IP connections? 3500s 3500s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 3500s 3500s The above exception was the direct cause of the following exception: 3500s 3500s conn = 'postgresql_psycopg2_engine', expected_count = 2 3500s request = > 3500s 3500s @pytest.mark.db 3500s @pytest.mark.parametrize("conn", postgresql_connectable) 3500s @pytest.mark.parametrize("expected_count", [2, "Success!"]) 3500s def test_copy_from_callable_insertion_method(conn, expected_count, request): 3500s # GH 8953 3500s # Example in io.rst found under _io.sql.method 3500s # not available in sqlite, mysql 3500s def psql_insert_copy(table, conn, keys, data_iter): 3500s # gets a DBAPI connection that can provide a cursor 3500s dbapi_conn = conn.connection 3500s with dbapi_conn.cursor() as cur: 3500s s_buf = StringIO() 3500s writer = csv.writer(s_buf) 3500s writer.writerows(data_iter) 3500s s_buf.seek(0) 3500s 3500s columns = ", ".join([f'"{k}"' for k in keys]) 3500s if table.schema: 3500s table_name = f"{table.schema}.{table.name}" 3500s else: 3500s table_name = table.name 3500s 3500s sql_query = f"COPY {table_name} ({columns}) FROM STDIN WITH CSV" 3500s cur.copy_expert(sql=sql_query, file=s_buf) 3500s return expected_count 3500s 3500s > conn = request.getfixturevalue(conn) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:811: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'postgresql_psycopg2_engine' 3500s 3500s def getfixturevalue(self, argname: str) -> Any: 3500s """Dynamically run a named fixture function. 3500s 3500s Declaring fixtures via function argument is recommended where possible. 3500s But if you can only decide whether to use another fixture at test 3500s setup time, you may use this function to retrieve it inside a fixture 3500s or test function body. 3500s 3500s This method can be used during the test setup phase or the test run 3500s phase, but during the test teardown phase a fixture's value may not 3500s be available. 3500s 3500s :param argname: 3500s The fixture name. 3500s :raises pytest.FixtureLookupError: 3500s If the given fixture could not be found. 3500s """ 3500s > fixturedef = self._get_active_fixturedef(argname) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:585: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'postgresql_psycopg2_engine' 3500s 3500s def _get_active_fixturedef( 3500s self, argname: str 3500s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3500s try: 3500s return self._fixture_defs[argname] 3500s except KeyError: 3500s try: 3500s fixturedef = self._getnextfixturedef(argname) 3500s except FixtureLookupError: 3500s if argname == "request": 3500s cached_result = (self, [0], None) 3500s return PseudoFixtureDef(cached_result, Scope.Function) 3500s raise 3500s # Remove indent to prevent the python3 exception 3500s # from leaking into the call. 3500s > self._compute_fixture_value(fixturedef) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s fixturedef = 3500s 3500s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3500s """Create a SubRequest based on "self" and call the execute method 3500s of the given FixtureDef object. 3500s 3500s This will force the FixtureDef object to throw away any previous 3500s results and compute a new fixture value, which will be stored into 3500s the FixtureDef object itself. 3500s """ 3500s # prepare a subrequest object before calling fixture function 3500s # (latter managed by fixturedef) 3500s argname = fixturedef.argname 3500s funcitem = self._pyfuncitem 3500s scope = fixturedef._scope 3500s try: 3500s callspec = funcitem.callspec 3500s except AttributeError: 3500s callspec = None 3500s if callspec is not None and argname in callspec.params: 3500s param = callspec.params[argname] 3500s param_index = callspec.indices[argname] 3500s # If a parametrize invocation set a scope it will override 3500s # the static scope defined with the fixture function. 3500s with suppress(KeyError): 3500s scope = callspec._arg2scope[argname] 3500s else: 3500s param = NOTSET 3500s param_index = 0 3500s has_params = fixturedef.params is not None 3500s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3500s if has_params and fixtures_not_supported: 3500s msg = ( 3500s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3500s "Node id: {nodeid}\n" 3500s "Function type: {typename}" 3500s ).format( 3500s name=funcitem.name, 3500s nodeid=funcitem.nodeid, 3500s typename=type(funcitem).__name__, 3500s ) 3500s fail(msg, pytrace=False) 3500s if has_params: 3500s frame = inspect.stack()[3] 3500s frameinfo = inspect.getframeinfo(frame[0]) 3500s source_path = absolutepath(frameinfo.filename) 3500s source_lineno = frameinfo.lineno 3500s try: 3500s source_path_str = str( 3500s source_path.relative_to(funcitem.config.rootpath) 3500s ) 3500s except ValueError: 3500s source_path_str = str(source_path) 3500s msg = ( 3500s "The requested fixture has no parameter defined for test:\n" 3500s " {}\n\n" 3500s "Requested fixture '{}' defined in:\n{}" 3500s "\n\nRequested here:\n{}:{}".format( 3500s funcitem.nodeid, 3500s fixturedef.argname, 3500s getlocation(fixturedef.func, funcitem.config.rootpath), 3500s source_path_str, 3500s source_lineno, 3500s ) 3500s ) 3500s fail(msg, pytrace=False) 3500s 3500s subrequest = SubRequest( 3500s self, scope, param, param_index, fixturedef, _ispytest=True 3500s ) 3500s 3500s # Check if a higher-level scoped fixture accesses a lower level one. 3500s subrequest._check_scope(argname, self._scope, scope) 3500s try: 3500s # Call the fixture function. 3500s > fixturedef.execute(request=subrequest) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s request = > 3500s 3500s def execute(self, request: SubRequest) -> FixtureValue: 3500s # Get required arguments and register our own finish() 3500s # with their finalization. 3500s for argname in self.argnames: 3500s fixturedef = request._get_active_fixturedef(argname) 3500s if argname != "request": 3500s # PseudoFixtureDef is only for "request". 3500s assert isinstance(fixturedef, FixtureDef) 3500s fixturedef.addfinalizer(functools.partial(self.finish, request=request)) 3500s 3500s my_cache_key = self.cache_key(request) 3500s if self.cached_result is not None: 3500s # note: comparison with `==` can fail (or be expensive) for e.g. 3500s # numpy arrays (#6497). 3500s cache_key = self.cached_result[1] 3500s if my_cache_key is cache_key: 3500s if self.cached_result[2] is not None: 3500s _, val, tb = self.cached_result[2] 3500s raise val.with_traceback(tb) 3500s else: 3500s result = self.cached_result[0] 3500s return result 3500s # We have a previous but differently parametrized fixture instance 3500s # so we need to tear it down before creating a new one. 3500s self.finish(request) 3500s assert self.cached_result is None 3500s 3500s ihook = request.node.ihook 3500s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1069: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s kwargs = {'fixturedef': , 'request': ...st 'postgresql_psycopg2_engine' for >} 3500s firstresult = True 3500s 3500s def __call__(self, **kwargs: object) -> Any: 3500s """Call the hook. 3500s 3500s Only accepts keyword arguments, which should match the hook 3500s specification. 3500s 3500s Returns the result(s) of calling all registered plugins, see 3500s :ref:`calling`. 3500s """ 3500s assert ( 3500s not self.is_historic() 3500s ), "Cannot directly call a historic hook - use call_historic instead." 3500s self._verify_all_args_are_provided(kwargs) 3500s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 3500s # Copy because plugins may register other plugins during iteration (#438). 3500s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = <_pytest.config.PytestPluginManager object at 0xe9079168> 3500s hook_name = 'pytest_fixture_setup' 3500s methods = [>] 3500s kwargs = {'fixturedef': , 'request': ...st 'postgresql_psycopg2_engine' for >} 3500s firstresult = True 3500s 3500s def _hookexec( 3500s self, 3500s hook_name: str, 3500s methods: Sequence[HookImpl], 3500s kwargs: Mapping[str, object], 3500s firstresult: bool, 3500s ) -> object | list[object]: 3500s # called from all hookcaller instances. 3500s # enable_tracing will set its own wrapping function at self._inner_hookexec 3500s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturedef = 3500s request = > 3500s 3500s def pytest_fixture_setup( 3500s fixturedef: FixtureDef[FixtureValue], request: SubRequest 3500s ) -> FixtureValue: 3500s """Execution of fixture setup.""" 3500s kwargs = {} 3500s for argname in fixturedef.argnames: 3500s fixdef = request._get_active_fixturedef(argname) 3500s assert fixdef.cached_result is not None 3500s result, arg_cache_key, exc = fixdef.cached_result 3500s request._check_scope(argname, request._scope, fixdef._scope) 3500s kwargs[argname] = result 3500s 3500s fixturefunc = resolve_fixture_function(fixturedef, request) 3500s my_cache_key = fixturedef.cache_key(request) 3500s try: 3500s > result = call_fixture_func(fixturefunc, request, kwargs) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1123: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturefunc = 3500s request = > 3500s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv'), 'types_data': [{'B... False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}]} 3500s 3500s def call_fixture_func( 3500s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 3500s ) -> FixtureValue: 3500s if is_generator(fixturefunc): 3500s fixturefunc = cast( 3500s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 3500s ) 3500s generator = fixturefunc(**kwargs) 3500s try: 3500s > fixture_result = next(generator) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:895: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s iris_path = PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv') 3500s types_data = [{'BoolCol': False, 'BoolColWithNull': False, 'DateCol': '2000-01-03 00:00:00', 'DateColWithTz': '2000-01-01 00:00:00-...: False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}] 3500s 3500s @pytest.fixture 3500s def postgresql_psycopg2_engine(iris_path, types_data): 3500s sqlalchemy = pytest.importorskip("sqlalchemy") 3500s pytest.importorskip("psycopg2") 3500s engine = sqlalchemy.create_engine( 3500s "postgresql+psycopg2://postgres:postgres@localhost:5432/pandas", 3500s poolclass=sqlalchemy.pool.NullPool, 3500s ) 3500s > insp = sqlalchemy.inspect(engine) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:438: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s subject = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s raiseerr = True 3500s 3500s def inspect(subject, raiseerr=True): 3500s """Produce an inspection object for the given target. 3500s 3500s The returned value in some cases may be the 3500s same object as the one given, such as if a 3500s :class:`_orm.Mapper` object is passed. In other 3500s cases, it will be an instance of the registered 3500s inspection type for the given object, such as 3500s if an :class:`_engine.Engine` is passed, an 3500s :class:`_reflection.Inspector` object is returned. 3500s 3500s :param subject: the subject to be inspected. 3500s :param raiseerr: When ``True``, if the given subject 3500s does not 3500s correspond to a known SQLAlchemy inspected type, 3500s :class:`sqlalchemy.exc.NoInspectionAvailable` 3500s is raised. If ``False``, ``None`` is returned. 3500s 3500s """ 3500s type_ = type(subject) 3500s for cls in type_.__mro__: 3500s if cls in _registrars: 3500s reg = _registrars[cls] 3500s if reg is True: 3500s return subject 3500s > ret = reg(subject) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:64: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s @inspection._inspects(Engine) 3500s def _engine_insp(bind): 3500s > return Inspector._construct(Inspector._init_engine, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:182: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s init = 3500s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s @classmethod 3500s def _construct(cls, init, bind): 3500s 3500s if hasattr(bind.dialect, "inspector"): 3500s cls = bind.dialect.inspector 3500s 3500s self = cls.__new__(cls) 3500s > init(self, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:117: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s def _init_engine(self, engine): 3500s self.bind = self.engine = engine 3500s > engine.connect().close() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:128: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s close_with_result = False 3500s 3500s def connect(self, close_with_result=False): 3500s """Return a new :class:`_engine.Connection` object. 3500s 3500s The :class:`_engine.Connection` object is a facade that uses a DBAPI 3500s connection internally in order to communicate with the database. This 3500s connection is procured from the connection-holding :class:`_pool.Pool` 3500s referenced by this :class:`_engine.Engine`. When the 3500s :meth:`_engine.Connection.close` method of the 3500s :class:`_engine.Connection` object 3500s is called, the underlying DBAPI connection is then returned to the 3500s connection pool, where it may be used again in a subsequent call to 3500s :meth:`_engine.Engine.connect`. 3500s 3500s """ 3500s 3500s > return self._connection_cls(self, close_with_result=close_with_result) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3325: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s connection = None, close_with_result = False, _branch_from = None 3500s _execution_options = None, _dispatch = None, _has_events = None 3500s _allow_revalidate = True 3500s 3500s def __init__( 3500s self, 3500s engine, 3500s connection=None, 3500s close_with_result=False, 3500s _branch_from=None, 3500s _execution_options=None, 3500s _dispatch=None, 3500s _has_events=None, 3500s _allow_revalidate=True, 3500s ): 3500s """Construct a new Connection.""" 3500s self.engine = engine 3500s self.dialect = engine.dialect 3500s self.__branch_from = _branch_from 3500s 3500s if _branch_from: 3500s # branching is always "from" the root connection 3500s assert _branch_from.__branch_from is None 3500s self._dbapi_connection = connection 3500s self._execution_options = _execution_options 3500s self._echo = _branch_from._echo 3500s self.should_close_with_result = False 3500s self.dispatch = _dispatch 3500s self._has_events = _branch_from._has_events 3500s else: 3500s self._dbapi_connection = ( 3500s connection 3500s if connection is not None 3500s > else engine.raw_connection() 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:96: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s _connection = None 3500s 3500s def raw_connection(self, _connection=None): 3500s """Return a "raw" DBAPI connection from the connection pool. 3500s 3500s The returned object is a proxied version of the DBAPI 3500s connection object used by the underlying driver in use. 3500s The object will have all the same behavior as the real DBAPI 3500s connection, except that its ``close()`` method will result in the 3500s connection being returned to the pool, rather than being closed 3500s for real. 3500s 3500s This method provides direct DBAPI connection access for 3500s special situations when the API provided by 3500s :class:`_engine.Connection` 3500s is not needed. When a :class:`_engine.Connection` object is already 3500s present, the DBAPI connection is available using 3500s the :attr:`_engine.Connection.connection` accessor. 3500s 3500s .. seealso:: 3500s 3500s :ref:`dbapi_connections` 3500s 3500s """ 3500s > return self._wrap_pool_connect(self.pool.connect, _connection) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3404: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s return fn() 3500s except dialect.dbapi.Error as e: 3500s if connection is None: 3500s > Connection._handle_dbapi_exception_noconnection( 3500s e, dialect, self 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3374: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s e = OperationalError('connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused\n\tIs the server running on that host and accepting TCP/IP connections?\n') 3500s dialect = 3500s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s @classmethod 3500s def _handle_dbapi_exception_noconnection(cls, e, dialect, engine): 3500s exc_info = sys.exc_info() 3500s 3500s is_disconnect = dialect.is_disconnect(e, None, None) 3500s 3500s should_wrap = isinstance(e, dialect.dbapi.Error) 3500s 3500s if should_wrap: 3500s sqlalchemy_exception = exc.DBAPIError.instance( 3500s None, 3500s None, 3500s e, 3500s dialect.dbapi.Error, 3500s hide_parameters=engine.hide_parameters, 3500s connection_invalidated=is_disconnect, 3500s ) 3500s else: 3500s sqlalchemy_exception = None 3500s 3500s newraise = None 3500s 3500s if engine._has_events: 3500s ctx = ExceptionContextImpl( 3500s e, 3500s sqlalchemy_exception, 3500s engine, 3500s None, 3500s None, 3500s None, 3500s None, 3500s None, 3500s is_disconnect, 3500s True, 3500s ) 3500s for fn in engine.dispatch.handle_error: 3500s try: 3500s # handler returns an exception; 3500s # call next handler in a chain 3500s per_fn = fn(ctx) 3500s if per_fn is not None: 3500s ctx.chained_exception = newraise = per_fn 3500s except Exception as _raised: 3500s # handler raises an exception - stop processing 3500s newraise = _raised 3500s break 3500s 3500s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 3500s sqlalchemy_exception.connection_invalidated = ( 3500s is_disconnect 3500s ) = ctx.is_disconnect 3500s 3500s if newraise: 3500s util.raise_(newraise, with_traceback=exc_info[2], from_=e) 3500s elif should_wrap: 3500s > util.raise_( 3500s sqlalchemy_exception, with_traceback=exc_info[2], from_=e 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2208: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s dsn = 'host=localhost user=postgres password=postgres port=5432 dbname=pandas' 3500s connection_factory = None, cursor_factory = None 3500s kwargs = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s kwasync = {} 3500s 3500s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 3500s """ 3500s Create a new database connection. 3500s 3500s The connection parameters can be specified as a string: 3500s 3500s conn = psycopg2.connect("dbname=test user=postgres password=secret") 3500s 3500s or using a set of keyword arguments: 3500s 3500s conn = psycopg2.connect(database="test", user="postgres", password="secret") 3500s 3500s Or as a mix of both. The basic connection parameters are: 3500s 3500s - *dbname*: the database name 3500s - *database*: the database name (only as keyword argument) 3500s - *user*: user name used to authenticate 3500s - *password*: password used to authenticate 3500s - *host*: database host address (defaults to UNIX socket if not provided) 3500s - *port*: connection port number (defaults to 5432 if not provided) 3500s 3500s Using the *connection_factory* parameter a different class or connections 3500s factory can be specified. It should be a callable object taking a dsn 3500s argument. 3500s 3500s Using the *cursor_factory* parameter, a new default cursor factory will be 3500s used by cursor(). 3500s 3500s Using *async*=True an asynchronous connection will be created. *async_* is 3500s a valid alias (for Python versions where ``async`` is a keyword). 3500s 3500s Any other keyword parameter will be passed to the underlying client 3500s library: the list of supported parameters depends on the library version. 3500s 3500s """ 3500s kwasync = {} 3500s if 'async' in kwargs: 3500s kwasync['async'] = kwargs.pop('async') 3500s if 'async_' in kwargs: 3500s kwasync['async_'] = kwargs.pop('async_') 3500s 3500s dsn = _ext.make_dsn(dsn, **kwargs) 3500s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 3500s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 3500s E Is the server running on that host and accepting TCP/IP connections? 3500s E 3500s E (Background on this error at: https://sqlalche.me/e/14/e3q8) 3500s 3500s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 3500s _____ test_copy_from_callable_insertion_method[2-postgresql_psycopg2_conn] _____ 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s dsn = 'host=localhost user=postgres password=postgres port=5432 dbname=pandas' 3500s connection_factory = None, cursor_factory = None 3500s kwargs = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s kwasync = {} 3500s 3500s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 3500s """ 3500s Create a new database connection. 3500s 3500s The connection parameters can be specified as a string: 3500s 3500s conn = psycopg2.connect("dbname=test user=postgres password=secret") 3500s 3500s or using a set of keyword arguments: 3500s 3500s conn = psycopg2.connect(database="test", user="postgres", password="secret") 3500s 3500s Or as a mix of both. The basic connection parameters are: 3500s 3500s - *dbname*: the database name 3500s - *database*: the database name (only as keyword argument) 3500s - *user*: user name used to authenticate 3500s - *password*: password used to authenticate 3500s - *host*: database host address (defaults to UNIX socket if not provided) 3500s - *port*: connection port number (defaults to 5432 if not provided) 3500s 3500s Using the *connection_factory* parameter a different class or connections 3500s factory can be specified. It should be a callable object taking a dsn 3500s argument. 3500s 3500s Using the *cursor_factory* parameter, a new default cursor factory will be 3500s used by cursor(). 3500s 3500s Using *async*=True an asynchronous connection will be created. *async_* is 3500s a valid alias (for Python versions where ``async`` is a keyword). 3500s 3500s Any other keyword parameter will be passed to the underlying client 3500s library: the list of supported parameters depends on the library version. 3500s 3500s """ 3500s kwasync = {} 3500s if 'async' in kwargs: 3500s kwasync['async'] = kwargs.pop('async') 3500s if 'async_' in kwargs: 3500s kwasync['async_'] = kwargs.pop('async_') 3500s 3500s dsn = _ext.make_dsn(dsn, **kwargs) 3500s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 3500s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 3500s E Is the server running on that host and accepting TCP/IP connections? 3500s 3500s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 3500s 3500s The above exception was the direct cause of the following exception: 3500s 3500s conn = 'postgresql_psycopg2_conn', expected_count = 2 3500s request = > 3500s 3500s @pytest.mark.db 3500s @pytest.mark.parametrize("conn", postgresql_connectable) 3500s @pytest.mark.parametrize("expected_count", [2, "Success!"]) 3500s def test_copy_from_callable_insertion_method(conn, expected_count, request): 3500s # GH 8953 3500s # Example in io.rst found under _io.sql.method 3500s # not available in sqlite, mysql 3500s def psql_insert_copy(table, conn, keys, data_iter): 3500s # gets a DBAPI connection that can provide a cursor 3500s dbapi_conn = conn.connection 3500s with dbapi_conn.cursor() as cur: 3500s s_buf = StringIO() 3500s writer = csv.writer(s_buf) 3500s writer.writerows(data_iter) 3500s s_buf.seek(0) 3500s 3500s columns = ", ".join([f'"{k}"' for k in keys]) 3500s if table.schema: 3500s table_name = f"{table.schema}.{table.name}" 3500s else: 3500s table_name = table.name 3500s 3500s sql_query = f"COPY {table_name} ({columns}) FROM STDIN WITH CSV" 3500s cur.copy_expert(sql=sql_query, file=s_buf) 3500s return expected_count 3500s 3500s > conn = request.getfixturevalue(conn) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:811: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'postgresql_psycopg2_conn' 3500s 3500s def getfixturevalue(self, argname: str) -> Any: 3500s """Dynamically run a named fixture function. 3500s 3500s Declaring fixtures via function argument is recommended where possible. 3500s But if you can only decide whether to use another fixture at test 3500s setup time, you may use this function to retrieve it inside a fixture 3500s or test function body. 3500s 3500s This method can be used during the test setup phase or the test run 3500s phase, but during the test teardown phase a fixture's value may not 3500s be available. 3500s 3500s :param argname: 3500s The fixture name. 3500s :raises pytest.FixtureLookupError: 3500s If the given fixture could not be found. 3500s """ 3500s > fixturedef = self._get_active_fixturedef(argname) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:585: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'postgresql_psycopg2_conn' 3500s 3500s def _get_active_fixturedef( 3500s self, argname: str 3500s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3500s try: 3500s return self._fixture_defs[argname] 3500s except KeyError: 3500s try: 3500s fixturedef = self._getnextfixturedef(argname) 3500s except FixtureLookupError: 3500s if argname == "request": 3500s cached_result = (self, [0], None) 3500s return PseudoFixtureDef(cached_result, Scope.Function) 3500s raise 3500s # Remove indent to prevent the python3 exception 3500s # from leaking into the call. 3500s > self._compute_fixture_value(fixturedef) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s fixturedef = 3500s 3500s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3500s """Create a SubRequest based on "self" and call the execute method 3500s of the given FixtureDef object. 3500s 3500s This will force the FixtureDef object to throw away any previous 3500s results and compute a new fixture value, which will be stored into 3500s the FixtureDef object itself. 3500s """ 3500s # prepare a subrequest object before calling fixture function 3500s # (latter managed by fixturedef) 3500s argname = fixturedef.argname 3500s funcitem = self._pyfuncitem 3500s scope = fixturedef._scope 3500s try: 3500s callspec = funcitem.callspec 3500s except AttributeError: 3500s callspec = None 3500s if callspec is not None and argname in callspec.params: 3500s param = callspec.params[argname] 3500s param_index = callspec.indices[argname] 3500s # If a parametrize invocation set a scope it will override 3500s # the static scope defined with the fixture function. 3500s with suppress(KeyError): 3500s scope = callspec._arg2scope[argname] 3500s else: 3500s param = NOTSET 3500s param_index = 0 3500s has_params = fixturedef.params is not None 3500s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3500s if has_params and fixtures_not_supported: 3500s msg = ( 3500s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3500s "Node id: {nodeid}\n" 3500s "Function type: {typename}" 3500s ).format( 3500s name=funcitem.name, 3500s nodeid=funcitem.nodeid, 3500s typename=type(funcitem).__name__, 3500s ) 3500s fail(msg, pytrace=False) 3500s if has_params: 3500s frame = inspect.stack()[3] 3500s frameinfo = inspect.getframeinfo(frame[0]) 3500s source_path = absolutepath(frameinfo.filename) 3500s source_lineno = frameinfo.lineno 3500s try: 3500s source_path_str = str( 3500s source_path.relative_to(funcitem.config.rootpath) 3500s ) 3500s except ValueError: 3500s source_path_str = str(source_path) 3500s msg = ( 3500s "The requested fixture has no parameter defined for test:\n" 3500s " {}\n\n" 3500s "Requested fixture '{}' defined in:\n{}" 3500s "\n\nRequested here:\n{}:{}".format( 3500s funcitem.nodeid, 3500s fixturedef.argname, 3500s getlocation(fixturedef.func, funcitem.config.rootpath), 3500s source_path_str, 3500s source_lineno, 3500s ) 3500s ) 3500s fail(msg, pytrace=False) 3500s 3500s subrequest = SubRequest( 3500s self, scope, param, param_index, fixturedef, _ispytest=True 3500s ) 3500s 3500s # Check if a higher-level scoped fixture accesses a lower level one. 3500s subrequest._check_scope(argname, self._scope, scope) 3500s try: 3500s # Call the fixture function. 3500s > fixturedef.execute(request=subrequest) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s request = > 3500s 3500s def execute(self, request: SubRequest) -> FixtureValue: 3500s # Get required arguments and register our own finish() 3500s # with their finalization. 3500s for argname in self.argnames: 3500s > fixturedef = request._get_active_fixturedef(argname) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1045: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'postgresql_psycopg2_engine' 3500s 3500s def _get_active_fixturedef( 3500s self, argname: str 3500s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3500s try: 3500s return self._fixture_defs[argname] 3500s except KeyError: 3500s try: 3500s fixturedef = self._getnextfixturedef(argname) 3500s except FixtureLookupError: 3500s if argname == "request": 3500s cached_result = (self, [0], None) 3500s return PseudoFixtureDef(cached_result, Scope.Function) 3500s raise 3500s # Remove indent to prevent the python3 exception 3500s # from leaking into the call. 3500s > self._compute_fixture_value(fixturedef) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s fixturedef = 3500s 3500s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3500s """Create a SubRequest based on "self" and call the execute method 3500s of the given FixtureDef object. 3500s 3500s This will force the FixtureDef object to throw away any previous 3500s results and compute a new fixture value, which will be stored into 3500s the FixtureDef object itself. 3500s """ 3500s # prepare a subrequest object before calling fixture function 3500s # (latter managed by fixturedef) 3500s argname = fixturedef.argname 3500s funcitem = self._pyfuncitem 3500s scope = fixturedef._scope 3500s try: 3500s callspec = funcitem.callspec 3500s except AttributeError: 3500s callspec = None 3500s if callspec is not None and argname in callspec.params: 3500s param = callspec.params[argname] 3500s param_index = callspec.indices[argname] 3500s # If a parametrize invocation set a scope it will override 3500s # the static scope defined with the fixture function. 3500s with suppress(KeyError): 3500s scope = callspec._arg2scope[argname] 3500s else: 3500s param = NOTSET 3500s param_index = 0 3500s has_params = fixturedef.params is not None 3500s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3500s if has_params and fixtures_not_supported: 3500s msg = ( 3500s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3500s "Node id: {nodeid}\n" 3500s "Function type: {typename}" 3500s ).format( 3500s name=funcitem.name, 3500s nodeid=funcitem.nodeid, 3500s typename=type(funcitem).__name__, 3500s ) 3500s fail(msg, pytrace=False) 3500s if has_params: 3500s frame = inspect.stack()[3] 3500s frameinfo = inspect.getframeinfo(frame[0]) 3500s source_path = absolutepath(frameinfo.filename) 3500s source_lineno = frameinfo.lineno 3500s try: 3500s source_path_str = str( 3500s source_path.relative_to(funcitem.config.rootpath) 3500s ) 3500s except ValueError: 3500s source_path_str = str(source_path) 3500s msg = ( 3500s "The requested fixture has no parameter defined for test:\n" 3500s " {}\n\n" 3500s "Requested fixture '{}' defined in:\n{}" 3500s "\n\nRequested here:\n{}:{}".format( 3500s funcitem.nodeid, 3500s fixturedef.argname, 3500s getlocation(fixturedef.func, funcitem.config.rootpath), 3500s source_path_str, 3500s source_lineno, 3500s ) 3500s ) 3500s fail(msg, pytrace=False) 3500s 3500s subrequest = SubRequest( 3500s self, scope, param, param_index, fixturedef, _ispytest=True 3500s ) 3500s 3500s # Check if a higher-level scoped fixture accesses a lower level one. 3500s subrequest._check_scope(argname, self._scope, scope) 3500s try: 3500s # Call the fixture function. 3500s > fixturedef.execute(request=subrequest) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s request = > 3500s 3500s def execute(self, request: SubRequest) -> FixtureValue: 3500s # Get required arguments and register our own finish() 3500s # with their finalization. 3500s for argname in self.argnames: 3500s fixturedef = request._get_active_fixturedef(argname) 3500s if argname != "request": 3500s # PseudoFixtureDef is only for "request". 3500s assert isinstance(fixturedef, FixtureDef) 3500s fixturedef.addfinalizer(functools.partial(self.finish, request=request)) 3500s 3500s my_cache_key = self.cache_key(request) 3500s if self.cached_result is not None: 3500s # note: comparison with `==` can fail (or be expensive) for e.g. 3500s # numpy arrays (#6497). 3500s cache_key = self.cached_result[1] 3500s if my_cache_key is cache_key: 3500s if self.cached_result[2] is not None: 3500s _, val, tb = self.cached_result[2] 3500s raise val.with_traceback(tb) 3500s else: 3500s result = self.cached_result[0] 3500s return result 3500s # We have a previous but differently parametrized fixture instance 3500s # so we need to tear it down before creating a new one. 3500s self.finish(request) 3500s assert self.cached_result is None 3500s 3500s ihook = request.node.ihook 3500s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1069: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s kwargs = {'fixturedef': , 'request': ...uest 'postgresql_psycopg2_engine' for >} 3500s firstresult = True 3500s 3500s def __call__(self, **kwargs: object) -> Any: 3500s """Call the hook. 3500s 3500s Only accepts keyword arguments, which should match the hook 3500s specification. 3500s 3500s Returns the result(s) of calling all registered plugins, see 3500s :ref:`calling`. 3500s """ 3500s assert ( 3500s not self.is_historic() 3500s ), "Cannot directly call a historic hook - use call_historic instead." 3500s self._verify_all_args_are_provided(kwargs) 3500s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 3500s # Copy because plugins may register other plugins during iteration (#438). 3500s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = <_pytest.config.PytestPluginManager object at 0xe9079168> 3500s hook_name = 'pytest_fixture_setup' 3500s methods = [>] 3500s kwargs = {'fixturedef': , 'request': ...uest 'postgresql_psycopg2_engine' for >} 3500s firstresult = True 3500s 3500s def _hookexec( 3500s self, 3500s hook_name: str, 3500s methods: Sequence[HookImpl], 3500s kwargs: Mapping[str, object], 3500s firstresult: bool, 3500s ) -> object | list[object]: 3500s # called from all hookcaller instances. 3500s # enable_tracing will set its own wrapping function at self._inner_hookexec 3500s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturedef = 3500s request = > 3500s 3500s def pytest_fixture_setup( 3500s fixturedef: FixtureDef[FixtureValue], request: SubRequest 3500s ) -> FixtureValue: 3500s """Execution of fixture setup.""" 3500s kwargs = {} 3500s for argname in fixturedef.argnames: 3500s fixdef = request._get_active_fixturedef(argname) 3500s assert fixdef.cached_result is not None 3500s result, arg_cache_key, exc = fixdef.cached_result 3500s request._check_scope(argname, request._scope, fixdef._scope) 3500s kwargs[argname] = result 3500s 3500s fixturefunc = resolve_fixture_function(fixturedef, request) 3500s my_cache_key = fixturedef.cache_key(request) 3500s try: 3500s > result = call_fixture_func(fixturefunc, request, kwargs) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1123: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturefunc = 3500s request = > 3500s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv'), 'types_data': [{'B... False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}]} 3500s 3500s def call_fixture_func( 3500s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 3500s ) -> FixtureValue: 3500s if is_generator(fixturefunc): 3500s fixturefunc = cast( 3500s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 3500s ) 3500s generator = fixturefunc(**kwargs) 3500s try: 3500s > fixture_result = next(generator) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:895: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s iris_path = PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv') 3500s types_data = [{'BoolCol': False, 'BoolColWithNull': False, 'DateCol': '2000-01-03 00:00:00', 'DateColWithTz': '2000-01-01 00:00:00-...: False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}] 3500s 3500s @pytest.fixture 3500s def postgresql_psycopg2_engine(iris_path, types_data): 3500s sqlalchemy = pytest.importorskip("sqlalchemy") 3500s pytest.importorskip("psycopg2") 3500s engine = sqlalchemy.create_engine( 3500s "postgresql+psycopg2://postgres:postgres@localhost:5432/pandas", 3500s poolclass=sqlalchemy.pool.NullPool, 3500s ) 3500s > insp = sqlalchemy.inspect(engine) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:438: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s subject = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s raiseerr = True 3500s 3500s def inspect(subject, raiseerr=True): 3500s """Produce an inspection object for the given target. 3500s 3500s The returned value in some cases may be the 3500s same object as the one given, such as if a 3500s :class:`_orm.Mapper` object is passed. In other 3500s cases, it will be an instance of the registered 3500s inspection type for the given object, such as 3500s if an :class:`_engine.Engine` is passed, an 3500s :class:`_reflection.Inspector` object is returned. 3500s 3500s :param subject: the subject to be inspected. 3500s :param raiseerr: When ``True``, if the given subject 3500s does not 3500s correspond to a known SQLAlchemy inspected type, 3500s :class:`sqlalchemy.exc.NoInspectionAvailable` 3500s is raised. If ``False``, ``None`` is returned. 3500s 3500s """ 3500s type_ = type(subject) 3500s for cls in type_.__mro__: 3500s if cls in _registrars: 3500s reg = _registrars[cls] 3500s if reg is True: 3500s return subject 3500s > ret = reg(subject) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:64: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s @inspection._inspects(Engine) 3500s def _engine_insp(bind): 3500s > return Inspector._construct(Inspector._init_engine, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:182: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s init = 3500s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s @classmethod 3500s def _construct(cls, init, bind): 3500s 3500s if hasattr(bind.dialect, "inspector"): 3500s cls = bind.dialect.inspector 3500s 3500s self = cls.__new__(cls) 3500s > init(self, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:117: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s def _init_engine(self, engine): 3500s self.bind = self.engine = engine 3500s > engine.connect().close() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:128: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s close_with_result = False 3500s 3500s def connect(self, close_with_result=False): 3500s """Return a new :class:`_engine.Connection` object. 3500s 3500s The :class:`_engine.Connection` object is a facade that uses a DBAPI 3500s connection internally in order to communicate with the database. This 3500s connection is procured from the connection-holding :class:`_pool.Pool` 3500s referenced by this :class:`_engine.Engine`. When the 3500s :meth:`_engine.Connection.close` method of the 3500s :class:`_engine.Connection` object 3500s is called, the underlying DBAPI connection is then returned to the 3500s connection pool, where it may be used again in a subsequent call to 3500s :meth:`_engine.Engine.connect`. 3500s 3500s """ 3500s 3500s > return self._connection_cls(self, close_with_result=close_with_result) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3325: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s connection = None, close_with_result = False, _branch_from = None 3500s _execution_options = None, _dispatch = None, _has_events = None 3500s _allow_revalidate = True 3500s 3500s def __init__( 3500s self, 3500s engine, 3500s connection=None, 3500s close_with_result=False, 3500s _branch_from=None, 3500s _execution_options=None, 3500s _dispatch=None, 3500s _has_events=None, 3500s _allow_revalidate=True, 3500s ): 3500s """Construct a new Connection.""" 3500s self.engine = engine 3500s self.dialect = engine.dialect 3500s self.__branch_from = _branch_from 3500s 3500s if _branch_from: 3500s # branching is always "from" the root connection 3500s assert _branch_from.__branch_from is None 3500s self._dbapi_connection = connection 3500s self._execution_options = _execution_options 3500s self._echo = _branch_from._echo 3500s self.should_close_with_result = False 3500s self.dispatch = _dispatch 3500s self._has_events = _branch_from._has_events 3500s else: 3500s self._dbapi_connection = ( 3500s connection 3500s if connection is not None 3500s > else engine.raw_connection() 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:96: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s _connection = None 3500s 3500s def raw_connection(self, _connection=None): 3500s """Return a "raw" DBAPI connection from the connection pool. 3500s 3500s The returned object is a proxied version of the DBAPI 3500s connection object used by the underlying driver in use. 3500s The object will have all the same behavior as the real DBAPI 3500s connection, except that its ``close()`` method will result in the 3500s connection being returned to the pool, rather than being closed 3500s for real. 3500s 3500s This method provides direct DBAPI connection access for 3500s special situations when the API provided by 3500s :class:`_engine.Connection` 3500s is not needed. When a :class:`_engine.Connection` object is already 3500s present, the DBAPI connection is available using 3500s the :attr:`_engine.Connection.connection` accessor. 3500s 3500s .. seealso:: 3500s 3500s :ref:`dbapi_connections` 3500s 3500s """ 3500s > return self._wrap_pool_connect(self.pool.connect, _connection) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3404: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s return fn() 3500s except dialect.dbapi.Error as e: 3500s if connection is None: 3500s > Connection._handle_dbapi_exception_noconnection( 3500s e, dialect, self 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3374: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s e = OperationalError('connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused\n\tIs the server running on that host and accepting TCP/IP connections?\n') 3500s dialect = 3500s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s @classmethod 3500s def _handle_dbapi_exception_noconnection(cls, e, dialect, engine): 3500s exc_info = sys.exc_info() 3500s 3500s is_disconnect = dialect.is_disconnect(e, None, None) 3500s 3500s should_wrap = isinstance(e, dialect.dbapi.Error) 3500s 3500s if should_wrap: 3500s sqlalchemy_exception = exc.DBAPIError.instance( 3500s None, 3500s None, 3500s e, 3500s dialect.dbapi.Error, 3500s hide_parameters=engine.hide_parameters, 3500s connection_invalidated=is_disconnect, 3500s ) 3500s else: 3500s sqlalchemy_exception = None 3500s 3500s newraise = None 3500s 3500s if engine._has_events: 3500s ctx = ExceptionContextImpl( 3500s e, 3500s sqlalchemy_exception, 3500s engine, 3500s None, 3500s None, 3500s None, 3500s None, 3500s None, 3500s is_disconnect, 3500s True, 3500s ) 3500s for fn in engine.dispatch.handle_error: 3500s try: 3500s # handler returns an exception; 3500s # call next handler in a chain 3500s per_fn = fn(ctx) 3500s if per_fn is not None: 3500s ctx.chained_exception = newraise = per_fn 3500s except Exception as _raised: 3500s # handler raises an exception - stop processing 3500s newraise = _raised 3500s break 3500s 3500s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 3500s sqlalchemy_exception.connection_invalidated = ( 3500s is_disconnect 3500s ) = ctx.is_disconnect 3500s 3500s if newraise: 3500s util.raise_(newraise, with_traceback=exc_info[2], from_=e) 3500s elif should_wrap: 3500s > util.raise_( 3500s sqlalchemy_exception, with_traceback=exc_info[2], from_=e 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2208: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s dsn = 'host=localhost user=postgres password=postgres port=5432 dbname=pandas' 3500s connection_factory = None, cursor_factory = None 3500s kwargs = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s kwasync = {} 3500s 3500s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 3500s """ 3500s Create a new database connection. 3500s 3500s The connection parameters can be specified as a string: 3500s 3500s conn = psycopg2.connect("dbname=test user=postgres password=secret") 3500s 3500s or using a set of keyword arguments: 3500s 3500s conn = psycopg2.connect(database="test", user="postgres", password="secret") 3500s 3500s Or as a mix of both. The basic connection parameters are: 3500s 3500s - *dbname*: the database name 3500s - *database*: the database name (only as keyword argument) 3500s - *user*: user name used to authenticate 3500s - *password*: password used to authenticate 3500s - *host*: database host address (defaults to UNIX socket if not provided) 3500s - *port*: connection port number (defaults to 5432 if not provided) 3500s 3500s Using the *connection_factory* parameter a different class or connections 3500s factory can be specified. It should be a callable object taking a dsn 3500s argument. 3500s 3500s Using the *cursor_factory* parameter, a new default cursor factory will be 3500s used by cursor(). 3500s 3500s Using *async*=True an asynchronous connection will be created. *async_* is 3500s a valid alias (for Python versions where ``async`` is a keyword). 3500s 3500s Any other keyword parameter will be passed to the underlying client 3500s library: the list of supported parameters depends on the library version. 3500s 3500s """ 3500s kwasync = {} 3500s if 'async' in kwargs: 3500s kwasync['async'] = kwargs.pop('async') 3500s if 'async_' in kwargs: 3500s kwasync['async_'] = kwargs.pop('async_') 3500s 3500s dsn = _ext.make_dsn(dsn, **kwargs) 3500s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 3500s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 3500s E Is the server running on that host and accepting TCP/IP connections? 3500s E 3500s E (Background on this error at: https://sqlalche.me/e/14/e3q8) 3500s 3500s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 3500s _ test_copy_from_callable_insertion_method[Success!-postgresql_psycopg2_engine] _ 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s dsn = 'host=localhost user=postgres password=postgres port=5432 dbname=pandas' 3500s connection_factory = None, cursor_factory = None 3500s kwargs = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s kwasync = {} 3500s 3500s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 3500s """ 3500s Create a new database connection. 3500s 3500s The connection parameters can be specified as a string: 3500s 3500s conn = psycopg2.connect("dbname=test user=postgres password=secret") 3500s 3500s or using a set of keyword arguments: 3500s 3500s conn = psycopg2.connect(database="test", user="postgres", password="secret") 3500s 3500s Or as a mix of both. The basic connection parameters are: 3500s 3500s - *dbname*: the database name 3500s - *database*: the database name (only as keyword argument) 3500s - *user*: user name used to authenticate 3500s - *password*: password used to authenticate 3500s - *host*: database host address (defaults to UNIX socket if not provided) 3500s - *port*: connection port number (defaults to 5432 if not provided) 3500s 3500s Using the *connection_factory* parameter a different class or connections 3500s factory can be specified. It should be a callable object taking a dsn 3500s argument. 3500s 3500s Using the *cursor_factory* parameter, a new default cursor factory will be 3500s used by cursor(). 3500s 3500s Using *async*=True an asynchronous connection will be created. *async_* is 3500s a valid alias (for Python versions where ``async`` is a keyword). 3500s 3500s Any other keyword parameter will be passed to the underlying client 3500s library: the list of supported parameters depends on the library version. 3500s 3500s """ 3500s kwasync = {} 3500s if 'async' in kwargs: 3500s kwasync['async'] = kwargs.pop('async') 3500s if 'async_' in kwargs: 3500s kwasync['async_'] = kwargs.pop('async_') 3500s 3500s dsn = _ext.make_dsn(dsn, **kwargs) 3500s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 3500s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 3500s E Is the server running on that host and accepting TCP/IP connections? 3500s 3500s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 3500s 3500s The above exception was the direct cause of the following exception: 3500s 3500s conn = 'postgresql_psycopg2_engine', expected_count = 'Success!' 3500s request = > 3500s 3500s @pytest.mark.db 3500s @pytest.mark.parametrize("conn", postgresql_connectable) 3500s @pytest.mark.parametrize("expected_count", [2, "Success!"]) 3500s def test_copy_from_callable_insertion_method(conn, expected_count, request): 3500s # GH 8953 3500s # Example in io.rst found under _io.sql.method 3500s # not available in sqlite, mysql 3500s def psql_insert_copy(table, conn, keys, data_iter): 3500s # gets a DBAPI connection that can provide a cursor 3500s dbapi_conn = conn.connection 3500s with dbapi_conn.cursor() as cur: 3500s s_buf = StringIO() 3500s writer = csv.writer(s_buf) 3500s writer.writerows(data_iter) 3500s s_buf.seek(0) 3500s 3500s columns = ", ".join([f'"{k}"' for k in keys]) 3500s if table.schema: 3500s table_name = f"{table.schema}.{table.name}" 3500s else: 3500s table_name = table.name 3500s 3500s sql_query = f"COPY {table_name} ({columns}) FROM STDIN WITH CSV" 3500s cur.copy_expert(sql=sql_query, file=s_buf) 3500s return expected_count 3500s 3500s > conn = request.getfixturevalue(conn) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:811: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'postgresql_psycopg2_engine' 3500s 3500s def getfixturevalue(self, argname: str) -> Any: 3500s """Dynamically run a named fixture function. 3500s 3500s Declaring fixtures via function argument is recommended where possible. 3500s But if you can only decide whether to use another fixture at test 3500s setup time, you may use this function to retrieve it inside a fixture 3500s or test function body. 3500s 3500s This method can be used during the test setup phase or the test run 3500s phase, but during the test teardown phase a fixture's value may not 3500s be available. 3500s 3500s :param argname: 3500s The fixture name. 3500s :raises pytest.FixtureLookupError: 3500s If the given fixture could not be found. 3500s """ 3500s > fixturedef = self._get_active_fixturedef(argname) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:585: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'postgresql_psycopg2_engine' 3500s 3500s def _get_active_fixturedef( 3500s self, argname: str 3500s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3500s try: 3500s return self._fixture_defs[argname] 3500s except KeyError: 3500s try: 3500s fixturedef = self._getnextfixturedef(argname) 3500s except FixtureLookupError: 3500s if argname == "request": 3500s cached_result = (self, [0], None) 3500s return PseudoFixtureDef(cached_result, Scope.Function) 3500s raise 3500s # Remove indent to prevent the python3 exception 3500s # from leaking into the call. 3500s > self._compute_fixture_value(fixturedef) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s fixturedef = 3500s 3500s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3500s """Create a SubRequest based on "self" and call the execute method 3500s of the given FixtureDef object. 3500s 3500s This will force the FixtureDef object to throw away any previous 3500s results and compute a new fixture value, which will be stored into 3500s the FixtureDef object itself. 3500s """ 3500s # prepare a subrequest object before calling fixture function 3500s # (latter managed by fixturedef) 3500s argname = fixturedef.argname 3500s funcitem = self._pyfuncitem 3500s scope = fixturedef._scope 3500s try: 3500s callspec = funcitem.callspec 3500s except AttributeError: 3500s callspec = None 3500s if callspec is not None and argname in callspec.params: 3500s param = callspec.params[argname] 3500s param_index = callspec.indices[argname] 3500s # If a parametrize invocation set a scope it will override 3500s # the static scope defined with the fixture function. 3500s with suppress(KeyError): 3500s scope = callspec._arg2scope[argname] 3500s else: 3500s param = NOTSET 3500s param_index = 0 3500s has_params = fixturedef.params is not None 3500s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3500s if has_params and fixtures_not_supported: 3500s msg = ( 3500s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3500s "Node id: {nodeid}\n" 3500s "Function type: {typename}" 3500s ).format( 3500s name=funcitem.name, 3500s nodeid=funcitem.nodeid, 3500s typename=type(funcitem).__name__, 3500s ) 3500s fail(msg, pytrace=False) 3500s if has_params: 3500s frame = inspect.stack()[3] 3500s frameinfo = inspect.getframeinfo(frame[0]) 3500s source_path = absolutepath(frameinfo.filename) 3500s source_lineno = frameinfo.lineno 3500s try: 3500s source_path_str = str( 3500s source_path.relative_to(funcitem.config.rootpath) 3500s ) 3500s except ValueError: 3500s source_path_str = str(source_path) 3500s msg = ( 3500s "The requested fixture has no parameter defined for test:\n" 3500s " {}\n\n" 3500s "Requested fixture '{}' defined in:\n{}" 3500s "\n\nRequested here:\n{}:{}".format( 3500s funcitem.nodeid, 3500s fixturedef.argname, 3500s getlocation(fixturedef.func, funcitem.config.rootpath), 3500s source_path_str, 3500s source_lineno, 3500s ) 3500s ) 3500s fail(msg, pytrace=False) 3500s 3500s subrequest = SubRequest( 3500s self, scope, param, param_index, fixturedef, _ispytest=True 3500s ) 3500s 3500s # Check if a higher-level scoped fixture accesses a lower level one. 3500s subrequest._check_scope(argname, self._scope, scope) 3500s try: 3500s # Call the fixture function. 3500s > fixturedef.execute(request=subrequest) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s request = > 3500s 3500s def execute(self, request: SubRequest) -> FixtureValue: 3500s # Get required arguments and register our own finish() 3500s # with their finalization. 3500s for argname in self.argnames: 3500s fixturedef = request._get_active_fixturedef(argname) 3500s if argname != "request": 3500s # PseudoFixtureDef is only for "request". 3500s assert isinstance(fixturedef, FixtureDef) 3500s fixturedef.addfinalizer(functools.partial(self.finish, request=request)) 3500s 3500s my_cache_key = self.cache_key(request) 3500s if self.cached_result is not None: 3500s # note: comparison with `==` can fail (or be expensive) for e.g. 3500s # numpy arrays (#6497). 3500s cache_key = self.cached_result[1] 3500s if my_cache_key is cache_key: 3500s if self.cached_result[2] is not None: 3500s _, val, tb = self.cached_result[2] 3500s raise val.with_traceback(tb) 3500s else: 3500s result = self.cached_result[0] 3500s return result 3500s # We have a previous but differently parametrized fixture instance 3500s # so we need to tear it down before creating a new one. 3500s self.finish(request) 3500s assert self.cached_result is None 3500s 3500s ihook = request.node.ihook 3500s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1069: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s kwargs = {'fixturedef': , 'request': ...tgresql_psycopg2_engine' for >} 3500s firstresult = True 3500s 3500s def __call__(self, **kwargs: object) -> Any: 3500s """Call the hook. 3500s 3500s Only accepts keyword arguments, which should match the hook 3500s specification. 3500s 3500s Returns the result(s) of calling all registered plugins, see 3500s :ref:`calling`. 3500s """ 3500s assert ( 3500s not self.is_historic() 3500s ), "Cannot directly call a historic hook - use call_historic instead." 3500s self._verify_all_args_are_provided(kwargs) 3500s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 3500s # Copy because plugins may register other plugins during iteration (#438). 3500s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = <_pytest.config.PytestPluginManager object at 0xe9079168> 3500s hook_name = 'pytest_fixture_setup' 3500s methods = [>] 3500s kwargs = {'fixturedef': , 'request': ...tgresql_psycopg2_engine' for >} 3500s firstresult = True 3500s 3500s def _hookexec( 3500s self, 3500s hook_name: str, 3500s methods: Sequence[HookImpl], 3500s kwargs: Mapping[str, object], 3500s firstresult: bool, 3500s ) -> object | list[object]: 3500s # called from all hookcaller instances. 3500s # enable_tracing will set its own wrapping function at self._inner_hookexec 3500s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturedef = 3500s request = > 3500s 3500s def pytest_fixture_setup( 3500s fixturedef: FixtureDef[FixtureValue], request: SubRequest 3500s ) -> FixtureValue: 3500s """Execution of fixture setup.""" 3500s kwargs = {} 3500s for argname in fixturedef.argnames: 3500s fixdef = request._get_active_fixturedef(argname) 3500s assert fixdef.cached_result is not None 3500s result, arg_cache_key, exc = fixdef.cached_result 3500s request._check_scope(argname, request._scope, fixdef._scope) 3500s kwargs[argname] = result 3500s 3500s fixturefunc = resolve_fixture_function(fixturedef, request) 3500s my_cache_key = fixturedef.cache_key(request) 3500s try: 3500s > result = call_fixture_func(fixturefunc, request, kwargs) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1123: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturefunc = 3500s request = > 3500s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv'), 'types_data': [{'B... False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}]} 3500s 3500s def call_fixture_func( 3500s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 3500s ) -> FixtureValue: 3500s if is_generator(fixturefunc): 3500s fixturefunc = cast( 3500s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 3500s ) 3500s generator = fixturefunc(**kwargs) 3500s try: 3500s > fixture_result = next(generator) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:895: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s iris_path = PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv') 3500s types_data = [{'BoolCol': False, 'BoolColWithNull': False, 'DateCol': '2000-01-03 00:00:00', 'DateColWithTz': '2000-01-01 00:00:00-...: False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}] 3500s 3500s @pytest.fixture 3500s def postgresql_psycopg2_engine(iris_path, types_data): 3500s sqlalchemy = pytest.importorskip("sqlalchemy") 3500s pytest.importorskip("psycopg2") 3500s engine = sqlalchemy.create_engine( 3500s "postgresql+psycopg2://postgres:postgres@localhost:5432/pandas", 3500s poolclass=sqlalchemy.pool.NullPool, 3500s ) 3500s > insp = sqlalchemy.inspect(engine) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:438: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s subject = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s raiseerr = True 3500s 3500s def inspect(subject, raiseerr=True): 3500s """Produce an inspection object for the given target. 3500s 3500s The returned value in some cases may be the 3500s same object as the one given, such as if a 3500s :class:`_orm.Mapper` object is passed. In other 3500s cases, it will be an instance of the registered 3500s inspection type for the given object, such as 3500s if an :class:`_engine.Engine` is passed, an 3500s :class:`_reflection.Inspector` object is returned. 3500s 3500s :param subject: the subject to be inspected. 3500s :param raiseerr: When ``True``, if the given subject 3500s does not 3500s correspond to a known SQLAlchemy inspected type, 3500s :class:`sqlalchemy.exc.NoInspectionAvailable` 3500s is raised. If ``False``, ``None`` is returned. 3500s 3500s """ 3500s type_ = type(subject) 3500s for cls in type_.__mro__: 3500s if cls in _registrars: 3500s reg = _registrars[cls] 3500s if reg is True: 3500s return subject 3500s > ret = reg(subject) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:64: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s @inspection._inspects(Engine) 3500s def _engine_insp(bind): 3500s > return Inspector._construct(Inspector._init_engine, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:182: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s init = 3500s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s @classmethod 3500s def _construct(cls, init, bind): 3500s 3500s if hasattr(bind.dialect, "inspector"): 3500s cls = bind.dialect.inspector 3500s 3500s self = cls.__new__(cls) 3500s > init(self, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:117: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s def _init_engine(self, engine): 3500s self.bind = self.engine = engine 3500s > engine.connect().close() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:128: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s close_with_result = False 3500s 3500s def connect(self, close_with_result=False): 3500s """Return a new :class:`_engine.Connection` object. 3500s 3500s The :class:`_engine.Connection` object is a facade that uses a DBAPI 3500s connection internally in order to communicate with the database. This 3500s connection is procured from the connection-holding :class:`_pool.Pool` 3500s referenced by this :class:`_engine.Engine`. When the 3500s :meth:`_engine.Connection.close` method of the 3500s :class:`_engine.Connection` object 3500s is called, the underlying DBAPI connection is then returned to the 3500s connection pool, where it may be used again in a subsequent call to 3500s :meth:`_engine.Engine.connect`. 3500s 3500s """ 3500s 3500s > return self._connection_cls(self, close_with_result=close_with_result) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3325: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s connection = None, close_with_result = False, _branch_from = None 3500s _execution_options = None, _dispatch = None, _has_events = None 3500s _allow_revalidate = True 3500s 3500s def __init__( 3500s self, 3500s engine, 3500s connection=None, 3500s close_with_result=False, 3500s _branch_from=None, 3500s _execution_options=None, 3500s _dispatch=None, 3500s _has_events=None, 3500s _allow_revalidate=True, 3500s ): 3500s """Construct a new Connection.""" 3500s self.engine = engine 3500s self.dialect = engine.dialect 3500s self.__branch_from = _branch_from 3500s 3500s if _branch_from: 3500s # branching is always "from" the root connection 3500s assert _branch_from.__branch_from is None 3500s self._dbapi_connection = connection 3500s self._execution_options = _execution_options 3500s self._echo = _branch_from._echo 3500s self.should_close_with_result = False 3500s self.dispatch = _dispatch 3500s self._has_events = _branch_from._has_events 3500s else: 3500s self._dbapi_connection = ( 3500s connection 3500s if connection is not None 3500s > else engine.raw_connection() 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:96: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s _connection = None 3500s 3500s def raw_connection(self, _connection=None): 3500s """Return a "raw" DBAPI connection from the connection pool. 3500s 3500s The returned object is a proxied version of the DBAPI 3500s connection object used by the underlying driver in use. 3500s The object will have all the same behavior as the real DBAPI 3500s connection, except that its ``close()`` method will result in the 3500s connection being returned to the pool, rather than being closed 3500s for real. 3500s 3500s This method provides direct DBAPI connection access for 3500s special situations when the API provided by 3500s :class:`_engine.Connection` 3500s is not needed. When a :class:`_engine.Connection` object is already 3500s present, the DBAPI connection is available using 3500s the :attr:`_engine.Connection.connection` accessor. 3500s 3500s .. seealso:: 3500s 3500s :ref:`dbapi_connections` 3500s 3500s """ 3500s > return self._wrap_pool_connect(self.pool.connect, _connection) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3404: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s return fn() 3500s except dialect.dbapi.Error as e: 3500s if connection is None: 3500s > Connection._handle_dbapi_exception_noconnection( 3500s e, dialect, self 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3374: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s e = OperationalError('connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused\n\tIs the server running on that host and accepting TCP/IP connections?\n') 3500s dialect = 3500s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s @classmethod 3500s def _handle_dbapi_exception_noconnection(cls, e, dialect, engine): 3500s exc_info = sys.exc_info() 3500s 3500s is_disconnect = dialect.is_disconnect(e, None, None) 3500s 3500s should_wrap = isinstance(e, dialect.dbapi.Error) 3500s 3500s if should_wrap: 3500s sqlalchemy_exception = exc.DBAPIError.instance( 3500s None, 3500s None, 3500s e, 3500s dialect.dbapi.Error, 3500s hide_parameters=engine.hide_parameters, 3500s connection_invalidated=is_disconnect, 3500s ) 3500s else: 3500s sqlalchemy_exception = None 3500s 3500s newraise = None 3500s 3500s if engine._has_events: 3500s ctx = ExceptionContextImpl( 3500s e, 3500s sqlalchemy_exception, 3500s engine, 3500s None, 3500s None, 3500s None, 3500s None, 3500s None, 3500s is_disconnect, 3500s True, 3500s ) 3500s for fn in engine.dispatch.handle_error: 3500s try: 3500s # handler returns an exception; 3500s # call next handler in a chain 3500s per_fn = fn(ctx) 3500s if per_fn is not None: 3500s ctx.chained_exception = newraise = per_fn 3500s except Exception as _raised: 3500s # handler raises an exception - stop processing 3500s newraise = _raised 3500s break 3500s 3500s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 3500s sqlalchemy_exception.connection_invalidated = ( 3500s is_disconnect 3500s ) = ctx.is_disconnect 3500s 3500s if newraise: 3500s util.raise_(newraise, with_traceback=exc_info[2], from_=e) 3500s elif should_wrap: 3500s > util.raise_( 3500s sqlalchemy_exception, with_traceback=exc_info[2], from_=e 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2208: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s dsn = 'host=localhost user=postgres password=postgres port=5432 dbname=pandas' 3500s connection_factory = None, cursor_factory = None 3500s kwargs = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s kwasync = {} 3500s 3500s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 3500s """ 3500s Create a new database connection. 3500s 3500s The connection parameters can be specified as a string: 3500s 3500s conn = psycopg2.connect("dbname=test user=postgres password=secret") 3500s 3500s or using a set of keyword arguments: 3500s 3500s conn = psycopg2.connect(database="test", user="postgres", password="secret") 3500s 3500s Or as a mix of both. The basic connection parameters are: 3500s 3500s - *dbname*: the database name 3500s - *database*: the database name (only as keyword argument) 3500s - *user*: user name used to authenticate 3500s - *password*: password used to authenticate 3500s - *host*: database host address (defaults to UNIX socket if not provided) 3500s - *port*: connection port number (defaults to 5432 if not provided) 3500s 3500s Using the *connection_factory* parameter a different class or connections 3500s factory can be specified. It should be a callable object taking a dsn 3500s argument. 3500s 3500s Using the *cursor_factory* parameter, a new default cursor factory will be 3500s used by cursor(). 3500s 3500s Using *async*=True an asynchronous connection will be created. *async_* is 3500s a valid alias (for Python versions where ``async`` is a keyword). 3500s 3500s Any other keyword parameter will be passed to the underlying client 3500s library: the list of supported parameters depends on the library version. 3500s 3500s """ 3500s kwasync = {} 3500s if 'async' in kwargs: 3500s kwasync['async'] = kwargs.pop('async') 3500s if 'async_' in kwargs: 3500s kwasync['async_'] = kwargs.pop('async_') 3500s 3500s dsn = _ext.make_dsn(dsn, **kwargs) 3500s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 3500s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 3500s E Is the server running on that host and accepting TCP/IP connections? 3500s E 3500s E (Background on this error at: https://sqlalche.me/e/14/e3q8) 3500s 3500s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 3500s _ test_copy_from_callable_insertion_method[Success!-postgresql_psycopg2_conn] __ 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s dsn = 'host=localhost user=postgres password=postgres port=5432 dbname=pandas' 3500s connection_factory = None, cursor_factory = None 3500s kwargs = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s kwasync = {} 3500s 3500s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 3500s """ 3500s Create a new database connection. 3500s 3500s The connection parameters can be specified as a string: 3500s 3500s conn = psycopg2.connect("dbname=test user=postgres password=secret") 3500s 3500s or using a set of keyword arguments: 3500s 3500s conn = psycopg2.connect(database="test", user="postgres", password="secret") 3500s 3500s Or as a mix of both. The basic connection parameters are: 3500s 3500s - *dbname*: the database name 3500s - *database*: the database name (only as keyword argument) 3500s - *user*: user name used to authenticate 3500s - *password*: password used to authenticate 3500s - *host*: database host address (defaults to UNIX socket if not provided) 3500s - *port*: connection port number (defaults to 5432 if not provided) 3500s 3500s Using the *connection_factory* parameter a different class or connections 3500s factory can be specified. It should be a callable object taking a dsn 3500s argument. 3500s 3500s Using the *cursor_factory* parameter, a new default cursor factory will be 3500s used by cursor(). 3500s 3500s Using *async*=True an asynchronous connection will be created. *async_* is 3500s a valid alias (for Python versions where ``async`` is a keyword). 3500s 3500s Any other keyword parameter will be passed to the underlying client 3500s library: the list of supported parameters depends on the library version. 3500s 3500s """ 3500s kwasync = {} 3500s if 'async' in kwargs: 3500s kwasync['async'] = kwargs.pop('async') 3500s if 'async_' in kwargs: 3500s kwasync['async_'] = kwargs.pop('async_') 3500s 3500s dsn = _ext.make_dsn(dsn, **kwargs) 3500s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 3500s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 3500s E Is the server running on that host and accepting TCP/IP connections? 3500s 3500s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 3500s 3500s The above exception was the direct cause of the following exception: 3500s 3500s conn = 'postgresql_psycopg2_conn', expected_count = 'Success!' 3500s request = > 3500s 3500s @pytest.mark.db 3500s @pytest.mark.parametrize("conn", postgresql_connectable) 3500s @pytest.mark.parametrize("expected_count", [2, "Success!"]) 3500s def test_copy_from_callable_insertion_method(conn, expected_count, request): 3500s # GH 8953 3500s # Example in io.rst found under _io.sql.method 3500s # not available in sqlite, mysql 3500s def psql_insert_copy(table, conn, keys, data_iter): 3500s # gets a DBAPI connection that can provide a cursor 3500s dbapi_conn = conn.connection 3500s with dbapi_conn.cursor() as cur: 3500s s_buf = StringIO() 3500s writer = csv.writer(s_buf) 3500s writer.writerows(data_iter) 3500s s_buf.seek(0) 3500s 3500s columns = ", ".join([f'"{k}"' for k in keys]) 3500s if table.schema: 3500s table_name = f"{table.schema}.{table.name}" 3500s else: 3500s table_name = table.name 3500s 3500s sql_query = f"COPY {table_name} ({columns}) FROM STDIN WITH CSV" 3500s cur.copy_expert(sql=sql_query, file=s_buf) 3500s return expected_count 3500s 3500s > conn = request.getfixturevalue(conn) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:811: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'postgresql_psycopg2_conn' 3500s 3500s def getfixturevalue(self, argname: str) -> Any: 3500s """Dynamically run a named fixture function. 3500s 3500s Declaring fixtures via function argument is recommended where possible. 3500s But if you can only decide whether to use another fixture at test 3500s setup time, you may use this function to retrieve it inside a fixture 3500s or test function body. 3500s 3500s This method can be used during the test setup phase or the test run 3500s phase, but during the test teardown phase a fixture's value may not 3500s be available. 3500s 3500s :param argname: 3500s The fixture name. 3500s :raises pytest.FixtureLookupError: 3500s If the given fixture could not be found. 3500s """ 3500s > fixturedef = self._get_active_fixturedef(argname) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:585: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'postgresql_psycopg2_conn' 3500s 3500s def _get_active_fixturedef( 3500s self, argname: str 3500s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3500s try: 3500s return self._fixture_defs[argname] 3500s except KeyError: 3500s try: 3500s fixturedef = self._getnextfixturedef(argname) 3500s except FixtureLookupError: 3500s if argname == "request": 3500s cached_result = (self, [0], None) 3500s return PseudoFixtureDef(cached_result, Scope.Function) 3500s raise 3500s # Remove indent to prevent the python3 exception 3500s # from leaking into the call. 3500s > self._compute_fixture_value(fixturedef) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s fixturedef = 3500s 3500s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3500s """Create a SubRequest based on "self" and call the execute method 3500s of the given FixtureDef object. 3500s 3500s This will force the FixtureDef object to throw away any previous 3500s results and compute a new fixture value, which will be stored into 3500s the FixtureDef object itself. 3500s """ 3500s # prepare a subrequest object before calling fixture function 3500s # (latter managed by fixturedef) 3500s argname = fixturedef.argname 3500s funcitem = self._pyfuncitem 3500s scope = fixturedef._scope 3500s try: 3500s callspec = funcitem.callspec 3500s except AttributeError: 3500s callspec = None 3500s if callspec is not None and argname in callspec.params: 3500s param = callspec.params[argname] 3500s param_index = callspec.indices[argname] 3500s # If a parametrize invocation set a scope it will override 3500s # the static scope defined with the fixture function. 3500s with suppress(KeyError): 3500s scope = callspec._arg2scope[argname] 3500s else: 3500s param = NOTSET 3500s param_index = 0 3500s has_params = fixturedef.params is not None 3500s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3500s if has_params and fixtures_not_supported: 3500s msg = ( 3500s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3500s "Node id: {nodeid}\n" 3500s "Function type: {typename}" 3500s ).format( 3500s name=funcitem.name, 3500s nodeid=funcitem.nodeid, 3500s typename=type(funcitem).__name__, 3500s ) 3500s fail(msg, pytrace=False) 3500s if has_params: 3500s frame = inspect.stack()[3] 3500s frameinfo = inspect.getframeinfo(frame[0]) 3500s source_path = absolutepath(frameinfo.filename) 3500s source_lineno = frameinfo.lineno 3500s try: 3500s source_path_str = str( 3500s source_path.relative_to(funcitem.config.rootpath) 3500s ) 3500s except ValueError: 3500s source_path_str = str(source_path) 3500s msg = ( 3500s "The requested fixture has no parameter defined for test:\n" 3500s " {}\n\n" 3500s "Requested fixture '{}' defined in:\n{}" 3500s "\n\nRequested here:\n{}:{}".format( 3500s funcitem.nodeid, 3500s fixturedef.argname, 3500s getlocation(fixturedef.func, funcitem.config.rootpath), 3500s source_path_str, 3500s source_lineno, 3500s ) 3500s ) 3500s fail(msg, pytrace=False) 3500s 3500s subrequest = SubRequest( 3500s self, scope, param, param_index, fixturedef, _ispytest=True 3500s ) 3500s 3500s # Check if a higher-level scoped fixture accesses a lower level one. 3500s subrequest._check_scope(argname, self._scope, scope) 3500s try: 3500s # Call the fixture function. 3500s > fixturedef.execute(request=subrequest) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s request = > 3500s 3500s def execute(self, request: SubRequest) -> FixtureValue: 3500s # Get required arguments and register our own finish() 3500s # with their finalization. 3500s for argname in self.argnames: 3500s > fixturedef = request._get_active_fixturedef(argname) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1045: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'postgresql_psycopg2_engine' 3500s 3500s def _get_active_fixturedef( 3500s self, argname: str 3500s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3500s try: 3500s return self._fixture_defs[argname] 3500s except KeyError: 3500s try: 3500s fixturedef = self._getnextfixturedef(argname) 3500s except FixtureLookupError: 3500s if argname == "request": 3500s cached_result = (self, [0], None) 3500s return PseudoFixtureDef(cached_result, Scope.Function) 3500s raise 3500s # Remove indent to prevent the python3 exception 3500s # from leaking into the call. 3500s > self._compute_fixture_value(fixturedef) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s fixturedef = 3500s 3500s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3500s """Create a SubRequest based on "self" and call the execute method 3500s of the given FixtureDef object. 3500s 3500s This will force the FixtureDef object to throw away any previous 3500s results and compute a new fixture value, which will be stored into 3500s the FixtureDef object itself. 3500s """ 3500s # prepare a subrequest object before calling fixture function 3500s # (latter managed by fixturedef) 3500s argname = fixturedef.argname 3500s funcitem = self._pyfuncitem 3500s scope = fixturedef._scope 3500s try: 3500s callspec = funcitem.callspec 3500s except AttributeError: 3500s callspec = None 3500s if callspec is not None and argname in callspec.params: 3500s param = callspec.params[argname] 3500s param_index = callspec.indices[argname] 3500s # If a parametrize invocation set a scope it will override 3500s # the static scope defined with the fixture function. 3500s with suppress(KeyError): 3500s scope = callspec._arg2scope[argname] 3500s else: 3500s param = NOTSET 3500s param_index = 0 3500s has_params = fixturedef.params is not None 3500s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3500s if has_params and fixtures_not_supported: 3500s msg = ( 3500s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3500s "Node id: {nodeid}\n" 3500s "Function type: {typename}" 3500s ).format( 3500s name=funcitem.name, 3500s nodeid=funcitem.nodeid, 3500s typename=type(funcitem).__name__, 3500s ) 3500s fail(msg, pytrace=False) 3500s if has_params: 3500s frame = inspect.stack()[3] 3500s frameinfo = inspect.getframeinfo(frame[0]) 3500s source_path = absolutepath(frameinfo.filename) 3500s source_lineno = frameinfo.lineno 3500s try: 3500s source_path_str = str( 3500s source_path.relative_to(funcitem.config.rootpath) 3500s ) 3500s except ValueError: 3500s source_path_str = str(source_path) 3500s msg = ( 3500s "The requested fixture has no parameter defined for test:\n" 3500s " {}\n\n" 3500s "Requested fixture '{}' defined in:\n{}" 3500s "\n\nRequested here:\n{}:{}".format( 3500s funcitem.nodeid, 3500s fixturedef.argname, 3500s getlocation(fixturedef.func, funcitem.config.rootpath), 3500s source_path_str, 3500s source_lineno, 3500s ) 3500s ) 3500s fail(msg, pytrace=False) 3500s 3500s subrequest = SubRequest( 3500s self, scope, param, param_index, fixturedef, _ispytest=True 3500s ) 3500s 3500s # Check if a higher-level scoped fixture accesses a lower level one. 3500s subrequest._check_scope(argname, self._scope, scope) 3500s try: 3500s # Call the fixture function. 3500s > fixturedef.execute(request=subrequest) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s request = > 3500s 3500s def execute(self, request: SubRequest) -> FixtureValue: 3500s # Get required arguments and register our own finish() 3500s # with their finalization. 3500s for argname in self.argnames: 3500s fixturedef = request._get_active_fixturedef(argname) 3500s if argname != "request": 3500s # PseudoFixtureDef is only for "request". 3500s assert isinstance(fixturedef, FixtureDef) 3500s fixturedef.addfinalizer(functools.partial(self.finish, request=request)) 3500s 3500s my_cache_key = self.cache_key(request) 3500s if self.cached_result is not None: 3500s # note: comparison with `==` can fail (or be expensive) for e.g. 3500s # numpy arrays (#6497). 3500s cache_key = self.cached_result[1] 3500s if my_cache_key is cache_key: 3500s if self.cached_result[2] is not None: 3500s _, val, tb = self.cached_result[2] 3500s raise val.with_traceback(tb) 3500s else: 3500s result = self.cached_result[0] 3500s return result 3500s # We have a previous but differently parametrized fixture instance 3500s # so we need to tear it down before creating a new one. 3500s self.finish(request) 3500s assert self.cached_result is None 3500s 3500s ihook = request.node.ihook 3500s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1069: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s kwargs = {'fixturedef': , 'request': ...ostgresql_psycopg2_engine' for >} 3500s firstresult = True 3500s 3500s def __call__(self, **kwargs: object) -> Any: 3500s """Call the hook. 3500s 3500s Only accepts keyword arguments, which should match the hook 3500s specification. 3500s 3500s Returns the result(s) of calling all registered plugins, see 3500s :ref:`calling`. 3500s """ 3500s assert ( 3500s not self.is_historic() 3500s ), "Cannot directly call a historic hook - use call_historic instead." 3500s self._verify_all_args_are_provided(kwargs) 3500s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 3500s # Copy because plugins may register other plugins during iteration (#438). 3500s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = <_pytest.config.PytestPluginManager object at 0xe9079168> 3500s hook_name = 'pytest_fixture_setup' 3500s methods = [>] 3500s kwargs = {'fixturedef': , 'request': ...ostgresql_psycopg2_engine' for >} 3500s firstresult = True 3500s 3500s def _hookexec( 3500s self, 3500s hook_name: str, 3500s methods: Sequence[HookImpl], 3500s kwargs: Mapping[str, object], 3500s firstresult: bool, 3500s ) -> object | list[object]: 3500s # called from all hookcaller instances. 3500s # enable_tracing will set its own wrapping function at self._inner_hookexec 3500s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturedef = 3500s request = > 3500s 3500s def pytest_fixture_setup( 3500s fixturedef: FixtureDef[FixtureValue], request: SubRequest 3500s ) -> FixtureValue: 3500s """Execution of fixture setup.""" 3500s kwargs = {} 3500s for argname in fixturedef.argnames: 3500s fixdef = request._get_active_fixturedef(argname) 3500s assert fixdef.cached_result is not None 3500s result, arg_cache_key, exc = fixdef.cached_result 3500s request._check_scope(argname, request._scope, fixdef._scope) 3500s kwargs[argname] = result 3500s 3500s fixturefunc = resolve_fixture_function(fixturedef, request) 3500s my_cache_key = fixturedef.cache_key(request) 3500s try: 3500s > result = call_fixture_func(fixturefunc, request, kwargs) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1123: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturefunc = 3500s request = > 3500s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv'), 'types_data': [{'B... False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}]} 3500s 3500s def call_fixture_func( 3500s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 3500s ) -> FixtureValue: 3500s if is_generator(fixturefunc): 3500s fixturefunc = cast( 3500s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 3500s ) 3500s generator = fixturefunc(**kwargs) 3500s try: 3500s > fixture_result = next(generator) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:895: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s iris_path = PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv') 3500s types_data = [{'BoolCol': False, 'BoolColWithNull': False, 'DateCol': '2000-01-03 00:00:00', 'DateColWithTz': '2000-01-01 00:00:00-...: False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}] 3500s 3500s @pytest.fixture 3500s def postgresql_psycopg2_engine(iris_path, types_data): 3500s sqlalchemy = pytest.importorskip("sqlalchemy") 3500s pytest.importorskip("psycopg2") 3500s engine = sqlalchemy.create_engine( 3500s "postgresql+psycopg2://postgres:postgres@localhost:5432/pandas", 3500s poolclass=sqlalchemy.pool.NullPool, 3500s ) 3500s > insp = sqlalchemy.inspect(engine) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:438: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s subject = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s raiseerr = True 3500s 3500s def inspect(subject, raiseerr=True): 3500s """Produce an inspection object for the given target. 3500s 3500s The returned value in some cases may be the 3500s same object as the one given, such as if a 3500s :class:`_orm.Mapper` object is passed. In other 3500s cases, it will be an instance of the registered 3500s inspection type for the given object, such as 3500s if an :class:`_engine.Engine` is passed, an 3500s :class:`_reflection.Inspector` object is returned. 3500s 3500s :param subject: the subject to be inspected. 3500s :param raiseerr: When ``True``, if the given subject 3500s does not 3500s correspond to a known SQLAlchemy inspected type, 3500s :class:`sqlalchemy.exc.NoInspectionAvailable` 3500s is raised. If ``False``, ``None`` is returned. 3500s 3500s """ 3500s type_ = type(subject) 3500s for cls in type_.__mro__: 3500s if cls in _registrars: 3500s reg = _registrars[cls] 3500s if reg is True: 3500s return subject 3500s > ret = reg(subject) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:64: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s @inspection._inspects(Engine) 3500s def _engine_insp(bind): 3500s > return Inspector._construct(Inspector._init_engine, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:182: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s init = 3500s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s @classmethod 3500s def _construct(cls, init, bind): 3500s 3500s if hasattr(bind.dialect, "inspector"): 3500s cls = bind.dialect.inspector 3500s 3500s self = cls.__new__(cls) 3500s > init(self, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:117: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s def _init_engine(self, engine): 3500s self.bind = self.engine = engine 3500s > engine.connect().close() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:128: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s close_with_result = False 3500s 3500s def connect(self, close_with_result=False): 3500s """Return a new :class:`_engine.Connection` object. 3500s 3500s The :class:`_engine.Connection` object is a facade that uses a DBAPI 3500s connection internally in order to communicate with the database. This 3500s connection is procured from the connection-holding :class:`_pool.Pool` 3500s referenced by this :class:`_engine.Engine`. When the 3500s :meth:`_engine.Connection.close` method of the 3500s :class:`_engine.Connection` object 3500s is called, the underlying DBAPI connection is then returned to the 3500s connection pool, where it may be used again in a subsequent call to 3500s :meth:`_engine.Engine.connect`. 3500s 3500s """ 3500s 3500s > return self._connection_cls(self, close_with_result=close_with_result) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3325: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s connection = None, close_with_result = False, _branch_from = None 3500s _execution_options = None, _dispatch = None, _has_events = None 3500s _allow_revalidate = True 3500s 3500s def __init__( 3500s self, 3500s engine, 3500s connection=None, 3500s close_with_result=False, 3500s _branch_from=None, 3500s _execution_options=None, 3500s _dispatch=None, 3500s _has_events=None, 3500s _allow_revalidate=True, 3500s ): 3500s """Construct a new Connection.""" 3500s self.engine = engine 3500s self.dialect = engine.dialect 3500s self.__branch_from = _branch_from 3500s 3500s if _branch_from: 3500s # branching is always "from" the root connection 3500s assert _branch_from.__branch_from is None 3500s self._dbapi_connection = connection 3500s self._execution_options = _execution_options 3500s self._echo = _branch_from._echo 3500s self.should_close_with_result = False 3500s self.dispatch = _dispatch 3500s self._has_events = _branch_from._has_events 3500s else: 3500s self._dbapi_connection = ( 3500s connection 3500s if connection is not None 3500s > else engine.raw_connection() 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:96: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s _connection = None 3500s 3500s def raw_connection(self, _connection=None): 3500s """Return a "raw" DBAPI connection from the connection pool. 3500s 3500s The returned object is a proxied version of the DBAPI 3500s connection object used by the underlying driver in use. 3500s The object will have all the same behavior as the real DBAPI 3500s connection, except that its ``close()`` method will result in the 3500s connection being returned to the pool, rather than being closed 3500s for real. 3500s 3500s This method provides direct DBAPI connection access for 3500s special situations when the API provided by 3500s :class:`_engine.Connection` 3500s is not needed. When a :class:`_engine.Connection` object is already 3500s present, the DBAPI connection is available using 3500s the :attr:`_engine.Connection.connection` accessor. 3500s 3500s .. seealso:: 3500s 3500s :ref:`dbapi_connections` 3500s 3500s """ 3500s > return self._wrap_pool_connect(self.pool.connect, _connection) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3404: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s return fn() 3500s except dialect.dbapi.Error as e: 3500s if connection is None: 3500s > Connection._handle_dbapi_exception_noconnection( 3500s e, dialect, self 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3374: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s e = OperationalError('connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused\n\tIs the server running on that host and accepting TCP/IP connections?\n') 3500s dialect = 3500s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s @classmethod 3500s def _handle_dbapi_exception_noconnection(cls, e, dialect, engine): 3500s exc_info = sys.exc_info() 3500s 3500s is_disconnect = dialect.is_disconnect(e, None, None) 3500s 3500s should_wrap = isinstance(e, dialect.dbapi.Error) 3500s 3500s if should_wrap: 3500s sqlalchemy_exception = exc.DBAPIError.instance( 3500s None, 3500s None, 3500s e, 3500s dialect.dbapi.Error, 3500s hide_parameters=engine.hide_parameters, 3500s connection_invalidated=is_disconnect, 3500s ) 3500s else: 3500s sqlalchemy_exception = None 3500s 3500s newraise = None 3500s 3500s if engine._has_events: 3500s ctx = ExceptionContextImpl( 3500s e, 3500s sqlalchemy_exception, 3500s engine, 3500s None, 3500s None, 3500s None, 3500s None, 3500s None, 3500s is_disconnect, 3500s True, 3500s ) 3500s for fn in engine.dispatch.handle_error: 3500s try: 3500s # handler returns an exception; 3500s # call next handler in a chain 3500s per_fn = fn(ctx) 3500s if per_fn is not None: 3500s ctx.chained_exception = newraise = per_fn 3500s except Exception as _raised: 3500s # handler raises an exception - stop processing 3500s newraise = _raised 3500s break 3500s 3500s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 3500s sqlalchemy_exception.connection_invalidated = ( 3500s is_disconnect 3500s ) = ctx.is_disconnect 3500s 3500s if newraise: 3500s util.raise_(newraise, with_traceback=exc_info[2], from_=e) 3500s elif should_wrap: 3500s > util.raise_( 3500s sqlalchemy_exception, with_traceback=exc_info[2], from_=e 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2208: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s dsn = 'host=localhost user=postgres password=postgres port=5432 dbname=pandas' 3500s connection_factory = None, cursor_factory = None 3500s kwargs = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s kwasync = {} 3500s 3500s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 3500s """ 3500s Create a new database connection. 3500s 3500s The connection parameters can be specified as a string: 3500s 3500s conn = psycopg2.connect("dbname=test user=postgres password=secret") 3500s 3500s or using a set of keyword arguments: 3500s 3500s conn = psycopg2.connect(database="test", user="postgres", password="secret") 3500s 3500s Or as a mix of both. The basic connection parameters are: 3500s 3500s - *dbname*: the database name 3500s - *database*: the database name (only as keyword argument) 3500s - *user*: user name used to authenticate 3500s - *password*: password used to authenticate 3500s - *host*: database host address (defaults to UNIX socket if not provided) 3500s - *port*: connection port number (defaults to 5432 if not provided) 3500s 3500s Using the *connection_factory* parameter a different class or connections 3500s factory can be specified. It should be a callable object taking a dsn 3500s argument. 3500s 3500s Using the *cursor_factory* parameter, a new default cursor factory will be 3500s used by cursor(). 3500s 3500s Using *async*=True an asynchronous connection will be created. *async_* is 3500s a valid alias (for Python versions where ``async`` is a keyword). 3500s 3500s Any other keyword parameter will be passed to the underlying client 3500s library: the list of supported parameters depends on the library version. 3500s 3500s """ 3500s kwasync = {} 3500s if 'async' in kwargs: 3500s kwasync['async'] = kwargs.pop('async') 3500s if 'async_' in kwargs: 3500s kwasync['async_'] = kwargs.pop('async_') 3500s 3500s dsn = _ext.make_dsn(dsn, **kwargs) 3500s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 3500s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 3500s E Is the server running on that host and accepting TCP/IP connections? 3500s E 3500s E (Background on this error at: https://sqlalche.me/e/14/e3q8) 3500s 3500s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 3500s ___ test_insertion_method_on_conflict_do_nothing[postgresql_psycopg2_engine] ___ 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s dsn = 'host=localhost user=postgres password=postgres port=5432 dbname=pandas' 3500s connection_factory = None, cursor_factory = None 3500s kwargs = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s kwasync = {} 3500s 3500s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 3500s """ 3500s Create a new database connection. 3500s 3500s The connection parameters can be specified as a string: 3500s 3500s conn = psycopg2.connect("dbname=test user=postgres password=secret") 3500s 3500s or using a set of keyword arguments: 3500s 3500s conn = psycopg2.connect(database="test", user="postgres", password="secret") 3500s 3500s Or as a mix of both. The basic connection parameters are: 3500s 3500s - *dbname*: the database name 3500s - *database*: the database name (only as keyword argument) 3500s - *user*: user name used to authenticate 3500s - *password*: password used to authenticate 3500s - *host*: database host address (defaults to UNIX socket if not provided) 3500s - *port*: connection port number (defaults to 5432 if not provided) 3500s 3500s Using the *connection_factory* parameter a different class or connections 3500s factory can be specified. It should be a callable object taking a dsn 3500s argument. 3500s 3500s Using the *cursor_factory* parameter, a new default cursor factory will be 3500s used by cursor(). 3500s 3500s Using *async*=True an asynchronous connection will be created. *async_* is 3500s a valid alias (for Python versions where ``async`` is a keyword). 3500s 3500s Any other keyword parameter will be passed to the underlying client 3500s library: the list of supported parameters depends on the library version. 3500s 3500s """ 3500s kwasync = {} 3500s if 'async' in kwargs: 3500s kwasync['async'] = kwargs.pop('async') 3500s if 'async_' in kwargs: 3500s kwasync['async_'] = kwargs.pop('async_') 3500s 3500s dsn = _ext.make_dsn(dsn, **kwargs) 3500s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 3500s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 3500s E Is the server running on that host and accepting TCP/IP connections? 3500s 3500s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 3500s 3500s The above exception was the direct cause of the following exception: 3500s 3500s conn = 'postgresql_psycopg2_engine' 3500s request = > 3500s 3500s @pytest.mark.db 3500s @pytest.mark.parametrize("conn", postgresql_connectable) 3500s def test_insertion_method_on_conflict_do_nothing(conn, request): 3500s # GH 15988: Example in to_sql docstring 3500s > conn = request.getfixturevalue(conn) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:829: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'postgresql_psycopg2_engine' 3500s 3500s def getfixturevalue(self, argname: str) -> Any: 3500s """Dynamically run a named fixture function. 3500s 3500s Declaring fixtures via function argument is recommended where possible. 3500s But if you can only decide whether to use another fixture at test 3500s setup time, you may use this function to retrieve it inside a fixture 3500s or test function body. 3500s 3500s This method can be used during the test setup phase or the test run 3500s phase, but during the test teardown phase a fixture's value may not 3500s be available. 3500s 3500s :param argname: 3500s The fixture name. 3500s :raises pytest.FixtureLookupError: 3500s If the given fixture could not be found. 3500s """ 3500s > fixturedef = self._get_active_fixturedef(argname) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:585: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'postgresql_psycopg2_engine' 3500s 3500s def _get_active_fixturedef( 3500s self, argname: str 3500s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3500s try: 3500s return self._fixture_defs[argname] 3500s except KeyError: 3500s try: 3500s fixturedef = self._getnextfixturedef(argname) 3500s except FixtureLookupError: 3500s if argname == "request": 3500s cached_result = (self, [0], None) 3500s return PseudoFixtureDef(cached_result, Scope.Function) 3500s raise 3500s # Remove indent to prevent the python3 exception 3500s # from leaking into the call. 3500s > self._compute_fixture_value(fixturedef) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s fixturedef = 3500s 3500s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3500s """Create a SubRequest based on "self" and call the execute method 3500s of the given FixtureDef object. 3500s 3500s This will force the FixtureDef object to throw away any previous 3500s results and compute a new fixture value, which will be stored into 3500s the FixtureDef object itself. 3500s """ 3500s # prepare a subrequest object before calling fixture function 3500s # (latter managed by fixturedef) 3500s argname = fixturedef.argname 3500s funcitem = self._pyfuncitem 3500s scope = fixturedef._scope 3500s try: 3500s callspec = funcitem.callspec 3500s except AttributeError: 3500s callspec = None 3500s if callspec is not None and argname in callspec.params: 3500s param = callspec.params[argname] 3500s param_index = callspec.indices[argname] 3500s # If a parametrize invocation set a scope it will override 3500s # the static scope defined with the fixture function. 3500s with suppress(KeyError): 3500s scope = callspec._arg2scope[argname] 3500s else: 3500s param = NOTSET 3500s param_index = 0 3500s has_params = fixturedef.params is not None 3500s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3500s if has_params and fixtures_not_supported: 3500s msg = ( 3500s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3500s "Node id: {nodeid}\n" 3500s "Function type: {typename}" 3500s ).format( 3500s name=funcitem.name, 3500s nodeid=funcitem.nodeid, 3500s typename=type(funcitem).__name__, 3500s ) 3500s fail(msg, pytrace=False) 3500s if has_params: 3500s frame = inspect.stack()[3] 3500s frameinfo = inspect.getframeinfo(frame[0]) 3500s source_path = absolutepath(frameinfo.filename) 3500s source_lineno = frameinfo.lineno 3500s try: 3500s source_path_str = str( 3500s source_path.relative_to(funcitem.config.rootpath) 3500s ) 3500s except ValueError: 3500s source_path_str = str(source_path) 3500s msg = ( 3500s "The requested fixture has no parameter defined for test:\n" 3500s " {}\n\n" 3500s "Requested fixture '{}' defined in:\n{}" 3500s "\n\nRequested here:\n{}:{}".format( 3500s funcitem.nodeid, 3500s fixturedef.argname, 3500s getlocation(fixturedef.func, funcitem.config.rootpath), 3500s source_path_str, 3500s source_lineno, 3500s ) 3500s ) 3500s fail(msg, pytrace=False) 3500s 3500s subrequest = SubRequest( 3500s self, scope, param, param_index, fixturedef, _ispytest=True 3500s ) 3500s 3500s # Check if a higher-level scoped fixture accesses a lower level one. 3500s subrequest._check_scope(argname, self._scope, scope) 3500s try: 3500s # Call the fixture function. 3500s > fixturedef.execute(request=subrequest) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s request = > 3500s 3500s def execute(self, request: SubRequest) -> FixtureValue: 3500s # Get required arguments and register our own finish() 3500s # with their finalization. 3500s for argname in self.argnames: 3500s fixturedef = request._get_active_fixturedef(argname) 3500s if argname != "request": 3500s # PseudoFixtureDef is only for "request". 3500s assert isinstance(fixturedef, FixtureDef) 3500s fixturedef.addfinalizer(functools.partial(self.finish, request=request)) 3500s 3500s my_cache_key = self.cache_key(request) 3500s if self.cached_result is not None: 3500s # note: comparison with `==` can fail (or be expensive) for e.g. 3500s # numpy arrays (#6497). 3500s cache_key = self.cached_result[1] 3500s if my_cache_key is cache_key: 3500s if self.cached_result[2] is not None: 3500s _, val, tb = self.cached_result[2] 3500s raise val.with_traceback(tb) 3500s else: 3500s result = self.cached_result[0] 3500s return result 3500s # We have a previous but differently parametrized fixture instance 3500s # so we need to tear it down before creating a new one. 3500s self.finish(request) 3500s assert self.cached_result is None 3500s 3500s ihook = request.node.ihook 3500s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1069: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s kwargs = {'fixturedef': , 'request': ... 'postgresql_psycopg2_engine' for >} 3500s firstresult = True 3500s 3500s def __call__(self, **kwargs: object) -> Any: 3500s """Call the hook. 3500s 3500s Only accepts keyword arguments, which should match the hook 3500s specification. 3500s 3500s Returns the result(s) of calling all registered plugins, see 3500s :ref:`calling`. 3500s """ 3500s assert ( 3500s not self.is_historic() 3500s ), "Cannot directly call a historic hook - use call_historic instead." 3500s self._verify_all_args_are_provided(kwargs) 3500s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 3500s # Copy because plugins may register other plugins during iteration (#438). 3500s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = <_pytest.config.PytestPluginManager object at 0xe9079168> 3500s hook_name = 'pytest_fixture_setup' 3500s methods = [>] 3500s kwargs = {'fixturedef': , 'request': ... 'postgresql_psycopg2_engine' for >} 3500s firstresult = True 3500s 3500s def _hookexec( 3500s self, 3500s hook_name: str, 3500s methods: Sequence[HookImpl], 3500s kwargs: Mapping[str, object], 3500s firstresult: bool, 3500s ) -> object | list[object]: 3500s # called from all hookcaller instances. 3500s # enable_tracing will set its own wrapping function at self._inner_hookexec 3500s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturedef = 3500s request = > 3500s 3500s def pytest_fixture_setup( 3500s fixturedef: FixtureDef[FixtureValue], request: SubRequest 3500s ) -> FixtureValue: 3500s """Execution of fixture setup.""" 3500s kwargs = {} 3500s for argname in fixturedef.argnames: 3500s fixdef = request._get_active_fixturedef(argname) 3500s assert fixdef.cached_result is not None 3500s result, arg_cache_key, exc = fixdef.cached_result 3500s request._check_scope(argname, request._scope, fixdef._scope) 3500s kwargs[argname] = result 3500s 3500s fixturefunc = resolve_fixture_function(fixturedef, request) 3500s my_cache_key = fixturedef.cache_key(request) 3500s try: 3500s > result = call_fixture_func(fixturefunc, request, kwargs) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1123: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturefunc = 3500s request = > 3500s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv'), 'types_data': [{'B... False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}]} 3500s 3500s def call_fixture_func( 3500s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 3500s ) -> FixtureValue: 3500s if is_generator(fixturefunc): 3500s fixturefunc = cast( 3500s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 3500s ) 3500s generator = fixturefunc(**kwargs) 3500s try: 3500s > fixture_result = next(generator) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:895: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s iris_path = PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv') 3500s types_data = [{'BoolCol': False, 'BoolColWithNull': False, 'DateCol': '2000-01-03 00:00:00', 'DateColWithTz': '2000-01-01 00:00:00-...: False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}] 3500s 3500s @pytest.fixture 3500s def postgresql_psycopg2_engine(iris_path, types_data): 3500s sqlalchemy = pytest.importorskip("sqlalchemy") 3500s pytest.importorskip("psycopg2") 3500s engine = sqlalchemy.create_engine( 3500s "postgresql+psycopg2://postgres:postgres@localhost:5432/pandas", 3500s poolclass=sqlalchemy.pool.NullPool, 3500s ) 3500s > insp = sqlalchemy.inspect(engine) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:438: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s subject = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s raiseerr = True 3500s 3500s def inspect(subject, raiseerr=True): 3500s """Produce an inspection object for the given target. 3500s 3500s The returned value in some cases may be the 3500s same object as the one given, such as if a 3500s :class:`_orm.Mapper` object is passed. In other 3500s cases, it will be an instance of the registered 3500s inspection type for the given object, such as 3500s if an :class:`_engine.Engine` is passed, an 3500s :class:`_reflection.Inspector` object is returned. 3500s 3500s :param subject: the subject to be inspected. 3500s :param raiseerr: When ``True``, if the given subject 3500s does not 3500s correspond to a known SQLAlchemy inspected type, 3500s :class:`sqlalchemy.exc.NoInspectionAvailable` 3500s is raised. If ``False``, ``None`` is returned. 3500s 3500s """ 3500s type_ = type(subject) 3500s for cls in type_.__mro__: 3500s if cls in _registrars: 3500s reg = _registrars[cls] 3500s if reg is True: 3500s return subject 3500s > ret = reg(subject) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:64: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s @inspection._inspects(Engine) 3500s def _engine_insp(bind): 3500s > return Inspector._construct(Inspector._init_engine, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:182: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s init = 3500s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s @classmethod 3500s def _construct(cls, init, bind): 3500s 3500s if hasattr(bind.dialect, "inspector"): 3500s cls = bind.dialect.inspector 3500s 3500s self = cls.__new__(cls) 3500s > init(self, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:117: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s def _init_engine(self, engine): 3500s self.bind = self.engine = engine 3500s > engine.connect().close() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:128: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s close_with_result = False 3500s 3500s def connect(self, close_with_result=False): 3500s """Return a new :class:`_engine.Connection` object. 3500s 3500s The :class:`_engine.Connection` object is a facade that uses a DBAPI 3500s connection internally in order to communicate with the database. This 3500s connection is procured from the connection-holding :class:`_pool.Pool` 3500s referenced by this :class:`_engine.Engine`. When the 3500s :meth:`_engine.Connection.close` method of the 3500s :class:`_engine.Connection` object 3500s is called, the underlying DBAPI connection is then returned to the 3500s connection pool, where it may be used again in a subsequent call to 3500s :meth:`_engine.Engine.connect`. 3500s 3500s """ 3500s 3500s > return self._connection_cls(self, close_with_result=close_with_result) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3325: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s connection = None, close_with_result = False, _branch_from = None 3500s _execution_options = None, _dispatch = None, _has_events = None 3500s _allow_revalidate = True 3500s 3500s def __init__( 3500s self, 3500s engine, 3500s connection=None, 3500s close_with_result=False, 3500s _branch_from=None, 3500s _execution_options=None, 3500s _dispatch=None, 3500s _has_events=None, 3500s _allow_revalidate=True, 3500s ): 3500s """Construct a new Connection.""" 3500s self.engine = engine 3500s self.dialect = engine.dialect 3500s self.__branch_from = _branch_from 3500s 3500s if _branch_from: 3500s # branching is always "from" the root connection 3500s assert _branch_from.__branch_from is None 3500s self._dbapi_connection = connection 3500s self._execution_options = _execution_options 3500s self._echo = _branch_from._echo 3500s self.should_close_with_result = False 3500s self.dispatch = _dispatch 3500s self._has_events = _branch_from._has_events 3500s else: 3500s self._dbapi_connection = ( 3500s connection 3500s if connection is not None 3500s > else engine.raw_connection() 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:96: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s _connection = None 3500s 3500s def raw_connection(self, _connection=None): 3500s """Return a "raw" DBAPI connection from the connection pool. 3500s 3500s The returned object is a proxied version of the DBAPI 3500s connection object used by the underlying driver in use. 3500s The object will have all the same behavior as the real DBAPI 3500s connection, except that its ``close()`` method will result in the 3500s connection being returned to the pool, rather than being closed 3500s for real. 3500s 3500s This method provides direct DBAPI connection access for 3500s special situations when the API provided by 3500s :class:`_engine.Connection` 3500s is not needed. When a :class:`_engine.Connection` object is already 3500s present, the DBAPI connection is available using 3500s the :attr:`_engine.Connection.connection` accessor. 3500s 3500s .. seealso:: 3500s 3500s :ref:`dbapi_connections` 3500s 3500s """ 3500s > return self._wrap_pool_connect(self.pool.connect, _connection) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3404: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s return fn() 3500s except dialect.dbapi.Error as e: 3500s if connection is None: 3500s > Connection._handle_dbapi_exception_noconnection( 3500s e, dialect, self 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3374: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s e = OperationalError('connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused\n\tIs the server running on that host and accepting TCP/IP connections?\n') 3500s dialect = 3500s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s @classmethod 3500s def _handle_dbapi_exception_noconnection(cls, e, dialect, engine): 3500s exc_info = sys.exc_info() 3500s 3500s is_disconnect = dialect.is_disconnect(e, None, None) 3500s 3500s should_wrap = isinstance(e, dialect.dbapi.Error) 3500s 3500s if should_wrap: 3500s sqlalchemy_exception = exc.DBAPIError.instance( 3500s None, 3500s None, 3500s e, 3500s dialect.dbapi.Error, 3500s hide_parameters=engine.hide_parameters, 3500s connection_invalidated=is_disconnect, 3500s ) 3500s else: 3500s sqlalchemy_exception = None 3500s 3500s newraise = None 3500s 3500s if engine._has_events: 3500s ctx = ExceptionContextImpl( 3500s e, 3500s sqlalchemy_exception, 3500s engine, 3500s None, 3500s None, 3500s None, 3500s None, 3500s None, 3500s is_disconnect, 3500s True, 3500s ) 3500s for fn in engine.dispatch.handle_error: 3500s try: 3500s # handler returns an exception; 3500s # call next handler in a chain 3500s per_fn = fn(ctx) 3500s if per_fn is not None: 3500s ctx.chained_exception = newraise = per_fn 3500s except Exception as _raised: 3500s # handler raises an exception - stop processing 3500s newraise = _raised 3500s break 3500s 3500s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 3500s sqlalchemy_exception.connection_invalidated = ( 3500s is_disconnect 3500s ) = ctx.is_disconnect 3500s 3500s if newraise: 3500s util.raise_(newraise, with_traceback=exc_info[2], from_=e) 3500s elif should_wrap: 3500s > util.raise_( 3500s sqlalchemy_exception, with_traceback=exc_info[2], from_=e 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2208: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s dsn = 'host=localhost user=postgres password=postgres port=5432 dbname=pandas' 3500s connection_factory = None, cursor_factory = None 3500s kwargs = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s kwasync = {} 3500s 3500s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 3500s """ 3500s Create a new database connection. 3500s 3500s The connection parameters can be specified as a string: 3500s 3500s conn = psycopg2.connect("dbname=test user=postgres password=secret") 3500s 3500s or using a set of keyword arguments: 3500s 3500s conn = psycopg2.connect(database="test", user="postgres", password="secret") 3500s 3500s Or as a mix of both. The basic connection parameters are: 3500s 3500s - *dbname*: the database name 3500s - *database*: the database name (only as keyword argument) 3500s - *user*: user name used to authenticate 3500s - *password*: password used to authenticate 3500s - *host*: database host address (defaults to UNIX socket if not provided) 3500s - *port*: connection port number (defaults to 5432 if not provided) 3500s 3500s Using the *connection_factory* parameter a different class or connections 3500s factory can be specified. It should be a callable object taking a dsn 3500s argument. 3500s 3500s Using the *cursor_factory* parameter, a new default cursor factory will be 3500s used by cursor(). 3500s 3500s Using *async*=True an asynchronous connection will be created. *async_* is 3500s a valid alias (for Python versions where ``async`` is a keyword). 3500s 3500s Any other keyword parameter will be passed to the underlying client 3500s library: the list of supported parameters depends on the library version. 3500s 3500s """ 3500s kwasync = {} 3500s if 'async' in kwargs: 3500s kwasync['async'] = kwargs.pop('async') 3500s if 'async_' in kwargs: 3500s kwasync['async_'] = kwargs.pop('async_') 3500s 3500s dsn = _ext.make_dsn(dsn, **kwargs) 3500s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 3500s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 3500s E Is the server running on that host and accepting TCP/IP connections? 3500s E 3500s E (Background on this error at: https://sqlalche.me/e/14/e3q8) 3500s 3500s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 3500s ____ test_insertion_method_on_conflict_do_nothing[postgresql_psycopg2_conn] ____ 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s dsn = 'host=localhost user=postgres password=postgres port=5432 dbname=pandas' 3500s connection_factory = None, cursor_factory = None 3500s kwargs = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s kwasync = {} 3500s 3500s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 3500s """ 3500s Create a new database connection. 3500s 3500s The connection parameters can be specified as a string: 3500s 3500s conn = psycopg2.connect("dbname=test user=postgres password=secret") 3500s 3500s or using a set of keyword arguments: 3500s 3500s conn = psycopg2.connect(database="test", user="postgres", password="secret") 3500s 3500s Or as a mix of both. The basic connection parameters are: 3500s 3500s - *dbname*: the database name 3500s - *database*: the database name (only as keyword argument) 3500s - *user*: user name used to authenticate 3500s - *password*: password used to authenticate 3500s - *host*: database host address (defaults to UNIX socket if not provided) 3500s - *port*: connection port number (defaults to 5432 if not provided) 3500s 3500s Using the *connection_factory* parameter a different class or connections 3500s factory can be specified. It should be a callable object taking a dsn 3500s argument. 3500s 3500s Using the *cursor_factory* parameter, a new default cursor factory will be 3500s used by cursor(). 3500s 3500s Using *async*=True an asynchronous connection will be created. *async_* is 3500s a valid alias (for Python versions where ``async`` is a keyword). 3500s 3500s Any other keyword parameter will be passed to the underlying client 3500s library: the list of supported parameters depends on the library version. 3500s 3500s """ 3500s kwasync = {} 3500s if 'async' in kwargs: 3500s kwasync['async'] = kwargs.pop('async') 3500s if 'async_' in kwargs: 3500s kwasync['async_'] = kwargs.pop('async_') 3500s 3500s dsn = _ext.make_dsn(dsn, **kwargs) 3500s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 3500s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 3500s E Is the server running on that host and accepting TCP/IP connections? 3500s 3500s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 3500s 3500s The above exception was the direct cause of the following exception: 3500s 3500s conn = 'postgresql_psycopg2_conn' 3500s request = > 3500s 3500s @pytest.mark.db 3500s @pytest.mark.parametrize("conn", postgresql_connectable) 3500s def test_insertion_method_on_conflict_do_nothing(conn, request): 3500s # GH 15988: Example in to_sql docstring 3500s > conn = request.getfixturevalue(conn) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:829: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'postgresql_psycopg2_conn' 3500s 3500s def getfixturevalue(self, argname: str) -> Any: 3500s """Dynamically run a named fixture function. 3500s 3500s Declaring fixtures via function argument is recommended where possible. 3500s But if you can only decide whether to use another fixture at test 3500s setup time, you may use this function to retrieve it inside a fixture 3500s or test function body. 3500s 3500s This method can be used during the test setup phase or the test run 3500s phase, but during the test teardown phase a fixture's value may not 3500s be available. 3500s 3500s :param argname: 3500s The fixture name. 3500s :raises pytest.FixtureLookupError: 3500s If the given fixture could not be found. 3500s """ 3500s > fixturedef = self._get_active_fixturedef(argname) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:585: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'postgresql_psycopg2_conn' 3500s 3500s def _get_active_fixturedef( 3500s self, argname: str 3500s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3500s try: 3500s return self._fixture_defs[argname] 3500s except KeyError: 3500s try: 3500s fixturedef = self._getnextfixturedef(argname) 3500s except FixtureLookupError: 3500s if argname == "request": 3500s cached_result = (self, [0], None) 3500s return PseudoFixtureDef(cached_result, Scope.Function) 3500s raise 3500s # Remove indent to prevent the python3 exception 3500s # from leaking into the call. 3500s > self._compute_fixture_value(fixturedef) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s fixturedef = 3500s 3500s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3500s """Create a SubRequest based on "self" and call the execute method 3500s of the given FixtureDef object. 3500s 3500s This will force the FixtureDef object to throw away any previous 3500s results and compute a new fixture value, which will be stored into 3500s the FixtureDef object itself. 3500s """ 3500s # prepare a subrequest object before calling fixture function 3500s # (latter managed by fixturedef) 3500s argname = fixturedef.argname 3500s funcitem = self._pyfuncitem 3500s scope = fixturedef._scope 3500s try: 3500s callspec = funcitem.callspec 3500s except AttributeError: 3500s callspec = None 3500s if callspec is not None and argname in callspec.params: 3500s param = callspec.params[argname] 3500s param_index = callspec.indices[argname] 3500s # If a parametrize invocation set a scope it will override 3500s # the static scope defined with the fixture function. 3500s with suppress(KeyError): 3500s scope = callspec._arg2scope[argname] 3500s else: 3500s param = NOTSET 3500s param_index = 0 3500s has_params = fixturedef.params is not None 3500s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3500s if has_params and fixtures_not_supported: 3500s msg = ( 3500s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3500s "Node id: {nodeid}\n" 3500s "Function type: {typename}" 3500s ).format( 3500s name=funcitem.name, 3500s nodeid=funcitem.nodeid, 3500s typename=type(funcitem).__name__, 3500s ) 3500s fail(msg, pytrace=False) 3500s if has_params: 3500s frame = inspect.stack()[3] 3500s frameinfo = inspect.getframeinfo(frame[0]) 3500s source_path = absolutepath(frameinfo.filename) 3500s source_lineno = frameinfo.lineno 3500s try: 3500s source_path_str = str( 3500s source_path.relative_to(funcitem.config.rootpath) 3500s ) 3500s except ValueError: 3500s source_path_str = str(source_path) 3500s msg = ( 3500s "The requested fixture has no parameter defined for test:\n" 3500s " {}\n\n" 3500s "Requested fixture '{}' defined in:\n{}" 3500s "\n\nRequested here:\n{}:{}".format( 3500s funcitem.nodeid, 3500s fixturedef.argname, 3500s getlocation(fixturedef.func, funcitem.config.rootpath), 3500s source_path_str, 3500s source_lineno, 3500s ) 3500s ) 3500s fail(msg, pytrace=False) 3500s 3500s subrequest = SubRequest( 3500s self, scope, param, param_index, fixturedef, _ispytest=True 3500s ) 3500s 3500s # Check if a higher-level scoped fixture accesses a lower level one. 3500s subrequest._check_scope(argname, self._scope, scope) 3500s try: 3500s # Call the fixture function. 3500s > fixturedef.execute(request=subrequest) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s request = > 3500s 3500s def execute(self, request: SubRequest) -> FixtureValue: 3500s # Get required arguments and register our own finish() 3500s # with their finalization. 3500s for argname in self.argnames: 3500s > fixturedef = request._get_active_fixturedef(argname) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1045: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'postgresql_psycopg2_engine' 3500s 3500s def _get_active_fixturedef( 3500s self, argname: str 3500s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3500s try: 3500s return self._fixture_defs[argname] 3500s except KeyError: 3500s try: 3500s fixturedef = self._getnextfixturedef(argname) 3500s except FixtureLookupError: 3500s if argname == "request": 3500s cached_result = (self, [0], None) 3500s return PseudoFixtureDef(cached_result, Scope.Function) 3500s raise 3500s # Remove indent to prevent the python3 exception 3500s # from leaking into the call. 3500s > self._compute_fixture_value(fixturedef) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s fixturedef = 3500s 3500s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3500s """Create a SubRequest based on "self" and call the execute method 3500s of the given FixtureDef object. 3500s 3500s This will force the FixtureDef object to throw away any previous 3500s results and compute a new fixture value, which will be stored into 3500s the FixtureDef object itself. 3500s """ 3500s # prepare a subrequest object before calling fixture function 3500s # (latter managed by fixturedef) 3500s argname = fixturedef.argname 3500s funcitem = self._pyfuncitem 3500s scope = fixturedef._scope 3500s try: 3500s callspec = funcitem.callspec 3500s except AttributeError: 3500s callspec = None 3500s if callspec is not None and argname in callspec.params: 3500s param = callspec.params[argname] 3500s param_index = callspec.indices[argname] 3500s # If a parametrize invocation set a scope it will override 3500s # the static scope defined with the fixture function. 3500s with suppress(KeyError): 3500s scope = callspec._arg2scope[argname] 3500s else: 3500s param = NOTSET 3500s param_index = 0 3500s has_params = fixturedef.params is not None 3500s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3500s if has_params and fixtures_not_supported: 3500s msg = ( 3500s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3500s "Node id: {nodeid}\n" 3500s "Function type: {typename}" 3500s ).format( 3500s name=funcitem.name, 3500s nodeid=funcitem.nodeid, 3500s typename=type(funcitem).__name__, 3500s ) 3500s fail(msg, pytrace=False) 3500s if has_params: 3500s frame = inspect.stack()[3] 3500s frameinfo = inspect.getframeinfo(frame[0]) 3500s source_path = absolutepath(frameinfo.filename) 3500s source_lineno = frameinfo.lineno 3500s try: 3500s source_path_str = str( 3500s source_path.relative_to(funcitem.config.rootpath) 3500s ) 3500s except ValueError: 3500s source_path_str = str(source_path) 3500s msg = ( 3500s "The requested fixture has no parameter defined for test:\n" 3500s " {}\n\n" 3500s "Requested fixture '{}' defined in:\n{}" 3500s "\n\nRequested here:\n{}:{}".format( 3500s funcitem.nodeid, 3500s fixturedef.argname, 3500s getlocation(fixturedef.func, funcitem.config.rootpath), 3500s source_path_str, 3500s source_lineno, 3500s ) 3500s ) 3500s fail(msg, pytrace=False) 3500s 3500s subrequest = SubRequest( 3500s self, scope, param, param_index, fixturedef, _ispytest=True 3500s ) 3500s 3500s # Check if a higher-level scoped fixture accesses a lower level one. 3500s subrequest._check_scope(argname, self._scope, scope) 3500s try: 3500s # Call the fixture function. 3500s > fixturedef.execute(request=subrequest) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s request = > 3500s 3500s def execute(self, request: SubRequest) -> FixtureValue: 3500s # Get required arguments and register our own finish() 3500s # with their finalization. 3500s for argname in self.argnames: 3500s fixturedef = request._get_active_fixturedef(argname) 3500s if argname != "request": 3500s # PseudoFixtureDef is only for "request". 3500s assert isinstance(fixturedef, FixtureDef) 3500s fixturedef.addfinalizer(functools.partial(self.finish, request=request)) 3500s 3500s my_cache_key = self.cache_key(request) 3500s if self.cached_result is not None: 3500s # note: comparison with `==` can fail (or be expensive) for e.g. 3500s # numpy arrays (#6497). 3500s cache_key = self.cached_result[1] 3500s if my_cache_key is cache_key: 3500s if self.cached_result[2] is not None: 3500s _, val, tb = self.cached_result[2] 3500s raise val.with_traceback(tb) 3500s else: 3500s result = self.cached_result[0] 3500s return result 3500s # We have a previous but differently parametrized fixture instance 3500s # so we need to tear it down before creating a new one. 3500s self.finish(request) 3500s assert self.cached_result is None 3500s 3500s ihook = request.node.ihook 3500s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1069: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s kwargs = {'fixturedef': , 'request': ...st 'postgresql_psycopg2_engine' for >} 3500s firstresult = True 3500s 3500s def __call__(self, **kwargs: object) -> Any: 3500s """Call the hook. 3500s 3500s Only accepts keyword arguments, which should match the hook 3500s specification. 3500s 3500s Returns the result(s) of calling all registered plugins, see 3500s :ref:`calling`. 3500s """ 3500s assert ( 3500s not self.is_historic() 3500s ), "Cannot directly call a historic hook - use call_historic instead." 3500s self._verify_all_args_are_provided(kwargs) 3500s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 3500s # Copy because plugins may register other plugins during iteration (#438). 3500s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = <_pytest.config.PytestPluginManager object at 0xe9079168> 3500s hook_name = 'pytest_fixture_setup' 3500s methods = [>] 3500s kwargs = {'fixturedef': , 'request': ...st 'postgresql_psycopg2_engine' for >} 3500s firstresult = True 3500s 3500s def _hookexec( 3500s self, 3500s hook_name: str, 3500s methods: Sequence[HookImpl], 3500s kwargs: Mapping[str, object], 3500s firstresult: bool, 3500s ) -> object | list[object]: 3500s # called from all hookcaller instances. 3500s # enable_tracing will set its own wrapping function at self._inner_hookexec 3500s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturedef = 3500s request = > 3500s 3500s def pytest_fixture_setup( 3500s fixturedef: FixtureDef[FixtureValue], request: SubRequest 3500s ) -> FixtureValue: 3500s """Execution of fixture setup.""" 3500s kwargs = {} 3500s for argname in fixturedef.argnames: 3500s fixdef = request._get_active_fixturedef(argname) 3500s assert fixdef.cached_result is not None 3500s result, arg_cache_key, exc = fixdef.cached_result 3500s request._check_scope(argname, request._scope, fixdef._scope) 3500s kwargs[argname] = result 3500s 3500s fixturefunc = resolve_fixture_function(fixturedef, request) 3500s my_cache_key = fixturedef.cache_key(request) 3500s try: 3500s > result = call_fixture_func(fixturefunc, request, kwargs) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1123: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturefunc = 3500s request = > 3500s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv'), 'types_data': [{'B... False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}]} 3500s 3500s def call_fixture_func( 3500s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 3500s ) -> FixtureValue: 3500s if is_generator(fixturefunc): 3500s fixturefunc = cast( 3500s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 3500s ) 3500s generator = fixturefunc(**kwargs) 3500s try: 3500s > fixture_result = next(generator) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:895: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s iris_path = PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv') 3500s types_data = [{'BoolCol': False, 'BoolColWithNull': False, 'DateCol': '2000-01-03 00:00:00', 'DateColWithTz': '2000-01-01 00:00:00-...: False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}] 3500s 3500s @pytest.fixture 3500s def postgresql_psycopg2_engine(iris_path, types_data): 3500s sqlalchemy = pytest.importorskip("sqlalchemy") 3500s pytest.importorskip("psycopg2") 3500s engine = sqlalchemy.create_engine( 3500s "postgresql+psycopg2://postgres:postgres@localhost:5432/pandas", 3500s poolclass=sqlalchemy.pool.NullPool, 3500s ) 3500s > insp = sqlalchemy.inspect(engine) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:438: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s subject = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s raiseerr = True 3500s 3500s def inspect(subject, raiseerr=True): 3500s """Produce an inspection object for the given target. 3500s 3500s The returned value in some cases may be the 3500s same object as the one given, such as if a 3500s :class:`_orm.Mapper` object is passed. In other 3500s cases, it will be an instance of the registered 3500s inspection type for the given object, such as 3500s if an :class:`_engine.Engine` is passed, an 3500s :class:`_reflection.Inspector` object is returned. 3500s 3500s :param subject: the subject to be inspected. 3500s :param raiseerr: When ``True``, if the given subject 3500s does not 3500s correspond to a known SQLAlchemy inspected type, 3500s :class:`sqlalchemy.exc.NoInspectionAvailable` 3500s is raised. If ``False``, ``None`` is returned. 3500s 3500s """ 3500s type_ = type(subject) 3500s for cls in type_.__mro__: 3500s if cls in _registrars: 3500s reg = _registrars[cls] 3500s if reg is True: 3500s return subject 3500s > ret = reg(subject) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:64: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s @inspection._inspects(Engine) 3500s def _engine_insp(bind): 3500s > return Inspector._construct(Inspector._init_engine, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:182: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s init = 3500s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s @classmethod 3500s def _construct(cls, init, bind): 3500s 3500s if hasattr(bind.dialect, "inspector"): 3500s cls = bind.dialect.inspector 3500s 3500s self = cls.__new__(cls) 3500s > init(self, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:117: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s def _init_engine(self, engine): 3500s self.bind = self.engine = engine 3500s > engine.connect().close() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:128: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s close_with_result = False 3500s 3500s def connect(self, close_with_result=False): 3500s """Return a new :class:`_engine.Connection` object. 3500s 3500s The :class:`_engine.Connection` object is a facade that uses a DBAPI 3500s connection internally in order to communicate with the database. This 3500s connection is procured from the connection-holding :class:`_pool.Pool` 3500s referenced by this :class:`_engine.Engine`. When the 3500s :meth:`_engine.Connection.close` method of the 3500s :class:`_engine.Connection` object 3500s is called, the underlying DBAPI connection is then returned to the 3500s connection pool, where it may be used again in a subsequent call to 3500s :meth:`_engine.Engine.connect`. 3500s 3500s """ 3500s 3500s > return self._connection_cls(self, close_with_result=close_with_result) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3325: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s connection = None, close_with_result = False, _branch_from = None 3500s _execution_options = None, _dispatch = None, _has_events = None 3500s _allow_revalidate = True 3500s 3500s def __init__( 3500s self, 3500s engine, 3500s connection=None, 3500s close_with_result=False, 3500s _branch_from=None, 3500s _execution_options=None, 3500s _dispatch=None, 3500s _has_events=None, 3500s _allow_revalidate=True, 3500s ): 3500s """Construct a new Connection.""" 3500s self.engine = engine 3500s self.dialect = engine.dialect 3500s self.__branch_from = _branch_from 3500s 3500s if _branch_from: 3500s # branching is always "from" the root connection 3500s assert _branch_from.__branch_from is None 3500s self._dbapi_connection = connection 3500s self._execution_options = _execution_options 3500s self._echo = _branch_from._echo 3500s self.should_close_with_result = False 3500s self.dispatch = _dispatch 3500s self._has_events = _branch_from._has_events 3500s else: 3500s self._dbapi_connection = ( 3500s connection 3500s if connection is not None 3500s > else engine.raw_connection() 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:96: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s _connection = None 3500s 3500s def raw_connection(self, _connection=None): 3500s """Return a "raw" DBAPI connection from the connection pool. 3500s 3500s The returned object is a proxied version of the DBAPI 3500s connection object used by the underlying driver in use. 3500s The object will have all the same behavior as the real DBAPI 3500s connection, except that its ``close()`` method will result in the 3500s connection being returned to the pool, rather than being closed 3500s for real. 3500s 3500s This method provides direct DBAPI connection access for 3500s special situations when the API provided by 3500s :class:`_engine.Connection` 3500s is not needed. When a :class:`_engine.Connection` object is already 3500s present, the DBAPI connection is available using 3500s the :attr:`_engine.Connection.connection` accessor. 3500s 3500s .. seealso:: 3500s 3500s :ref:`dbapi_connections` 3500s 3500s """ 3500s > return self._wrap_pool_connect(self.pool.connect, _connection) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3404: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s return fn() 3500s except dialect.dbapi.Error as e: 3500s if connection is None: 3500s > Connection._handle_dbapi_exception_noconnection( 3500s e, dialect, self 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3374: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s e = OperationalError('connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused\n\tIs the server running on that host and accepting TCP/IP connections?\n') 3500s dialect = 3500s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s @classmethod 3500s def _handle_dbapi_exception_noconnection(cls, e, dialect, engine): 3500s exc_info = sys.exc_info() 3500s 3500s is_disconnect = dialect.is_disconnect(e, None, None) 3500s 3500s should_wrap = isinstance(e, dialect.dbapi.Error) 3500s 3500s if should_wrap: 3500s sqlalchemy_exception = exc.DBAPIError.instance( 3500s None, 3500s None, 3500s e, 3500s dialect.dbapi.Error, 3500s hide_parameters=engine.hide_parameters, 3500s connection_invalidated=is_disconnect, 3500s ) 3500s else: 3500s sqlalchemy_exception = None 3500s 3500s newraise = None 3500s 3500s if engine._has_events: 3500s ctx = ExceptionContextImpl( 3500s e, 3500s sqlalchemy_exception, 3500s engine, 3500s None, 3500s None, 3500s None, 3500s None, 3500s None, 3500s is_disconnect, 3500s True, 3500s ) 3500s for fn in engine.dispatch.handle_error: 3500s try: 3500s # handler returns an exception; 3500s # call next handler in a chain 3500s per_fn = fn(ctx) 3500s if per_fn is not None: 3500s ctx.chained_exception = newraise = per_fn 3500s except Exception as _raised: 3500s # handler raises an exception - stop processing 3500s newraise = _raised 3500s break 3500s 3500s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 3500s sqlalchemy_exception.connection_invalidated = ( 3500s is_disconnect 3500s ) = ctx.is_disconnect 3500s 3500s if newraise: 3500s util.raise_(newraise, with_traceback=exc_info[2], from_=e) 3500s elif should_wrap: 3500s > util.raise_( 3500s sqlalchemy_exception, with_traceback=exc_info[2], from_=e 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2208: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s dsn = 'host=localhost user=postgres password=postgres port=5432 dbname=pandas' 3500s connection_factory = None, cursor_factory = None 3500s kwargs = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s kwasync = {} 3500s 3500s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 3500s """ 3500s Create a new database connection. 3500s 3500s The connection parameters can be specified as a string: 3500s 3500s conn = psycopg2.connect("dbname=test user=postgres password=secret") 3500s 3500s or using a set of keyword arguments: 3500s 3500s conn = psycopg2.connect(database="test", user="postgres", password="secret") 3500s 3500s Or as a mix of both. The basic connection parameters are: 3500s 3500s - *dbname*: the database name 3500s - *database*: the database name (only as keyword argument) 3500s - *user*: user name used to authenticate 3500s - *password*: password used to authenticate 3500s - *host*: database host address (defaults to UNIX socket if not provided) 3500s - *port*: connection port number (defaults to 5432 if not provided) 3500s 3500s Using the *connection_factory* parameter a different class or connections 3500s factory can be specified. It should be a callable object taking a dsn 3500s argument. 3500s 3500s Using the *cursor_factory* parameter, a new default cursor factory will be 3500s used by cursor(). 3500s 3500s Using *async*=True an asynchronous connection will be created. *async_* is 3500s a valid alias (for Python versions where ``async`` is a keyword). 3500s 3500s Any other keyword parameter will be passed to the underlying client 3500s library: the list of supported parameters depends on the library version. 3500s 3500s """ 3500s kwasync = {} 3500s if 'async' in kwargs: 3500s kwasync['async'] = kwargs.pop('async') 3500s if 'async_' in kwargs: 3500s kwasync['async_'] = kwargs.pop('async_') 3500s 3500s dsn = _ext.make_dsn(dsn, **kwargs) 3500s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 3500s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 3500s E Is the server running on that host and accepting TCP/IP connections? 3500s E 3500s E (Background on this error at: https://sqlalche.me/e/14/e3q8) 3500s 3500s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 3500s ________ test_insertion_method_on_conflict_update[mysql_pymysql_engine] ________ 3500s self = , sock = None 3500s 3500s def connect(self, sock=None): 3500s self._closed = False 3500s try: 3500s if sock is None: 3500s if self.unix_socket: 3500s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3500s sock.settimeout(self.connect_timeout) 3500s sock.connect(self.unix_socket) 3500s self.host_info = "Localhost via UNIX socket" 3500s self._secure = True 3500s if DEBUG: 3500s print("connected using unix_socket") 3500s else: 3500s kwargs = {} 3500s if self.bind_address is not None: 3500s kwargs["source_address"] = (self.bind_address, 0) 3500s while True: 3500s try: 3500s > sock = socket.create_connection( 3500s (self.host, self.port), self.connect_timeout, **kwargs 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:649: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s address = ('localhost', 3306), timeout = 10, source_address = None 3500s 3500s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 3500s source_address=None, *, all_errors=False): 3500s """Connect to *address* and return the socket object. 3500s 3500s Convenience function. Connect to *address* (a 2-tuple ``(host, 3500s port)``) and return the socket object. Passing the optional 3500s *timeout* parameter will set the timeout on the socket instance 3500s before attempting to connect. If no *timeout* is supplied, the 3500s global default timeout setting returned by :func:`getdefaulttimeout` 3500s is used. If *source_address* is set it must be a tuple of (host, port) 3500s for the socket to bind as a source address before making the connection. 3500s A host of '' or port 0 tells the OS to use the default. When a connection 3500s cannot be created, raises the last error if *all_errors* is False, 3500s and an ExceptionGroup of all errors if *all_errors* is True. 3500s """ 3500s 3500s host, port = address 3500s exceptions = [] 3500s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 3500s af, socktype, proto, canonname, sa = res 3500s sock = None 3500s try: 3500s sock = socket(af, socktype, proto) 3500s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 3500s sock.settimeout(timeout) 3500s if source_address: 3500s sock.bind(source_address) 3500s sock.connect(sa) 3500s # Break explicitly a reference cycle 3500s exceptions.clear() 3500s return sock 3500s 3500s except error as exc: 3500s if not all_errors: 3500s exceptions.clear() # raise only the last error 3500s exceptions.append(exc) 3500s if sock is not None: 3500s sock.close() 3500s 3500s if len(exceptions): 3500s try: 3500s if not all_errors: 3500s > raise exceptions[0] 3500s 3500s /usr/lib/python3.12/socket.py:853: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s address = ('localhost', 3306), timeout = 10, source_address = None 3500s 3500s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 3500s source_address=None, *, all_errors=False): 3500s """Connect to *address* and return the socket object. 3500s 3500s Convenience function. Connect to *address* (a 2-tuple ``(host, 3500s port)``) and return the socket object. Passing the optional 3500s *timeout* parameter will set the timeout on the socket instance 3500s before attempting to connect. If no *timeout* is supplied, the 3500s global default timeout setting returned by :func:`getdefaulttimeout` 3500s is used. If *source_address* is set it must be a tuple of (host, port) 3500s for the socket to bind as a source address before making the connection. 3500s A host of '' or port 0 tells the OS to use the default. When a connection 3500s cannot be created, raises the last error if *all_errors* is False, 3500s and an ExceptionGroup of all errors if *all_errors* is True. 3500s """ 3500s 3500s host, port = address 3500s exceptions = [] 3500s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 3500s af, socktype, proto, canonname, sa = res 3500s sock = None 3500s try: 3500s sock = socket(af, socktype, proto) 3500s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 3500s sock.settimeout(timeout) 3500s if source_address: 3500s sock.bind(source_address) 3500s > sock.connect(sa) 3500s E ConnectionRefusedError: [Errno 111] Connection refused 3500s 3500s /usr/lib/python3.12/socket.py:838: ConnectionRefusedError 3500s 3500s During handling of the above exception, another exception occurred: 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __init__( 3500s self, 3500s *, 3500s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 3500s password="", 3500s host=None, 3500s database=None, 3500s unix_socket=None, 3500s port=0, 3500s charset="", 3500s collation=None, 3500s sql_mode=None, 3500s read_default_file=None, 3500s conv=None, 3500s use_unicode=True, 3500s client_flag=0, 3500s cursorclass=Cursor, 3500s init_command=None, 3500s connect_timeout=10, 3500s read_default_group=None, 3500s autocommit=False, 3500s local_infile=False, 3500s max_allowed_packet=16 * 1024 * 1024, 3500s defer_connect=False, 3500s auth_plugin_map=None, 3500s read_timeout=None, 3500s write_timeout=None, 3500s bind_address=None, 3500s binary_prefix=False, 3500s program_name=None, 3500s server_public_key=None, 3500s ssl=None, 3500s ssl_ca=None, 3500s ssl_cert=None, 3500s ssl_disabled=None, 3500s ssl_key=None, 3500s ssl_key_password=None, 3500s ssl_verify_cert=None, 3500s ssl_verify_identity=None, 3500s compress=None, # not supported 3500s named_pipe=None, # not supported 3500s passwd=None, # deprecated 3500s db=None, # deprecated 3500s ): 3500s if db is not None and database is None: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 3500s database = db 3500s if passwd is not None and not password: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn( 3500s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 3500s # ) 3500s password = passwd 3500s 3500s if compress or named_pipe: 3500s raise NotImplementedError( 3500s "compress and named_pipe arguments are not supported" 3500s ) 3500s 3500s self._local_infile = bool(local_infile) 3500s if self._local_infile: 3500s client_flag |= CLIENT.LOCAL_FILES 3500s 3500s if read_default_group and not read_default_file: 3500s if sys.platform.startswith("win"): 3500s read_default_file = "c:\\my.ini" 3500s else: 3500s read_default_file = "/etc/my.cnf" 3500s 3500s if read_default_file: 3500s if not read_default_group: 3500s read_default_group = "client" 3500s 3500s cfg = Parser() 3500s cfg.read(os.path.expanduser(read_default_file)) 3500s 3500s def _config(key, arg): 3500s if arg: 3500s return arg 3500s try: 3500s return cfg.get(read_default_group, key) 3500s except Exception: 3500s return arg 3500s 3500s user = _config("user", user) 3500s password = _config("password", password) 3500s host = _config("host", host) 3500s database = _config("database", database) 3500s unix_socket = _config("socket", unix_socket) 3500s port = int(_config("port", port)) 3500s bind_address = _config("bind-address", bind_address) 3500s charset = _config("default-character-set", charset) 3500s if not ssl: 3500s ssl = {} 3500s if isinstance(ssl, dict): 3500s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 3500s value = _config("ssl-" + key, ssl.get(key)) 3500s if value: 3500s ssl[key] = value 3500s 3500s self.ssl = False 3500s if not ssl_disabled: 3500s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 3500s ssl = { 3500s "ca": ssl_ca, 3500s "check_hostname": bool(ssl_verify_identity), 3500s "verify_mode": ssl_verify_cert 3500s if ssl_verify_cert is not None 3500s else False, 3500s } 3500s if ssl_cert is not None: 3500s ssl["cert"] = ssl_cert 3500s if ssl_key is not None: 3500s ssl["key"] = ssl_key 3500s if ssl_key_password is not None: 3500s ssl["password"] = ssl_key_password 3500s if ssl: 3500s if not SSL_ENABLED: 3500s raise NotImplementedError("ssl module not found") 3500s self.ssl = True 3500s client_flag |= CLIENT.SSL 3500s self.ctx = self._create_ssl_ctx(ssl) 3500s 3500s self.host = host or "localhost" 3500s self.port = port or 3306 3500s if type(self.port) is not int: 3500s raise ValueError("port should be of type int") 3500s self.user = user or DEFAULT_USER 3500s self.password = password or b"" 3500s if isinstance(self.password, str): 3500s self.password = self.password.encode("latin1") 3500s self.db = database 3500s self.unix_socket = unix_socket 3500s self.bind_address = bind_address 3500s if not (0 < connect_timeout <= 31536000): 3500s raise ValueError("connect_timeout should be >0 and <=31536000") 3500s self.connect_timeout = connect_timeout or None 3500s if read_timeout is not None and read_timeout <= 0: 3500s raise ValueError("read_timeout should be > 0") 3500s self._read_timeout = read_timeout 3500s if write_timeout is not None and write_timeout <= 0: 3500s raise ValueError("write_timeout should be > 0") 3500s self._write_timeout = write_timeout 3500s 3500s self.charset = charset or DEFAULT_CHARSET 3500s self.collation = collation 3500s self.use_unicode = use_unicode 3500s 3500s self.encoding = charset_by_name(self.charset).encoding 3500s 3500s client_flag |= CLIENT.CAPABILITIES 3500s if self.db: 3500s client_flag |= CLIENT.CONNECT_WITH_DB 3500s 3500s self.client_flag = client_flag 3500s 3500s self.cursorclass = cursorclass 3500s 3500s self._result = None 3500s self._affected_rows = 0 3500s self.host_info = "Not connected" 3500s 3500s # specified autocommit mode. None means use server default. 3500s self.autocommit_mode = autocommit 3500s 3500s if conv is None: 3500s conv = converters.conversions 3500s 3500s # Need for MySQLdb compatibility. 3500s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 3500s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 3500s self.sql_mode = sql_mode 3500s self.init_command = init_command 3500s self.max_allowed_packet = max_allowed_packet 3500s self._auth_plugin_map = auth_plugin_map or {} 3500s self._binary_prefix = binary_prefix 3500s self.server_public_key = server_public_key 3500s 3500s self._connect_attrs = { 3500s "_client_name": "pymysql", 3500s "_client_version": VERSION_STRING, 3500s "_pid": str(os.getpid()), 3500s } 3500s 3500s if program_name: 3500s self._connect_attrs["program_name"] = program_name 3500s 3500s if defer_connect: 3500s self._sock = None 3500s else: 3500s > self.connect() 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = , sock = None 3500s 3500s def connect(self, sock=None): 3500s self._closed = False 3500s try: 3500s if sock is None: 3500s if self.unix_socket: 3500s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3500s sock.settimeout(self.connect_timeout) 3500s sock.connect(self.unix_socket) 3500s self.host_info = "Localhost via UNIX socket" 3500s self._secure = True 3500s if DEBUG: 3500s print("connected using unix_socket") 3500s else: 3500s kwargs = {} 3500s if self.bind_address is not None: 3500s kwargs["source_address"] = (self.bind_address, 0) 3500s while True: 3500s try: 3500s sock = socket.create_connection( 3500s (self.host, self.port), self.connect_timeout, **kwargs 3500s ) 3500s break 3500s except OSError as e: 3500s if e.errno == errno.EINTR: 3500s continue 3500s raise 3500s self.host_info = "socket %s:%d" % (self.host, self.port) 3500s if DEBUG: 3500s print("connected using socket") 3500s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 3500s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 3500s sock.settimeout(None) 3500s 3500s self._sock = sock 3500s self._rfile = sock.makefile("rb") 3500s self._next_seq_id = 0 3500s 3500s self._get_server_information() 3500s self._request_authentication() 3500s 3500s # Send "SET NAMES" query on init for: 3500s # - Ensure charaset (and collation) is set to the server. 3500s # - collation_id in handshake packet may be ignored. 3500s # - If collation is not specified, we don't know what is server's 3500s # default collation for the charset. For example, default collation 3500s # of utf8mb4 is: 3500s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 3500s # - MySQL 8.0: utf8mb4_0900_ai_ci 3500s # 3500s # Reference: 3500s # - https://github.com/PyMySQL/PyMySQL/issues/1092 3500s # - https://github.com/wagtail/wagtail/issues/9477 3500s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 3500s self.set_character_set(self.charset, self.collation) 3500s 3500s if self.sql_mode is not None: 3500s c = self.cursor() 3500s c.execute("SET sql_mode=%s", (self.sql_mode,)) 3500s c.close() 3500s 3500s if self.init_command is not None: 3500s c = self.cursor() 3500s c.execute(self.init_command) 3500s c.close() 3500s 3500s if self.autocommit_mode is not None: 3500s self.autocommit(self.autocommit_mode) 3500s except BaseException as e: 3500s self._rfile = None 3500s if sock is not None: 3500s try: 3500s sock.close() 3500s except: # noqa 3500s pass 3500s 3500s if isinstance(e, (OSError, IOError)): 3500s exc = err.OperationalError( 3500s CR.CR_CONN_HOST_ERROR, 3500s f"Can't connect to MySQL server on {self.host!r} ({e})", 3500s ) 3500s # Keep original exception and traceback to investigate error. 3500s exc.original_exception = e 3500s exc.traceback = traceback.format_exc() 3500s if DEBUG: 3500s print(exc.traceback) 3500s > raise exc 3500s E pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 3500s 3500s The above exception was the direct cause of the following exception: 3500s 3500s conn = 'mysql_pymysql_engine' 3500s request = > 3500s 3500s @pytest.mark.db 3500s @pytest.mark.parametrize("conn", mysql_connectable) 3500s def test_insertion_method_on_conflict_update(conn, request): 3500s # GH 14553: Example in to_sql docstring 3500s > conn = request.getfixturevalue(conn) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:888: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'mysql_pymysql_engine' 3500s 3500s def getfixturevalue(self, argname: str) -> Any: 3500s """Dynamically run a named fixture function. 3500s 3500s Declaring fixtures via function argument is recommended where possible. 3500s But if you can only decide whether to use another fixture at test 3500s setup time, you may use this function to retrieve it inside a fixture 3500s or test function body. 3500s 3500s This method can be used during the test setup phase or the test run 3500s phase, but during the test teardown phase a fixture's value may not 3500s be available. 3500s 3500s :param argname: 3500s The fixture name. 3500s :raises pytest.FixtureLookupError: 3500s If the given fixture could not be found. 3500s """ 3500s > fixturedef = self._get_active_fixturedef(argname) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:585: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'mysql_pymysql_engine' 3500s 3500s def _get_active_fixturedef( 3500s self, argname: str 3500s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3500s try: 3500s return self._fixture_defs[argname] 3500s except KeyError: 3500s try: 3500s fixturedef = self._getnextfixturedef(argname) 3500s except FixtureLookupError: 3500s if argname == "request": 3500s cached_result = (self, [0], None) 3500s return PseudoFixtureDef(cached_result, Scope.Function) 3500s raise 3500s # Remove indent to prevent the python3 exception 3500s # from leaking into the call. 3500s > self._compute_fixture_value(fixturedef) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s fixturedef = 3500s 3500s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3500s """Create a SubRequest based on "self" and call the execute method 3500s of the given FixtureDef object. 3500s 3500s This will force the FixtureDef object to throw away any previous 3500s results and compute a new fixture value, which will be stored into 3500s the FixtureDef object itself. 3500s """ 3500s # prepare a subrequest object before calling fixture function 3500s # (latter managed by fixturedef) 3500s argname = fixturedef.argname 3500s funcitem = self._pyfuncitem 3500s scope = fixturedef._scope 3500s try: 3500s callspec = funcitem.callspec 3500s except AttributeError: 3500s callspec = None 3500s if callspec is not None and argname in callspec.params: 3500s param = callspec.params[argname] 3500s param_index = callspec.indices[argname] 3500s # If a parametrize invocation set a scope it will override 3500s # the static scope defined with the fixture function. 3500s with suppress(KeyError): 3500s scope = callspec._arg2scope[argname] 3500s else: 3500s param = NOTSET 3500s param_index = 0 3500s has_params = fixturedef.params is not None 3500s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3500s if has_params and fixtures_not_supported: 3500s msg = ( 3500s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3500s "Node id: {nodeid}\n" 3500s "Function type: {typename}" 3500s ).format( 3500s name=funcitem.name, 3500s nodeid=funcitem.nodeid, 3500s typename=type(funcitem).__name__, 3500s ) 3500s fail(msg, pytrace=False) 3500s if has_params: 3500s frame = inspect.stack()[3] 3500s frameinfo = inspect.getframeinfo(frame[0]) 3500s source_path = absolutepath(frameinfo.filename) 3500s source_lineno = frameinfo.lineno 3500s try: 3500s source_path_str = str( 3500s source_path.relative_to(funcitem.config.rootpath) 3500s ) 3500s except ValueError: 3500s source_path_str = str(source_path) 3500s msg = ( 3500s "The requested fixture has no parameter defined for test:\n" 3500s " {}\n\n" 3500s "Requested fixture '{}' defined in:\n{}" 3500s "\n\nRequested here:\n{}:{}".format( 3500s funcitem.nodeid, 3500s fixturedef.argname, 3500s getlocation(fixturedef.func, funcitem.config.rootpath), 3500s source_path_str, 3500s source_lineno, 3500s ) 3500s ) 3500s fail(msg, pytrace=False) 3500s 3500s subrequest = SubRequest( 3500s self, scope, param, param_index, fixturedef, _ispytest=True 3500s ) 3500s 3500s # Check if a higher-level scoped fixture accesses a lower level one. 3500s subrequest._check_scope(argname, self._scope, scope) 3500s try: 3500s # Call the fixture function. 3500s > fixturedef.execute(request=subrequest) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s request = > 3500s 3500s def execute(self, request: SubRequest) -> FixtureValue: 3500s # Get required arguments and register our own finish() 3500s # with their finalization. 3500s for argname in self.argnames: 3500s fixturedef = request._get_active_fixturedef(argname) 3500s if argname != "request": 3500s # PseudoFixtureDef is only for "request". 3500s assert isinstance(fixturedef, FixtureDef) 3500s fixturedef.addfinalizer(functools.partial(self.finish, request=request)) 3500s 3500s my_cache_key = self.cache_key(request) 3500s if self.cached_result is not None: 3500s # note: comparison with `==` can fail (or be expensive) for e.g. 3500s # numpy arrays (#6497). 3500s cache_key = self.cached_result[1] 3500s if my_cache_key is cache_key: 3500s if self.cached_result[2] is not None: 3500s _, val, tb = self.cached_result[2] 3500s raise val.with_traceback(tb) 3500s else: 3500s result = self.cached_result[0] 3500s return result 3500s # We have a previous but differently parametrized fixture instance 3500s # so we need to tear it down before creating a new one. 3500s self.finish(request) 3500s assert self.cached_result is None 3500s 3500s ihook = request.node.ihook 3500s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1069: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s kwargs = {'fixturedef': , 'request': >} 3500s firstresult = True 3500s 3500s def __call__(self, **kwargs: object) -> Any: 3500s """Call the hook. 3500s 3500s Only accepts keyword arguments, which should match the hook 3500s specification. 3500s 3500s Returns the result(s) of calling all registered plugins, see 3500s :ref:`calling`. 3500s """ 3500s assert ( 3500s not self.is_historic() 3500s ), "Cannot directly call a historic hook - use call_historic instead." 3500s self._verify_all_args_are_provided(kwargs) 3500s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 3500s # Copy because plugins may register other plugins during iteration (#438). 3500s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = <_pytest.config.PytestPluginManager object at 0xe9079168> 3500s hook_name = 'pytest_fixture_setup' 3500s methods = [>] 3500s kwargs = {'fixturedef': , 'request': >} 3500s firstresult = True 3500s 3500s def _hookexec( 3500s self, 3500s hook_name: str, 3500s methods: Sequence[HookImpl], 3500s kwargs: Mapping[str, object], 3500s firstresult: bool, 3500s ) -> object | list[object]: 3500s # called from all hookcaller instances. 3500s # enable_tracing will set its own wrapping function at self._inner_hookexec 3500s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturedef = 3500s request = > 3500s 3500s def pytest_fixture_setup( 3500s fixturedef: FixtureDef[FixtureValue], request: SubRequest 3500s ) -> FixtureValue: 3500s """Execution of fixture setup.""" 3500s kwargs = {} 3500s for argname in fixturedef.argnames: 3500s fixdef = request._get_active_fixturedef(argname) 3500s assert fixdef.cached_result is not None 3500s result, arg_cache_key, exc = fixdef.cached_result 3500s request._check_scope(argname, request._scope, fixdef._scope) 3500s kwargs[argname] = result 3500s 3500s fixturefunc = resolve_fixture_function(fixturedef, request) 3500s my_cache_key = fixturedef.cache_key(request) 3500s try: 3500s > result = call_fixture_func(fixturefunc, request, kwargs) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1123: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturefunc = 3500s request = > 3500s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv'), 'types_data': [{'B... False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}]} 3500s 3500s def call_fixture_func( 3500s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 3500s ) -> FixtureValue: 3500s if is_generator(fixturefunc): 3500s fixturefunc = cast( 3500s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 3500s ) 3500s generator = fixturefunc(**kwargs) 3500s try: 3500s > fixture_result = next(generator) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:895: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s iris_path = PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv') 3500s types_data = [{'BoolCol': False, 'BoolColWithNull': False, 'DateCol': '2000-01-03 00:00:00', 'DateColWithTz': '2000-01-01 00:00:00-...: False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}] 3500s 3500s @pytest.fixture 3500s def mysql_pymysql_engine(iris_path, types_data): 3500s sqlalchemy = pytest.importorskip("sqlalchemy") 3500s pymysql = pytest.importorskip("pymysql") 3500s engine = sqlalchemy.create_engine( 3500s "mysql+pymysql://root@localhost:3306/pandas", 3500s connect_args={"client_flag": pymysql.constants.CLIENT.MULTI_STATEMENTS}, 3500s poolclass=sqlalchemy.pool.NullPool, 3500s ) 3500s > insp = sqlalchemy.inspect(engine) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:409: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s subject = Engine(mysql+pymysql://root@localhost:3306/pandas), raiseerr = True 3500s 3500s def inspect(subject, raiseerr=True): 3500s """Produce an inspection object for the given target. 3500s 3500s The returned value in some cases may be the 3500s same object as the one given, such as if a 3500s :class:`_orm.Mapper` object is passed. In other 3500s cases, it will be an instance of the registered 3500s inspection type for the given object, such as 3500s if an :class:`_engine.Engine` is passed, an 3500s :class:`_reflection.Inspector` object is returned. 3500s 3500s :param subject: the subject to be inspected. 3500s :param raiseerr: When ``True``, if the given subject 3500s does not 3500s correspond to a known SQLAlchemy inspected type, 3500s :class:`sqlalchemy.exc.NoInspectionAvailable` 3500s is raised. If ``False``, ``None`` is returned. 3500s 3500s """ 3500s type_ = type(subject) 3500s for cls in type_.__mro__: 3500s if cls in _registrars: 3500s reg = _registrars[cls] 3500s if reg is True: 3500s return subject 3500s > ret = reg(subject) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:64: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s @inspection._inspects(Engine) 3500s def _engine_insp(bind): 3500s > return Inspector._construct(Inspector._init_engine, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:182: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s init = 3500s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s @classmethod 3500s def _construct(cls, init, bind): 3500s 3500s if hasattr(bind.dialect, "inspector"): 3500s cls = bind.dialect.inspector 3500s 3500s self = cls.__new__(cls) 3500s > init(self, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:117: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s def _init_engine(self, engine): 3500s self.bind = self.engine = engine 3500s > engine.connect().close() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:128: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s close_with_result = False 3500s 3500s def connect(self, close_with_result=False): 3500s """Return a new :class:`_engine.Connection` object. 3500s 3500s The :class:`_engine.Connection` object is a facade that uses a DBAPI 3500s connection internally in order to communicate with the database. This 3500s connection is procured from the connection-holding :class:`_pool.Pool` 3500s referenced by this :class:`_engine.Engine`. When the 3500s :meth:`_engine.Connection.close` method of the 3500s :class:`_engine.Connection` object 3500s is called, the underlying DBAPI connection is then returned to the 3500s connection pool, where it may be used again in a subsequent call to 3500s :meth:`_engine.Engine.connect`. 3500s 3500s """ 3500s 3500s > return self._connection_cls(self, close_with_result=close_with_result) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3325: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 3500s close_with_result = False, _branch_from = None, _execution_options = None 3500s _dispatch = None, _has_events = None, _allow_revalidate = True 3500s 3500s def __init__( 3500s self, 3500s engine, 3500s connection=None, 3500s close_with_result=False, 3500s _branch_from=None, 3500s _execution_options=None, 3500s _dispatch=None, 3500s _has_events=None, 3500s _allow_revalidate=True, 3500s ): 3500s """Construct a new Connection.""" 3500s self.engine = engine 3500s self.dialect = engine.dialect 3500s self.__branch_from = _branch_from 3500s 3500s if _branch_from: 3500s # branching is always "from" the root connection 3500s assert _branch_from.__branch_from is None 3500s self._dbapi_connection = connection 3500s self._execution_options = _execution_options 3500s self._echo = _branch_from._echo 3500s self.should_close_with_result = False 3500s self.dispatch = _dispatch 3500s self._has_events = _branch_from._has_events 3500s else: 3500s self._dbapi_connection = ( 3500s connection 3500s if connection is not None 3500s > else engine.raw_connection() 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:96: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas), _connection = None 3500s 3500s def raw_connection(self, _connection=None): 3500s """Return a "raw" DBAPI connection from the connection pool. 3500s 3500s The returned object is a proxied version of the DBAPI 3500s connection object used by the underlying driver in use. 3500s The object will have all the same behavior as the real DBAPI 3500s connection, except that its ``close()`` method will result in the 3500s connection being returned to the pool, rather than being closed 3500s for real. 3500s 3500s This method provides direct DBAPI connection access for 3500s special situations when the API provided by 3500s :class:`_engine.Connection` 3500s is not needed. When a :class:`_engine.Connection` object is already 3500s present, the DBAPI connection is available using 3500s the :attr:`_engine.Connection.connection` accessor. 3500s 3500s .. seealso:: 3500s 3500s :ref:`dbapi_connections` 3500s 3500s """ 3500s > return self._wrap_pool_connect(self.pool.connect, _connection) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3404: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s return fn() 3500s except dialect.dbapi.Error as e: 3500s if connection is None: 3500s > Connection._handle_dbapi_exception_noconnection( 3500s e, dialect, self 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3374: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s e = OperationalError(2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3500s dialect = 3500s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s @classmethod 3500s def _handle_dbapi_exception_noconnection(cls, e, dialect, engine): 3500s exc_info = sys.exc_info() 3500s 3500s is_disconnect = dialect.is_disconnect(e, None, None) 3500s 3500s should_wrap = isinstance(e, dialect.dbapi.Error) 3500s 3500s if should_wrap: 3500s sqlalchemy_exception = exc.DBAPIError.instance( 3500s None, 3500s None, 3500s e, 3500s dialect.dbapi.Error, 3500s hide_parameters=engine.hide_parameters, 3500s connection_invalidated=is_disconnect, 3500s ) 3500s else: 3500s sqlalchemy_exception = None 3500s 3500s newraise = None 3500s 3500s if engine._has_events: 3500s ctx = ExceptionContextImpl( 3500s e, 3500s sqlalchemy_exception, 3500s engine, 3500s None, 3500s None, 3500s None, 3500s None, 3500s None, 3500s is_disconnect, 3500s True, 3500s ) 3500s for fn in engine.dispatch.handle_error: 3500s try: 3500s # handler returns an exception; 3500s # call next handler in a chain 3500s per_fn = fn(ctx) 3500s if per_fn is not None: 3500s ctx.chained_exception = newraise = per_fn 3500s except Exception as _raised: 3500s # handler raises an exception - stop processing 3500s newraise = _raised 3500s break 3500s 3500s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 3500s sqlalchemy_exception.connection_invalidated = ( 3500s is_disconnect 3500s ) = ctx.is_disconnect 3500s 3500s if newraise: 3500s util.raise_(newraise, with_traceback=exc_info[2], from_=e) 3500s elif should_wrap: 3500s > util.raise_( 3500s sqlalchemy_exception, with_traceback=exc_info[2], from_=e 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2208: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __init__( 3500s self, 3500s *, 3500s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 3500s password="", 3500s host=None, 3500s database=None, 3500s unix_socket=None, 3500s port=0, 3500s charset="", 3500s collation=None, 3500s sql_mode=None, 3500s read_default_file=None, 3500s conv=None, 3500s use_unicode=True, 3500s client_flag=0, 3500s cursorclass=Cursor, 3500s init_command=None, 3500s connect_timeout=10, 3500s read_default_group=None, 3500s autocommit=False, 3500s local_infile=False, 3500s max_allowed_packet=16 * 1024 * 1024, 3500s defer_connect=False, 3500s auth_plugin_map=None, 3500s read_timeout=None, 3500s write_timeout=None, 3500s bind_address=None, 3500s binary_prefix=False, 3500s program_name=None, 3500s server_public_key=None, 3500s ssl=None, 3500s ssl_ca=None, 3500s ssl_cert=None, 3500s ssl_disabled=None, 3500s ssl_key=None, 3500s ssl_key_password=None, 3500s ssl_verify_cert=None, 3500s ssl_verify_identity=None, 3500s compress=None, # not supported 3500s named_pipe=None, # not supported 3500s passwd=None, # deprecated 3500s db=None, # deprecated 3500s ): 3500s if db is not None and database is None: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 3500s database = db 3500s if passwd is not None and not password: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn( 3500s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 3500s # ) 3500s password = passwd 3500s 3500s if compress or named_pipe: 3500s raise NotImplementedError( 3500s "compress and named_pipe arguments are not supported" 3500s ) 3500s 3500s self._local_infile = bool(local_infile) 3500s if self._local_infile: 3500s client_flag |= CLIENT.LOCAL_FILES 3500s 3500s if read_default_group and not read_default_file: 3500s if sys.platform.startswith("win"): 3500s read_default_file = "c:\\my.ini" 3500s else: 3500s read_default_file = "/etc/my.cnf" 3500s 3500s if read_default_file: 3500s if not read_default_group: 3500s read_default_group = "client" 3500s 3500s cfg = Parser() 3500s cfg.read(os.path.expanduser(read_default_file)) 3500s 3500s def _config(key, arg): 3500s if arg: 3500s return arg 3500s try: 3500s return cfg.get(read_default_group, key) 3500s except Exception: 3500s return arg 3500s 3500s user = _config("user", user) 3500s password = _config("password", password) 3500s host = _config("host", host) 3500s database = _config("database", database) 3500s unix_socket = _config("socket", unix_socket) 3500s port = int(_config("port", port)) 3500s bind_address = _config("bind-address", bind_address) 3500s charset = _config("default-character-set", charset) 3500s if not ssl: 3500s ssl = {} 3500s if isinstance(ssl, dict): 3500s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 3500s value = _config("ssl-" + key, ssl.get(key)) 3500s if value: 3500s ssl[key] = value 3500s 3500s self.ssl = False 3500s if not ssl_disabled: 3500s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 3500s ssl = { 3500s "ca": ssl_ca, 3500s "check_hostname": bool(ssl_verify_identity), 3500s "verify_mode": ssl_verify_cert 3500s if ssl_verify_cert is not None 3500s else False, 3500s } 3500s if ssl_cert is not None: 3500s ssl["cert"] = ssl_cert 3500s if ssl_key is not None: 3500s ssl["key"] = ssl_key 3500s if ssl_key_password is not None: 3500s ssl["password"] = ssl_key_password 3500s if ssl: 3500s if not SSL_ENABLED: 3500s raise NotImplementedError("ssl module not found") 3500s self.ssl = True 3500s client_flag |= CLIENT.SSL 3500s self.ctx = self._create_ssl_ctx(ssl) 3500s 3500s self.host = host or "localhost" 3500s self.port = port or 3306 3500s if type(self.port) is not int: 3500s raise ValueError("port should be of type int") 3500s self.user = user or DEFAULT_USER 3500s self.password = password or b"" 3500s if isinstance(self.password, str): 3500s self.password = self.password.encode("latin1") 3500s self.db = database 3500s self.unix_socket = unix_socket 3500s self.bind_address = bind_address 3500s if not (0 < connect_timeout <= 31536000): 3500s raise ValueError("connect_timeout should be >0 and <=31536000") 3500s self.connect_timeout = connect_timeout or None 3500s if read_timeout is not None and read_timeout <= 0: 3500s raise ValueError("read_timeout should be > 0") 3500s self._read_timeout = read_timeout 3500s if write_timeout is not None and write_timeout <= 0: 3500s raise ValueError("write_timeout should be > 0") 3500s self._write_timeout = write_timeout 3500s 3500s self.charset = charset or DEFAULT_CHARSET 3500s self.collation = collation 3500s self.use_unicode = use_unicode 3500s 3500s self.encoding = charset_by_name(self.charset).encoding 3500s 3500s client_flag |= CLIENT.CAPABILITIES 3500s if self.db: 3500s client_flag |= CLIENT.CONNECT_WITH_DB 3500s 3500s self.client_flag = client_flag 3500s 3500s self.cursorclass = cursorclass 3500s 3500s self._result = None 3500s self._affected_rows = 0 3500s self.host_info = "Not connected" 3500s 3500s # specified autocommit mode. None means use server default. 3500s self.autocommit_mode = autocommit 3500s 3500s if conv is None: 3500s conv = converters.conversions 3500s 3500s # Need for MySQLdb compatibility. 3500s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 3500s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 3500s self.sql_mode = sql_mode 3500s self.init_command = init_command 3500s self.max_allowed_packet = max_allowed_packet 3500s self._auth_plugin_map = auth_plugin_map or {} 3500s self._binary_prefix = binary_prefix 3500s self.server_public_key = server_public_key 3500s 3500s self._connect_attrs = { 3500s "_client_name": "pymysql", 3500s "_client_version": VERSION_STRING, 3500s "_pid": str(os.getpid()), 3500s } 3500s 3500s if program_name: 3500s self._connect_attrs["program_name"] = program_name 3500s 3500s if defer_connect: 3500s self._sock = None 3500s else: 3500s > self.connect() 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = , sock = None 3500s 3500s def connect(self, sock=None): 3500s self._closed = False 3500s try: 3500s if sock is None: 3500s if self.unix_socket: 3500s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3500s sock.settimeout(self.connect_timeout) 3500s sock.connect(self.unix_socket) 3500s self.host_info = "Localhost via UNIX socket" 3500s self._secure = True 3500s if DEBUG: 3500s print("connected using unix_socket") 3500s else: 3500s kwargs = {} 3500s if self.bind_address is not None: 3500s kwargs["source_address"] = (self.bind_address, 0) 3500s while True: 3500s try: 3500s sock = socket.create_connection( 3500s (self.host, self.port), self.connect_timeout, **kwargs 3500s ) 3500s break 3500s except OSError as e: 3500s if e.errno == errno.EINTR: 3500s continue 3500s raise 3500s self.host_info = "socket %s:%d" % (self.host, self.port) 3500s if DEBUG: 3500s print("connected using socket") 3500s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 3500s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 3500s sock.settimeout(None) 3500s 3500s self._sock = sock 3500s self._rfile = sock.makefile("rb") 3500s self._next_seq_id = 0 3500s 3500s self._get_server_information() 3500s self._request_authentication() 3500s 3500s # Send "SET NAMES" query on init for: 3500s # - Ensure charaset (and collation) is set to the server. 3500s # - collation_id in handshake packet may be ignored. 3500s # - If collation is not specified, we don't know what is server's 3500s # default collation for the charset. For example, default collation 3500s # of utf8mb4 is: 3500s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 3500s # - MySQL 8.0: utf8mb4_0900_ai_ci 3500s # 3500s # Reference: 3500s # - https://github.com/PyMySQL/PyMySQL/issues/1092 3500s # - https://github.com/wagtail/wagtail/issues/9477 3500s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 3500s self.set_character_set(self.charset, self.collation) 3500s 3500s if self.sql_mode is not None: 3500s c = self.cursor() 3500s c.execute("SET sql_mode=%s", (self.sql_mode,)) 3500s c.close() 3500s 3500s if self.init_command is not None: 3500s c = self.cursor() 3500s c.execute(self.init_command) 3500s c.close() 3500s 3500s if self.autocommit_mode is not None: 3500s self.autocommit(self.autocommit_mode) 3500s except BaseException as e: 3500s self._rfile = None 3500s if sock is not None: 3500s try: 3500s sock.close() 3500s except: # noqa 3500s pass 3500s 3500s if isinstance(e, (OSError, IOError)): 3500s exc = err.OperationalError( 3500s CR.CR_CONN_HOST_ERROR, 3500s f"Can't connect to MySQL server on {self.host!r} ({e})", 3500s ) 3500s # Keep original exception and traceback to investigate error. 3500s exc.original_exception = e 3500s exc.traceback = traceback.format_exc() 3500s if DEBUG: 3500s print(exc.traceback) 3500s > raise exc 3500s E sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3500s E (Background on this error at: https://sqlalche.me/e/14/e3q8) 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 3500s _________ test_insertion_method_on_conflict_update[mysql_pymysql_conn] _________ 3500s self = , sock = None 3500s 3500s def connect(self, sock=None): 3500s self._closed = False 3500s try: 3500s if sock is None: 3500s if self.unix_socket: 3500s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3500s sock.settimeout(self.connect_timeout) 3500s sock.connect(self.unix_socket) 3500s self.host_info = "Localhost via UNIX socket" 3500s self._secure = True 3500s if DEBUG: 3500s print("connected using unix_socket") 3500s else: 3500s kwargs = {} 3500s if self.bind_address is not None: 3500s kwargs["source_address"] = (self.bind_address, 0) 3500s while True: 3500s try: 3500s > sock = socket.create_connection( 3500s (self.host, self.port), self.connect_timeout, **kwargs 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:649: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s address = ('localhost', 3306), timeout = 10, source_address = None 3500s 3500s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 3500s source_address=None, *, all_errors=False): 3500s """Connect to *address* and return the socket object. 3500s 3500s Convenience function. Connect to *address* (a 2-tuple ``(host, 3500s port)``) and return the socket object. Passing the optional 3500s *timeout* parameter will set the timeout on the socket instance 3500s before attempting to connect. If no *timeout* is supplied, the 3500s global default timeout setting returned by :func:`getdefaulttimeout` 3500s is used. If *source_address* is set it must be a tuple of (host, port) 3500s for the socket to bind as a source address before making the connection. 3500s A host of '' or port 0 tells the OS to use the default. When a connection 3500s cannot be created, raises the last error if *all_errors* is False, 3500s and an ExceptionGroup of all errors if *all_errors* is True. 3500s """ 3500s 3500s host, port = address 3500s exceptions = [] 3500s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 3500s af, socktype, proto, canonname, sa = res 3500s sock = None 3500s try: 3500s sock = socket(af, socktype, proto) 3500s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 3500s sock.settimeout(timeout) 3500s if source_address: 3500s sock.bind(source_address) 3500s sock.connect(sa) 3500s # Break explicitly a reference cycle 3500s exceptions.clear() 3500s return sock 3500s 3500s except error as exc: 3500s if not all_errors: 3500s exceptions.clear() # raise only the last error 3500s exceptions.append(exc) 3500s if sock is not None: 3500s sock.close() 3500s 3500s if len(exceptions): 3500s try: 3500s if not all_errors: 3500s > raise exceptions[0] 3500s 3500s /usr/lib/python3.12/socket.py:853: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s address = ('localhost', 3306), timeout = 10, source_address = None 3500s 3500s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 3500s source_address=None, *, all_errors=False): 3500s """Connect to *address* and return the socket object. 3500s 3500s Convenience function. Connect to *address* (a 2-tuple ``(host, 3500s port)``) and return the socket object. Passing the optional 3500s *timeout* parameter will set the timeout on the socket instance 3500s before attempting to connect. If no *timeout* is supplied, the 3500s global default timeout setting returned by :func:`getdefaulttimeout` 3500s is used. If *source_address* is set it must be a tuple of (host, port) 3500s for the socket to bind as a source address before making the connection. 3500s A host of '' or port 0 tells the OS to use the default. When a connection 3500s cannot be created, raises the last error if *all_errors* is False, 3500s and an ExceptionGroup of all errors if *all_errors* is True. 3500s """ 3500s 3500s host, port = address 3500s exceptions = [] 3500s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 3500s af, socktype, proto, canonname, sa = res 3500s sock = None 3500s try: 3500s sock = socket(af, socktype, proto) 3500s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 3500s sock.settimeout(timeout) 3500s if source_address: 3500s sock.bind(source_address) 3500s > sock.connect(sa) 3500s E ConnectionRefusedError: [Errno 111] Connection refused 3500s 3500s /usr/lib/python3.12/socket.py:838: ConnectionRefusedError 3500s 3500s During handling of the above exception, another exception occurred: 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __init__( 3500s self, 3500s *, 3500s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 3500s password="", 3500s host=None, 3500s database=None, 3500s unix_socket=None, 3500s port=0, 3500s charset="", 3500s collation=None, 3500s sql_mode=None, 3500s read_default_file=None, 3500s conv=None, 3500s use_unicode=True, 3500s client_flag=0, 3500s cursorclass=Cursor, 3500s init_command=None, 3500s connect_timeout=10, 3500s read_default_group=None, 3500s autocommit=False, 3500s local_infile=False, 3500s max_allowed_packet=16 * 1024 * 1024, 3500s defer_connect=False, 3500s auth_plugin_map=None, 3500s read_timeout=None, 3500s write_timeout=None, 3500s bind_address=None, 3500s binary_prefix=False, 3500s program_name=None, 3500s server_public_key=None, 3500s ssl=None, 3500s ssl_ca=None, 3500s ssl_cert=None, 3500s ssl_disabled=None, 3500s ssl_key=None, 3500s ssl_key_password=None, 3500s ssl_verify_cert=None, 3500s ssl_verify_identity=None, 3500s compress=None, # not supported 3500s named_pipe=None, # not supported 3500s passwd=None, # deprecated 3500s db=None, # deprecated 3500s ): 3500s if db is not None and database is None: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 3500s database = db 3500s if passwd is not None and not password: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn( 3500s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 3500s # ) 3500s password = passwd 3500s 3500s if compress or named_pipe: 3500s raise NotImplementedError( 3500s "compress and named_pipe arguments are not supported" 3500s ) 3500s 3500s self._local_infile = bool(local_infile) 3500s if self._local_infile: 3500s client_flag |= CLIENT.LOCAL_FILES 3500s 3500s if read_default_group and not read_default_file: 3500s if sys.platform.startswith("win"): 3500s read_default_file = "c:\\my.ini" 3500s else: 3500s read_default_file = "/etc/my.cnf" 3500s 3500s if read_default_file: 3500s if not read_default_group: 3500s read_default_group = "client" 3500s 3500s cfg = Parser() 3500s cfg.read(os.path.expanduser(read_default_file)) 3500s 3500s def _config(key, arg): 3500s if arg: 3500s return arg 3500s try: 3500s return cfg.get(read_default_group, key) 3500s except Exception: 3500s return arg 3500s 3500s user = _config("user", user) 3500s password = _config("password", password) 3500s host = _config("host", host) 3500s database = _config("database", database) 3500s unix_socket = _config("socket", unix_socket) 3500s port = int(_config("port", port)) 3500s bind_address = _config("bind-address", bind_address) 3500s charset = _config("default-character-set", charset) 3500s if not ssl: 3500s ssl = {} 3500s if isinstance(ssl, dict): 3500s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 3500s value = _config("ssl-" + key, ssl.get(key)) 3500s if value: 3500s ssl[key] = value 3500s 3500s self.ssl = False 3500s if not ssl_disabled: 3500s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 3500s ssl = { 3500s "ca": ssl_ca, 3500s "check_hostname": bool(ssl_verify_identity), 3500s "verify_mode": ssl_verify_cert 3500s if ssl_verify_cert is not None 3500s else False, 3500s } 3500s if ssl_cert is not None: 3500s ssl["cert"] = ssl_cert 3500s if ssl_key is not None: 3500s ssl["key"] = ssl_key 3500s if ssl_key_password is not None: 3500s ssl["password"] = ssl_key_password 3500s if ssl: 3500s if not SSL_ENABLED: 3500s raise NotImplementedError("ssl module not found") 3500s self.ssl = True 3500s client_flag |= CLIENT.SSL 3500s self.ctx = self._create_ssl_ctx(ssl) 3500s 3500s self.host = host or "localhost" 3500s self.port = port or 3306 3500s if type(self.port) is not int: 3500s raise ValueError("port should be of type int") 3500s self.user = user or DEFAULT_USER 3500s self.password = password or b"" 3500s if isinstance(self.password, str): 3500s self.password = self.password.encode("latin1") 3500s self.db = database 3500s self.unix_socket = unix_socket 3500s self.bind_address = bind_address 3500s if not (0 < connect_timeout <= 31536000): 3500s raise ValueError("connect_timeout should be >0 and <=31536000") 3500s self.connect_timeout = connect_timeout or None 3500s if read_timeout is not None and read_timeout <= 0: 3500s raise ValueError("read_timeout should be > 0") 3500s self._read_timeout = read_timeout 3500s if write_timeout is not None and write_timeout <= 0: 3500s raise ValueError("write_timeout should be > 0") 3500s self._write_timeout = write_timeout 3500s 3500s self.charset = charset or DEFAULT_CHARSET 3500s self.collation = collation 3500s self.use_unicode = use_unicode 3500s 3500s self.encoding = charset_by_name(self.charset).encoding 3500s 3500s client_flag |= CLIENT.CAPABILITIES 3500s if self.db: 3500s client_flag |= CLIENT.CONNECT_WITH_DB 3500s 3500s self.client_flag = client_flag 3500s 3500s self.cursorclass = cursorclass 3500s 3500s self._result = None 3500s self._affected_rows = 0 3500s self.host_info = "Not connected" 3500s 3500s # specified autocommit mode. None means use server default. 3500s self.autocommit_mode = autocommit 3500s 3500s if conv is None: 3500s conv = converters.conversions 3500s 3500s # Need for MySQLdb compatibility. 3500s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 3500s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 3500s self.sql_mode = sql_mode 3500s self.init_command = init_command 3500s self.max_allowed_packet = max_allowed_packet 3500s self._auth_plugin_map = auth_plugin_map or {} 3500s self._binary_prefix = binary_prefix 3500s self.server_public_key = server_public_key 3500s 3500s self._connect_attrs = { 3500s "_client_name": "pymysql", 3500s "_client_version": VERSION_STRING, 3500s "_pid": str(os.getpid()), 3500s } 3500s 3500s if program_name: 3500s self._connect_attrs["program_name"] = program_name 3500s 3500s if defer_connect: 3500s self._sock = None 3500s else: 3500s > self.connect() 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = , sock = None 3500s 3500s def connect(self, sock=None): 3500s self._closed = False 3500s try: 3500s if sock is None: 3500s if self.unix_socket: 3500s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3500s sock.settimeout(self.connect_timeout) 3500s sock.connect(self.unix_socket) 3500s self.host_info = "Localhost via UNIX socket" 3500s self._secure = True 3500s if DEBUG: 3500s print("connected using unix_socket") 3500s else: 3500s kwargs = {} 3500s if self.bind_address is not None: 3500s kwargs["source_address"] = (self.bind_address, 0) 3500s while True: 3500s try: 3500s sock = socket.create_connection( 3500s (self.host, self.port), self.connect_timeout, **kwargs 3500s ) 3500s break 3500s except OSError as e: 3500s if e.errno == errno.EINTR: 3500s continue 3500s raise 3500s self.host_info = "socket %s:%d" % (self.host, self.port) 3500s if DEBUG: 3500s print("connected using socket") 3500s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 3500s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 3500s sock.settimeout(None) 3500s 3500s self._sock = sock 3500s self._rfile = sock.makefile("rb") 3500s self._next_seq_id = 0 3500s 3500s self._get_server_information() 3500s self._request_authentication() 3500s 3500s # Send "SET NAMES" query on init for: 3500s # - Ensure charaset (and collation) is set to the server. 3500s # - collation_id in handshake packet may be ignored. 3500s # - If collation is not specified, we don't know what is server's 3500s # default collation for the charset. For example, default collation 3500s # of utf8mb4 is: 3500s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 3500s # - MySQL 8.0: utf8mb4_0900_ai_ci 3500s # 3500s # Reference: 3500s # - https://github.com/PyMySQL/PyMySQL/issues/1092 3500s # - https://github.com/wagtail/wagtail/issues/9477 3500s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 3500s self.set_character_set(self.charset, self.collation) 3500s 3500s if self.sql_mode is not None: 3500s c = self.cursor() 3500s c.execute("SET sql_mode=%s", (self.sql_mode,)) 3500s c.close() 3500s 3500s if self.init_command is not None: 3500s c = self.cursor() 3500s c.execute(self.init_command) 3500s c.close() 3500s 3500s if self.autocommit_mode is not None: 3500s self.autocommit(self.autocommit_mode) 3500s except BaseException as e: 3500s self._rfile = None 3500s if sock is not None: 3500s try: 3500s sock.close() 3500s except: # noqa 3500s pass 3500s 3500s if isinstance(e, (OSError, IOError)): 3500s exc = err.OperationalError( 3500s CR.CR_CONN_HOST_ERROR, 3500s f"Can't connect to MySQL server on {self.host!r} ({e})", 3500s ) 3500s # Keep original exception and traceback to investigate error. 3500s exc.original_exception = e 3500s exc.traceback = traceback.format_exc() 3500s if DEBUG: 3500s print(exc.traceback) 3500s > raise exc 3500s E pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 3500s 3500s The above exception was the direct cause of the following exception: 3500s 3500s conn = 'mysql_pymysql_conn' 3500s request = > 3500s 3500s @pytest.mark.db 3500s @pytest.mark.parametrize("conn", mysql_connectable) 3500s def test_insertion_method_on_conflict_update(conn, request): 3500s # GH 14553: Example in to_sql docstring 3500s > conn = request.getfixturevalue(conn) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:888: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'mysql_pymysql_conn' 3500s 3500s def getfixturevalue(self, argname: str) -> Any: 3500s """Dynamically run a named fixture function. 3500s 3500s Declaring fixtures via function argument is recommended where possible. 3500s But if you can only decide whether to use another fixture at test 3500s setup time, you may use this function to retrieve it inside a fixture 3500s or test function body. 3500s 3500s This method can be used during the test setup phase or the test run 3500s phase, but during the test teardown phase a fixture's value may not 3500s be available. 3500s 3500s :param argname: 3500s The fixture name. 3500s :raises pytest.FixtureLookupError: 3500s If the given fixture could not be found. 3500s """ 3500s > fixturedef = self._get_active_fixturedef(argname) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:585: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'mysql_pymysql_conn' 3500s 3500s def _get_active_fixturedef( 3500s self, argname: str 3500s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3500s try: 3500s return self._fixture_defs[argname] 3500s except KeyError: 3500s try: 3500s fixturedef = self._getnextfixturedef(argname) 3500s except FixtureLookupError: 3500s if argname == "request": 3500s cached_result = (self, [0], None) 3500s return PseudoFixtureDef(cached_result, Scope.Function) 3500s raise 3500s # Remove indent to prevent the python3 exception 3500s # from leaking into the call. 3500s > self._compute_fixture_value(fixturedef) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s fixturedef = 3500s 3500s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3500s """Create a SubRequest based on "self" and call the execute method 3500s of the given FixtureDef object. 3500s 3500s This will force the FixtureDef object to throw away any previous 3500s results and compute a new fixture value, which will be stored into 3500s the FixtureDef object itself. 3500s """ 3500s # prepare a subrequest object before calling fixture function 3500s # (latter managed by fixturedef) 3500s argname = fixturedef.argname 3500s funcitem = self._pyfuncitem 3500s scope = fixturedef._scope 3500s try: 3500s callspec = funcitem.callspec 3500s except AttributeError: 3500s callspec = None 3500s if callspec is not None and argname in callspec.params: 3500s param = callspec.params[argname] 3500s param_index = callspec.indices[argname] 3500s # If a parametrize invocation set a scope it will override 3500s # the static scope defined with the fixture function. 3500s with suppress(KeyError): 3500s scope = callspec._arg2scope[argname] 3500s else: 3500s param = NOTSET 3500s param_index = 0 3500s has_params = fixturedef.params is not None 3500s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3500s if has_params and fixtures_not_supported: 3500s msg = ( 3500s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3500s "Node id: {nodeid}\n" 3500s "Function type: {typename}" 3500s ).format( 3500s name=funcitem.name, 3500s nodeid=funcitem.nodeid, 3500s typename=type(funcitem).__name__, 3500s ) 3500s fail(msg, pytrace=False) 3500s if has_params: 3500s frame = inspect.stack()[3] 3500s frameinfo = inspect.getframeinfo(frame[0]) 3500s source_path = absolutepath(frameinfo.filename) 3500s source_lineno = frameinfo.lineno 3500s try: 3500s source_path_str = str( 3500s source_path.relative_to(funcitem.config.rootpath) 3500s ) 3500s except ValueError: 3500s source_path_str = str(source_path) 3500s msg = ( 3500s "The requested fixture has no parameter defined for test:\n" 3500s " {}\n\n" 3500s "Requested fixture '{}' defined in:\n{}" 3500s "\n\nRequested here:\n{}:{}".format( 3500s funcitem.nodeid, 3500s fixturedef.argname, 3500s getlocation(fixturedef.func, funcitem.config.rootpath), 3500s source_path_str, 3500s source_lineno, 3500s ) 3500s ) 3500s fail(msg, pytrace=False) 3500s 3500s subrequest = SubRequest( 3500s self, scope, param, param_index, fixturedef, _ispytest=True 3500s ) 3500s 3500s # Check if a higher-level scoped fixture accesses a lower level one. 3500s subrequest._check_scope(argname, self._scope, scope) 3500s try: 3500s # Call the fixture function. 3500s > fixturedef.execute(request=subrequest) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s request = > 3500s 3500s def execute(self, request: SubRequest) -> FixtureValue: 3500s # Get required arguments and register our own finish() 3500s # with their finalization. 3500s for argname in self.argnames: 3500s > fixturedef = request._get_active_fixturedef(argname) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1045: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'mysql_pymysql_engine' 3500s 3500s def _get_active_fixturedef( 3500s self, argname: str 3500s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3500s try: 3500s return self._fixture_defs[argname] 3500s except KeyError: 3500s try: 3500s fixturedef = self._getnextfixturedef(argname) 3500s except FixtureLookupError: 3500s if argname == "request": 3500s cached_result = (self, [0], None) 3500s return PseudoFixtureDef(cached_result, Scope.Function) 3500s raise 3500s # Remove indent to prevent the python3 exception 3500s # from leaking into the call. 3500s > self._compute_fixture_value(fixturedef) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s fixturedef = 3500s 3500s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3500s """Create a SubRequest based on "self" and call the execute method 3500s of the given FixtureDef object. 3500s 3500s This will force the FixtureDef object to throw away any previous 3500s results and compute a new fixture value, which will be stored into 3500s the FixtureDef object itself. 3500s """ 3500s # prepare a subrequest object before calling fixture function 3500s # (latter managed by fixturedef) 3500s argname = fixturedef.argname 3500s funcitem = self._pyfuncitem 3500s scope = fixturedef._scope 3500s try: 3500s callspec = funcitem.callspec 3500s except AttributeError: 3500s callspec = None 3500s if callspec is not None and argname in callspec.params: 3500s param = callspec.params[argname] 3500s param_index = callspec.indices[argname] 3500s # If a parametrize invocation set a scope it will override 3500s # the static scope defined with the fixture function. 3500s with suppress(KeyError): 3500s scope = callspec._arg2scope[argname] 3500s else: 3500s param = NOTSET 3500s param_index = 0 3500s has_params = fixturedef.params is not None 3500s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3500s if has_params and fixtures_not_supported: 3500s msg = ( 3500s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3500s "Node id: {nodeid}\n" 3500s "Function type: {typename}" 3500s ).format( 3500s name=funcitem.name, 3500s nodeid=funcitem.nodeid, 3500s typename=type(funcitem).__name__, 3500s ) 3500s fail(msg, pytrace=False) 3500s if has_params: 3500s frame = inspect.stack()[3] 3500s frameinfo = inspect.getframeinfo(frame[0]) 3500s source_path = absolutepath(frameinfo.filename) 3500s source_lineno = frameinfo.lineno 3500s try: 3500s source_path_str = str( 3500s source_path.relative_to(funcitem.config.rootpath) 3500s ) 3500s except ValueError: 3500s source_path_str = str(source_path) 3500s msg = ( 3500s "The requested fixture has no parameter defined for test:\n" 3500s " {}\n\n" 3500s "Requested fixture '{}' defined in:\n{}" 3500s "\n\nRequested here:\n{}:{}".format( 3500s funcitem.nodeid, 3500s fixturedef.argname, 3500s getlocation(fixturedef.func, funcitem.config.rootpath), 3500s source_path_str, 3500s source_lineno, 3500s ) 3500s ) 3500s fail(msg, pytrace=False) 3500s 3500s subrequest = SubRequest( 3500s self, scope, param, param_index, fixturedef, _ispytest=True 3500s ) 3500s 3500s # Check if a higher-level scoped fixture accesses a lower level one. 3500s subrequest._check_scope(argname, self._scope, scope) 3500s try: 3500s # Call the fixture function. 3500s > fixturedef.execute(request=subrequest) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s request = > 3500s 3500s def execute(self, request: SubRequest) -> FixtureValue: 3500s # Get required arguments and register our own finish() 3500s # with their finalization. 3500s for argname in self.argnames: 3500s fixturedef = request._get_active_fixturedef(argname) 3500s if argname != "request": 3500s # PseudoFixtureDef is only for "request". 3500s assert isinstance(fixturedef, FixtureDef) 3500s fixturedef.addfinalizer(functools.partial(self.finish, request=request)) 3500s 3500s my_cache_key = self.cache_key(request) 3500s if self.cached_result is not None: 3500s # note: comparison with `==` can fail (or be expensive) for e.g. 3500s # numpy arrays (#6497). 3500s cache_key = self.cached_result[1] 3500s if my_cache_key is cache_key: 3500s if self.cached_result[2] is not None: 3500s _, val, tb = self.cached_result[2] 3500s raise val.with_traceback(tb) 3500s else: 3500s result = self.cached_result[0] 3500s return result 3500s # We have a previous but differently parametrized fixture instance 3500s # so we need to tear it down before creating a new one. 3500s self.finish(request) 3500s assert self.cached_result is None 3500s 3500s ihook = request.node.ihook 3500s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1069: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s kwargs = {'fixturedef': , 'request': >} 3500s firstresult = True 3500s 3500s def __call__(self, **kwargs: object) -> Any: 3500s """Call the hook. 3500s 3500s Only accepts keyword arguments, which should match the hook 3500s specification. 3500s 3500s Returns the result(s) of calling all registered plugins, see 3500s :ref:`calling`. 3500s """ 3500s assert ( 3500s not self.is_historic() 3500s ), "Cannot directly call a historic hook - use call_historic instead." 3500s self._verify_all_args_are_provided(kwargs) 3500s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 3500s # Copy because plugins may register other plugins during iteration (#438). 3500s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = <_pytest.config.PytestPluginManager object at 0xe9079168> 3500s hook_name = 'pytest_fixture_setup' 3500s methods = [>] 3500s kwargs = {'fixturedef': , 'request': >} 3500s firstresult = True 3500s 3500s def _hookexec( 3500s self, 3500s hook_name: str, 3500s methods: Sequence[HookImpl], 3500s kwargs: Mapping[str, object], 3500s firstresult: bool, 3500s ) -> object | list[object]: 3500s # called from all hookcaller instances. 3500s # enable_tracing will set its own wrapping function at self._inner_hookexec 3500s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturedef = 3500s request = > 3500s 3500s def pytest_fixture_setup( 3500s fixturedef: FixtureDef[FixtureValue], request: SubRequest 3500s ) -> FixtureValue: 3500s """Execution of fixture setup.""" 3500s kwargs = {} 3500s for argname in fixturedef.argnames: 3500s fixdef = request._get_active_fixturedef(argname) 3500s assert fixdef.cached_result is not None 3500s result, arg_cache_key, exc = fixdef.cached_result 3500s request._check_scope(argname, request._scope, fixdef._scope) 3500s kwargs[argname] = result 3500s 3500s fixturefunc = resolve_fixture_function(fixturedef, request) 3500s my_cache_key = fixturedef.cache_key(request) 3500s try: 3500s > result = call_fixture_func(fixturefunc, request, kwargs) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1123: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturefunc = 3500s request = > 3500s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv'), 'types_data': [{'B... False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}]} 3500s 3500s def call_fixture_func( 3500s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 3500s ) -> FixtureValue: 3500s if is_generator(fixturefunc): 3500s fixturefunc = cast( 3500s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 3500s ) 3500s generator = fixturefunc(**kwargs) 3500s try: 3500s > fixture_result = next(generator) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:895: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s iris_path = PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv') 3500s types_data = [{'BoolCol': False, 'BoolColWithNull': False, 'DateCol': '2000-01-03 00:00:00', 'DateColWithTz': '2000-01-01 00:00:00-...: False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}] 3500s 3500s @pytest.fixture 3500s def mysql_pymysql_engine(iris_path, types_data): 3500s sqlalchemy = pytest.importorskip("sqlalchemy") 3500s pymysql = pytest.importorskip("pymysql") 3500s engine = sqlalchemy.create_engine( 3500s "mysql+pymysql://root@localhost:3306/pandas", 3500s connect_args={"client_flag": pymysql.constants.CLIENT.MULTI_STATEMENTS}, 3500s poolclass=sqlalchemy.pool.NullPool, 3500s ) 3500s > insp = sqlalchemy.inspect(engine) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:409: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s subject = Engine(mysql+pymysql://root@localhost:3306/pandas), raiseerr = True 3500s 3500s def inspect(subject, raiseerr=True): 3500s """Produce an inspection object for the given target. 3500s 3500s The returned value in some cases may be the 3500s same object as the one given, such as if a 3500s :class:`_orm.Mapper` object is passed. In other 3500s cases, it will be an instance of the registered 3500s inspection type for the given object, such as 3500s if an :class:`_engine.Engine` is passed, an 3500s :class:`_reflection.Inspector` object is returned. 3500s 3500s :param subject: the subject to be inspected. 3500s :param raiseerr: When ``True``, if the given subject 3500s does not 3500s correspond to a known SQLAlchemy inspected type, 3500s :class:`sqlalchemy.exc.NoInspectionAvailable` 3500s is raised. If ``False``, ``None`` is returned. 3500s 3500s """ 3500s type_ = type(subject) 3500s for cls in type_.__mro__: 3500s if cls in _registrars: 3500s reg = _registrars[cls] 3500s if reg is True: 3500s return subject 3500s > ret = reg(subject) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:64: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s @inspection._inspects(Engine) 3500s def _engine_insp(bind): 3500s > return Inspector._construct(Inspector._init_engine, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:182: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s init = 3500s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s @classmethod 3500s def _construct(cls, init, bind): 3500s 3500s if hasattr(bind.dialect, "inspector"): 3500s cls = bind.dialect.inspector 3500s 3500s self = cls.__new__(cls) 3500s > init(self, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:117: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s def _init_engine(self, engine): 3500s self.bind = self.engine = engine 3500s > engine.connect().close() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:128: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s close_with_result = False 3500s 3500s def connect(self, close_with_result=False): 3500s """Return a new :class:`_engine.Connection` object. 3500s 3500s The :class:`_engine.Connection` object is a facade that uses a DBAPI 3500s connection internally in order to communicate with the database. This 3500s connection is procured from the connection-holding :class:`_pool.Pool` 3500s referenced by this :class:`_engine.Engine`. When the 3500s :meth:`_engine.Connection.close` method of the 3500s :class:`_engine.Connection` object 3500s is called, the underlying DBAPI connection is then returned to the 3500s connection pool, where it may be used again in a subsequent call to 3500s :meth:`_engine.Engine.connect`. 3500s 3500s """ 3500s 3500s > return self._connection_cls(self, close_with_result=close_with_result) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3325: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 3500s close_with_result = False, _branch_from = None, _execution_options = None 3500s _dispatch = None, _has_events = None, _allow_revalidate = True 3500s 3500s def __init__( 3500s self, 3500s engine, 3500s connection=None, 3500s close_with_result=False, 3500s _branch_from=None, 3500s _execution_options=None, 3500s _dispatch=None, 3500s _has_events=None, 3500s _allow_revalidate=True, 3500s ): 3500s """Construct a new Connection.""" 3500s self.engine = engine 3500s self.dialect = engine.dialect 3500s self.__branch_from = _branch_from 3500s 3500s if _branch_from: 3500s # branching is always "from" the root connection 3500s assert _branch_from.__branch_from is None 3500s self._dbapi_connection = connection 3500s self._execution_options = _execution_options 3500s self._echo = _branch_from._echo 3500s self.should_close_with_result = False 3500s self.dispatch = _dispatch 3500s self._has_events = _branch_from._has_events 3500s else: 3500s self._dbapi_connection = ( 3500s connection 3500s if connection is not None 3500s > else engine.raw_connection() 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:96: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas), _connection = None 3500s 3500s def raw_connection(self, _connection=None): 3500s """Return a "raw" DBAPI connection from the connection pool. 3500s 3500s The returned object is a proxied version of the DBAPI 3500s connection object used by the underlying driver in use. 3500s The object will have all the same behavior as the real DBAPI 3500s connection, except that its ``close()`` method will result in the 3500s connection being returned to the pool, rather than being closed 3500s for real. 3500s 3500s This method provides direct DBAPI connection access for 3500s special situations when the API provided by 3500s :class:`_engine.Connection` 3500s is not needed. When a :class:`_engine.Connection` object is already 3500s present, the DBAPI connection is available using 3500s the :attr:`_engine.Connection.connection` accessor. 3500s 3500s .. seealso:: 3500s 3500s :ref:`dbapi_connections` 3500s 3500s """ 3500s > return self._wrap_pool_connect(self.pool.connect, _connection) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3404: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s return fn() 3500s except dialect.dbapi.Error as e: 3500s if connection is None: 3500s > Connection._handle_dbapi_exception_noconnection( 3500s e, dialect, self 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3374: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s e = OperationalError(2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3500s dialect = 3500s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s 3500s @classmethod 3500s def _handle_dbapi_exception_noconnection(cls, e, dialect, engine): 3500s exc_info = sys.exc_info() 3500s 3500s is_disconnect = dialect.is_disconnect(e, None, None) 3500s 3500s should_wrap = isinstance(e, dialect.dbapi.Error) 3500s 3500s if should_wrap: 3500s sqlalchemy_exception = exc.DBAPIError.instance( 3500s None, 3500s None, 3500s e, 3500s dialect.dbapi.Error, 3500s hide_parameters=engine.hide_parameters, 3500s connection_invalidated=is_disconnect, 3500s ) 3500s else: 3500s sqlalchemy_exception = None 3500s 3500s newraise = None 3500s 3500s if engine._has_events: 3500s ctx = ExceptionContextImpl( 3500s e, 3500s sqlalchemy_exception, 3500s engine, 3500s None, 3500s None, 3500s None, 3500s None, 3500s None, 3500s is_disconnect, 3500s True, 3500s ) 3500s for fn in engine.dispatch.handle_error: 3500s try: 3500s # handler returns an exception; 3500s # call next handler in a chain 3500s per_fn = fn(ctx) 3500s if per_fn is not None: 3500s ctx.chained_exception = newraise = per_fn 3500s except Exception as _raised: 3500s # handler raises an exception - stop processing 3500s newraise = _raised 3500s break 3500s 3500s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 3500s sqlalchemy_exception.connection_invalidated = ( 3500s is_disconnect 3500s ) = ctx.is_disconnect 3500s 3500s if newraise: 3500s util.raise_(newraise, with_traceback=exc_info[2], from_=e) 3500s elif should_wrap: 3500s > util.raise_( 3500s sqlalchemy_exception, with_traceback=exc_info[2], from_=e 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2208: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __init__( 3500s self, 3500s *, 3500s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 3500s password="", 3500s host=None, 3500s database=None, 3500s unix_socket=None, 3500s port=0, 3500s charset="", 3500s collation=None, 3500s sql_mode=None, 3500s read_default_file=None, 3500s conv=None, 3500s use_unicode=True, 3500s client_flag=0, 3500s cursorclass=Cursor, 3500s init_command=None, 3500s connect_timeout=10, 3500s read_default_group=None, 3500s autocommit=False, 3500s local_infile=False, 3500s max_allowed_packet=16 * 1024 * 1024, 3500s defer_connect=False, 3500s auth_plugin_map=None, 3500s read_timeout=None, 3500s write_timeout=None, 3500s bind_address=None, 3500s binary_prefix=False, 3500s program_name=None, 3500s server_public_key=None, 3500s ssl=None, 3500s ssl_ca=None, 3500s ssl_cert=None, 3500s ssl_disabled=None, 3500s ssl_key=None, 3500s ssl_key_password=None, 3500s ssl_verify_cert=None, 3500s ssl_verify_identity=None, 3500s compress=None, # not supported 3500s named_pipe=None, # not supported 3500s passwd=None, # deprecated 3500s db=None, # deprecated 3500s ): 3500s if db is not None and database is None: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 3500s database = db 3500s if passwd is not None and not password: 3500s # We will raise warning in 2022 or later. 3500s # See https://github.com/PyMySQL/PyMySQL/issues/939 3500s # warnings.warn( 3500s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 3500s # ) 3500s password = passwd 3500s 3500s if compress or named_pipe: 3500s raise NotImplementedError( 3500s "compress and named_pipe arguments are not supported" 3500s ) 3500s 3500s self._local_infile = bool(local_infile) 3500s if self._local_infile: 3500s client_flag |= CLIENT.LOCAL_FILES 3500s 3500s if read_default_group and not read_default_file: 3500s if sys.platform.startswith("win"): 3500s read_default_file = "c:\\my.ini" 3500s else: 3500s read_default_file = "/etc/my.cnf" 3500s 3500s if read_default_file: 3500s if not read_default_group: 3500s read_default_group = "client" 3500s 3500s cfg = Parser() 3500s cfg.read(os.path.expanduser(read_default_file)) 3500s 3500s def _config(key, arg): 3500s if arg: 3500s return arg 3500s try: 3500s return cfg.get(read_default_group, key) 3500s except Exception: 3500s return arg 3500s 3500s user = _config("user", user) 3500s password = _config("password", password) 3500s host = _config("host", host) 3500s database = _config("database", database) 3500s unix_socket = _config("socket", unix_socket) 3500s port = int(_config("port", port)) 3500s bind_address = _config("bind-address", bind_address) 3500s charset = _config("default-character-set", charset) 3500s if not ssl: 3500s ssl = {} 3500s if isinstance(ssl, dict): 3500s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 3500s value = _config("ssl-" + key, ssl.get(key)) 3500s if value: 3500s ssl[key] = value 3500s 3500s self.ssl = False 3500s if not ssl_disabled: 3500s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 3500s ssl = { 3500s "ca": ssl_ca, 3500s "check_hostname": bool(ssl_verify_identity), 3500s "verify_mode": ssl_verify_cert 3500s if ssl_verify_cert is not None 3500s else False, 3500s } 3500s if ssl_cert is not None: 3500s ssl["cert"] = ssl_cert 3500s if ssl_key is not None: 3500s ssl["key"] = ssl_key 3500s if ssl_key_password is not None: 3500s ssl["password"] = ssl_key_password 3500s if ssl: 3500s if not SSL_ENABLED: 3500s raise NotImplementedError("ssl module not found") 3500s self.ssl = True 3500s client_flag |= CLIENT.SSL 3500s self.ctx = self._create_ssl_ctx(ssl) 3500s 3500s self.host = host or "localhost" 3500s self.port = port or 3306 3500s if type(self.port) is not int: 3500s raise ValueError("port should be of type int") 3500s self.user = user or DEFAULT_USER 3500s self.password = password or b"" 3500s if isinstance(self.password, str): 3500s self.password = self.password.encode("latin1") 3500s self.db = database 3500s self.unix_socket = unix_socket 3500s self.bind_address = bind_address 3500s if not (0 < connect_timeout <= 31536000): 3500s raise ValueError("connect_timeout should be >0 and <=31536000") 3500s self.connect_timeout = connect_timeout or None 3500s if read_timeout is not None and read_timeout <= 0: 3500s raise ValueError("read_timeout should be > 0") 3500s self._read_timeout = read_timeout 3500s if write_timeout is not None and write_timeout <= 0: 3500s raise ValueError("write_timeout should be > 0") 3500s self._write_timeout = write_timeout 3500s 3500s self.charset = charset or DEFAULT_CHARSET 3500s self.collation = collation 3500s self.use_unicode = use_unicode 3500s 3500s self.encoding = charset_by_name(self.charset).encoding 3500s 3500s client_flag |= CLIENT.CAPABILITIES 3500s if self.db: 3500s client_flag |= CLIENT.CONNECT_WITH_DB 3500s 3500s self.client_flag = client_flag 3500s 3500s self.cursorclass = cursorclass 3500s 3500s self._result = None 3500s self._affected_rows = 0 3500s self.host_info = "Not connected" 3500s 3500s # specified autocommit mode. None means use server default. 3500s self.autocommit_mode = autocommit 3500s 3500s if conv is None: 3500s conv = converters.conversions 3500s 3500s # Need for MySQLdb compatibility. 3500s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 3500s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 3500s self.sql_mode = sql_mode 3500s self.init_command = init_command 3500s self.max_allowed_packet = max_allowed_packet 3500s self._auth_plugin_map = auth_plugin_map or {} 3500s self._binary_prefix = binary_prefix 3500s self.server_public_key = server_public_key 3500s 3500s self._connect_attrs = { 3500s "_client_name": "pymysql", 3500s "_client_version": VERSION_STRING, 3500s "_pid": str(os.getpid()), 3500s } 3500s 3500s if program_name: 3500s self._connect_attrs["program_name"] = program_name 3500s 3500s if defer_connect: 3500s self._sock = None 3500s else: 3500s > self.connect() 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = , sock = None 3500s 3500s def connect(self, sock=None): 3500s self._closed = False 3500s try: 3500s if sock is None: 3500s if self.unix_socket: 3500s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 3500s sock.settimeout(self.connect_timeout) 3500s sock.connect(self.unix_socket) 3500s self.host_info = "Localhost via UNIX socket" 3500s self._secure = True 3500s if DEBUG: 3500s print("connected using unix_socket") 3500s else: 3500s kwargs = {} 3500s if self.bind_address is not None: 3500s kwargs["source_address"] = (self.bind_address, 0) 3500s while True: 3500s try: 3500s sock = socket.create_connection( 3500s (self.host, self.port), self.connect_timeout, **kwargs 3500s ) 3500s break 3500s except OSError as e: 3500s if e.errno == errno.EINTR: 3500s continue 3500s raise 3500s self.host_info = "socket %s:%d" % (self.host, self.port) 3500s if DEBUG: 3500s print("connected using socket") 3500s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 3500s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 3500s sock.settimeout(None) 3500s 3500s self._sock = sock 3500s self._rfile = sock.makefile("rb") 3500s self._next_seq_id = 0 3500s 3500s self._get_server_information() 3500s self._request_authentication() 3500s 3500s # Send "SET NAMES" query on init for: 3500s # - Ensure charaset (and collation) is set to the server. 3500s # - collation_id in handshake packet may be ignored. 3500s # - If collation is not specified, we don't know what is server's 3500s # default collation for the charset. For example, default collation 3500s # of utf8mb4 is: 3500s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 3500s # - MySQL 8.0: utf8mb4_0900_ai_ci 3500s # 3500s # Reference: 3500s # - https://github.com/PyMySQL/PyMySQL/issues/1092 3500s # - https://github.com/wagtail/wagtail/issues/9477 3500s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 3500s self.set_character_set(self.charset, self.collation) 3500s 3500s if self.sql_mode is not None: 3500s c = self.cursor() 3500s c.execute("SET sql_mode=%s", (self.sql_mode,)) 3500s c.close() 3500s 3500s if self.init_command is not None: 3500s c = self.cursor() 3500s c.execute(self.init_command) 3500s c.close() 3500s 3500s if self.autocommit_mode is not None: 3500s self.autocommit(self.autocommit_mode) 3500s except BaseException as e: 3500s self._rfile = None 3500s if sock is not None: 3500s try: 3500s sock.close() 3500s except: # noqa 3500s pass 3500s 3500s if isinstance(e, (OSError, IOError)): 3500s exc = err.OperationalError( 3500s CR.CR_CONN_HOST_ERROR, 3500s f"Can't connect to MySQL server on {self.host!r} ({e})", 3500s ) 3500s # Keep original exception and traceback to investigate error. 3500s exc.original_exception = e 3500s exc.traceback = traceback.format_exc() 3500s if DEBUG: 3500s print(exc.traceback) 3500s > raise exc 3500s E sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 3500s E (Background on this error at: https://sqlalche.me/e/14/e3q8) 3500s 3500s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 3500s _____________ test_read_view_postgres[postgresql_psycopg2_engine] ______________ 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s dsn = 'host=localhost user=postgres password=postgres port=5432 dbname=pandas' 3500s connection_factory = None, cursor_factory = None 3500s kwargs = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s kwasync = {} 3500s 3500s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 3500s """ 3500s Create a new database connection. 3500s 3500s The connection parameters can be specified as a string: 3500s 3500s conn = psycopg2.connect("dbname=test user=postgres password=secret") 3500s 3500s or using a set of keyword arguments: 3500s 3500s conn = psycopg2.connect(database="test", user="postgres", password="secret") 3500s 3500s Or as a mix of both. The basic connection parameters are: 3500s 3500s - *dbname*: the database name 3500s - *database*: the database name (only as keyword argument) 3500s - *user*: user name used to authenticate 3500s - *password*: password used to authenticate 3500s - *host*: database host address (defaults to UNIX socket if not provided) 3500s - *port*: connection port number (defaults to 5432 if not provided) 3500s 3500s Using the *connection_factory* parameter a different class or connections 3500s factory can be specified. It should be a callable object taking a dsn 3500s argument. 3500s 3500s Using the *cursor_factory* parameter, a new default cursor factory will be 3500s used by cursor(). 3500s 3500s Using *async*=True an asynchronous connection will be created. *async_* is 3500s a valid alias (for Python versions where ``async`` is a keyword). 3500s 3500s Any other keyword parameter will be passed to the underlying client 3500s library: the list of supported parameters depends on the library version. 3500s 3500s """ 3500s kwasync = {} 3500s if 'async' in kwargs: 3500s kwasync['async'] = kwargs.pop('async') 3500s if 'async_' in kwargs: 3500s kwasync['async_'] = kwargs.pop('async_') 3500s 3500s dsn = _ext.make_dsn(dsn, **kwargs) 3500s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 3500s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 3500s E Is the server running on that host and accepting TCP/IP connections? 3500s 3500s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 3500s 3500s The above exception was the direct cause of the following exception: 3500s 3500s conn = 'postgresql_psycopg2_engine' 3500s request = > 3500s 3500s @pytest.mark.db 3500s @pytest.mark.parametrize("conn", postgresql_connectable) 3500s def test_read_view_postgres(conn, request): 3500s # GH 52969 3500s > conn = request.getfixturevalue(conn) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:942: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'postgresql_psycopg2_engine' 3500s 3500s def getfixturevalue(self, argname: str) -> Any: 3500s """Dynamically run a named fixture function. 3500s 3500s Declaring fixtures via function argument is recommended where possible. 3500s But if you can only decide whether to use another fixture at test 3500s setup time, you may use this function to retrieve it inside a fixture 3500s or test function body. 3500s 3500s This method can be used during the test setup phase or the test run 3500s phase, but during the test teardown phase a fixture's value may not 3500s be available. 3500s 3500s :param argname: 3500s The fixture name. 3500s :raises pytest.FixtureLookupError: 3500s If the given fixture could not be found. 3500s """ 3500s > fixturedef = self._get_active_fixturedef(argname) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:585: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'postgresql_psycopg2_engine' 3500s 3500s def _get_active_fixturedef( 3500s self, argname: str 3500s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3500s try: 3500s return self._fixture_defs[argname] 3500s except KeyError: 3500s try: 3500s fixturedef = self._getnextfixturedef(argname) 3500s except FixtureLookupError: 3500s if argname == "request": 3500s cached_result = (self, [0], None) 3500s return PseudoFixtureDef(cached_result, Scope.Function) 3500s raise 3500s # Remove indent to prevent the python3 exception 3500s # from leaking into the call. 3500s > self._compute_fixture_value(fixturedef) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s fixturedef = 3500s 3500s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3500s """Create a SubRequest based on "self" and call the execute method 3500s of the given FixtureDef object. 3500s 3500s This will force the FixtureDef object to throw away any previous 3500s results and compute a new fixture value, which will be stored into 3500s the FixtureDef object itself. 3500s """ 3500s # prepare a subrequest object before calling fixture function 3500s # (latter managed by fixturedef) 3500s argname = fixturedef.argname 3500s funcitem = self._pyfuncitem 3500s scope = fixturedef._scope 3500s try: 3500s callspec = funcitem.callspec 3500s except AttributeError: 3500s callspec = None 3500s if callspec is not None and argname in callspec.params: 3500s param = callspec.params[argname] 3500s param_index = callspec.indices[argname] 3500s # If a parametrize invocation set a scope it will override 3500s # the static scope defined with the fixture function. 3500s with suppress(KeyError): 3500s scope = callspec._arg2scope[argname] 3500s else: 3500s param = NOTSET 3500s param_index = 0 3500s has_params = fixturedef.params is not None 3500s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3500s if has_params and fixtures_not_supported: 3500s msg = ( 3500s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3500s "Node id: {nodeid}\n" 3500s "Function type: {typename}" 3500s ).format( 3500s name=funcitem.name, 3500s nodeid=funcitem.nodeid, 3500s typename=type(funcitem).__name__, 3500s ) 3500s fail(msg, pytrace=False) 3500s if has_params: 3500s frame = inspect.stack()[3] 3500s frameinfo = inspect.getframeinfo(frame[0]) 3500s source_path = absolutepath(frameinfo.filename) 3500s source_lineno = frameinfo.lineno 3500s try: 3500s source_path_str = str( 3500s source_path.relative_to(funcitem.config.rootpath) 3500s ) 3500s except ValueError: 3500s source_path_str = str(source_path) 3500s msg = ( 3500s "The requested fixture has no parameter defined for test:\n" 3500s " {}\n\n" 3500s "Requested fixture '{}' defined in:\n{}" 3500s "\n\nRequested here:\n{}:{}".format( 3500s funcitem.nodeid, 3500s fixturedef.argname, 3500s getlocation(fixturedef.func, funcitem.config.rootpath), 3500s source_path_str, 3500s source_lineno, 3500s ) 3500s ) 3500s fail(msg, pytrace=False) 3500s 3500s subrequest = SubRequest( 3500s self, scope, param, param_index, fixturedef, _ispytest=True 3500s ) 3500s 3500s # Check if a higher-level scoped fixture accesses a lower level one. 3500s subrequest._check_scope(argname, self._scope, scope) 3500s try: 3500s # Call the fixture function. 3500s > fixturedef.execute(request=subrequest) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s request = > 3500s 3500s def execute(self, request: SubRequest) -> FixtureValue: 3500s # Get required arguments and register our own finish() 3500s # with their finalization. 3500s for argname in self.argnames: 3500s fixturedef = request._get_active_fixturedef(argname) 3500s if argname != "request": 3500s # PseudoFixtureDef is only for "request". 3500s assert isinstance(fixturedef, FixtureDef) 3500s fixturedef.addfinalizer(functools.partial(self.finish, request=request)) 3500s 3500s my_cache_key = self.cache_key(request) 3500s if self.cached_result is not None: 3500s # note: comparison with `==` can fail (or be expensive) for e.g. 3500s # numpy arrays (#6497). 3500s cache_key = self.cached_result[1] 3500s if my_cache_key is cache_key: 3500s if self.cached_result[2] is not None: 3500s _, val, tb = self.cached_result[2] 3500s raise val.with_traceback(tb) 3500s else: 3500s result = self.cached_result[0] 3500s return result 3500s # We have a previous but differently parametrized fixture instance 3500s # so we need to tear it down before creating a new one. 3500s self.finish(request) 3500s assert self.cached_result is None 3500s 3500s ihook = request.node.ihook 3500s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1069: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s kwargs = {'fixturedef': , 'request': >} 3500s firstresult = True 3500s 3500s def __call__(self, **kwargs: object) -> Any: 3500s """Call the hook. 3500s 3500s Only accepts keyword arguments, which should match the hook 3500s specification. 3500s 3500s Returns the result(s) of calling all registered plugins, see 3500s :ref:`calling`. 3500s """ 3500s assert ( 3500s not self.is_historic() 3500s ), "Cannot directly call a historic hook - use call_historic instead." 3500s self._verify_all_args_are_provided(kwargs) 3500s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 3500s # Copy because plugins may register other plugins during iteration (#438). 3500s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = <_pytest.config.PytestPluginManager object at 0xe9079168> 3500s hook_name = 'pytest_fixture_setup' 3500s methods = [>] 3500s kwargs = {'fixturedef': , 'request': >} 3500s firstresult = True 3500s 3500s def _hookexec( 3500s self, 3500s hook_name: str, 3500s methods: Sequence[HookImpl], 3500s kwargs: Mapping[str, object], 3500s firstresult: bool, 3500s ) -> object | list[object]: 3500s # called from all hookcaller instances. 3500s # enable_tracing will set its own wrapping function at self._inner_hookexec 3500s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturedef = 3500s request = > 3500s 3500s def pytest_fixture_setup( 3500s fixturedef: FixtureDef[FixtureValue], request: SubRequest 3500s ) -> FixtureValue: 3500s """Execution of fixture setup.""" 3500s kwargs = {} 3500s for argname in fixturedef.argnames: 3500s fixdef = request._get_active_fixturedef(argname) 3500s assert fixdef.cached_result is not None 3500s result, arg_cache_key, exc = fixdef.cached_result 3500s request._check_scope(argname, request._scope, fixdef._scope) 3500s kwargs[argname] = result 3500s 3500s fixturefunc = resolve_fixture_function(fixturedef, request) 3500s my_cache_key = fixturedef.cache_key(request) 3500s try: 3500s > result = call_fixture_func(fixturefunc, request, kwargs) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1123: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturefunc = 3500s request = > 3500s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv'), 'types_data': [{'B... False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}]} 3500s 3500s def call_fixture_func( 3500s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 3500s ) -> FixtureValue: 3500s if is_generator(fixturefunc): 3500s fixturefunc = cast( 3500s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 3500s ) 3500s generator = fixturefunc(**kwargs) 3500s try: 3500s > fixture_result = next(generator) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:895: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s iris_path = PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv') 3500s types_data = [{'BoolCol': False, 'BoolColWithNull': False, 'DateCol': '2000-01-03 00:00:00', 'DateColWithTz': '2000-01-01 00:00:00-...: False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}] 3500s 3500s @pytest.fixture 3500s def postgresql_psycopg2_engine(iris_path, types_data): 3500s sqlalchemy = pytest.importorskip("sqlalchemy") 3500s pytest.importorskip("psycopg2") 3500s engine = sqlalchemy.create_engine( 3500s "postgresql+psycopg2://postgres:postgres@localhost:5432/pandas", 3500s poolclass=sqlalchemy.pool.NullPool, 3500s ) 3500s > insp = sqlalchemy.inspect(engine) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:438: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s subject = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s raiseerr = True 3500s 3500s def inspect(subject, raiseerr=True): 3500s """Produce an inspection object for the given target. 3500s 3500s The returned value in some cases may be the 3500s same object as the one given, such as if a 3500s :class:`_orm.Mapper` object is passed. In other 3500s cases, it will be an instance of the registered 3500s inspection type for the given object, such as 3500s if an :class:`_engine.Engine` is passed, an 3500s :class:`_reflection.Inspector` object is returned. 3500s 3500s :param subject: the subject to be inspected. 3500s :param raiseerr: When ``True``, if the given subject 3500s does not 3500s correspond to a known SQLAlchemy inspected type, 3500s :class:`sqlalchemy.exc.NoInspectionAvailable` 3500s is raised. If ``False``, ``None`` is returned. 3500s 3500s """ 3500s type_ = type(subject) 3500s for cls in type_.__mro__: 3500s if cls in _registrars: 3500s reg = _registrars[cls] 3500s if reg is True: 3500s return subject 3500s > ret = reg(subject) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:64: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s @inspection._inspects(Engine) 3500s def _engine_insp(bind): 3500s > return Inspector._construct(Inspector._init_engine, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:182: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s init = 3500s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s @classmethod 3500s def _construct(cls, init, bind): 3500s 3500s if hasattr(bind.dialect, "inspector"): 3500s cls = bind.dialect.inspector 3500s 3500s self = cls.__new__(cls) 3500s > init(self, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:117: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s def _init_engine(self, engine): 3500s self.bind = self.engine = engine 3500s > engine.connect().close() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:128: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s close_with_result = False 3500s 3500s def connect(self, close_with_result=False): 3500s """Return a new :class:`_engine.Connection` object. 3500s 3500s The :class:`_engine.Connection` object is a facade that uses a DBAPI 3500s connection internally in order to communicate with the database. This 3500s connection is procured from the connection-holding :class:`_pool.Pool` 3500s referenced by this :class:`_engine.Engine`. When the 3500s :meth:`_engine.Connection.close` method of the 3500s :class:`_engine.Connection` object 3500s is called, the underlying DBAPI connection is then returned to the 3500s connection pool, where it may be used again in a subsequent call to 3500s :meth:`_engine.Engine.connect`. 3500s 3500s """ 3500s 3500s > return self._connection_cls(self, close_with_result=close_with_result) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3325: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s connection = None, close_with_result = False, _branch_from = None 3500s _execution_options = None, _dispatch = None, _has_events = None 3500s _allow_revalidate = True 3500s 3500s def __init__( 3500s self, 3500s engine, 3500s connection=None, 3500s close_with_result=False, 3500s _branch_from=None, 3500s _execution_options=None, 3500s _dispatch=None, 3500s _has_events=None, 3500s _allow_revalidate=True, 3500s ): 3500s """Construct a new Connection.""" 3500s self.engine = engine 3500s self.dialect = engine.dialect 3500s self.__branch_from = _branch_from 3500s 3500s if _branch_from: 3500s # branching is always "from" the root connection 3500s assert _branch_from.__branch_from is None 3500s self._dbapi_connection = connection 3500s self._execution_options = _execution_options 3500s self._echo = _branch_from._echo 3500s self.should_close_with_result = False 3500s self.dispatch = _dispatch 3500s self._has_events = _branch_from._has_events 3500s else: 3500s self._dbapi_connection = ( 3500s connection 3500s if connection is not None 3500s > else engine.raw_connection() 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:96: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s _connection = None 3500s 3500s def raw_connection(self, _connection=None): 3500s """Return a "raw" DBAPI connection from the connection pool. 3500s 3500s The returned object is a proxied version of the DBAPI 3500s connection object used by the underlying driver in use. 3500s The object will have all the same behavior as the real DBAPI 3500s connection, except that its ``close()`` method will result in the 3500s connection being returned to the pool, rather than being closed 3500s for real. 3500s 3500s This method provides direct DBAPI connection access for 3500s special situations when the API provided by 3500s :class:`_engine.Connection` 3500s is not needed. When a :class:`_engine.Connection` object is already 3500s present, the DBAPI connection is available using 3500s the :attr:`_engine.Connection.connection` accessor. 3500s 3500s .. seealso:: 3500s 3500s :ref:`dbapi_connections` 3500s 3500s """ 3500s > return self._wrap_pool_connect(self.pool.connect, _connection) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3404: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s return fn() 3500s except dialect.dbapi.Error as e: 3500s if connection is None: 3500s > Connection._handle_dbapi_exception_noconnection( 3500s e, dialect, self 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3374: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s e = OperationalError('connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused\n\tIs the server running on that host and accepting TCP/IP connections?\n') 3500s dialect = 3500s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s @classmethod 3500s def _handle_dbapi_exception_noconnection(cls, e, dialect, engine): 3500s exc_info = sys.exc_info() 3500s 3500s is_disconnect = dialect.is_disconnect(e, None, None) 3500s 3500s should_wrap = isinstance(e, dialect.dbapi.Error) 3500s 3500s if should_wrap: 3500s sqlalchemy_exception = exc.DBAPIError.instance( 3500s None, 3500s None, 3500s e, 3500s dialect.dbapi.Error, 3500s hide_parameters=engine.hide_parameters, 3500s connection_invalidated=is_disconnect, 3500s ) 3500s else: 3500s sqlalchemy_exception = None 3500s 3500s newraise = None 3500s 3500s if engine._has_events: 3500s ctx = ExceptionContextImpl( 3500s e, 3500s sqlalchemy_exception, 3500s engine, 3500s None, 3500s None, 3500s None, 3500s None, 3500s None, 3500s is_disconnect, 3500s True, 3500s ) 3500s for fn in engine.dispatch.handle_error: 3500s try: 3500s # handler returns an exception; 3500s # call next handler in a chain 3500s per_fn = fn(ctx) 3500s if per_fn is not None: 3500s ctx.chained_exception = newraise = per_fn 3500s except Exception as _raised: 3500s # handler raises an exception - stop processing 3500s newraise = _raised 3500s break 3500s 3500s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 3500s sqlalchemy_exception.connection_invalidated = ( 3500s is_disconnect 3500s ) = ctx.is_disconnect 3500s 3500s if newraise: 3500s util.raise_(newraise, with_traceback=exc_info[2], from_=e) 3500s elif should_wrap: 3500s > util.raise_( 3500s sqlalchemy_exception, with_traceback=exc_info[2], from_=e 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2208: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s dsn = 'host=localhost user=postgres password=postgres port=5432 dbname=pandas' 3500s connection_factory = None, cursor_factory = None 3500s kwargs = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s kwasync = {} 3500s 3500s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 3500s """ 3500s Create a new database connection. 3500s 3500s The connection parameters can be specified as a string: 3500s 3500s conn = psycopg2.connect("dbname=test user=postgres password=secret") 3500s 3500s or using a set of keyword arguments: 3500s 3500s conn = psycopg2.connect(database="test", user="postgres", password="secret") 3500s 3500s Or as a mix of both. The basic connection parameters are: 3500s 3500s - *dbname*: the database name 3500s - *database*: the database name (only as keyword argument) 3500s - *user*: user name used to authenticate 3500s - *password*: password used to authenticate 3500s - *host*: database host address (defaults to UNIX socket if not provided) 3500s - *port*: connection port number (defaults to 5432 if not provided) 3500s 3500s Using the *connection_factory* parameter a different class or connections 3500s factory can be specified. It should be a callable object taking a dsn 3500s argument. 3500s 3500s Using the *cursor_factory* parameter, a new default cursor factory will be 3500s used by cursor(). 3500s 3500s Using *async*=True an asynchronous connection will be created. *async_* is 3500s a valid alias (for Python versions where ``async`` is a keyword). 3500s 3500s Any other keyword parameter will be passed to the underlying client 3500s library: the list of supported parameters depends on the library version. 3500s 3500s """ 3500s kwasync = {} 3500s if 'async' in kwargs: 3500s kwasync['async'] = kwargs.pop('async') 3500s if 'async_' in kwargs: 3500s kwasync['async_'] = kwargs.pop('async_') 3500s 3500s dsn = _ext.make_dsn(dsn, **kwargs) 3500s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 3500s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 3500s E Is the server running on that host and accepting TCP/IP connections? 3500s E 3500s E (Background on this error at: https://sqlalche.me/e/14/e3q8) 3500s 3500s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 3500s ______________ test_read_view_postgres[postgresql_psycopg2_conn] _______________ 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s dsn = 'host=localhost user=postgres password=postgres port=5432 dbname=pandas' 3500s connection_factory = None, cursor_factory = None 3500s kwargs = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s kwasync = {} 3500s 3500s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 3500s """ 3500s Create a new database connection. 3500s 3500s The connection parameters can be specified as a string: 3500s 3500s conn = psycopg2.connect("dbname=test user=postgres password=secret") 3500s 3500s or using a set of keyword arguments: 3500s 3500s conn = psycopg2.connect(database="test", user="postgres", password="secret") 3500s 3500s Or as a mix of both. The basic connection parameters are: 3500s 3500s - *dbname*: the database name 3500s - *database*: the database name (only as keyword argument) 3500s - *user*: user name used to authenticate 3500s - *password*: password used to authenticate 3500s - *host*: database host address (defaults to UNIX socket if not provided) 3500s - *port*: connection port number (defaults to 5432 if not provided) 3500s 3500s Using the *connection_factory* parameter a different class or connections 3500s factory can be specified. It should be a callable object taking a dsn 3500s argument. 3500s 3500s Using the *cursor_factory* parameter, a new default cursor factory will be 3500s used by cursor(). 3500s 3500s Using *async*=True an asynchronous connection will be created. *async_* is 3500s a valid alias (for Python versions where ``async`` is a keyword). 3500s 3500s Any other keyword parameter will be passed to the underlying client 3500s library: the list of supported parameters depends on the library version. 3500s 3500s """ 3500s kwasync = {} 3500s if 'async' in kwargs: 3500s kwasync['async'] = kwargs.pop('async') 3500s if 'async_' in kwargs: 3500s kwasync['async_'] = kwargs.pop('async_') 3500s 3500s dsn = _ext.make_dsn(dsn, **kwargs) 3500s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 3500s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 3500s E Is the server running on that host and accepting TCP/IP connections? 3500s 3500s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 3500s 3500s The above exception was the direct cause of the following exception: 3500s 3500s conn = 'postgresql_psycopg2_conn' 3500s request = > 3500s 3500s @pytest.mark.db 3500s @pytest.mark.parametrize("conn", postgresql_connectable) 3500s def test_read_view_postgres(conn, request): 3500s # GH 52969 3500s > conn = request.getfixturevalue(conn) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:942: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'postgresql_psycopg2_conn' 3500s 3500s def getfixturevalue(self, argname: str) -> Any: 3500s """Dynamically run a named fixture function. 3500s 3500s Declaring fixtures via function argument is recommended where possible. 3500s But if you can only decide whether to use another fixture at test 3500s setup time, you may use this function to retrieve it inside a fixture 3500s or test function body. 3500s 3500s This method can be used during the test setup phase or the test run 3500s phase, but during the test teardown phase a fixture's value may not 3500s be available. 3500s 3500s :param argname: 3500s The fixture name. 3500s :raises pytest.FixtureLookupError: 3500s If the given fixture could not be found. 3500s """ 3500s > fixturedef = self._get_active_fixturedef(argname) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:585: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'postgresql_psycopg2_conn' 3500s 3500s def _get_active_fixturedef( 3500s self, argname: str 3500s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3500s try: 3500s return self._fixture_defs[argname] 3500s except KeyError: 3500s try: 3500s fixturedef = self._getnextfixturedef(argname) 3500s except FixtureLookupError: 3500s if argname == "request": 3500s cached_result = (self, [0], None) 3500s return PseudoFixtureDef(cached_result, Scope.Function) 3500s raise 3500s # Remove indent to prevent the python3 exception 3500s # from leaking into the call. 3500s > self._compute_fixture_value(fixturedef) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s fixturedef = 3500s 3500s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3500s """Create a SubRequest based on "self" and call the execute method 3500s of the given FixtureDef object. 3500s 3500s This will force the FixtureDef object to throw away any previous 3500s results and compute a new fixture value, which will be stored into 3500s the FixtureDef object itself. 3500s """ 3500s # prepare a subrequest object before calling fixture function 3500s # (latter managed by fixturedef) 3500s argname = fixturedef.argname 3500s funcitem = self._pyfuncitem 3500s scope = fixturedef._scope 3500s try: 3500s callspec = funcitem.callspec 3500s except AttributeError: 3500s callspec = None 3500s if callspec is not None and argname in callspec.params: 3500s param = callspec.params[argname] 3500s param_index = callspec.indices[argname] 3500s # If a parametrize invocation set a scope it will override 3500s # the static scope defined with the fixture function. 3500s with suppress(KeyError): 3500s scope = callspec._arg2scope[argname] 3500s else: 3500s param = NOTSET 3500s param_index = 0 3500s has_params = fixturedef.params is not None 3500s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3500s if has_params and fixtures_not_supported: 3500s msg = ( 3500s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3500s "Node id: {nodeid}\n" 3500s "Function type: {typename}" 3500s ).format( 3500s name=funcitem.name, 3500s nodeid=funcitem.nodeid, 3500s typename=type(funcitem).__name__, 3500s ) 3500s fail(msg, pytrace=False) 3500s if has_params: 3500s frame = inspect.stack()[3] 3500s frameinfo = inspect.getframeinfo(frame[0]) 3500s source_path = absolutepath(frameinfo.filename) 3500s source_lineno = frameinfo.lineno 3500s try: 3500s source_path_str = str( 3500s source_path.relative_to(funcitem.config.rootpath) 3500s ) 3500s except ValueError: 3500s source_path_str = str(source_path) 3500s msg = ( 3500s "The requested fixture has no parameter defined for test:\n" 3500s " {}\n\n" 3500s "Requested fixture '{}' defined in:\n{}" 3500s "\n\nRequested here:\n{}:{}".format( 3500s funcitem.nodeid, 3500s fixturedef.argname, 3500s getlocation(fixturedef.func, funcitem.config.rootpath), 3500s source_path_str, 3500s source_lineno, 3500s ) 3500s ) 3500s fail(msg, pytrace=False) 3500s 3500s subrequest = SubRequest( 3500s self, scope, param, param_index, fixturedef, _ispytest=True 3500s ) 3500s 3500s # Check if a higher-level scoped fixture accesses a lower level one. 3500s subrequest._check_scope(argname, self._scope, scope) 3500s try: 3500s # Call the fixture function. 3500s > fixturedef.execute(request=subrequest) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s request = > 3500s 3500s def execute(self, request: SubRequest) -> FixtureValue: 3500s # Get required arguments and register our own finish() 3500s # with their finalization. 3500s for argname in self.argnames: 3500s > fixturedef = request._get_active_fixturedef(argname) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1045: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s argname = 'postgresql_psycopg2_engine' 3500s 3500s def _get_active_fixturedef( 3500s self, argname: str 3500s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 3500s try: 3500s return self._fixture_defs[argname] 3500s except KeyError: 3500s try: 3500s fixturedef = self._getnextfixturedef(argname) 3500s except FixtureLookupError: 3500s if argname == "request": 3500s cached_result = (self, [0], None) 3500s return PseudoFixtureDef(cached_result, Scope.Function) 3500s raise 3500s # Remove indent to prevent the python3 exception 3500s # from leaking into the call. 3500s > self._compute_fixture_value(fixturedef) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:607: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = > 3500s fixturedef = 3500s 3500s def _compute_fixture_value(self, fixturedef: "FixtureDef[object]") -> None: 3500s """Create a SubRequest based on "self" and call the execute method 3500s of the given FixtureDef object. 3500s 3500s This will force the FixtureDef object to throw away any previous 3500s results and compute a new fixture value, which will be stored into 3500s the FixtureDef object itself. 3500s """ 3500s # prepare a subrequest object before calling fixture function 3500s # (latter managed by fixturedef) 3500s argname = fixturedef.argname 3500s funcitem = self._pyfuncitem 3500s scope = fixturedef._scope 3500s try: 3500s callspec = funcitem.callspec 3500s except AttributeError: 3500s callspec = None 3500s if callspec is not None and argname in callspec.params: 3500s param = callspec.params[argname] 3500s param_index = callspec.indices[argname] 3500s # If a parametrize invocation set a scope it will override 3500s # the static scope defined with the fixture function. 3500s with suppress(KeyError): 3500s scope = callspec._arg2scope[argname] 3500s else: 3500s param = NOTSET 3500s param_index = 0 3500s has_params = fixturedef.params is not None 3500s fixtures_not_supported = getattr(funcitem, "nofuncargs", False) 3500s if has_params and fixtures_not_supported: 3500s msg = ( 3500s "{name} does not support fixtures, maybe unittest.TestCase subclass?\n" 3500s "Node id: {nodeid}\n" 3500s "Function type: {typename}" 3500s ).format( 3500s name=funcitem.name, 3500s nodeid=funcitem.nodeid, 3500s typename=type(funcitem).__name__, 3500s ) 3500s fail(msg, pytrace=False) 3500s if has_params: 3500s frame = inspect.stack()[3] 3500s frameinfo = inspect.getframeinfo(frame[0]) 3500s source_path = absolutepath(frameinfo.filename) 3500s source_lineno = frameinfo.lineno 3500s try: 3500s source_path_str = str( 3500s source_path.relative_to(funcitem.config.rootpath) 3500s ) 3500s except ValueError: 3500s source_path_str = str(source_path) 3500s msg = ( 3500s "The requested fixture has no parameter defined for test:\n" 3500s " {}\n\n" 3500s "Requested fixture '{}' defined in:\n{}" 3500s "\n\nRequested here:\n{}:{}".format( 3500s funcitem.nodeid, 3500s fixturedef.argname, 3500s getlocation(fixturedef.func, funcitem.config.rootpath), 3500s source_path_str, 3500s source_lineno, 3500s ) 3500s ) 3500s fail(msg, pytrace=False) 3500s 3500s subrequest = SubRequest( 3500s self, scope, param, param_index, fixturedef, _ispytest=True 3500s ) 3500s 3500s # Check if a higher-level scoped fixture accesses a lower level one. 3500s subrequest._check_scope(argname, self._scope, scope) 3500s try: 3500s # Call the fixture function. 3500s > fixturedef.execute(request=subrequest) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:693: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s request = > 3500s 3500s def execute(self, request: SubRequest) -> FixtureValue: 3500s # Get required arguments and register our own finish() 3500s # with their finalization. 3500s for argname in self.argnames: 3500s fixturedef = request._get_active_fixturedef(argname) 3500s if argname != "request": 3500s # PseudoFixtureDef is only for "request". 3500s assert isinstance(fixturedef, FixtureDef) 3500s fixturedef.addfinalizer(functools.partial(self.finish, request=request)) 3500s 3500s my_cache_key = self.cache_key(request) 3500s if self.cached_result is not None: 3500s # note: comparison with `==` can fail (or be expensive) for e.g. 3500s # numpy arrays (#6497). 3500s cache_key = self.cached_result[1] 3500s if my_cache_key is cache_key: 3500s if self.cached_result[2] is not None: 3500s _, val, tb = self.cached_result[2] 3500s raise val.with_traceback(tb) 3500s else: 3500s result = self.cached_result[0] 3500s return result 3500s # We have a previous but differently parametrized fixture instance 3500s # so we need to tear it down before creating a new one. 3500s self.finish(request) 3500s assert self.cached_result is None 3500s 3500s ihook = request.node.ihook 3500s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1069: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s kwargs = {'fixturedef': , 'request': >} 3500s firstresult = True 3500s 3500s def __call__(self, **kwargs: object) -> Any: 3500s """Call the hook. 3500s 3500s Only accepts keyword arguments, which should match the hook 3500s specification. 3500s 3500s Returns the result(s) of calling all registered plugins, see 3500s :ref:`calling`. 3500s """ 3500s assert ( 3500s not self.is_historic() 3500s ), "Cannot directly call a historic hook - use call_historic instead." 3500s self._verify_all_args_are_provided(kwargs) 3500s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 3500s # Copy because plugins may register other plugins during iteration (#438). 3500s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = <_pytest.config.PytestPluginManager object at 0xe9079168> 3500s hook_name = 'pytest_fixture_setup' 3500s methods = [>] 3500s kwargs = {'fixturedef': , 'request': >} 3500s firstresult = True 3500s 3500s def _hookexec( 3500s self, 3500s hook_name: str, 3500s methods: Sequence[HookImpl], 3500s kwargs: Mapping[str, object], 3500s firstresult: bool, 3500s ) -> object | list[object]: 3500s # called from all hookcaller instances. 3500s # enable_tracing will set its own wrapping function at self._inner_hookexec 3500s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 3500s 3500s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturedef = 3500s request = > 3500s 3500s def pytest_fixture_setup( 3500s fixturedef: FixtureDef[FixtureValue], request: SubRequest 3500s ) -> FixtureValue: 3500s """Execution of fixture setup.""" 3500s kwargs = {} 3500s for argname in fixturedef.argnames: 3500s fixdef = request._get_active_fixturedef(argname) 3500s assert fixdef.cached_result is not None 3500s result, arg_cache_key, exc = fixdef.cached_result 3500s request._check_scope(argname, request._scope, fixdef._scope) 3500s kwargs[argname] = result 3500s 3500s fixturefunc = resolve_fixture_function(fixturedef, request) 3500s my_cache_key = fixturedef.cache_key(request) 3500s try: 3500s > result = call_fixture_func(fixturefunc, request, kwargs) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1123: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s fixturefunc = 3500s request = > 3500s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv'), 'types_data': [{'B... False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}]} 3500s 3500s def call_fixture_func( 3500s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 3500s ) -> FixtureValue: 3500s if is_generator(fixturefunc): 3500s fixturefunc = cast( 3500s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 3500s ) 3500s generator = fixturefunc(**kwargs) 3500s try: 3500s > fixture_result = next(generator) 3500s 3500s /usr/lib/python3/dist-packages/_pytest/fixtures.py:895: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s iris_path = PosixPath('/tmp/autopkgtest.9HcbfU/build.qlo/src/pandas/tests/io/data/csv/iris.csv') 3500s types_data = [{'BoolCol': False, 'BoolColWithNull': False, 'DateCol': '2000-01-03 00:00:00', 'DateColWithTz': '2000-01-01 00:00:00-...: False, 'BoolColWithNull': None, 'DateCol': '2000-01-04 00:00:00', 'DateColWithTz': '2000-06-01 00:00:00-07:00', ...}] 3500s 3500s @pytest.fixture 3500s def postgresql_psycopg2_engine(iris_path, types_data): 3500s sqlalchemy = pytest.importorskip("sqlalchemy") 3500s pytest.importorskip("psycopg2") 3500s engine = sqlalchemy.create_engine( 3500s "postgresql+psycopg2://postgres:postgres@localhost:5432/pandas", 3500s poolclass=sqlalchemy.pool.NullPool, 3500s ) 3500s > insp = sqlalchemy.inspect(engine) 3500s 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:438: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s subject = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s raiseerr = True 3500s 3500s def inspect(subject, raiseerr=True): 3500s """Produce an inspection object for the given target. 3500s 3500s The returned value in some cases may be the 3500s same object as the one given, such as if a 3500s :class:`_orm.Mapper` object is passed. In other 3500s cases, it will be an instance of the registered 3500s inspection type for the given object, such as 3500s if an :class:`_engine.Engine` is passed, an 3500s :class:`_reflection.Inspector` object is returned. 3500s 3500s :param subject: the subject to be inspected. 3500s :param raiseerr: When ``True``, if the given subject 3500s does not 3500s correspond to a known SQLAlchemy inspected type, 3500s :class:`sqlalchemy.exc.NoInspectionAvailable` 3500s is raised. If ``False``, ``None`` is returned. 3500s 3500s """ 3500s type_ = type(subject) 3500s for cls in type_.__mro__: 3500s if cls in _registrars: 3500s reg = _registrars[cls] 3500s if reg is True: 3500s return subject 3500s > ret = reg(subject) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:64: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s @inspection._inspects(Engine) 3500s def _engine_insp(bind): 3500s > return Inspector._construct(Inspector._init_engine, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:182: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s init = 3500s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s @classmethod 3500s def _construct(cls, init, bind): 3500s 3500s if hasattr(bind.dialect, "inspector"): 3500s cls = bind.dialect.inspector 3500s 3500s self = cls.__new__(cls) 3500s > init(self, bind) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:117: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s def _init_engine(self, engine): 3500s self.bind = self.engine = engine 3500s > engine.connect().close() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:128: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s close_with_result = False 3500s 3500s def connect(self, close_with_result=False): 3500s """Return a new :class:`_engine.Connection` object. 3500s 3500s The :class:`_engine.Connection` object is a facade that uses a DBAPI 3500s connection internally in order to communicate with the database. This 3500s connection is procured from the connection-holding :class:`_pool.Pool` 3500s referenced by this :class:`_engine.Engine`. When the 3500s :meth:`_engine.Connection.close` method of the 3500s :class:`_engine.Connection` object 3500s is called, the underlying DBAPI connection is then returned to the 3500s connection pool, where it may be used again in a subsequent call to 3500s :meth:`_engine.Engine.connect`. 3500s 3500s """ 3500s 3500s > return self._connection_cls(self, close_with_result=close_with_result) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3325: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s connection = None, close_with_result = False, _branch_from = None 3500s _execution_options = None, _dispatch = None, _has_events = None 3500s _allow_revalidate = True 3500s 3500s def __init__( 3500s self, 3500s engine, 3500s connection=None, 3500s close_with_result=False, 3500s _branch_from=None, 3500s _execution_options=None, 3500s _dispatch=None, 3500s _has_events=None, 3500s _allow_revalidate=True, 3500s ): 3500s """Construct a new Connection.""" 3500s self.engine = engine 3500s self.dialect = engine.dialect 3500s self.__branch_from = _branch_from 3500s 3500s if _branch_from: 3500s # branching is always "from" the root connection 3500s assert _branch_from.__branch_from is None 3500s self._dbapi_connection = connection 3500s self._execution_options = _execution_options 3500s self._echo = _branch_from._echo 3500s self.should_close_with_result = False 3500s self.dispatch = _dispatch 3500s self._has_events = _branch_from._has_events 3500s else: 3500s self._dbapi_connection = ( 3500s connection 3500s if connection is not None 3500s > else engine.raw_connection() 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:96: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s _connection = None 3500s 3500s def raw_connection(self, _connection=None): 3500s """Return a "raw" DBAPI connection from the connection pool. 3500s 3500s The returned object is a proxied version of the DBAPI 3500s connection object used by the underlying driver in use. 3500s The object will have all the same behavior as the real DBAPI 3500s connection, except that its ``close()`` method will result in the 3500s connection being returned to the pool, rather than being closed 3500s for real. 3500s 3500s This method provides direct DBAPI connection access for 3500s special situations when the API provided by 3500s :class:`_engine.Connection` 3500s is not needed. When a :class:`_engine.Connection` object is already 3500s present, the DBAPI connection is available using 3500s the :attr:`_engine.Connection.connection` accessor. 3500s 3500s .. seealso:: 3500s 3500s :ref:`dbapi_connections` 3500s 3500s """ 3500s > return self._wrap_pool_connect(self.pool.connect, _connection) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3404: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s return fn() 3500s except dialect.dbapi.Error as e: 3500s if connection is None: 3500s > Connection._handle_dbapi_exception_noconnection( 3500s e, dialect, self 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3374: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s e = OperationalError('connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused\n\tIs the server running on that host and accepting TCP/IP connections?\n') 3500s dialect = 3500s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s 3500s @classmethod 3500s def _handle_dbapi_exception_noconnection(cls, e, dialect, engine): 3500s exc_info = sys.exc_info() 3500s 3500s is_disconnect = dialect.is_disconnect(e, None, None) 3500s 3500s should_wrap = isinstance(e, dialect.dbapi.Error) 3500s 3500s if should_wrap: 3500s sqlalchemy_exception = exc.DBAPIError.instance( 3500s None, 3500s None, 3500s e, 3500s dialect.dbapi.Error, 3500s hide_parameters=engine.hide_parameters, 3500s connection_invalidated=is_disconnect, 3500s ) 3500s else: 3500s sqlalchemy_exception = None 3500s 3500s newraise = None 3500s 3500s if engine._has_events: 3500s ctx = ExceptionContextImpl( 3500s e, 3500s sqlalchemy_exception, 3500s engine, 3500s None, 3500s None, 3500s None, 3500s None, 3500s None, 3500s is_disconnect, 3500s True, 3500s ) 3500s for fn in engine.dispatch.handle_error: 3500s try: 3500s # handler returns an exception; 3500s # call next handler in a chain 3500s per_fn = fn(ctx) 3500s if per_fn is not None: 3500s ctx.chained_exception = newraise = per_fn 3500s except Exception as _raised: 3500s # handler raises an exception - stop processing 3500s newraise = _raised 3500s break 3500s 3500s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 3500s sqlalchemy_exception.connection_invalidated = ( 3500s is_disconnect 3500s ) = ctx.is_disconnect 3500s 3500s if newraise: 3500s util.raise_(newraise, with_traceback=exc_info[2], from_=e) 3500s elif should_wrap: 3500s > util.raise_( 3500s sqlalchemy_exception, with_traceback=exc_info[2], from_=e 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2208: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 3500s fn = > 3500s connection = None 3500s 3500s def _wrap_pool_connect(self, fn, connection): 3500s dialect = self.dialect 3500s try: 3500s > return fn() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3371: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def connect(self): 3500s """Return a DBAPI connection from the pool. 3500s 3500s The connection is instrumented such that when its 3500s ``close()`` method is called, the connection will be returned to 3500s the pool. 3500s 3500s """ 3500s > return _ConnectionFairy._checkout(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:327: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = , threadconns = None 3500s fairy = None 3500s 3500s @classmethod 3500s def _checkout(cls, pool, threadconns=None, fairy=None): 3500s if not fairy: 3500s > fairy = _ConnectionRecord.checkout(pool) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:894: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s cls = 3500s pool = 3500s 3500s @classmethod 3500s def checkout(cls, pool): 3500s > rec = pool._do_get() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:493: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _do_get(self): 3500s > return self._create_connection() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:256: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def _create_connection(self): 3500s """Called by subclasses to create a new ConnectionRecord.""" 3500s 3500s > return _ConnectionRecord(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:273: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s pool = , connect = True 3500s 3500s def __init__(self, pool, connect=True): 3500s self.__pool = pool 3500s if connect: 3500s > self.__connect() 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:388: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s self.dbapi_connection = connection = pool._invoke_creator(self) 3500s pool.logger.debug("Created new connection %r", connection) 3500s self.fresh = True 3500s except BaseException as e: 3500s > with util.safe_reraise(): 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:690: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s type_ = None, value = None, traceback = None 3500s 3500s def __exit__(self, type_, value, traceback): 3500s # see #2703 for notes 3500s if type_ is None: 3500s exc_type, exc_value, exc_tb = self._exc_info 3500s self._exc_info = None # remove potential circular references 3500s if not self.warn_only: 3500s > compat.raise_( 3500s exc_value, 3500s with_traceback=exc_tb, 3500s ) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:70: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s def raise_( 3500s exception, with_traceback=None, replace_context=None, from_=False 3500s ): 3500s r"""implement "raise" with cause support. 3500s 3500s :param exception: exception to raise 3500s :param with_traceback: will call exception.with_traceback() 3500s :param replace_context: an as-yet-unsupported feature. This is 3500s an exception object which we are "replacing", e.g., it's our 3500s "cause" but we don't want it printed. Basically just what 3500s ``__suppress_context__`` does but we don't want to suppress 3500s the enclosing context, if any. So for now we make it the 3500s cause. 3500s :param from\_: the cause. this actually sets the cause and doesn't 3500s hope to hide it someday. 3500s 3500s """ 3500s if with_traceback is not None: 3500s exception = exception.with_traceback(with_traceback) 3500s 3500s if from_ is not False: 3500s exception.__cause__ = from_ 3500s elif replace_context is not None: 3500s # no good solution here, we would like to have the exception 3500s # have only the context of replace_context.__context__ so that the 3500s # intermediary exception does not change, but we can't figure 3500s # that out. 3500s exception.__cause__ = replace_context 3500s 3500s try: 3500s > raise exception 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/util/compat.py:211: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s 3500s def __connect(self): 3500s pool = self.__pool 3500s 3500s # ensure any existing connection is removed, so that if 3500s # creator fails, this attribute stays None 3500s self.dbapi_connection = None 3500s try: 3500s self.starttime = time.time() 3500s > self.dbapi_connection = connection = pool._invoke_creator(self) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:686: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s connection_record = 3500s 3500s def connect(connection_record=None): 3500s if dialect._has_events: 3500s for fn in dialect.dispatch.do_connect: 3500s connection = fn(dialect, connection_record, cargs, cparams) 3500s if connection is not None: 3500s return connection 3500s > return dialect.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:574: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s self = 3500s cargs = () 3500s cparams = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s 3500s def connect(self, *cargs, **cparams): 3500s # inherits the docstring from interfaces.Dialect.connect 3500s > return self.dbapi.connect(*cargs, **cparams) 3500s 3500s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:598: 3500s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 3500s 3500s dsn = 'host=localhost user=postgres password=postgres port=5432 dbname=pandas' 3500s connection_factory = None, cursor_factory = None 3500s kwargs = {'database': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 3500s kwasync = {} 3500s 3500s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 3500s """ 3500s Create a new database connection. 3500s 3500s The connection parameters can be specified as a string: 3500s 3500s conn = psycopg2.connect("dbname=test user=postgres password=secret") 3500s 3500s or using a set of keyword arguments: 3500s 3500s conn = psycopg2.connect(database="test", user="postgres", password="secret") 3500s 3500s Or as a mix of both. The basic connection parameters are: 3500s 3500s - *dbname*: the database name 3500s - *database*: the database name (only as keyword argument) 3500s - *user*: user name used to authenticate 3500s - *password*: password used to authenticate 3500s - *host*: database host address (defaults to UNIX socket if not provided) 3500s - *port*: connection port number (defaults to 5432 if not provided) 3500s 3500s Using the *connection_factory* parameter a different class or connections 3500s factory can be specified. It should be a callable object taking a dsn 3500s argument. 3500s 3500s Using the *cursor_factory* parameter, a new default cursor factory will be 3500s used by cursor(). 3500s 3500s Using *async*=True an asynchronous connection will be created. *async_* is 3500s a valid alias (for Python versions where ``async`` is a keyword). 3500s 3500s Any other keyword parameter will be passed to the underlying client 3500s library: the list of supported parameters depends on the library version. 3500s 3500s """ 3500s kwasync = {} 3500s if 'async' in kwargs: 3500s kwasync['async'] = kwargs.pop('async') 3500s if 'async_' in kwargs: 3500s kwasync['async_'] = kwargs.pop('async_') 3500s 3500s dsn = _ext.make_dsn(dsn, **kwargs) 3500s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 3500s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 3500s E Is the server running on that host and accepting TCP/IP connections? 3500s E 3500s E (Background on this error at: https://sqlalche.me/e/14/e3q8) 3500s 3500s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 3500s =============================== warnings summary =============================== 3500s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:546 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:546: PytestUnknownMarkWarning: Unknown pytest.mark.db - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 3500s @pytest.mark.db 3500s 3500s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:554 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:554: PytestUnknownMarkWarning: Unknown pytest.mark.db - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 3500s @pytest.mark.db 3500s 3500s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:575 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:575: PytestUnknownMarkWarning: Unknown pytest.mark.db - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 3500s @pytest.mark.db 3500s 3500s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:591 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:591: PytestUnknownMarkWarning: Unknown pytest.mark.db - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 3500s @pytest.mark.db 3500s 3500s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:602 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:602: PytestUnknownMarkWarning: Unknown pytest.mark.db - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 3500s @pytest.mark.db 3500s 3500s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:614 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:614: PytestUnknownMarkWarning: Unknown pytest.mark.db - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 3500s @pytest.mark.db 3500s 3500s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:627 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:627: PytestUnknownMarkWarning: Unknown pytest.mark.db - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 3500s @pytest.mark.db 3500s 3500s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:640 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:640: PytestUnknownMarkWarning: Unknown pytest.mark.db - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 3500s @pytest.mark.db 3500s 3500s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:653 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:653: PytestUnknownMarkWarning: Unknown pytest.mark.db - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 3500s @pytest.mark.db 3500s 3500s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:675 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:675: PytestUnknownMarkWarning: Unknown pytest.mark.db - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 3500s @pytest.mark.db 3500s 3500s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:688 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:688: PytestUnknownMarkWarning: Unknown pytest.mark.db - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 3500s @pytest.mark.db 3500s 3500s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:699 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:699: PytestUnknownMarkWarning: Unknown pytest.mark.db - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 3500s @pytest.mark.db 3500s 3500s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:709 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:709: PytestUnknownMarkWarning: Unknown pytest.mark.db - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 3500s @pytest.mark.db 3500s 3500s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:728 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:728: PytestUnknownMarkWarning: Unknown pytest.mark.db - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 3500s @pytest.mark.db 3500s 3500s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:747 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:747: PytestUnknownMarkWarning: Unknown pytest.mark.db - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 3500s @pytest.mark.db 3500s 3500s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:785 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:785: PytestUnknownMarkWarning: Unknown pytest.mark.db - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 3500s @pytest.mark.db 3500s 3500s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:825 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:825: PytestUnknownMarkWarning: Unknown pytest.mark.db - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 3500s @pytest.mark.db 3500s 3500s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:884 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:884: PytestUnknownMarkWarning: Unknown pytest.mark.db - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 3500s @pytest.mark.db 3500s 3500s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:938 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:938: PytestUnknownMarkWarning: Unknown pytest.mark.db - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 3500s @pytest.mark.db 3500s 3500s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:2991 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:2991: PytestUnknownMarkWarning: Unknown pytest.mark.db - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 3500s @pytest.mark.db 3500s 3500s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:3027 3500s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:3027: PytestUnknownMarkWarning: Unknown pytest.mark.db - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html 3500s @pytest.mark.db 3500s 3500s io/test_sql.py: 531 warnings 3500s tools/test_to_datetime.py: 948 warnings 3500s /usr/lib/python3/dist-packages/py/_process/forkedfunc.py:45: DeprecationWarning: This process (pid=17665) is multi-threaded, use of fork() may lead to deadlocks in the child. 3500s pid = os.fork() 3500s 3500s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451 3500s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:451: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/.pytest_cache/v/cache/nodeids: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/.pytest_cache' 3500s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 3500s 3500s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:405 3500s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:405: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/.pytest_cache/v/cache/lastfailed: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/.pytest_cache' 3500s config.cache.set("cache/lastfailed", self.lastfailed) 3500s 3500s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:56 3500s /usr/lib/python3/dist-packages/_pytest/stepwise.py:56: PytestCacheWarning: could not create cache path /usr/lib/python3/dist-packages/pandas/tests/.pytest_cache/v/cache/stepwise: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pandas/tests/.pytest_cache' 3500s session.config.cache.set(STEPWISE_CACHE_DIR, []) 3500s 3500s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 3500s =========================== short test summary info ============================ 3500s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql[mysql_pymysql_engine] 3500s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql[mysql_pymysql_conn] 3500s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql[postgresql_psycopg2_engine] 3500s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql[postgresql_psycopg2_conn] 3500s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql[None-mysql_pymysql_engine] 3500s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql[None-mysql_pymysql_conn] 3500s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql[None-postgresql_psycopg2_engine] 3500s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql[None-postgresql_psycopg2_conn] 3500s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql[multi-mysql_pymysql_engine] 3500s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql[multi-mysql_pymysql_conn] 3500s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql[multi-postgresql_psycopg2_engine] 3500s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql[multi-postgresql_psycopg2_conn] 3500s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_exist[replace-1-mysql_pymysql_engine] 3500s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_exist[replace-1-mysql_pymysql_conn] 3500s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_exist[replace-1-postgresql_psycopg2_engine] 3500s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_exist[replace-1-postgresql_psycopg2_conn] 3500s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_exist[append-2-mysql_pymysql_engine] 3500s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_exist[append-2-mysql_pymysql_conn] 3500s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_exist[append-2-postgresql_psycopg2_engine] 3500s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_exist[append-2-postgresql_psycopg2_conn] 3500s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_exist_fail[mysql_pymysql_engine] 3500s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_exist_fail[mysql_pymysql_conn] 3500s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_exist_fail[postgresql_psycopg2_engine] 3500s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_exist_fail[postgresql_psycopg2_conn] 3500s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query[mysql_pymysql_engine] 3500s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query[mysql_pymysql_conn] 3500s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query[postgresql_psycopg2_engine] 3500s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query[postgresql_psycopg2_conn] 3500s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query_chunksize[mysql_pymysql_engine] 3500s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query_chunksize[mysql_pymysql_conn] 3500s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query_chunksize[postgresql_psycopg2_engine] 3500s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query_chunksize[postgresql_psycopg2_conn] 3500s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query_expression_with_parameter[mysql_pymysql_engine] 3500s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query_expression_with_parameter[mysql_pymysql_conn] 3500s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query_expression_with_parameter[postgresql_psycopg2_engine] 3500s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query_expression_with_parameter[postgresql_psycopg2_conn] 3500s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query_string_with_parameter[mysql_pymysql_engine] 3500s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query_string_with_parameter[mysql_pymysql_conn] 3500s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query_string_with_parameter[postgresql_psycopg2_engine] 3500s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query_string_with_parameter[postgresql_psycopg2_conn] 3500s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_table[mysql_pymysql_engine] 3500s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_table[mysql_pymysql_conn] 3500s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_table[postgresql_psycopg2_engine] 3500s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_table[postgresql_psycopg2_conn] 3500s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_table_chunksize[mysql_pymysql_engine] 3500s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_table_chunksize[mysql_pymysql_conn] 3500s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_table_chunksize[postgresql_psycopg2_engine] 3500s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_table_chunksize[postgresql_psycopg2_conn] 3500s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_callable[mysql_pymysql_engine] 3500s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_callable[mysql_pymysql_conn] 3500s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_callable[postgresql_psycopg2_engine] 3500s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_callable[postgresql_psycopg2_conn] 3500s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_default_type_conversion[mysql_pymysql_engine] 3500s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_default_type_conversion[mysql_pymysql_conn] 3500s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_procedure[mysql_pymysql_engine] 3500s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_procedure[mysql_pymysql_conn] 3500s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_copy_from_callable_insertion_method[2-postgresql_psycopg2_engine] 3500s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_copy_from_callable_insertion_method[2-postgresql_psycopg2_conn] 3500s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_copy_from_callable_insertion_method[Success!-postgresql_psycopg2_engine] 3500s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_copy_from_callable_insertion_method[Success!-postgresql_psycopg2_conn] 3500s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_insertion_method_on_conflict_do_nothing[postgresql_psycopg2_engine] 3500s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_insertion_method_on_conflict_do_nothing[postgresql_psycopg2_conn] 3500s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_insertion_method_on_conflict_update[mysql_pymysql_engine] 3500s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_insertion_method_on_conflict_update[mysql_pymysql_conn] 3500s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_view_postgres[postgresql_psycopg2_engine] 3500s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_view_postgres[postgresql_psycopg2_conn] 3500s = 66 failed, 1176 passed, 230 skipped, 7 xfailed, 1503 warnings in 790.83s (0:13:10) = 3518s autopkgtest [13:38:30]: test ignoredtests: -----------------------] 3523s autopkgtest [13:38:35]: test ignoredtests: - - - - - - - - - - results - - - - - - - - - - 3523s ignoredtests PASS 3528s autopkgtest [13:38:40]: @@@@@@@@@@@@@@@@@@@@ summary 3528s command1 PASS 3528s unittests3 PASS 3528s ignoredtests PASS